/* ================= ROOT & RESET ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #05070b;
    --bg-dark-alt: #0b0f14;
    --primary: #4f8cff;
    --text-light: #eaeaea;
    --text-muted: #9aa4b2;
    --border-dark: #1e2633;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* ================= GLOBAL ================= */
img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* ================= HEADER (MOBILE FIRST) ================= */
.site-header {
    background: var(--bg-dark-alt);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 140px; /* FIX: prevents oversized logo */
}

/* Hamburger */
.nav-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 26px;
    cursor: pointer;
}

/* Mobile nav */
.main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-dark-alt);
    border-top: 1px solid var(--border-dark);
    display: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.main-nav li a {
    padding: 14px 20px;
    display: block;
    border-bottom: 1px solid var(--border-dark);
}

/* CTA hidden on mobile */
.header-cta {
    display: none;
}

/* ================= HERO ================= */
#hero {
    padding: 80px 16px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-secondary {
    border: 1px solid var(--border-dark);
    padding: 12px 26px;
    border-radius: 8px;
}

/* ================= SCORECARD / STATS (FIXED) ================= */
#value-prop {
    background: var(--bg-dark-alt);
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.stat-item {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    padding: 30px 20px;
}

.stat-item strong {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-muted);
}

/* ================= SECTIONS ================= */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* ================= INNER PAGE LAYOUT FIX ================= */
.page-header {
    background: var(--bg-dark-alt);
    padding: 70px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Inner page content wrapper */
.page-content {
    padding: 80px 0;
}

.page-content .container {
    max-width: 900px;
}

/* Mobile refinement */
@media (max-width: 767px) {
    .page-header {
        padding: 60px 0;
    }

    .page-content {
        padding: 60px 0;
    }
}

/* ================= SERVICES ================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-6px);
}

.service h3 {
    padding: 20px;
}

.service p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

.service a {
    padding: 0 20px 25px;
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

/* ================= ABOUT ================= */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image img {
    border-radius: 0 28px 0 28px;
}

/* ================= TESTIMONIALS ================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* ================= CTA ================= */
#contact-cta {
    background: linear-gradient(135deg, #0f1624, #121826);
    text-align: center;
}

#contact-cta p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ================= FOOTER (FIXED) ================= */
footer {
    background: #05070b;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-brand img {
    height: 150px; /* FIX: oversized logo */
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none; /* FIX: bullets */
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    border-top: 1px solid var(--border-dark);
    font-size: 14px;
    color: var(--text-muted);
}

/* ================= TABLET ================= */
@media (min-width: 768px) {
    #hero {
        text-align: left;
        flex-direction: row;
        align-items: center;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        flex-direction: row;
        align-items: center;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: block;
        width: auto;
        background: none;
        border: none;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 30px;
    }

    .main-nav li a {
        border: none;
        padding: 0;
    }

    .header-cta {
        display: inline-block;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================= HERO FIX ================= */
#hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 560px;
    margin: 0 auto;
}

.hero-actions {
    justify-content: center;
}

.hero-images {
    display: flex;
    justify-content: center;
}

.hero-images img {
    max-width: 420px;
    width: 100%;
}

/* Tablet & up */
@media (min-width: 768px) {
    #hero {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-content {
        margin: 0;
        padding: 0 50px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-images {
        justify-content: center;
    }
}

/* ================= TESTIMONIAL FIX ================= */
.testimonial {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.testimonial p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Footer spacing fix – mobile & tablet only */
@media (max-width: 1023px) {
    footer .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-grid {
        row-gap: 32px;
    }

    .footer-links ul {
        padding-left: 0;
    }
}
/* ================= ABOUT PAGE FIX ================= */

.about-detailed {
    padding: 80px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.about-image-large img {
    border-radius: 18px;
    max-width: 100%;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ================= SKILLS ================= */

.skills-section {
    background: var(--bg-dark-alt);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    padding: 28px;
    border-radius: 16px;
}

.skill-item h3 {
    margin-bottom: 10px;
}

/* ================= WHY CHOOSE ================= */

.why-choose {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: 16px;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* ================= RESPONSIVE ================= */

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ================= SERVICES PAGE FIX ================= */

.services-section {
    padding: 80px 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.service-media img {
    width: 100%;
    border-radius: 18px;
}

.service-details h3 {
    margin-bottom: 15px;
}

.service-details p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ================= SERVICES CTA ================= */

.services-cta {
    background: linear-gradient(135deg, #0f1624, #121826);
    text-align: center;
    padding: 80px 0;
}

.services-cta p {
    color: var(--text-muted);
    margin: 15px 0 25px;
}

/* ================= RESPONSIVE ================= */

@media (min-width: 768px) {
    .service-item {
        grid-template-columns: 1fr 1fr;
    }

    /* Alternate image/text layout */
    .service-item:nth-child(even) {
        direction: rtl;
    }

    .service-item:nth-child(even) .service-details {
        direction: ltr;
    }
}
/* ================= PORTFOLIO PAGE FIX ================= */

.portfolio-filter {
    padding: 40px 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ================= PORTFOLIO GRID ================= */

.portfolio-grid-section {
    padding: 60px 0 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.portfolio-item {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 11, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.view-project {
    color: var(--primary);
    font-weight: 600;
}

.portfolio-info {
    padding: 18px 20px;
}

.portfolio-category {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================= PORTFOLIO STATS ================= */

.portfolio-stats {
    background: var(--bg-dark-alt);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.stats-grid .stat-item {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: 16px;
}

.stats-grid h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

/* ================= RESPONSIVE ================= */

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ================= TESTIMONIALS PAGE FIX ================= */

.featured-testimonial {
    padding: 80px 0;
    background: var(--bg-dark-alt);
}

.featured-content {
    max-width: 820px;
    margin: auto;
    background: #0f1624;
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 50px;
    position: relative;
}

.quote-icon {
    font-size: 5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
}

.featured-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================= TESTIMONIAL GRID ================= */

.testimonials-detailed {
    padding: 80px 0;
}

.testimonials-grid-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 30px;
}

.stars {
    color: gold;
    margin-bottom: 12px;
    font-size: 1rem;
}

.testimonial-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ================= TRUST SECTION ================= */

.trust-section {
    background: var(--bg-dark-alt);
    padding: 80px 0;
    text-align: center;
}

.trust-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.trust-item {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: 16px;
}

.trust-item h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

/* ================= CTA ================= */

#contact-cta {
    padding: 80px 0;
    text-align: center;
}

/* ================= RESPONSIVE ================= */

@media (min-width: 768px) {
    .testimonials-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid-detailed {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ================= CONTACT PAGE FIX ================= */

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 40px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 10px;
}

.contact-form-wrapper p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* FORM */

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
    background: #0b1220;
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    margin-top: 10px;
    width: 100%;
}

/* CONTACT INFO */

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item img {
    width: 36px;
    height: 36px;
}

.contact-info-item h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.85rem;
}

.small {
    color: var(--text-muted);
}

/* SOCIAL */

.social-links {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-icon img {
    width: 36px;
    height: 36px;
}

/* AVAILABILITY */

.availability-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 255, 128, 0.08);
    border: 1px solid rgba(0, 255, 128, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff80;
    border-radius: 50%;
}

/* FAQ */

.faq-section {
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.faq-item {
    background: #0f1624;
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: 16px;
}

.faq-item h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}
/* RESPONSIVE */

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================
   PAGE HEADER BACKGROUND
   ========================= */

.page-header {
    position: relative;
    background-image: url("ctabackground.png"); /* change filename if needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    color: #fff;
}

/* Black overlay */
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* darkness level */
    z-index: 1;
}

/* Ensure text sits above overlay */
.page-header .container {
    position: relative;
    z-index: 2;
}

/* Typography safety */
.page-header h1 {
    color: #fff;
}

.page-header p {
    color: #e0e0e0;
    max-width: 700px;
}
@media (max-width: 768px) {
    .page-header {
        padding: 70px 0;
        text-align: center;
    }

    .page-header p {
        margin-left: auto;
        margin-right: auto;
    }
}
/* =========================
   CONTACT CTA BACKGROUND
   ========================= */

#contact-cta {
    position: relative;
    background-image: url("background.jpg"); /* change path if needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

/* Dark overlay */
#contact-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* overlay strength */
    z-index: 1;
}

/* Ensure content stays above overlay */
#contact-cta .container {
    position: relative;
    z-index: 2;
}

/* Text safety */
#contact-cta h2 {
    color: #fff;
}

#contact-cta p {
    color: #e0e0e0;
    max-width: 650px;
    margin: 0 auto 24px;
}
@media (max-width: 768px) {
    #contact-cta {
        padding: 70px 20px;
    }
}
/* =========================
   BUTTON BASE RESET
   ========================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
/* =========================
   BUTTON INTERACTIONS
   ========================= */

/* Step 2 — Primary button */
.btn-primary {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

/* Step 3 — Secondary button */
.btn-secondary {
    background-color: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-secondary:hover {
    background-color: #4f46e5;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Step 4 — Focus state */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4);
}