:root {
    /* Brand Colors - Light Theme (Default) */
    --color-bg-dark: #FAFAFA;
    --color-bg-card: rgba(255, 255, 255, 0.7);
    --color-bg-card-hover: rgba(255, 255, 255, 0.95);
    --color-primary: #0066FF; /* Vibrant Blue for light background */
    --color-primary-glow: rgba(0, 102, 255, 0.2);
    --color-secondary: #7000FF; 
    --color-nav-bg: rgba(255, 255, 255, 0.85);
    
    /* Text Colors */
    --color-text-main: #111111;
    --color-text-muted: #555555;
    
    /* UI Elements */
    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-focus: rgba(0, 102, 255, 0.5);
    --color-placeholder-from: #E0E0E0;
    --color-placeholder-to: #F5F5F5;
    
    /* Glassmorphism */
    --glass-blur: 16px;
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing & Sizes */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Brand Colors - Dark Theme */
    --color-bg-dark: #0A0A0A;
    --color-bg-card: rgba(20, 20, 20, 0.6);
    --color-bg-card-hover: rgba(30, 30, 30, 0.8);
    --color-primary: #00F0FF; /* Vibrant Cyan */
    --color-primary-glow: rgba(0, 240, 255, 0.3);
    --color-secondary: #7000FF; 
    --color-nav-bg: rgba(10, 10, 10, 0.85);
    
    /* Text Colors */
    --color-text-main: #FFFFFF;
    --color-text-muted: #A1A1AA;
    
    /* UI Elements */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-focus: rgba(0, 240, 255, 0.5);
    --color-placeholder-from: #1A1A24;
    --color-placeholder-to: #2D2D3D;
    
    /* Glassmorphism */
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #FF0055;
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(100px, 50px) rotate(45deg) scale(1.2); }
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    border: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

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

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.lang-btn {
    background: transparent;
    color: var(--color-text-main);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem;
    opacity: 0.8;
}

.lang-btn:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--color-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

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

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-signals {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: inline-block;
}

/* Hero Visuals (Mockups) */
.hero-visual {
    position: relative;
}

.mockup-card {
    width: 100%;
    height: 400px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.skeleton-line.full { width: 100%; }
.skeleton-line.mid { width: 70%; }
.skeleton-line.short { width: 40%; }
.skeleton-box {
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 1rem 0;
}

/* Animated Dashboard UI Mockup */
.mockup-body.dashboard-ui {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    height: 100%;
    padding-top: 0.5rem;
}
.dash-sidebar {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid var(--color-border);
    padding-right: 1rem;
}
.dash-item {
    height: 12px;
    background: rgba(100, 100, 100, 0.1);
    border-radius: 4px;
    width: 100%;
}
.dash-item.active {
    background: var(--color-primary);
    width: 80%;
}
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dash-title {
    width: 40%;
    height: 16px;
    background: rgba(100, 100, 100, 0.15);
    border-radius: 4px;
}
.dash-profile {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-secondary);
}
.dash-cards {
    display: flex;
    gap: 0.5rem;
}
.dash-card {
    flex: 1;
    height: 40px;
    background: rgba(100, 100, 100, 0.1);
    border-radius: 6px;
}
.dash-chart {
    flex: 1;
    background: rgba(100, 100, 100, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 1rem;
}
.dash-chart .bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    animation: barGrow 2s ease-in-out infinite alternate;
}
.dash-chart .b1 { height: 40%; animation-delay: 0s; }
.dash-chart .b2 { height: 60%; animation-delay: 0.2s; }
.dash-chart .b3 { height: 30%; animation-delay: 0.4s; }
.dash-chart .b4 { height: 80%; animation-delay: 0.6s; }
.dash-chart .b5 { height: 50%; animation-delay: 0.8s; }
.dash-chart .b6 { height: 90%; animation-delay: 1.0s; }

@keyframes barGrow {
    0% { transform: scaleY(0.7); transform-origin: bottom; }
    100% { transform: scaleY(1.1); transform-origin: bottom; }
}

.small-float {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: auto;
    height: auto;
    padding: 1.5rem;
    animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.stat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Common Section */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* Pricing / Services */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    padding: 3rem 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: var(--color-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .target-aud {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    min-height: 48px;
}

.features {
    margin-bottom: 3rem;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.features li::before {
    content: '✓';
    color: var(--color-primary);
    margin-right: 0.75rem;
    font-weight: bold;
}

.popular {
    border-color: var(--color-primary);
    transform: scale(1.05);
}
.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.full-width-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

@media (max-width: 768px) {
    .full-width-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-bg-dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Works / Portfolio */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.portfolio-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    align-items: center;
}

.portfolio-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.portfolio-image {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--color-placeholder-from), var(--color-placeholder-to));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.img-placeholder.style-2 {
    background: linear-gradient(135deg, #2D1A2A, #3D2D3D);
}

.portfolio-tag {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-content h3 {
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
}

.portfolio-content .synopsis {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.case-study-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-block strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
}

.detail-block span {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.impact-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.stat-item h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

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

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Mobile Nav Header (inside hamburger) */
.mobile-nav-header {
    display: none;
}

.mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hide the mobile CTA on desktop */
.nav-links .btn {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .popular { transform: none; }
    .popular:hover { transform: translateY(-10px); }
    .portfolio-card { padding: 1rem; }
    
    /* Hamburger Activation on Tablet */
    .menu-toggle { display: flex; }
    .nav-actions { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 0;
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links a::after {
        display: none;
    }

    /* Show the mobile CTA button */
    .nav-links .btn {
        display: block;
        margin: 1.5rem 2rem 0;
        width: calc(100% - 4rem);
        border-bottom: none;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1rem 2rem;
        position: absolute;
        top: 0;
        left: 0;
        height: 80px;
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-nav-header .logo img {
        height: 36px;
    }

    /* Make hamburger z-index above nav overlay */
    .menu-toggle {
        z-index: 201;
    }

    /* Hide hamburger X when menu is open (use close btn inside instead) */
    .menu-toggle.active {
        display: none;
    }

    .mobile-close-btn {
        display: block;
    }

    /* Full-width card scale reset */
    .pricing-card[style*="scale(1.05)"] {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 1.5rem auto; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .small-float { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .portfolio-card, .portfolio-card.reverse { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .portfolio-card > div { order: unset !important; }
    .mockups-container { order: -1 !important; }
    .portfolio-image { order: -1; }
    .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
    
    section { padding: 4rem 0; }
    .section-header h1 { font-size: 2.25rem !important; }
    .section-header h2 { font-size: 2rem !important; }
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
    .stats-grid > div:last-child { grid-column: span 2; }
    
    .laptop-mockup { max-width: 100% !important; }
    .phone-mockup { width: 80px !important; right: 0 !important; left: auto !important; }

    /* Full-width enterprise card stacks vertically */
    .full-width-card {
        grid-template-columns: 1fr !important;
    }
    
    /* Contact grid 1 col */
    #contact .container > div {
        grid-template-columns: 1fr !important;
    }

    .case-study-card {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.25rem; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .stats-grid > div:last-child { grid-column: span 1; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
    .container { padding: 0 1rem; }
}
