/* =======================================================
   Variables (Google Antigravity Identity)
   ======================================================= */
:root {
    --primary: #1A73E8;
    --accent: #C5BDAD;
    --background: #FFFFFF;
    --text-primary: #121317;
    --link: #C5BDAD;

    --font-heading: 'Google Sans', 'Outfit', sans-serif;
    --font-body: 'Google Sans Flex', 'Outfit', sans-serif;

    /* Spacing Units */
    --u1: 4px;
    --u2: 8px;
    --u3: 16px;
    --u4: 24px;
    --u5: 32px;
    --u8: 64px;
    --u12: 96px;
    --u16: 128px;

    /* Layout */
    --border-radius: 2px;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =======================================================
   Reset & Baseline
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--text-primary);
    color: var(--background);
}

a {
    text-decoration: none;
    color: inherit;
}

/* =======================================================
   Custom Cursor
   ======================================================= */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast), width var(--transition-fast), height var(--transition-fast), background-color var(--transition-fast);
    mix-blend-mode: exclusion;
}

body:hover .custom-cursor {
    opacity: 1;
}

.hovered-cursor {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid var(--accent);
    mix-blend-mode: normal;
}

/* =======================================================
   Navigation
   ======================================================= */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    padding: var(--u4) var(--u8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: #fff;
    /* Force contrast against white */
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.explosive-float {
    display: inline-block;
    animation: floatExplode 2s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

@keyframes floatExplode {
    0% {
        transform: translateY(2px) scale(0.95);
        text-shadow: 0 0 5px rgba(255,255,255,0.2);
        letter-spacing: -0.03em;
        color: #ddd;
    }
    100% {
        transform: translateY(-8px) scale(1.1);
        text-shadow: 
            0 0 10px #fff, 
            0 0 20px #fff, 
            0 0 30px var(--primary), 
            0 0 50px var(--primary), 
            0 0 80px rgba(26, 115, 232, 0.8),
            0 0 100px rgba(26, 115, 232, 1);
        letter-spacing: 0.15em;
        color: #fff;
    }
}

.nav-links {
    display: flex;
    gap: var(--u4);
}

.nav-links a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* =======================================================
   Hero Section
   ======================================================= */
.hero {
    min-height: 100vh;
    padding: var(--u16) var(--u8) var(--u8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-bg-robot {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('ai_background.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: contrast(1.2) saturation(1.2);
    animation: bgZoom 25s infinite alternate linear;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.85), rgba(255, 107, 107, 0.7), rgba(0, 185, 92, 0.75), rgba(251, 188, 4, 0.8));
    background-size: 300% 300%;
    z-index: 1;
    mix-blend-mode: overlay;
    animation: gradientShift 15s ease infinite;
}

.hero-content {
    flex: 1;
    z-index: 5;
    max-width: 65vw;
    padding: var(--u8) 0;
}

.title-wrapper {
    margin-bottom: var(--u5);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title .word.hero-primary-word {
    color: #ffffff;
    -webkit-text-stroke: 2px var(--background);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
    will-change: transform;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--u2);
    margin-bottom: var(--u5);
}

.role-badge {
    padding: var(--u1) var(--u3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--border-radius);
}

.primary-badge {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.hero-description {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    max-width: 600px;
    margin-bottom: var(--u5);
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    font-weight: 400;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: var(--u3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--u3) var(--u5);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.primary-btn {
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    background-color: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

.secondary-btn {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.secondary-btn:hover {
    background-color: #ffffff;
    color: var(--text-primary);
    border-color: #ffffff;
}

.small-portrait {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--u4);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    transition: transform var(--transition-fast);
}

.small-portrait:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.15;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.3;
    }
}

@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =======================================================
   Marquee
   ======================================================= */
.marquee-section {
    padding: var(--u5) 0;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    overflow: hidden;
    background: #FAFAFA;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.marquee-inner span {
    padding-right: 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =======================================================
   About Section
   ======================================================= */
.about-section {
    padding: var(--u8) var(--u8);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(0, 185, 92, 0.05) 100%), var(--background);
    color: var(--text-primary);
    border-top: 1px solid rgba(26, 115, 232, 0.1);
    border-bottom: 1px solid rgba(26, 115, 232, 0.1);
}

.about-section .section-heading {
    margin-bottom: var(--u6);
}

.about-section .section-heading h2 {
    color: var(--primary);
    text-shadow: none;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.about-section .heading-line {
    background-color: var(--primary);
    box-shadow: none;
    opacity: 0.3;
}

.about-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--u8);
    align-items: flex-start;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    padding-left: var(--u4);
    border-left: 4px solid var(--primary);
}

.about-text {
    column-count: 2;
    column-gap: var(--u6);
}

.about-text p {
    margin-bottom: var(--u3);
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
    break-inside: avoid;
}

/* =======================================================
   Expertise Section (Dramatic AI Effect)
   ======================================================= */
.expertise-section {
    padding: var(--u16) var(--u8);
    background-color: #07090f;
    background-image:
        linear-gradient(rgba(26, 115, 232, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 115, 232, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulse 6s infinite alternate;
}

.section-heading {
    margin-bottom: var(--u12);
    display: flex;
    align-items: flex-end;
    gap: var(--u4);
    position: relative;
    z-index: 1;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(26, 115, 232, 0.8), 0 0 40px rgba(26, 115, 232, 0.4);
}

.heading-line {
    flex: 1;
    height: 1px;
    background-color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px var(--primary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--u8);
    position: relative;
    z-index: 1;
}

.expertise-card {
    padding: var(--u5);
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 115, 232, 0.3);
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-fast);
    box-shadow: 0 0 15px var(--primary);
}

.expertise-card:hover {
    border-color: var(--primary);
    background-color: rgba(26, 115, 232, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.2);
}

.expertise-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: var(--u3);
    line-height: 1;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.expertise-card:hover .card-icon {
    color: #ffffff;
    text-shadow: 0 0 15px var(--primary);
}

.expertise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--u2);
    color: #ffffff;
}

.expertise-card p {
    color: #a0a5b5;
    font-weight: 300;
}

/* =======================================================
   Footer
   ======================================================= */
.footer {
    background-color: var(--text-primary);
    color: var(--background);
    padding: var(--u16) var(--u8) var(--u4);
}

.footer-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: var(--u2);
}

.contact-email {
    display: inline-block;
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: var(--u12);
    border-bottom: 1px solid var(--primary);
    padding-bottom: var(--u1);
    transition: color var(--transition-fast);
}

.contact-email:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--u4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--accent);
}

.socials {
    display: flex;
    gap: var(--u4);
}

.socials a {
    text-transform: uppercase;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.socials a:hover {
    color: var(--primary);
}

/* =======================================================
   Animations & Reveals
   ======================================================= */
.word-in {
    animation: wordSlideUp 1s var(--transition-slow) forwards;
}

@keyframes wordSlideUp {
    0% {
        transform: translateY(110%);
    }

    100% {
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
}

.reveal-scale.in-view {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    opacity: 0;
}

.fade-in.in-view {
    opacity: 1;
    transition: opacity 1s ease;
}

/* Stagger Delays */
.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        padding-top: var(--u16);
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: var(--u8);
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 50vh;
        right: 0;
        transform: translateY(0);
    }

    .custom-cursor {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: var(--u2) var(--u4);
        flex-direction: column;
        gap: var(--u2);
    }

    .hero {
        padding: var(--u16) var(--u4) var(--u8);
    }

    .hero-content {
        max-width: 100%;
        padding: var(--u4) 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .expertise-section, .about-section, .footer {
        padding: var(--u8) var(--u4);
    }
    
    .section-heading {
        margin-bottom: var(--u8);
    }

    .section-heading h2 {
        font-size: 2.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-subtitle {
        font-size: 1.2rem;
        margin-bottom: var(--u4);
    }
    
    .about-text {
        column-count: 1;
    }

    .footer-content h2 {
        font-size: 2.5rem;
    }

    .contact-email {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .marquee-inner {
        font-size: 1.5rem;
    }
}