/* CSS Variables based on design system */
:root {
    --base-unit: 8px;
    --section-padding: calc(var(--base-unit) * 12);
    --container-padding: calc(var(--base-unit) * 3);
    --element-gap: calc(var(--base-unit) * 2);
    
    /* Colors */
    --background: #0A0B0F;
    --surface: #1A1A1E;
    --primary-accent: #C8F560;
    --text-primary: #F0F0F5;
    --text-secondary: #A0A0B0;
    --border-color: rgba(255, 255, 255, 0.1);
    --code-keyword: #C792EA;
    --code-string: #C3E88D;
    
    /* Border Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradient and Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(20, 80, 40, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s linear; /* For mouse parallax */
}

.particle {
    position: absolute;
    background: var(--primary-accent);
    border-radius: 50%;
    animation: float 20s infinite linear;
    box-shadow: 0 0 10px var(--primary-accent), 0 0 20px var(--primary-accent);
}

.particle:nth-child(1) { top: 15%; left: 10%; width: 2px; height: 2px; animation-duration: 25s; animation-delay: -2s; opacity: 0.4; }
.particle:nth-child(2) { top: 40%; left: 85%; width: 3px; height: 3px; animation-duration: 35s; animation-delay: -5s; opacity: 0.6; }
.particle:nth-child(3) { top: 80%; left: 50%; width: 1px; height: 1px; animation-duration: 45s; animation-delay: -10s; opacity: 0.3; }
.particle:nth-child(4) { top: 90%; left: 20%; width: 2px; height: 2px; animation-duration: 30s; animation-delay: -15s; opacity: 0.5; }
.particle:nth-child(5) { top: 30%; left: 95%; width: 4px; height: 4px; animation-duration: 22s; animation-delay: -3s; opacity: 0.7; }
.particle:nth-child(6) { top: 70%; left: 5%; width: 2px; height: 2px; animation-duration: 40s; animation-delay: -7s; opacity: 0.4; }
.particle:nth-child(7) { top: 5%; left: 70%; width: 1px; height: 1px; animation-duration: 50s; animation-delay: -12s; opacity: 0.2; }
.particle:nth-child(8) { top: 95%; left: 65%; width: 3px; height: 3px; animation-duration: 28s; animation-delay: -17s; opacity: 0.6; }
.particle:nth-child(9) { top: 50%; left: 30%; width: 2px; height: 2px; animation-duration: 38s; animation-delay: -1s; opacity: 0.5; }
.particle:nth-child(10) { top: 25%; left: 60%; width: 1px; height: 1px; animation-duration: 48s; animation-delay: -6s; opacity: 0.3; }
.particle:nth-child(11) { top: 65%; left: 40%; width: 3px; height: 3px; animation-duration: 32s; animation-delay: -8s; opacity: 0.6; }
.particle:nth-child(12) { top: 5%; left: 5%; width: 2px; height: 2px; animation-duration: 26s; animation-delay: -11s; opacity: 0.4; }
.particle:nth-child(13) { top: 95%; left: 95%; width: 2px; height: 2px; animation-duration: 42s; animation-delay: -14s; opacity: 0.5; }
.particle:nth-child(14) { top: 50%; left: 50%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: -4s; opacity: 0.8; }
.particle:nth-child(15) { top: 10%; left: 30%; width: 1px; height: 1px; animation-duration: 55s; animation-delay: -9s; opacity: 0.2; }
.particle:nth-child(16) { top: 85%; left: 75%; width: 2px; height: 2px; animation-duration: 33s; animation-delay: -18s; opacity: 0.5; }
.particle:nth-child(17) { top: 75%; left: 90%; width: 3px; height: 3px; animation-duration: 27s; animation-delay: -20s; opacity: 0.6; }
.particle:nth-child(18) { top: 20%; left: 20%; width: 1px; height: 1px; animation-duration: 47s; animation-delay: -13s; opacity: 0.3; }
.particle:nth-child(19) { top: 60%; left: 15%; width: 2px; height: 2px; animation-duration: 36s; animation-delay: -16s; opacity: 0.4; }
.particle:nth-child(20) { top: 45%; left: 70%; width: 4px; height: 4px; animation-duration: 24s; animation-delay: -19s; opacity: 0.7; }
.particle:nth-child(21) { top: 5%; left: 45%; width: 2px; height: 2px; animation-duration: 39s; animation-delay: -21s; opacity: 0.5; }
.particle:nth-child(22) { top: 88%; left: 33%; width: 1px; height: 1px; animation-duration: 44s; animation-delay: -22s; opacity: 0.3; }
.particle:nth-child(23) { top: 28%; left: 78%; width: 3px; height: 3px; animation-duration: 29s; animation-delay: -23s; opacity: 0.6; }
.particle:nth-child(24) { top: 55%; left: 5%; width: 2px; height: 2px; animation-duration: 31s; animation-delay: -24s; opacity: 0.4; }
.particle:nth-child(25) { top: 70%; left: 60%; width: 1px; height: 1px; animation-duration: 46s; animation-delay: -25s; opacity: 0.2; }

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-40vh) translateX(10vw);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-60vh) translateX(-15vw);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30vh) translateX(5vw);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.1;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 11, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-logo i {
    color: var(--primary-accent);
    font-size: 1.5rem;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
    transform-origin: center;
}

/* Buttons */
.btn-primary {
    background: var(--primary-accent);
    color: #101800;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-medium);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px 0 rgba(200, 245, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px 0 rgba(200, 245, 96, 0.5);
}

.btn-secondary {
    background: #252528;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #2a2a2d;
}

/* Hero Section */
.hero {
    padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

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

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.accent-text {
    color: var(--primary-accent);
    position: relative;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-accent);
    box-shadow: 0 0 10px var(--primary-accent);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Code Block */
.code-block {
    background: #101113;
    border-radius: var(--radius-medium);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    min-width: 0;
    overflow-x: auto;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    animation: codeBlockEntrance 0.8s ease-out 2.5s forwards;
}

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

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-dot:nth-child(3) {
    background: #27ca3f;
}

.code-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    box-sizing: border-box;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-content .keyword {
    color: var(--code-keyword);
}

.code-content .string {
    color: var(--code-string);
}

/* Intellisense Popup */
.intellisense-popup {
    position: absolute;
    bottom: -25%;
    left: 40%;
    width: 380px;
    background: rgba(20, 20, 22, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 0.75rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 10;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transform: scale(0.95);
    opacity: 0;
    /* Animation will be controlled by JavaScript */
}

@keyframes fadeInPopup {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.intellisense-popup ul {
    list-style: none;
}

.intellisense-popup li {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-primary);
}

.intellisense-popup li:first-child {
    background-color: rgba(255, 255, 255, 0.1);
}

.intellisense-popup li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.intellisense-popup .icon {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-accent);
    color: #101800;
    font-size: 0.6rem;
}

.intellisense-popup .hint {
    color: var(--text-secondary);
    margin-left: auto;
    padding-left: 1rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(26, 26, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-accent);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #101800;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.body-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

/* About Section */
.about {
    padding: var(--section-padding) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

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

.rating-display {
    background: rgba(26, 26, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 2rem;
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars i {
    color: var(--primary-accent);
    font-size: 1.25rem;
}

.rating-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.rating-source {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Team Section */
.team-section {
    padding-top: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(26, 26, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.team-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--border-color);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-card-image {
    border-color: var(--primary-accent);
    transform: scale(1.05);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.team-card-role {
    color: var(--primary-accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.team-socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.team-socials a:hover {
    color: var(--primary-accent);
    transform: scale(1.2);
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding) 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

a.portfolio-card {
    text-decoration: none;
}

.portfolio-card {
    background: rgba(26, 26, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    width: 80px;
    height: 80px;
    background: var(--primary-accent);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #101800;
    font-size: 2rem;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tech-tag {
    background: rgba(200, 245, 96, 0.1);
    color: var(--primary-accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(200, 245, 96, 0.2);
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-accent);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #101800;
    font-size: 1.25rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: rgba(26, 26, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(16, 17, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: rgba(26, 26, 30, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-accent);
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(200, 245, 96, 0.1);
    border: 1px solid rgba(200, 245, 96, 0.2);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-accent);
    color: #101800;
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .btn-secondary {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 65px; /* Adjust to navbar height */
        left: 0;
        width: 100%;
        background: rgba(10, 11, 15, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999; /* Below navbar but above content */
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001; /* Above navbar background */
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo,
    .social-links {
        justify-content: center;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .intellisense-popup {
        display: none; /* Hide on smaller screens for simplicity */
    }

    .code-block {
        text-align: left;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 30, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 2000;
    transform: translateY(100%);
    animation: slideInUp 0.5s forwards ease-out;
}

.cookie-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.cookie-actions .btn-primary {
    padding: 10px 20px;
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

/* Enhanced Conversion System Styles */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-cta .btn-primary {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 25px rgba(200, 245, 96, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.floating-cta .btn-primary:hover::before {
    left: 100%;
}

.floating-cta .btn-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(200, 245, 96, 0.6);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 15, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: rgba(26, 26, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 17, 19, 0.5);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

/* Multi-step Form */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
    position: relative;
    padding: 2rem 2rem 0 2rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
    transform: translateY(-50%);
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(26, 26, 30, 0.95);
}

.step-dot.active {
    background: var(--primary-accent);
    box-shadow: 0 0 10px rgba(200, 245, 96, 0.5);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--primary-accent);
    transform: scale(1.1);
}

.form-step {
    padding: 2rem;
    display: none;
}

.form-step#step4 {
    padding: 0;
}

.form-step.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service Selection */
.service-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-option {
    background: rgba(16, 17, 19, 0.8);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(200, 245, 96, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-option:hover::before {
    transform: translateX(100%);
}

.service-option:hover {
    border-color: var(--primary-accent);
    background: rgba(200, 245, 96, 0.05);
    transform: translateY(-2px);
}

.service-option.selected {
    border-color: var(--primary-accent);
    background: rgba(200, 245, 96, 0.1);
    box-shadow: 0 0 20px rgba(200, 245, 96, 0.2);
    transform: translateY(-2px);
}

.service-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.service-option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-accent);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #101800;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.service-option:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Pricing Calculator */
.pricing-calculator {
    background: rgba(16, 17, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-accent), transparent);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.pricing-row:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: var(--radius-small);
}

.pricing-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.pricing-label {
    color: var(--text-secondary);
}

.pricing-value {
    color: var(--primary-accent);
    font-weight: 600;
}

.total-price {
    font-size: 1.5rem;
    color: var(--primary-accent);
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(200, 245, 96, 0.1);
    border-radius: var(--radius-medium);
    border: 1px solid rgba(200, 245, 96, 0.2);
    animation: priceGlow 2s infinite alternate;
}

@keyframes priceGlow {
    from {
        box-shadow: 0 0 10px rgba(200, 245, 96, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(200, 245, 96, 0.4);
    }
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.3s;
}

.btn-back:hover::before {
    left: 100%;
}

.btn-back:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateX(-2px);
}

.btn-next {
    background: var(--primary-accent);
    color: #101800;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-medium);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(200, 245, 96, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s;
}

.btn-next:hover::before {
    left: 100%;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(200, 245, 96, 0.5);
}

.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Quote Lock Modal */
.quote-lock-modal {
    text-align: center;
    /* padding: 2rem; <-- This is now handled by inner elements */
}

.quote-lock-content {
    padding: 2rem 2rem 1rem 2rem;
}

.quote-lock-footer {
    position: sticky;
    bottom: 0;
    padding: 1.5rem 2rem 2rem 2rem;
    background: rgba(16, 17, 19, 0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

.quote-lock-footer .total-price {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.quote-lock-footer .form-navigation {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.lock-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #101800;
    font-size: 2rem;
    animation: lockPulse 2s infinite;
    position: relative;
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(200, 245, 96, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(200, 245, 96, 0.5);
    }
}

.quote-summary {
    background: rgba(16, 17, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    position: relative;
}

.quote-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-accent), transparent);
}

.quote-summary h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quote-summary ul {
    list-style: none;
    padding: 0;
}

.quote-summary li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 0.6rem 0;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quote-summary li:last-of-type {
    border-bottom: none;
}

.quote-summary li span:first-child {
    color: var(--text-secondary);
    white-space: nowrap;
}

.quote-summary li span:last-child {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.quote-summary li.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.quote-summary li.total span {
    font-weight: 600;
    color: var(--primary-accent);
}

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #101800;
    font-size: 2rem;
    animation: successBounce 0.6s ease;
    position: relative;
}

.success-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-accent);
    border-radius: 50%;
    animation: successRipple 1s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Loading States */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Enhanced Form Styling */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(16, 17, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: var(--text-primary);
}

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
    width: 10px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    border: 2px solid rgba(26, 26, 30, 0.95);
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-accent);
}

/* Responsive Design for Conversion System */
@media (max-width: 768px) {
    .btn-secondary {
        display: none;
    }
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-cta .btn-primary {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-container {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-back,
    .btn-next {
        width: 100%;
    }
    
    .step-indicator {
        gap: 0.5rem;
    }
    
    .step-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        margin: 0.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .service-option {
        padding: 1rem;
    }
    
    .pricing-calculator {
        padding: 1rem;
    }
    
    .lock-icon,
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Typing Cursor Animation */
.typing-cursor {
    color: var(--primary-accent);
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 2px;
    text-shadow: 0 0 8px var(--primary-accent);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Enhanced Code Block Typing */
.code-content code {
    position: relative;
    transition: all 0.3s ease;
}

.code-content .typing-cursor {
    color: var(--primary-accent);
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 1px;
    text-shadow: 0 0 8px var(--primary-accent);
}

/* Smooth typing animation for code */
.code-content code span {
    transition: color 0.2s ease;
}

/* Enhanced hero title typing */
.hero-title .typing-cursor {
    font-size: 1.1em;
    vertical-align: baseline;
}

/* Code block line-by-line typing effect */
.code-line {
    position: relative;
    min-height: 1.5em;
    font-family: var(--font-mono);
    font-size: 0.95em;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    /* white-space: pre; */
}
.code-line-overlay {
    position: absolute;
    right: 0;
    left: auto;
    top: 0; bottom: 0;
    width: 100%;
    background: #101113; /* match .code-block background */
    z-index: 2;
    /* transition: width 0.5s linear; */
    pointer-events: none;
    border-left: none !important;
    animation: none !important;
}
.code-line-overlay.is-typing {
    border-left: 2px solid var(--primary-accent) !important;
    animation: overlay-cursor-blink 1s steps(1) infinite !important;
}

@keyframes overlay-cursor-blink {
    0%, 50% { border-left-color: var(--primary-accent); }
    51%, 100% { border-left-color: transparent; }
}

/* Remove .code-typing-cursor styling (no longer needed) */
.code-typing-cursor { display: none !important; }
