/* ... (body, loader, main-content, video-grid, animations, header, etc. styles as before) ... */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Loader Styles - White line loader */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; display: flex; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease-out 0.2s;
}
.white-loader-line {
    width: 0; height: 2px; background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    animation: loadWhiteLineAnimation 1.5s ease-in-out forwards, pulseWhiteLineOpacity 1.5s infinite alternate ease-in-out;
}
@keyframes loadWhiteLineAnimation {
    0% { width: 0%; opacity: 0.4; }
    100% { width: 100%; opacity: 0.8; }
}
@keyframes pulseWhiteLineOpacity {
    0% { opacity: 0.5; }
    100% { opacity: 0.9; }
}

/* Main Content Styles */
#main-content {
    flex-grow: 1; display: flex; flex-direction: column;
    position: relative; opacity: 0; transition: opacity 0.7s ease-in;
}

/* Particle Canvas Styles */
#particle-canvas {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 7; 
    pointer-events: none; 
}


/* Video Grid Background - 6 columns */
.video-grid-background {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(6, 1fr); 
    gap: 10px; padding: 15px; box-sizing: border-box;
    z-index: 5; overflow: hidden; perspective: 800px;
}

/* Grid Video Slot */
.grid-video-slot {
    position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
    background-color: rgba(25, 25, 25, 0.03); border-radius: 3px;
    opacity: 0; transform: scale(0.95) translateY(10px); 
    overflow: hidden;
}
.grid-video-slot.content-visible { 
    opacity: 0.2; transform: scale(1) translateY(0px);
    background-color: transparent;
}
.grid-video-slot > video, 
.grid-video-slot > img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; border-radius: 3px;
}

/* Animation Classes & Keyframes (remain the same) */
.animate-pop-in { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes popIn { 
    0% { opacity: 0; transform: scale(0.7) translateY(10px); }
    100% { opacity: 0.2; transform: scale(1) translateY(0px); }
}
.animate-slide-up { animation: slideUp 0.7s ease-out forwards; }
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 0.2; transform: translateY(0) scale(1); }
}
.animate-slide-down { animation: slideDown 0.7s ease-out forwards; }
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-40px) scale(0.95); }
    100% { opacity: 0.2; transform: translateY(0) scale(1); }
}
.animate-slide-left { animation: slideLeft 0.7s ease-out forwards; }
@keyframes slideLeft {
    0% { opacity: 0; transform: translateX(40px) scale(0.95); }
    100% { opacity: 0.2; transform: translateX(0) scale(1); }
}
.animate-slide-right { animation: slideRight 0.7s ease-out forwards; }
@keyframes slideRight {
    0% { opacity: 0; transform: translateX(-40px) scale(0.95); }
    100% { opacity: 0.2; transform: translateX(0) scale(1); }
}

/* Left Side Hover Link */
.side-link-left {
    position: fixed; left: 0; top: 0; width: 10px; height: 100vh;
    background-color: rgba(20, 20, 20, 0.05); z-index: 150;
    transition: background-color 0.3s ease, width 0.3s ease; cursor: pointer;
}
.side-link-left:hover {
    background-color: rgba(40, 40, 40, 0.3); width: 15px;
}

main {
    flex-grow: 1; display: flex; justify-content: center; align-items: center;
    position: relative; z-index: 10;
}

/* Center Branding Area */
.center-branding-container {
    position: relative; 
    z-index: 20;
    text-align: center;
}

.center-branding .main-logo {
    width: 180px; 
    height: auto;
    margin-bottom: 5px;
    position: relative; 
    /* Apply the image breathing animation */
    animation: logoImageBreathe 3s infinite ease-in-out; /* MODIFIED: Renamed animation */
}

/* MODIFIED Keyframes for the logo image breathing effect (scale only) */
@keyframes logoImageBreathe {
    0% {
        transform: scale(1); 
    }
    50% {
        transform: scale(1.05); /* Scale up by 5% */
    }
    100% {
        transform: scale(1);
    }
}


.center-branding .brand-name {
    font-size: 2.6em; 
    font-weight: bold; 
    margin: 0;
    color: #fff; 
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);                                            
    margin-bottom: 15px;
}

.hover-menu {
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
    margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px 20px; max-width: 380px; margin-left: auto; margin-right: auto;
}
.center-branding-container:hover .hover-menu {
    opacity: 1; visibility: visible;
}
.hover-menu a {
    color: rgba(255, 255, 255, 0.65); text-decoration: none; font-size: 0.7em;
    text-transform: uppercase; letter-spacing: 0.8px; padding: 2px 4px;
    transition: color 0.3s ease, transform 0.2s ease;
}
.hover-menu a:hover {
    color: #fff; transform: scale(1.05);
}

/* Footer Styles */
footer {
    width: 100%; 
    padding: 15px 25px;
    box-sizing: border-box;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.75em; 
    position: relative; 
    z-index: 30;
    background-color: #000;
}

.footer-left {
    transform: translateY(-15px); 
}

.footer-left .ionnection-banner-link img {
    width: 220px;
    height: 76px;
    display: block; 
    transform: scale(1); 
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); 
}
.footer-left .ionnection-banner-link:hover img { 
    transform: scale(1.07); 
}

.footer-right a {
    color: #a0a0a0; 
    text-decoration: none; 
    margin-left: 18px; 
    transition: color 0.3s;
}
.footer-right a:hover { 
    color: #fff; 
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .video-grid-background { grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; }
}
@media (max-width: 992px) { 
    .video-grid-background { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
    .center-branding .main-logo { width: 100px; }
    .center-branding .brand-name { font-size: 2.3em; }
}
@media (max-width: 768px) { 
    .video-grid-background { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
    .center-branding .main-logo { width: 85px; }
    .center-branding .brand-name { font-size: 2em; }
    .hover-menu { gap: 6px 15px; max-width: 280px; }
    .hover-menu a { font-size: 0.65em; }
    
    footer { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        padding-top: 15px;
        padding-bottom: 15px; 
    }
    .footer-left { 
        margin-bottom: 15px; 
        transform: translateY(0); 
    }
    .footer-left .ionnection-banner-link img {
        width: 180px; 
        height: auto; 
    }
    .footer-right {
        display: flex; 
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-right a { 
        margin: 5px 10px; 
        font-size: 0.7em;
    }
    .side-link-left { width: 7px; }
    .side-link-left:hover { width: 10px; }
}
@media (max-width: 500px) { 
    .video-grid-background { grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 5px; }
    .center-branding .brand-name { font-size: 1.7em; }
    .hover-menu a { font-size: 0.6em; }
    .footer-right a { margin-left: 10px; margin-right: 10px; }
}