/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Elite Studios Color Palette */
    --off-black: #000000;
    --off-white: #F4F4F4;
    --flat-grey: #cbcbcb;
    --cold-grey-1-2: #9fa2a3;
    --cold-grey-1: #636668;
    --cold-grey-2: #1a1a1a;
}

/* Theme Variables - Dark Mode (Default) */
body[data-theme="dark"] {
    --bg-color: var(--off-black);
    --text-color: var(--off-white);
    --border-color: var(--cold-grey-1);
    --card-bg: rgba(49, 50, 51, 0.3);
    --card-border: var(--cold-grey-2);
    --card-hover-bg: rgba(99, 102, 104, 0.2);
    --card-hover-border: var(--cold-grey-1);
    --accent-color: var(--cold-grey-1-2);
    --accent-hover: var(--flat-grey);
}

/* Theme Variables - Light Mode */
body[data-theme="light"] {
    --bg-color: var(--off-white);
    --text-color: var(--off-black);
    --border-color: var(--cold-grey-1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: var(--cold-grey-1-2);
    --card-hover-bg: rgba(255, 255, 255, 1);
    --card-hover-border: var(--cold-grey-1);
    --accent-color: var(--cold-grey-2);
    --accent-hover: var(--off-black);
}

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    overflow: hidden;
    transition: color 0.3s ease, background 0.3s ease;
}

/* Dark mode background gradient */
body[data-theme="dark"] {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 25%, var(--cold-grey-2) 50%, #0a0a0a 75%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
}

/* Light mode background gradient */
body[data-theme="light"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 25%, var(--flat-grey) 50%, #f8f8f8 75%, #ffffff 100%);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 50%;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.theme-toggle:hover {
    background: var(--card-hover-bg);
    transform: scale(1.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

body[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Corner Brackets */
.corner-bracket {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    z-index: 1000;
    transition: border-color 0.3s ease;
}

.corner-bracket.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner-bracket.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-bracket.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-bracket.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Container */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 50px;
}

/* Section transition improvements */
.section {
    transition: opacity 0.4s ease-out, filter 0.3s ease-out;
}

.section.leaving {
    opacity: 0.7;
    filter: blur(2px);
}

.section.active {
    opacity: 1;
    filter: blur(0);
}

/* Section 1: Landing Page */
.section-landing .container {
    gap: 60px;
}

.logo-wrapper {
    text-align: center;
}

.header-logo {
    max-width: 800px;
    width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

body[data-theme="light"] .header-logo,
body[data-theme="light"] .middle-logo,
body[data-theme="light"] .bottom-logo {
    filter: invert(1) brightness(0.1);
}

.main-logo {
    font-size: 120px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 10px;
    margin: 0;
}

.main-logo .elite {
    display: inline-block;
}

.main-logo .box {
    display: inline-block;
    width: 120px;
    height: 80px;
    background-color: #ffffff;
    margin-left: 20px;
    vertical-align: middle;
}

.main-logo .studios {
    display: inline-block;
}

.tagline-wrapper {
    text-align: center;
    max-width: 1000px;
}

.tagline {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.6;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: var(--accent-color);
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: smoothFloat 3s ease-in-out infinite;
    z-index: 10;
}

.scroll-arrow:hover {
    opacity: 1;
    color: var(--text-color);
}

@keyframes smoothFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.4;
    }
}

/* Section 2: Value Proposition */
.section-value .container {
    padding: 80px 50px;
}

.logo-small {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 50px;
    text-align: center;
}

.middle-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

.logo-small .elite {
    display: inline-block;
}

.logo-small .box-small {
    display: inline-block;
    width: 50px;
    height: 32px;
    background-color: #ffffff;
    margin: 0 10px;
    vertical-align: middle;
}

.logo-small .studios {
    display: inline-block;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

.card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 35px;
    line-height: 1.3;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.4s ease;
}

.card:hover .card-title::after {
    width: 80px;
    background: var(--accent-hover);
}

.card-content {
    font-size: 13px;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.content-intro {
    font-weight: 400;
    margin-bottom: 15px;
}

.content-text {
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 15px;
}

.content-list {
    list-style: none;
    padding-left: 15px;
}

.content-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.content-list li::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* Section 3: Contact */
.section-contact .container {
    gap: 80px;
}

.contact-content {
    text-align: center;
}

.contact-email-link {
    display: inline-block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-email-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cold-grey-1), var(--flat-grey), var(--cold-grey-1), transparent);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-email-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.contact-email-link:hover {
    transform: translateY(-5px);
}

.contact-email-link:hover .contact-email {
    background: linear-gradient(90deg, var(--text-color), var(--accent-hover), var(--text-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.contact-email {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-color);
    transition: all 0.4s ease;
}

.logo-bottom {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-top: 80px;
}

.bottom-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

.logo-bottom .elite {
    display: inline-block;
}

.logo-bottom .box-small {
    display: inline-block;
    width: 50px;
    height: 32px;
    background-color: #ffffff;
    margin: 0 10px;
    vertical-align: middle;
}

.logo-bottom .studios {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-logo {
        max-width: 600px;
    }
    
    .main-logo {
        font-size: 80px;
    }
    
    .main-logo .box {
        width: 80px;
        height: 54px;
    }
    
    .tagline {
        font-size: 22px;
        letter-spacing: 1.5px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .middle-logo {
        max-width: 320px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .card {
        padding: 35px 28px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-email {
        font-size: 40px;
        letter-spacing: 2px;
    }
    
    .container {
        padding: 80px 40px;
    }
}

@media (max-width: 768px) {
    .corner-bracket {
        width: 25px;
        height: 25px;
    }
    
    .corner-bracket.top-left,
    .corner-bracket.top-right {
        top: 15px;
    }
    
    .corner-bracket.bottom-left,
    .corner-bracket.bottom-right {
        bottom: 15px;
    }
    
    .corner-bracket.top-left,
    .corner-bracket.bottom-left {
        left: 15px;
    }
    
    .corner-bracket.top-right,
    .corner-bracket.bottom-right {
        right: 15px;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        top: 20px;
        right: 20px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .header-logo {
        max-width: 90%;
    }
    
    .bottom-logo {
        max-width: 85%;
    }
    
    .middle-logo {
        max-width: 75%;
    }
    
    .main-logo {
        font-size: 50px;
    }
    
    .main-logo .box {
        width: 50px;
        height: 34px;
        margin-left: 10px;
    }
    
    .tagline {
        font-size: 18px;
        letter-spacing: 1px;
        line-height: 1.4;
    }
    
    .subtitle {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .logo-small,
    .logo-bottom {
        font-size: 32px;
    }
    
    .logo-small .box-small,
    .logo-bottom .box-small {
        width: 35px;
        height: 22px;
    }
    
    .logo-bottom {
        margin-top: 60px;
    }
    
    .cards-container {
        gap: 25px;
        padding: 0 10px;
    }
    
    .card {
        padding: 30px 24px;
    }
    
    .card-title {
        font-size: 17px;
        margin-bottom: 25px;
        letter-spacing: 0.8px;
    }
    
    .card-content {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .content-intro,
    .content-text {
        font-size: 13px;
    }
    
    .contact-email {
        font-size: 24px;
        letter-spacing: 1.2px;
        word-break: break-all;
    }
    
    .scroll-arrow {
        bottom: 30px;
    }
    
    .scroll-arrow svg {
        width: 32px;
        height: 32px;
    }
    
    .container {
        padding: 60px 20px;
    }
    
    .section-landing .container {
        gap: 40px;
    }
    
    .section-value .container {
        padding: 60px 20px;
    }
}

/* fullPage.js Navigation Dots */
#fp-nav ul li a span {
    background: var(--border-color);
    transition: background 0.3s ease;
}

#fp-nav ul li a.active span {
    background: var(--text-color);
}

/* Hide fullPage.js Watermark */
.fp-watermark {
    display: none !important;
}

/* Mobile/Desktop Toggle Sections */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Single Card Container for Mobile */
.single-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.single-card-container .card {
    width: 100%;
    margin: 0;
}

/* Mobile Cards - No Fade Animation */
.mobile-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.mobile-logo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Keyboard Navigation Hint */
.keyboard-hint {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(49, 50, 51, 0.9);
    border: 1px solid var(--cold-grey-1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 999;
}

.keyboard-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.keyboard-hint.dismissed {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.keyboard-hint svg {
    animation: bounceHint 2s ease-in-out infinite;
}

@keyframes bounceHint {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

@media (max-width: 768px) {
    .keyboard-hint {
        display: none;
    }
}

/* Site Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 30px;
    text-align: center;
    font-size: 12px;
    color: var(--accent-color);
    z-index: 998;
    transition: all 0.3s ease;
}

body[data-theme="light"] .site-footer {
    color: var(--accent-color);
}

.site-footer p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 12px 20px;
        font-size: 11px;
    }
}

/* Text Reveal Animation */
.text-reveal {
    opacity: 0;
}

.text-reveal.revealing {
    opacity: 1;
    display: block;
}

/* Section Card Mobile Spacing */
.section-card .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Enhanced Animation System for fullpage.js */

/* Base animation class - elements start hidden */
.animate-in {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: none;
    will-change: transform, opacity;
}

/* Visible state with smooth cubic-bezier easing */
.animate-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section leaving animation */
.section.leaving .animate-in.visible {
    opacity: 0;
    transform: translateY(-20px) scale(1.02);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 1, 1),
                transform 0.5s cubic-bezier(0.4, 0, 1, 1);
}

/* Card-specific animations with enhanced effects */
.card.animate-in {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: none;
    will-change: transform, opacity;
}

.card.animate-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card leaving animation */
.section.leaving .card.animate-in.visible {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: opacity 0.4s ease-in,
                transform 0.4s ease-in;
}

/* Fade animation (legacy support) */
.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
    will-change: transform, opacity;
}

.section.active .animate-fade {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered delays for fade animations */
.section.active .animate-fade:nth-child(1) { transition-delay: 0.2s; }
.section.active .animate-fade:nth-child(2) { transition-delay: 0.45s; }
.section.active .animate-fade:nth-child(3) { transition-delay: 0.7s; }

/* Card-specific delays */
.section.active .card-1.animate-fade { transition-delay: 0.3s; }
.section.active .card-2.animate-fade { transition-delay: 0.55s; }
.section.active .card-3.animate-fade { transition-delay: 0.8s; }
