:root {
    --bg-color: #050505;
    /* Slightly deeper black */
    --card-bg: rgba(255, 255, 255, 0.02);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00d4e0;
    /* Slightly more restrained cyan */
    --accent-purple: #a610df;
    /* Slightly more restrained purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle border */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    /* Increased line height for readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Crisper text */
}

/* Noise Overlay - Reduced for cleaner look */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    /* Much more subtle */
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: var(--glass-border);
    height: 68px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

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

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

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

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

/* Buttons */
.cta-button {
    padding: 0.9rem 2.2rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: 6px;
    /* Less rounded, more corporate */
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 224, 0.25);
    /* Softer shadow */
}

.cta-button.small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
}

.secondary-button {
    padding: 0.9rem 2.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.secondary-button:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 224, 0.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 500px;
    /* Ensure space for canvas */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Services Section */
.services-section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

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

.section-header p {
    color: var(--text-secondary);
}

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

.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: var(--glass-border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.18);
}

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


.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* About Section */
.about-section {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--bg-color), #0f0f0f);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-container p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-secondary);
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    color: var(--text-secondary);
    border-top: var(--glass-border);
    font-size: 0.9rem;
}

/* Trust Bar */
.trust-bar {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 0;
    text-align: center;
    border-bottom: var(--glass-border);
}

.trust-bar p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logos-slide {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logos-slide span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0f0f0f;
    border: 1px solid var(--accent-cyan);
    padding: 3rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 212, 224, 0.15);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.modal-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Work Section */
.work-section {
    padding: 8rem 5%;
}

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

.work-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.work-image {
    height: 200px;
    width: 100%;
    opacity: 0.8;
}

.work-content {
    padding: 2rem;
}

.work-content h3 {
    margin-bottom: 0.5rem;
}

.work-content .result {
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* Testimonials */
.testimonials-section {
    padding: 8rem 5%;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.testimonial-card .author {
    margin-top: 2rem;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-card .author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* FAQ */
.faq-section {
    padding: 8rem 5%;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.faq-item {
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 2rem;
    border-radius: 8px;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

/* Footer Links */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
}

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

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

    .footer-links a {
        margin: 0 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-section {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented */
    }

    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }
}

/* Logo container */
.logo {
    display: flex;
    align-items: center;
    gap: 0.30rem;
    /* spacing between logo and text */
    cursor: pointer;
}

/* Logo image */
.logo-badge img {
    height: 60px;
    /* <-- increase this to make logo bigger */
    width: auto;
    display: block;
}

/* Logo text */
.logo-text {
    font-size: 1.38rem;
    /* <-- adjusts proportionally with logo */
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #fff;
}

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

/* Stripe-like legal pages */
.legal-main {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.legal-container h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.legal-date {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.legal-container h2 {
    margin-top: 2.5rem;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.legal-container h3 {
    margin-top: 1.4rem;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

.legal-container p,
.legal-container ul {
    margin-top: 0.9rem;
    line-height: 1.65;
}

.legal-container ul {
    padding-left: 1.3rem;
}

.legal-container li {
    margin-bottom: 0.4rem;
}

.mini-heading {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.sub-text {
    max-width: 8000px;
    line-height: 1.55;
}

/* Hide particle animation on mobile */
@media (max-width: 768px) {
    #hero-canvas {
        display: none !important;
    }

    .hero-visual {
        display: none !important;
    }

    .hero-section {
        min-height: auto !important;
        padding-top: 4rem !important;
        padding-bottom: 3rem !important;
    }
}
