/* =========================================================
   CSS RESET & BASE STYLES
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2b2b2b;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* =========================================================
   GLOBAL UTILITIES
========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2933;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: white;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #111111;
    color: white;
}

.btn-primary:hover {
    background-color: #0b47fa;
}
a.btn.btn-primary {
    color: #ffffff !important;
}

.btn-secondary {
    border: 1px solid #1e3a8a;
    color: #1e3a8a;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #1e3a8a;
    color: #ffffff;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2933;
    text-decoration: none;
}

.logo span {
    font-size: 0.9rem;
    color: #6b7280;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1e3a8a;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
    background-color: #f8fafc;
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 3rem;
    align-items: center;
}

.hero-image {
    justify-self: end;
    width: min(100%, 430px);
}

.hero-content h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.6rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: #1f2933;
}

.hero-content p {
    margin-bottom: 2rem;
    color: #4b5563;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   ABOUT / FAQ ACCORDION
========================================================= */
.about-faq {
    padding: 4rem 0;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.2rem 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #1f2933;
}

.accordion-content {
    padding-bottom: 1.2rem;
    color: #4b5563;
}


/* =========================================================
   WHAT MAKES ME STAND OUT (REDESIGNED)
========================================================= */
.highlights {
    background-color: #f9fafb;
    padding: 5rem 0;
}

.highlight-grid {
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

/* Vertical guideline (subtle academic feel) */
.highlight-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #e5e7eb;
}

/* =========================================================
   CARD BASE STYLES
========================================================= */
.highlight-card {
    width: 48%;
    padding: 1.8rem 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.6;
    color: #1f2933;
    position: relative;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;

    opacity: 0;
    animation: slideFade 0.9s ease forwards;
}

/* =========================================================
   LEFT / RIGHT POSITIONING
========================================================= */
.highlight-card:nth-child(odd) {
    align-self: flex-start;
    animation-name: slideFromLeft;
}

.highlight-card:nth-child(even) {
    align-self: flex-end;
    animation-name: slideFromRight;
}

/* =========================================================
   TIMELINE DOT
========================================================= */
.highlight-card::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background-color: #1e3a8a;
    border-radius: 50%;
    transform: translateY(-50%);
}

.highlight-card:nth-child(odd)::before {
    right: -36px;
}

.highlight-card:nth-child(even)::before {
    left: -36px;
}

/* =========================================================
   HOVER EFFECT (CONFIDENT, NOT FLASHY)
========================================================= */
.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(30, 58, 138, 0.15);
    border-color: #1e3a8a;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================================
   MOBILE RESPONSIVE (STACK CLEANLY)
========================================================= */
@media (max-width: 768px) {
    .highlight-grid::before {
        left: 0;
    }

    .highlight-card {
        width: 100%;
        align-self: flex-start !important;
        animation-name: slideFade;
    }

    .highlight-card::before {
        left: -10px;
        right: auto;
    }
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   SERVICES & SAMPLES PREVIEW
========================================================= */
.services-preview,
.samples-preview {
    padding: 4rem 0;
    text-align: center;
}

/* =========================================================
   CONTACT FORM
========================================================= */
.home-contact {
    background-color: #f8fafc;
    padding: 4rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials {
    padding: 4rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: #6b7280;
}

/* =========================================================
   FOOTER
========================================================= */
.main-footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 2rem 0;
    text-align: center;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-image {
        justify-self: center;
        width: min(100%, 520px);
    }

    .main-nav ul {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem 0;
    }

    .logo a {
        display: inline-flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .main-nav li:last-child {
        width: 100%;
    }

    .main-nav li:last-child .btn {
        display: inline-block;
    }

    .hero-section {
        padding: 3rem 0;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: min(260px, 100%);
    }

    .highlight-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .main-nav a {
        font-size: 0.88rem;
    }

    .testimonial-card {
        width: 220px;
    }
}


/* =========================================================
   WHATSAPP-STYLE TESTIMONIALS SECTION
========================================================= */
.whatsapp-testimonials {
    padding: 5rem 0;
    background-color: #f8fafc;
    overflow: hidden;
}

/* Section title spacing override (optional refinement) */
.whatsapp-testimonials .section-title {
    margin-bottom: 2.5rem;
}

/* =========================================================
   SLIDER VIEWPORT
========================================================= */
.testimonial-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* =========================================================
   SLIDING TRACK (INFINITE LOOP)
========================================================= */
.testimonial-track {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    width: max-content;
    animation: testimonialScroll 55s linear infinite;
    will-change: transform;
}

/* Pause animation on hover for readability */
.testimonial-slider:hover .testimonial-track {
    animation-play-state: paused;
}

/* =========================================================
   TESTIMONIAL CARD
========================================================= */
.testimonial-card {
    width: 340px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Subtle lift on hover (professional, not playful) */
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(30, 58, 138, 0.18);
}

/* =========================================================
   WHATSAPP CHAT IMAGE
========================================================= */
.testimonial-content {
    width: 100%;
}

.testimonial-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* =========================================================
   FOOTER: CLIENT NAME + AVATAR
========================================================= */
.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.6rem;
    border-top: 1px solid #f1f5f9;
}

/* Client name */
.client-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2933;
    letter-spacing: 0.2px;
}

/* Avatar */
.client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    background-color: #ffffff;
}

/* =========================================================
   INFINITE SCROLL ANIMATION
========================================================= */
@keyframes testimonialScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
========================================================= */
@media (max-width: 1024px) {
    .testimonial-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 260px;
    }

    .testimonial-track {
        gap: 1.5rem;
        animation-duration: 65s;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: 240px;
    }

    .client-name {
        font-size: 0.9rem;
    }
}
