* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #070709;
    color: #f4f4f0;
    font-family: 'Gilroy', 'Plus Jakarta Sans', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Dynamic Smooth Aurora Background */
.fluid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background-color: #050507;
}

#aurora-canvas {
    width: 100%;
    height: 100%;
    filter: blur(80px);
    /* Hardware blur to blend the math drawn gradients flawlessly */
    transform: scale(1.2);
    /* Zoom slightly to hide edge cutoff behind the screen */
}

/* High-End Dither / Noise Overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    opacity: 0.08;
    /* Very subtle */
    mix-blend-mode: overlay;
    /* High baseFrequency (from 0.85 to 5.5) makes the noise dots microscopic, mimicking real sensor grain instead of pixelated TV static */
    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='5.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a,
button {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #f4f4f0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(244, 244, 240, 0.4);
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background-color: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(3px);
}

.aura {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.logo-container {
    position: absolute;
    top: 40px;
    left: 60px;
    z-index: 10;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.emb-logo {
    height: 32px;
    width: auto;
    fill: #f4f4f0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.logo-container:hover {
    transform: scale(1.05);
    /* Just the subtle bounce */
}

.top-nav {
    position: absolute;
    top: 40px;
    right: 60px;
    z-index: 10;
}

.lang-switch {
    display: flex;
    gap: 12px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    /* Fixed width for mathematical centering */
    height: 36px;
    /* Fixed height to bypass font-box issues */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    /* Key fix to remove font bounding box height */
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Absolute optical correction overriding flex box if browser engine fails */
    padding-top: 2px;
    padding-left: 2px;
    /* letter spacing offsets center, so we shift right slightly */
}

.lang-btn.active,
.lang-btn:hover {
    color: #f4f4f0;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 80vw;
}

.pre-title {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: #888;
    margin-bottom: 2rem;
    font-weight: 500;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 9vw;
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #f4f4f0;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

.social-corner {
    position: absolute;
    bottom: 40px;
    z-index: 10;
}

.social-corner.left {
    left: 60px;
}

.social-corner.right {
    right: 60px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #888;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Glassmorphism settings */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.behance-link {
    width: auto;
    border-radius: 30px;
    /* Switch to pill shape to fit text */
    padding: 0 24px 0 26px;
    /* Fit the text with wide padding, adding 2px left to offset letter-spacing */
    gap: 12px;
    /* Spacing between Behance icon and text */
}

.social-link:hover {
    color: #f4f4f0;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-3px);
}

.selected-works {
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Email Copy Button Styles */
.email-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #888;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.email-btn:hover {
    color: #f4f4f0;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-3px);
}

.email-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.copy-feedback {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #10b981; /* Success green */
    font-weight: 500;
    opacity: 0 !important; /* Forces GSAP inline styles to be ignored natively */
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease !important; /* Guarantees CSS transitions override GSAP engine */
}

.email-btn.copied .email-text {
    opacity: 0;
}

.email-btn.copied .copy-feedback {
    opacity: 1 !important; /* Overrides the previous rule when active */
}

/* Responsive Design for Mobile Devices */
@media screen and (max-width: 768px) {
    .email-container {
        bottom: 110px; /* Move email button significantly higher to avoid overlapping */
    }
    
    .main-title {
        font-size: 10vw; /* Reduced from 14vw to 10vw for a much cleaner look */
        letter-spacing: 0.02em; /* Reduced letter spacing from 0.05em */
        white-space: normal; /* Allow text to wrap if it needs to */
        line-height: 1.1; /* Better line height for wrapped text */
    }

    .social-corner.left {
        left: 30px;
        bottom: 30px;
    }

    .social-corner.right {
        right: 30px;
        bottom: 30px;
    }
}