/* --- Vision 2026 Design System (Wegic Pivot) --- */
:root {
    --bg-dark: #030014;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    /* Slate-400 equivalent */
    --text-muted: #475569;

    --accent-cyan: #22d3ee;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-gradient: linear-gradient(to right, #22d3ee, #a78bfa);
    --btn-gradient: linear-gradient(90deg, #8b5cf6, #ec4899, #f97316);
    /* Wegic-like colorful gradient */

    --font-heading: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    /* Update font preference */
    --font-body: 'Outfit', sans-serif;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    /* ambient aurora background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.15), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.btn-text,
.overline {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stroke-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    -webkit-text-fill-color: transparent;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
    position: relative;
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    border-color: var(--accent-cyan);
}

/* --- Header & Nav --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo .accent {
    color: var(--accent-cyan);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-primary {
    padding: 0.8rem 1.5rem;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    padding-top: 100px;
    /* Clear header */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Remove old background video styles */
.hero-background {
    display: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-bottom: -40px;
    /* Overlap the video */
    pointer-events: none;
    /* Let clicks pass through if needed, but text needs selection? keeping default for now */
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Lift off video */
}

.plus {
    color: var(--text-muted);
    font-weight: 300;
}

.hero-visual {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 900px;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 80px -20px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Double border effect */
    transition: transform 0.5s var(--ease-out-expo);
}

.hero-visual:hover {
    transform: scale(1.02);
    border-color: var(--accent-cyan);
}

.video-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-frame iframe {
    width: 100%;
    height: 150%;
    /* Zoom in to fill / crop bars */
    position: absolute;
    top: -25%;
    left: 0;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.4) 100%);
    pointer-events: none;
}

.hero-text-lower {
    position: relative;
    z-index: 10;
    margin-top: -30px;
    /* Overlap bottom of video */
}

.hero-sub {
    font-size: 1.25rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
}

/* Re-add glow but ambient */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    filter: blur(100px);
}

/* Re-add secondary glow */
.hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(189, 10, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
}

.overline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

/* Removed old hero-title and hero-sub styles as they are redefined above */

/* Wegic Style Buttons */
.btn-glow {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--btn-gradient);
    background-size: 200% auto;
    border: none;
    border-radius: 9999px;
    /* Pill shape */
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    margin-right: 1.5rem;
}

.btn-glow:hover {
    background-position: right center;
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-ghost {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: color 0.3s;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* ... existing styles ... */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Top highlight */
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hover State - Glow */
.glass-card:hover {
    background: var(--bg-card-hover);
    border-top-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

/* Spotlight Effect */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 3;
}

.glass-card:hover::before {
    opacity: 1;
}

/* Remove old blob or keep as ambient? Removing for cleaner look */

/* Grid Spans */
.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.3));
}

.portrait {
    grid-column: span 1;
    grid-row: span 2;
}

.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.medium {
    grid-column: span 1;
    grid-row: span 1;
}

/* Fallback */

.small {
    grid-column: span 1;
    grid-row: span 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: auto;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(189, 10, 255, 0.3));
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Large Card Special Styling */
.large h3 {
    font-size: 2.5rem;
}

.large .card-icon {
    font-size: 4rem;
}

/* --- Process (Vertical Timeline) --- */
.process-section {
    padding: 100px 0;
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

/* The Central Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Will be animated by JS */
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet));
    box-shadow: 0 0 15px var(--accent-violet);
    transition: height 0.1s linear;
}

/* Items */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Card Content inside Timeline */
.timeline-content {
    padding: 2rem;
    position: relative;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.step-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    /* Default for right aligned? No, adjust per side */
    line-height: 1;
}

.left .step-num {
    left: 1.5rem;
    right: auto;
}

.right .step-num {
    right: 1.5rem;
    left: auto;
}

/* The Glowing Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 3rem;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s;
}

.left::after {
    right: -11px;
}

/* Center on line */
.right::after {
    left: -11px;
}

.timeline-item:hover::after {
    background: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* Mobile Responsiveness for Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 80px;
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 20px;
        right: auto;
    }

    /* Align dots to line */
    .left .step-num,
    .right .step-num {
        right: 1.5rem;
        left: auto;
    }
}

/* --- About --- */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 2rem;
    color: var(--accent-cyan);
}

.about-content .lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* --- Contact --- */
.contact-section {
    text-align: center;
    padding-bottom: 5rem;
}

.huge-text {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 3rem;
    background: linear-gradient(to bottom, #fff, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.magnetic-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease-out-expo);
}

.magnetic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.social-links {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--text-primary);
}

footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* --- Methodology / Pillars (Holographic Accordion) --- */
.methodology-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.pillars-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Full height pillars */
    height: 500px;
    /* Tall panels */
    max-width: 1000px;
    margin: 4rem auto;
    gap: 1.5rem;
    padding: 0 1rem;
}

.pillar {
    flex: 1;
    /* Default collapsed state */
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s var(--ease-out-expo), transform 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    /* Deep Glass */
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pillar:hover {
    flex: 3;
    /* Expanded state */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Background Gradients */
.pillar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    transition: opacity 0.6s;
    z-index: 0;
}

.strategy .pillar-bg {
    background: radial-gradient(circle at center, var(--accent-cyan), transparent 70%);
}

.experience .pillar-bg {
    background: radial-gradient(circle at center, var(--accent-violet), transparent 70%);
}

.technology .pillar-bg {
    background: radial-gradient(circle at center, var(--accent-pink), transparent 70%);
}

.pillar:hover .pillar-bg {
    opacity: 0.25;
}

/* Vertical Title (Collapsed) */
.pillar-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    transition: opacity 0.3s, transform 0.5s;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.pillar:hover .pillar-title-vertical {
    opacity: 0;
    transform: rotate(180deg) translateY(20px);
}

/* Expanded Content */
.pillar-content {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s 0.1s;
    /* Slight delay */
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pillar:hover .pillar-content {
    opacity: 1;
    transform: translateY(0);
}

.pillar-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.pillar-content h3 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin: 0;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pillar-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Mobile Fallback: Stack them */
@media (max-width: 768px) {
    .pillars-container {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .pillar {
        height: 120px;
        /* Collapsed height */
        flex: none;
        width: 100%;
        transition: height 0.5s;
    }

    .pillar:hover {
        height: 300px;
        flex: none;
    }

    .pillar-title-vertical {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.5rem;
    }

    .pillar:hover .pillar-title-vertical {
        transform: translateY(-10px);
        /* Just move up/fade */
    }
}

/* --- Teamwork (Neural Mesh) --- */
.teamwork-section {
    padding: 100px 0;
    position: relative;
    /* Neural Mesh Background */
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.text-center {
    text-align: center;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .triad-container {
        flex-direction: column;
        gap: 1rem;
    }

    .triad-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        height: auto;
        margin: 2rem 0;
    }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .large,
    .medium,
    .small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .process-timeline {
        flex-direction: column;
        gap: 3rem;
    }

    .process-timeline::before {
        width: 1px;
        height: 100%;
        left: 50%;
        top: 0;
    }

    nav ul {
        display: none;
        /* Hide nav links on mobile for simplicity in this demo */
    }
}