:root {
    --bg-color: #020108; 
    --text-primary: #FFFFFF;
    --text-secondary: #A9A9B0;
    --accent-primary: #D1A05E; 
    --accent-secondary: #8B6533; 
    --glass-bg: rgba(10, 8, 25, 0.85); /* Solid dark instead of glass for max performance */
    --glass-border: rgba(255, 255, 255, 0.08); /* Brighter border to compensate */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* Background Systems */
#canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}
#grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
    opacity: 0.04;
}

/* Layout Utilities */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}
.section-padding { padding: 8rem 0; }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    background: rgba(2, 1, 8, 0.95); /* Solid dark for performance */
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
}
.logo-img {
    max-height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(209,160,94,0.3));
    transition: var(--transition);
}
.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 18px rgba(209,160,94,0.6));
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.fallback-text { font-weight: 700; font-size: 0.95rem; line-height: 1.1; letter-spacing: 2px; color: var(--accent-primary); }
.logo-divider { color: var(--glass-border); font-size: 1.5rem; font-weight: 300; }
.logo-sub { font-weight: 300; font-size: 0.9rem; color: var(--text-secondary); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { position: relative; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: var(--transition); letter-spacing: 0.5px; }
.nav-links a:hover { color: var(--accent-primary); }
.nav-links a.active { color: var(--accent-primary); }
.nav-links a.active::after { 
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: var(--accent-primary); 
    border-radius: 2px; 
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; }
h1 { font-size: clamp(3rem, 5vw, 5rem); font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -1.5px; }
h1 span {
    background: linear-gradient(135deg, #FFF 30%, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; margin-bottom: 1rem; letter-spacing: -1px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-content p, .section-title p, .bento-item p { max-width: 500px; }
.text-center p { margin-left: auto; margin-right: auto; }

.badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(209, 160, 94, 0.05);
    color: var(--accent-primary);
    border: 1px solid rgba(209, 160, 94, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Custom Icons */
.custom-icon {
    color: var(--accent-primary);
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    will-change: transform;
}
.btn-large { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    box-shadow: 0 4px 20px rgba(209, 160, 94, 0.2); /* Optimized light shadow */
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(209, 160, 94, 0.4);
}
.btn-primary:active { transform: scale(0.97); }
.btn-glass {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08); /* Solid hover effect instead of complex borders */
}
.arrow { margin-left: 0.5rem; transition: transform 0.4s ease; }
.btn-primary:hover .arrow { transform: translateY(3px); }
.cta-group { display: flex; gap: 1rem; }
.w-full { width: 100%; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-visual {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* ANTIGRAVITY ISOMETRIC COMPONENTS */
.ag-isometric-container {
    position: relative;
    width: 100%; 
    max-width: 400px; 
    height: 480px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.ag-isometric-container:hover {
    transform: rotateX(55deg) rotateZ(-35deg) translateY(-10px);
}

.ag-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 24px;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Removed all Blur logic for strict 60fps scrolling */
.ag-layer-1 {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    transform: translateZ(-80px);
    opacity: 0.5;
}

.ag-layer-2 {
    background: rgba(10, 8, 24, 0.95); /* Solid dark instead of frosted glass */
    border: 1px solid rgba(209, 160, 94, 0.3); /* Golden frame to replace shadow box */
    padding: 2rem;
    transform: translateZ(0);
}

.ag-layer-3 {
    width: auto; height: auto;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(209, 160, 94, 0.9), rgba(139, 101, 51, 0.9)); /* Fully solid bright block */
    border: 1px solid rgba(209, 160, 94, 1);
    color: #000;
    border-radius: 12px;
    top: 60%; left: -10%;
    transform: translateZ(80px);
    font-size: 0.85rem;
    font-weight: 700;
}

.ag-isometric-container:hover .ag-layer-1 { transform: translateZ(-100px) scale(0.95); opacity: 0.3; }
.ag-isometric-container:hover .ag-layer-2 { transform: translateZ(20px); }
.ag-isometric-container:hover .ag-layer-3 { transform: translateZ(120px); left: -5%; }

/* Mockup Internals */
.mockup-header { display: flex; align-items: center; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.dots { display: flex; gap: 6px; margin-right: 1rem; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mockup-title { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.skeleton-line { height: 12px; background: rgba(255,255,255,0.05); border-radius: 6px; margin-bottom: 1rem; }

.score-card {
    margin-top: 3rem;
    background: rgba(209, 160, 94, 0.05);
    border: 1px solid rgba(209, 160, 94, 0.2);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.score-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}
.score-info { flex: 1; }
.score-name { font-weight: 600; margin-bottom: 0.5rem; font-size: 0.85rem; }
.score-progress { height: 4px; background: rgba(0,0,0,0.5); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent-primary);  }
.score-value { font-size: 1.25rem; font-weight: 700; color: var(--accent-primary); }

/* Antigravity Product Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

.product-card {
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    border-radius: 32px;
    background: var(--glass-bg); /* Solid high-alpha background */
    border: 1px solid rgba(255,255,255,0.1); /* Stronger border since no blur */
    transition: var(--transition);
    will-change: transform, opacity;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(209, 160, 94, 0.5);
}

.svg-glow { margin-bottom: 1.5rem; filter: drop-shadow(0 0 10px rgba(209,160,94,0.5)); }
.product-brand { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; color: #FFF; letter-spacing: -0.5px; }

/* Ticker Ribbon */
.data-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(209, 160, 94, 0.05);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.data-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: driftTicker 40s linear infinite;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    opacity: 0.8;
}
.data-ticker span {
    padding: 0 4rem;
    letter-spacing: 2px;
}
@keyframes driftTicker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Micro-Animations */
.blink-1 { animation: dotBlink 2.5s infinite; }
.blink-2 { animation: dotBlink 2.5s infinite 0.3s; }
.blink-3 { animation: dotBlink 2.5s infinite 0.6s; }

@keyframes dotBlink {
    0%, 100% { background: rgba(255,255,255,0.2); }
    50% { background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); }
}

.pulse-bar { position: relative; overflow: hidden; }
.pulse-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: barPulse 3s infinite ease-in-out;
}
@keyframes barPulse {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(350%); }
}

/* Bento Foundation Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.bento-item {
    padding: 3rem;
    border-radius: 32px;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    will-change: transform, opacity;
}
.feature-wide { border-left: 3px solid var(--accent-primary); }

.bento-item h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #FFF; }
.bento-item:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.25); }

/* Minimalist Footers */
.footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: #020108;
    scroll-margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-desc { margin-top: 1rem; font-size: 0.95rem; max-width: 300px; opacity: 0.7; }
.footer-links h4, .footer-contact h4 { font-size: 1.1rem; color: #FFF; margin-bottom: 1.5rem; font-weight: 600; }
.footer-links a, .contact-item a { color: var(--text-secondary); text-decoration: none; margin-bottom: 0.75rem; display: block; transition: var(--transition); }
.footer-links a:hover, .contact-item a:hover { color: var(--accent-primary); transform: translateX(5px); }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: var(--text-secondary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--glass-border); font-size: 0.85rem; color: var(--text-secondary); }

/* GSAP Start Fixes */
.ag-scroll-stagger, .ag-scroll-float, .ag-scroll-fade {
    opacity: 0;
    transform: translateY(60px);
}
#about, #portfolio, #contact {
    scroll-margin-top: 80px;
}

/* Responsiveness */
@media (max-width: 992px) {
    .header { padding: 1rem; }
    .nav-links { display: none; } /* Hide links on mobile for minimal interface */
    .hero { padding-top: 140px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .hero-content p { margin: 0 auto 2rem auto; }
    .cta-group { justify-content: center; }
    .ag-isometric-container { width: 100%; max-width: 320px; height: 380px; margin: 0 auto; transform: rotateX(30deg) rotateZ(0deg); }
    .ag-isometric-container:hover { transform: rotateX(20deg) rotateZ(0deg) translateY(-10px); }
    .portfolio-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section-padding { padding: 5rem 0; }
    .product-card { padding: 2rem; min-height: auto; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
}
