/* =====================
   CSS VARIABLES
===================== */
:root {
    --primary: #d2813f;
    --dark: #1e293b;
    --light: #f8fafc;
    --text: #334155;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #4dc4e2;
    --dark: #0f172a;
    --light: #1e293b;
    --text: #f1f5f9;
    --white: #0f172a;
}

/* =====================
   GLOBAL
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}

.container {
    padding: 80px 10%;
}

.highlight {
    color: var(--primary);
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
}

/* =====================
   NAVBAR
===================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: 16px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* =====================
   THEME TOGGLE BUTTON
===================== */
#theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--light);
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
}

#theme-btn:hover {
    transform: rotate(20deg) scale(1.05);
}

/* =====================
   HERO
===================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    text-align: center;
    padding: 0 8%;
}

.badge {
    display: inline-block;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 20px 0;
    line-height: 1.1;
}

.about-us {
    font-size: 1.1rem;
    transition: var(--transition);
}

.about-us:hover {
    color: var(--primary);
}

.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================
   BUTTONS
===================== */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* =====================
   PROJECTS
===================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--light);
    padding: 25px;
    border-radius: 14px;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

/* =====================
   FORM
===================== */
.form-card {
    max-width: 600px;
    margin: auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: var(--white);
    color: var(--text);
}

.full-width {
    width: 100%;
}

/* =====================
   FOOTER
===================== */
footer {
    text-align: center;
    padding: 40px;
    background: var(--dark);
    color: white;
}

/* =====================
   MOBILE NAV
===================== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 10%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}


/* =====================
   FOUNDER SECTION
===================== */
.founder-section {
    padding: 100px 10%;
    background: var(--white);
}

.founder-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

/* Founder Card */
.founder-card {
    background: var(--light);
    padding: 45px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

.founder-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
}

.founder-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.founder-role {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
}

/* Founder Content */
.founder-content h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.founder-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 22px;
}

/* Social Icons */
.founder-socials {
    margin-top: 25px;
    display: flex;
    gap: 18px;
}

.founder-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.founder-socials a:hover {
    background: var(--primary);
    color: #fff;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
    .founder-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-socials {
        justify-content: center;
    }
}

/* =========================
   SERVICES SECTION
========================= */
.services-section {
    padding: 100px 10%;
    background: var(--white);
    transition: var(--transition);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

/* =========================
   SERVICE CARD
========================= */
.service-card {
    background: var(--light);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: var(--transition);
}

/* Gradient border – works in both modes */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px);
}

/* =========================
   ICON
========================= */
.service-img {
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.service-img img {
    width: 42px;
    transition: var(--transition);
}

.service-card:hover .service-img {
    background: var(--primary);
}

.service-card:hover .service-img img {
    filter: brightness(0) invert(1);
}

/* =========================
   TEXT
========================= */
.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    opacity: 0.85;
}

/* =========================
   DARK MODE SHADOW FIX
========================= */
[data-theme="dark"] .service-card {
    box-shadow: 0 16px 32px rgba(0,0,0,0.6);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .services-section {
        padding: 80px 6%;
    }
}


/* =========================
   CONTACT SECTION
========================= */
.contact-section {
    padding: 100px 10%;
    background: var(--light);
}

/* Card */
.contact-card {
    max-width: 640px;
    margin: auto;
    background: var(--white);
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
}

/* Inputs */
.input-group {
    margin-bottom: 22px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}

/* Focus */
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* Button */
.contact-card .btn-primary {
    margin-top: 10px;
    font-size: 1rem;
}

/* =========================
   DARK MODE FIXES
========================= */
[data-theme="dark"] .contact-card {
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group textarea {
    border-color: rgba(255,255,255,0.2);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .contact-section {
        padding: 80px 6%;
    }

    .contact-card {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 28px 20px;
    }
}

 /* ================================
   TESTIMONIALS SECTION
================================ */
.testimonials {
  padding: 80px 20px;
  background: var(--light);
  color: var(--text);
  overflow: hidden;
  transition: var(--transition);
}

.section-title {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 12px auto 50px;
  font-size: 16px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

/* ================================
   SLIDER
================================ */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

/* ================================
   TESTIMONIAL CARD
================================ */
.testimonial-card {
  min-width: 320px;
  max-width: 320px;
  background: var(--white);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

/* ================================
   STARS + TEXT
================================ */
.stars {
  color: #facc15;
  font-size: 18px;
  margin-bottom: 14px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ================================
   CLIENT INFO
================================ */
.client {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
}

.client img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.client h4 {
  font-size: 16px;
  margin: 0;
}

.client span {
  font-size: 13px;
  opacity: 0.75;
}

/* ================================
   ANIMATION
================================ */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .testimonial-card {
    min-width: 280px;
  }
  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: 260px;
  }
}
