* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #505050;
    /* Base background for safety */
    overflow: hidden;
}

/* ENTRY ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh; /* Dynamic viewport height fixes mobile cutoff */
}

/* LEFT PANEL */
.left-panel {
    width: 32.5%;
    /* Perfect proportion from original image */
    background-color: #505050;
    /* Premium grain texture overlay */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    /* Exact grey from the picture */
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    /* Very subtle separation */
}

/* The wrapper creates the exact vertical centering and horizontal left alignment */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15%;
    /* Left margin aligning everything */
}

.brand {
    margin-top: 25vh;
    /* Shifts the brand to 25vh down from the top */
    margin-bottom: 2.5rem;
}

.logo-text {
    font-family: 'Audiowide', sans-serif;
    font-size: 4.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 0.4rem;
    margin-left: -3px;
    /* Optical alignment for the A */
    
    /* Entry Animation */
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, logoShimmer 5s linear infinite;
    animation-delay: 0.2s, 0s; /* fade starts at 0.2, shimmer starts immediately on load */
    
    /* Shimmer Effect */
    background: linear-gradient(120deg, #E8EBEA 30%, #FFFFFF 50%, #E8EBEA 70%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes logoShimmer {
    0% { background-position: 200% center; }
    20% { background-position: -200% center; }
    100% { background-position: -200% center; }
}

.subtitle {
    font-family: 'Syne Mono', monospace;
    font-size: 0.95rem;
    /* Exactly the width of ADDBOX visually */
    font-weight: 400;
    letter-spacing: 2.6px;
    /* Reduced down to perfectly match 'O' width based on user view */
    color: #E8EBEA;
    text-transform: uppercase;
    
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

.slogan {
    font-family: 'Caveat', cursive;
    font-size: 34px;
    /* Adjusted font size to exactly 34px as requested */
    font-weight: 400;
    color: #E8EBEA;
    margin-bottom: 3.5rem;
    letter-spacing: 0.5px;
    
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

.contact-icon {
    display: inline-flex;
    /* Changed from flex so it shrinks to fit content width */
    align-items: center;
    cursor: pointer;
    width: fit-content;
    /* Ensure clickable area is exactly the icon size */
    padding: 10px; /* Added some padding to increase magnetic catch area invisibly */
    margin: -10px; /* Offset the padding visually */
    
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

.icon-img {
    width: 32px;
    /* Perfect icon scaling visually */
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    /* Transition handles the release of the magnet effect */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.2s ease;
}

.contact-icon:hover .icon-img {
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.3));
}

/* FOOTER */
.footer {
    padding-left: 15%;
    padding-bottom: 3.5rem;
    /* Exact bottom spacing matching the image */
}

.footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #B5B5B5;
    letter-spacing: 0.5px;

    opacity: 0;
    animation: fadeRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.8s; /* Appears immediately after the button finishes sliding up */
}

/* RIGHT PANEL */
.right-panel {
    width: 67.5%;
    height: 100%;
    overflow: hidden; /* Added to keep parallax contained */
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    /* Keep left side anchored */
    transform: scale(1.05); /* Scaled up to avoid clipping when moved */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Made transition longer and smoother */
    will-change: transform;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .logo-text {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .slogan {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        position: relative;
        display: block;
    }

    .right-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1; /* Background layer */
    }

    .left-panel {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 2; /* Overlay layer */
        /* Transparent dark gradient for readability over the image */
        background-color: transparent;
        background-image: linear-gradient(to right, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.7) 100%);
        box-shadow: none;
    }

    .content-wrapper,
    .footer {
        padding-left: 1.5rem; /* Less padding to give text space */
        padding-right: 1.5rem;
    }

    /* Shrinking the text heavily for mobile phones to prevent overlap/cutoff */
    .brand {
        margin-top: -5vh; /* Push up slightly to center better full screen */
    }
    .logo-text {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .slogan {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .footer {
        padding-bottom: 1.5rem;
        position: absolute;
        bottom: 0;
    }
}