/* Root Variables & Theme */
:root {
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-blue: #f59e0b;
    --accent-hover: #d97706;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.35);
    --card-border: rgba(255, 255, 255, 0.1);
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Background image overlay with 23.jpeg */
body {
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
        url('images/23.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Header & Navigation - Same on all pages */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.logo span {
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

/* Hover */
nav a:hover {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Selected/current page */
nav a.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid #f59e0b;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Page Containers */
main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.content-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Hero Banner on Homepage */
.hero {
    position: relative;
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto 2rem auto;
}

/* Quick Features / Badges */
.feature-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pill {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pill-check {
    color: #4ade80;
    font-weight: bold;
}

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

.service-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card h3::before {
    content: "⚡";
    color: var(--accent-blue);
}

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

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    padding: 0.4rem 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: "•";
    color: var(--accent-blue);
    font-weight: bold;
}

/* Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Lightbox Modal */

/* Lightbox Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    color: #ffffff;
    font-size: 1.8rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: all 0.2s ease;
    z-index: 2005;
}

.lightbox-arrow:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.prev-btn {
    left: 1.5rem;
}

.next-btn {
    right: 1.5rem;
}

/* Fix mobile horizontal scrolling and page overflow */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-blue);
}

/* CTA Box */
.cta-box {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-box h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Footer - Same on all pages */
footer {
    background: rgba(15, 23, 42, 0.98);
    color: var(--text-muted);
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer Social Links */
.footer-social {
    margin-top: 1.25rem;
}

.footer-social span {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    color: var(--accent-blue);
    border: 1px solid var(--card-border);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 300px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Responsive Rules */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 1.5rem;
        border-bottom: 1px solid var(--card-border);
    }

    nav ul.show {
        display: flex;
    }
}

@media (max-width: 640px) {

    .logo img {
        width: 200px;
        height: auto;
    }

    /* Main Layout & Center Alignment */
    .container {
        padding: 0 1rem;
        margin: 1.5rem auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .content-wrapper,
    .cta-box {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    /* Force grids to single centered column */
    .services-grid,
    .stats-grid,
    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    /* Center individual cards & images */
    .service-card,
    .stat-card,
    .gallery-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Section Headers & Typography */
    .section-header {
        text-align: center;
        width: 100%;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 1.5rem;
        border-bottom: 1px solid var(--card-border);
    }

    nav ul.show {
        display: flex;
    }

    /* Prevent text overflowing container bounds */
    h1, h2, h3, p, a {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Centered full-width buttons */
    .action-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Lightbox Arrow Optimizations */
    .prev-btn {
        left: 0.5rem;
    }

    .next-btn {
        right: 0.5rem;
    }

    .lightbox-arrow {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        width: 100%;
    }

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

}

/* Social media brand icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.social-icons .social-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    text-decoration: none;
    font-size: 30px;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Instagram */
.social-icons .instagram {
    background: radial-gradient(circle at 30% 107%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%);
}

/* TikTok */
.social-icons .tiktok {
    background: linear-gradient(135deg,
            #25f4ee 0%,
            #555b75 48%,
            #fe2c55 100%);
}

/* WhatsApp */
.social-icons .whatsapp {
    background: #25d366;
}

/* Hover effect */
.social-icons .social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}


/* =========================================
   SCROLL & PAGE ENTRANCE ANIMATIONS
   ========================================= */

/* Elements waiting to appear */
.reveal-left,
.reveal-right {
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-250px);
}

.reveal-right {
    transform: translateX(250px);
}

/* Final position */
.reveal-left.show,
.reveal-right.show {
    opacity: 1;
    transform: translateX(0);
}


/* About page - enters from LEFT */
.page-from-left {
    animation: pageFromLeft 0.8s ease both;
}

@keyframes pageFromLeft {
    from {
        opacity: 0;
        transform: translateX(-250px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Contact page - enters from RIGHT */
.page-from-right {
    animation: pageFromRight 0.8s ease both;
}

@keyframes pageFromRight {
    from {
        opacity: 0;
        transform: translateX(250px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .reveal-left,
    .reveal-right,
    main {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}