/* ==========================================
   Graphexia - High-Tech Premium CSS
   ========================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Colors */
    --color-bg-base: #030407; /* Very deep dark blue/black */
    --color-bg-surface: #0a0b12;
    
    /* Logo Accent Orange that feels techy and vibrant */
    --color-accent: #f26822; 
    --color-accent-glow: rgba(242, 104, 34, 0.4);
    --color-accent-light: #f98e57;
    
    /* Secondary Accents */
    --color-cyan: #00f0ff;
    --color-purple: #7000ff;

    /* Text Colors */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    /* Glassmorphism settings */
    --glass-bg: rgba(16, 18, 27, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: blur(12px);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, .logo, .badge {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- Global Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.container-narrow {
    max-width: 800px;
}

.text-center { text-align: center; }
.mt-large { margin-top: 4rem; }

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 50%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

/* --- Backgrounds & Ambient Effects --- */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
    opacity: 0.6;
}

.ambient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background-color: var(--color-accent);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background-color: var(--color-cyan);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, 10%) scale(1.1); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 0 20px rgba(242, 104, 34, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(242, 104, 34, 0.6);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
}

.btn-outline:hover {
    background: var(--glass-highlight);
    border-color: var(--color-accent);
}

.btn-text {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-text .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: white;
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top-color: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(242, 104, 34, 0.1);
}

/* Premium Card specific glow */
.premium-card {
    border: 1px solid rgba(242, 104, 34, 0.2);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.animated-glow {
    width: 100%;
    height: 200px;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--color-accent-glow), transparent);
    opacity: 0.1;
    animation: sweep 4s infinite linear;
}

@keyframes sweep {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

.content-relative {
    position: relative;
    z-index: 2;
}


/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 4, 7, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(242, 104, 34, 0.1);
    border: 1px solid rgba(242, 104, 34, 0.3);
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}


/* --- Grid Layouts --- */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


/* --- Specific Sections --- */

/* About Visual */
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    border: 1px solid var(--glass-border);
}

.icon-wrapper.accent {
    background: rgba(242, 104, 34, 0.1);
    color: var(--color-accent);
    border-color: rgba(242, 104, 34, 0.3);
}

.progress-bars {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-accent));
    border-radius: 6px;
    width: 0%; /* Animated via JS or CSS */
    animation: fillProgress 2s ease forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
}

/* Feature Cards */
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Timeline / Methodology */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 17px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent) 0%, rgba(255,255,255,0.1) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -3rem; /* relative to padding-left of timeline */
    top: 24px;
    width: 36px;
    height: 36px;
    background: var(--color-bg-base);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--color-accent-glow);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
}

.border-accent {
    border-left: 4px solid var(--color-accent);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.timeline-date.highlight {
    color: var(--color-accent);
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Manifesto */
.manifesto-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.manifesto-text {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.manifesto-highlight {
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.separator-line {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto 2.5rem;
    border-radius: 3px;
}

.manifesto-claim {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Projects Carousel Section --- */
.projects-section {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px; /* Space for arrows */
}

.carousel-track-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    border-top-color: rgba(242, 104, 34, 0.4);
}

.wip-card {
    border-top-color: rgba(0, 240, 255, 0.4); /* Cyan for WIP */
}

.project-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    background: rgba(242, 104, 34, 0.2);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.wip-badge {
    background: rgba(0, 240, 255, 0.15);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.project-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.by-brand {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-light);
    font-weight: 500;
    margin-bottom: 2rem;
}

.project-link:hover:not(.disabled) {
    color: var(--color-accent);
    text-decoration: underline;
}

.project-link.disabled {
    color: var(--color-text-muted);
    cursor: default;
}

.project-desc p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.project-bullets {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

.project-bullets li {
    margin-bottom: 0.8rem;
}

.project-bullets strong {
    color: white;
}

.project-quote {
    font-style: italic;
    font-weight: 600;
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    margin-top: 2rem;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Carousel Buttons & Dots */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.prev-btn { left: -10px; }
.next-btn { right: -10px; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.current-item {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* --- Contact Form Section --- */
.contact-card {
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(242, 104, 34, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.w-100 {
    width: 100%;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    min-height: 24px;
}

.form-status.success {
    color: #4ade80; /* Green */
}

.form-status.error {
    color: #f87171; /* Red */
}


/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

.footer-brand {
    max-width: 520px;
}

.footer-disclaimer {
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-disclaimer a {
    color: var(--color-text-secondary);
    text-decoration: underline;
}

.footer-disclaimer a:hover {
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}


/* --- Animations & Utilities --- */

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }


/* --- Media Queries --- */
@media (max-width: 992px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a full app, implement a hamburger menu here */
    }
    
    .logo {
        font-size: 1.5rem; /* Make logo slightly smaller on mobile to fit button */
    }
    
    .logo-img {
        height: 38px; /* Slightly smaller logo on mobile */
    }
    
    .nav-container .btn {
        padding: 0.6rem 1.2rem; /* Compact button padding for mobile */
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        display: none; /* Hide mouse scroll icon on mobile devices */
    }
    
    .grid-3-cols {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.5rem;
        width: 24px;
        height: 24px;
        top: 28px;
    }
    
    .timeline-dot::after {
        width: 8px;
        height: 8px;
    }
}


.project-image {
    display: flex;
    justify-content: center; /* 👈 centra horizontal */
    margin-top: 20px;
}

.project-image img {
    width: 65% !important;
}

img.logo-img-footer {
    width: 25%;
}