@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* 
     * THEME VARIABLES - Default (Light Mode) 
     */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --txt-main: #0f172a;
    --txt-muted: #475569;
    
    --border-color: rgba(0, 0, 0, 0.05);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

[data-theme="dark"] {
    --bg-main: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-glass: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    
    --txt-main: #f8fafc;
    --txt-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --accent-primary: #60a5fa;
    --accent-secondary: #a78bfa;
    
    --input-bg: #1f2937;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--txt-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] body::before {
    opacity: 0.06;
}

/* Background Animation */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--txt-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--txt-muted);
    margin-bottom: 1.5rem;
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--txt-main);
}

.logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--txt-main);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a.btn-primary {
    color: #ffffff !important;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--txt-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 10px;
        position: relative;
    }
    
    .logo {
        margin: 10px 0 10px 10px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute !important;
        right: 10px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 44px;
        height: 44px;
        z-index: 1001;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        max-width: 80%;
        background: var(--bg-card);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        border-left: 1px solid var(--border-color);
        border-radius: 0 0 0 var(--radius-md);
        display: none;
        box-shadow: var(--shadow-soft);
        text-align: right;
        align-items: flex-end;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links .btn {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Theme Switcher */
.theme-switcher {
    position: relative;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--txt-main);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.theme-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.theme-dropdown.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    color: var(--txt-muted);
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.theme-option:hover {
    background: var(--border-color);
    color: var(--txt-main);
}

.theme-option.active {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--txt-main);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    /* Effect only on background, removed transform and border color change */
}

[data-theme="dark"] .bento-card:hover {
    background: var(--bg-card-hover);
}

.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

@media (max-width: 992px) {
    .col-span-4, .col-span-6, .col-span-8 { grid-column: span 12; }
}

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

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-img {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-glass);
    z-index: 10;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 160px;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-img {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        opacity: 1;
        z-index: 10;
    }
    .hero-content .reveal.delay-2 {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-content .btn {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Services */
.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

/* Chat & Forms */
.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    color: var(--txt-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

[data-theme="dark"] .form-control {
    background: var(--input-bg, #1f2937);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--txt-main);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    padding: 1.5rem;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Utility */
.section-padding {
    padding: 6rem 0;
    scroll-margin-top: 140px; /* Header (~110px) + 30px extra space */
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }

/* Elevator Pitch Generator */
.pitch-generator {
    margin-top: 2rem;
}

#pitch-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px dashed var(--accent-primary);
    border-radius: var(--radius-md);
    min-height: 100px;
    display: none;
}

#pitch-loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-left-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chatbot Restyling */
#messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 993px) {
    .chat-input-row {
        display: flex;
        gap: 1rem;
        align-items: stretch;
    }
    
    .chat-input-row textarea {
        margin-bottom: 0 !important;
        flex: 1;
    }
    
    .chat-input-row button {
        margin-top: 0 !important;
        height: auto;
        white-space: nowrap;
        width: auto;
    }
}

[data-theme="dark"] #messages {
    background: rgba(255,255,255,0.02);
}

.message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    max-width: 80%;
}

.message.user {
    background: var(--accent-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.message.bot {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--txt-main);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    color: var(--txt-muted);
}

.footer-bottom a {
    color: var(--txt-muted);
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-bottom a:hover {
    color: var(--accent-primary);
}
