:root {
    --max-width: 1100px;
    --padding: 1.5rem;
    --font-main: system-ui, sans-serif;
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-primary: #111827;
    --color-accent: #2563eb;
    --color-text-main: #111827;
    --color-text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    padding: var(--padding);
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 4.5rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--color-surface);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

body.scrolled .navbar {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.20);
    border-color: rgba(148, 163, 184, 0.45);
    transform: translateY(-2px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.theme-toggle {
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    min-height: 2.2rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.theme-toggle:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

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

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

.nav-links a:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.9);
    outline-offset: 3px;
    border-radius: 999px;
}

body.dark .nav-links a {
    color: var(--color-text-main);
}

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

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 4rem 1rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 55%),
                radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.14), transparent 55%),
                var(--color-surface);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    margin-top: 2rem;
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
    margin-bottom: 0.9rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-text-muted);
}

.cta {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    transform: translateY(0);    
}

.cta:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.9);
    outline-offset: 3px;
}

.cta:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    filter: brightness(0.96);
}



.cta:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.45);
}

.cta.light {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.cta.light:hover {
    background: rgba(243, 244, 246, 0.9);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 1rem;
}

.about {
    padding: 4rem 1rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    max-width: 560px;
}

.about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.about-meta span {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.7);
}

.about-card {
    background: var(--color-surface);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.about-highlight {
    font-size: 1.2rem;
    font-weight: 600;
}

.about-note {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}
.projects {
    padding: 4rem 1rem 5rem;
}

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

.project-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.project-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.project-links {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.project-links a {
    text-decoration: none;
    color: var(--color-accent);
}

.project-links a:hover {
    text-decoration: underline;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.5);
}

.feature-card:hover,
.pricing-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.35);
}

.contact {
    padding: 4rem 1rem 5rem;
    text-align: center;
}

.contact p {
    max-width: 520px;
    margin: 0.75rem auto 2rem;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-actions .cta {
    min-width: 160px;
    text-align: center;
}

.contact-secondary {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.contact-secondary a {
    color: var(--color-accent);
    text-decoration: none;
}

.two-col h2 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    margin-bottom: 1rem;
}

.two-col p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.placeholder {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(236, 72, 153, 0.08)),
        linear-gradient(to bottom, #f9fafb, #e5e7eb);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.placeholder::before,
.placeholder::after {
    content: "";
    position: absolute;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.placeholder::before {
    top: 12%;
    left: 10%;
    right: 20%;
    height: 22%;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.placeholder::after {
    bottom: 12%;
    left: 12%;
    right: 18%;
    height: 32%;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.features {
    text-align: center;
    padding: 4rem 1rem 5rem;
}

.section-title {
    font-size: clamp(1.7rem, 2.3vw, 2rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.35);
}

.testimonials {
    padding: 4rem 1rem 5rem;
}

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

.testimonial-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-card,
.feature-card,
.pricing-card,
.testimonial-card {
    transform-origin: center top;
}

.testimonial-quote {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.testimonial-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Animation utility classes and keyframes */
.fade-in-up {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
}

.fade-in-up.in-view {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1.in-view {
    animation-delay: 0.1s;
}

.fade-in-up.delay-2.in-view {
    animation-delay: 0.2s;
}

.fade-in-up.delay-3.in-view {
    animation-delay: 0.3s;
}

.fade-in-up.delay-4.in-view {
    animation-delay: 0.4s;
}

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

.pricing {
    padding: 4rem 1rem 5rem;
    text-align: center;
}

.pricing-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0.5rem auto 2.5rem;
}

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

.pricing-card {
    background: var(--color-surface);
    padding: 2.25rem 2rem;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card.featured {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.35);
}

.pricing-tag {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    background: rgba(219, 234, 254, 0.9);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.pricing-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.pricing-features li {
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 1.3rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-size: 0.85rem;
    line-height: 1.5;
}

.pricing-card .cta {
    margin-top: auto;
    align-self: stretch;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
    border-color: rgba(37, 99, 235, 0.5);
}

body.dark {
    --color-bg: #020617;
    --color-surface: #020617;
    --color-primary: #e5e7eb;
    --color-accent: #38bdf8;
    --color-text-main: #e5e7eb;
    --color-text-muted: #9ca3af;
}

/* Improve chip/label visibility in dark mode */
body.dark .about-meta {
    color: var(--color-text-main);
}

body.dark .about-meta span {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.75);
    color: var(--color-text-main);
}

body,
.hero,
.feature-card,
.pricing-card,
.testimonial-card {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 2.2rem;
    }

    .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 1rem 5rem;
}

    .two-col .text {
        order: 1;
    }

    .two-col .image {
        order: 2;
    }

    .placeholder {
        height: 200px;
    }

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

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

    .pricing-card {
        align-items: center;
        text-align: center;
    }

    .pricing-card .cta {
        align-self: center;
        width: 100%;
    }

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

    .feature-card {
        text-align: center;
    }

    /* ABOUT SECTION – stack nicely */

    .about {
    padding: 4rem 1rem 5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

    .about-text p {
        margin-left: 0;
        margin-right: 0;
    }

    .about-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .about-meta span {
        width: 100%;
        max-width: 18rem;
    }

    /* PROJECTS */

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

    .projects {
        text-align: center;
    }

    .project-card {
        text-align: left;
    }
}
@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }

    .container {
        padding-top: 3.3rem;
    }


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

  .about-card {
      margin-top: 0.5rem;
    }


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

  .about-card {
      margin-top: 0.5rem;
  }

    .two-col {
      grid-template-columns: 1fr;
      gap: 2.25rem;
  }

  .two-col .image {
      order: 1;
  }

  .two-col .text {
      order: 2;
  }

    .navbar {
        padding: 0.55rem 0.85rem;
        top: 0.5rem;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    /* Row 1: logo left, toggle right */
    .logo {
        font-size: 1.2rem;
        order: 1;
    }

    .theme-toggle {
        order: 2;
        margin-left: auto; /* push toggle to the right on the first row */
    }

    /* Row 2: nav links centered, full width */
    .nav-links {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        gap: 0.85rem;
        font-size: 0.82rem;
        flex-wrap: wrap;
    }

    .nav-links a:focus-visible {
    outline: 2px solid rgba(148, 163, 184, 0.8);
    outline-offset: 3px;
    border-radius: 999px;
}

    .hero {
        padding: 2.6rem 1rem 2.8rem;
        margin-top: 1.3rem;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.96rem;
        margin-bottom: 1.75rem;
    }

    .cta {
        padding: 0.7rem 1.35rem;
        font-size: 0.95rem;
    }

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

    .projects,
    .pricing,
    .testimonials,
    .contact,
    .features,
    .about,
    .two-col {
        padding: 2.7rem 0.75rem 3rem;
    }

    .project-card,
    .feature-card,
    .pricing-card,
    .testimonial-card,
    .about-card {
        padding: 1.5rem 1.4rem;
    }
}

.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}