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

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

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

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

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

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

/* Mobile nav wrapper — on desktop acts as inline flex row */
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3; /* Subtle particles */
}

.hero-content {
    text-align: left;
    max-width: 900px;
    margin: 0;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: var(--brand-primary);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 4rem;
}

.hero-trust-bar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    background: transparent;
    width: 100%;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
}

.trust-divider {
    display: none; /* Hide dividers in brutalist style */
}

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

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

.service-card {
    text-align: left;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

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

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

/* Why Us */
.why-us {
    background-color: var(--bg-surface);
}

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

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-item {
    display: flex;
    gap: 1rem;
}

.why-item-icon {
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-item-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.why-item-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-surface);
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.testimonial-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.testimonial-card {
    min-width: 350px;
    scroll-snap-align: center;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
}

/* Contact CTA */
.contact-cta {
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(189,23,33,0.1) 0%, rgba(35,40,78,0.1) 100%);
    z-index: -1;
}

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

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

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.contact-link i {
    color: var(--accent);
    font-size: 1.2rem;
}

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

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

.footer-about p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

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

/* ===========================
   MOBILE HAMBURGER MENU
   =========================== */

/* Hamburger button — hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--brand-primary);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

/* Animated X when open */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   RESPONSIVE — TABLET (≤1024px)
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-content {
        max-width: 700px;
    }
    .why-grid, .contact-grid {
        gap: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .contact-info h2 {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ===========================
   RESPONSIVE — MOBILE (≤768px)
   =========================== */
@media (max-width: 768px) {

    /* --- Navbar & Hamburger --- */
    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-surface);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        padding: 2rem;
    }

    .mobile-nav.open {
        display: flex;
    }

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

    .mobile-nav .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .mobile-nav .nav-actions {
        display: flex;
    }

    .mobile-nav .nav-actions .btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    /* --- Container --- */
    .container {
        padding: 0 1.25rem;
    }

    /* --- Sections General --- */
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: -1rem;
        margin-bottom: 2.5rem;
    }

    /* --- Hero --- */
    .hero {
        padding-top: 100px;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.6rem;
        letter-spacing: -0.03em;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 2.5rem;
    }

    .hero-ctas .btn {
        text-align: center;
        width: 100%;
    }

    .hero-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .trust-divider {
        display: none;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    /* --- Why Us --- */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .why-content .section-title {
        text-align: center !important;
    }

    .why-content .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* --- Tech Stack --- */
    .tech-grid {
        gap: 0.8rem;
    }

    .tech-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* --- Testimonials --- */
    .testimonial-card {
        min-width: 280px;
    }

    .testimonial-content {
        font-size: 0.95rem;
    }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-about p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE (≤480px)
   =========================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .testimonial-card {
        min-width: 260px;
    }
}
