/* ============================================================
   POPKOT DIGITAL — Navy-Blue to Teal Radial Gradient Theme
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core gradient palette — matched to logo */
    --navy:          #002d5b;   /* "Popkot" text / icon dark anchor */
    --navy-mid:      #003f7a;
    --teal:          #00b4a0;   /* mid teal */
    --teal-light:    #00c8b1;   /* bright near-cyan from logo right side */
    --teal-cyan:     #00d4c2;   /* brightest highlight */
    --teal-dark:     #007a6e;

    /* Gradient definitions — logo direction: bottom-left navy → top-right bright teal */
    --grad-radial:   linear-gradient(135deg, #002d5b 0%, #004e7c 45%, #00c8b1 100%);
    --grad-radial-sm:linear-gradient(135deg, #003f7a 0%, #00c8b1 100%);
    --grad-linear:   linear-gradient(135deg, #002d5b 0%, #00c8b1 100%);

    /* Surface colours */
    --surface-dark:  rgba(0, 30, 60, 0.85);
    --surface-card:  rgba(0, 45, 91, 0.55);
    --surface-glass: rgba(255, 255, 255, 0.07);
    --surface-hover: rgba(0, 200, 177, 0.15);

    /* Text */
    --text-white:    #ffffff;
    --text-soft:     rgba(255, 255, 255, 0.80);
    --text-muted:    rgba(255, 255, 255, 0.55);

    /* Borders */
    --border:        rgba(255, 255, 255, 0.12);
    --border-teal:   rgba(0, 200, 177, 0.45);

    /* Shadows */
    --shadow-sm:  0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-md:  0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg:  0 20px 50px rgba(0, 0, 0, 0.45);
    --glow-teal:  0 0 20px rgba(0, 200, 177, 0.40);
}

/* ── Base ─────────────────────────────────────────────────── */
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--grad-radial);
    background-attachment: fixed;
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Muted text override for dark bg */
.text-muted { color: var(--text-muted) !important; }
.text-dark   { color: var(--text-white) !important; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }

/* ── Spinner ──────────────────────────────────────────────── */
#spinner {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.spinner-ring {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(0, 200, 177, 0.3);
    border-top: 3px solid var(--teal);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: var(--glow-teal);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar-light {
    background: rgba(0, 20, 45, 0.92);
    border-bottom: 1px solid var(--border);
}
.topbar-light .text-muted { color: var(--text-muted) !important; }
.topbar-light a { color: var(--text-muted); transition: color 0.2s; }
.topbar-light a:hover { color: var(--teal-light); }

/* ── Logo blending on dark backgrounds ───────────────────── */
.navbar-brand img,
.footer-premium img {
    mix-blend-mode: screen;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}
.navbar-brand img:hover { opacity: 0.85; }

/* ── Navbar ───────────────────────────────────────────────── */
.sticky-top {
    background: transparent;
    box-shadow: none;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
}
.navbar-premium {
    background: rgba(0, 25, 55, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}
.navbar-brand h4 {
    font-size: 1.8rem;
    color: var(--text-white);
    letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--teal-light); }

.nav-link {
    color: var(--text-soft) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: 0.25s;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--teal-light) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--teal-light);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger icon */
.navbar-toggler { border: none; }
.fa-bars { color: var(--teal-light) !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-outline-green {
    border: 1.5px solid var(--teal);
    background: transparent;
    color: var(--teal-light);
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline-green:hover {
    background: var(--teal);
    color: white;
    box-shadow: var(--glow-teal);
    transform: translateY(-2px);
}
.btn-primary-green {
    background: var(--grad-radial-sm);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: var(--glow-teal);
}
.btn-primary-green:hover {
    background: var(--teal-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 200, 177, 0.45);
    color: white;
}
.btn-outline-light-green {
    border: 1.5px solid var(--teal-light);
    background: transparent;
    color: var(--teal-light);
    border-radius: 40px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
}
.btn-outline-light-green:hover {
    background: var(--teal);
    color: white;
}

/* ── Hero Carousel ────────────────────────────────────────── */
.hero-carousel-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}
.carousel-hero {
    height: 70vh;
    min-height: 650px;
}
.carousel-hero .carousel-inner,
.carousel-hero .carousel-item { height: 100%; }
.carousel-hero .carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-hero .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(0, 20, 50, 0.75) 0%,
        rgba(0, 45, 91, 0.45) 55%,
        rgba(0, 100, 120, 0.15) 100%);
    z-index: 1;
}
.carousel-hero .carousel-caption-custom {
    position: absolute;
    top: 12%; left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
    text-align: left;
}
@media (max-width: 768px) {
    .carousel-hero .carousel-caption-custom { left: 5%; right: 5%; max-width: 90%; }
    .carousel-hero { height: 80vh; min-height: 550px; }
}
.carousel-hero .carousel-control-prev,
.carousel-hero .carousel-control-next { width: 5%; opacity: 0.7; z-index: 3; }
.carousel-hero .carousel-indicators { z-index: 3; bottom: 30px; }
.carousel-hero .carousel-indicators button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: var(--teal);
    opacity: 0.5; margin: 0 6px;
}
.carousel-hero .carousel-indicators button.active {
    opacity: 1;
    background-color: var(--teal-light);
    transform: scale(1.2);
}

/* Hero text */
.badge-green {
    background: rgba(0, 200, 177, 0.20);
    border: 1px solid var(--border-teal);
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    color: var(--teal-light);
}
.display-lead {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}
.carousel-caption-custom h1,
.carousel-caption-custom p,
.carousel-caption-custom .display-lead { color: #ffffff !important; }
.carousel-caption-custom .text-muted { color: rgba(255,255,255,0.80) !important; }
.carousel-caption-custom .badge-green {
    background: rgba(0, 200, 177, 0.30);
    border-color: rgba(0, 212, 194, 0.5);
    color: #ffffff;
}
@media (max-width: 768px) { .display-lead { font-size: 2.6rem; } }

/* ── Glass Cards (shared) ─────────────────────────────────── */
.stat-card,
.service-card,
.service-detailed-card,
.team-card,
.value-card,
.pricing-card,
.blog-card,
.contact-info-card {
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 28px;
    color: var(--text-white);
    transition: all 0.35s ease;
    box-shadow: var(--shadow-sm);
}

/* Hover lift + teal glow */
.stat-card:hover,
.service-card:hover,
.service-detailed-card:hover,
.team-card:hover,
.value-card:hover,
.pricing-card:hover,
.blog-card:hover,
.contact-info-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-teal);
    box-shadow: var(--shadow-md), var(--glow-teal);
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card { padding: 1.8rem; border-radius: 28px; }

/* ── Service Cards ────────────────────────────────────────── */
.service-card { padding: 2rem; border-radius: 32px; height: 100%; }
.icon-green {
    width: 70px; height: 70px;
    background: rgba(0, 200, 177, 0.18);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--teal-light);
    margin-bottom: 1.5rem;
    transition: 0.3s;
}
.service-card:hover .icon-green {
    background: var(--teal);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--glow-teal);
}

/* ── Contact Section ──────────────────────────────────────── */
.contact-modern {
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    border: 1px solid var(--border-teal);
    box-shadow: var(--shadow-md);
}
.form-premium,
.form-control-custom {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    color: var(--text-white);
    transition: 0.2s;
    width: 100%;
}
.form-premium::placeholder,
.form-control-custom::placeholder { color: var(--text-muted); }
.form-premium:focus,
.form-control-custom:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-premium {
    background: rgba(0, 15, 35, 0.95);
    border-top: 1px solid var(--border);
}
.footer-premium h6 { color: var(--text-white); }
.footer-premium .text-muted { color: var(--text-muted) !important; }
.footer-premium hr { background: var(--border); opacity: 1; }

.social-icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 40px;
    background: rgba(0, 200, 177, 0.18);
    transition: 0.3s;
    color: var(--teal-light);
    text-decoration: none;
}
.social-icon:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-teal);
}

/* ── Utility ──────────────────────────────────────────────── */
.text-green { color: var(--teal-light); }
.bg-green-soft { background: rgba(0, 200, 177, 0.15); }

.link-hover-green {
    color: var(--text-muted);
    transition: 0.2s;
    text-decoration: none;
}
.link-hover-green:hover { color: var(--teal-light); padding-left: 4px; }

/* ── Page Header (About / Services / etc.) ────────────────── */
.page-header {
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--border);
    color: white;
    background: var(--grad-radial);
}

/* ── Team Cards ───────────────────────────────────────────── */
.team-card { border-radius: 28px; overflow: hidden; }
.team-img { width: 100%; height: 280px; object-fit: cover; }
.team-social a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0, 200, 177, 0.18);
    color: var(--teal-light);
    transition: 0.3s;
}
.team-social a:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-2px);
}

/* ── Value Cards ──────────────────────────────────────────── */
.value-card { padding: 2rem; text-align: center; border-radius: 24px; }
.value-icon {
    width: 70px; height: 70px;
    background: rgba(0, 200, 177, 0.18);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--teal-light);
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline-item {
    padding-left: 2rem;
    border-left: 2px solid var(--border-teal);
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px; top: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: var(--glow-teal);
}
.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--teal-light);
    margin-bottom: 0.5rem;
}

/* ── Service Detailed Cards ───────────────────────────────── */
.service-detailed-card { padding: 2rem; border-radius: 28px; height: 100%; }
.service-icon-large {
    width: 80px; height: 80px;
    background: rgba(0, 200, 177, 0.18);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: var(--teal-light);
    margin-bottom: 1.5rem;
}
.feature-list { list-style: none; padding-left: 0; }
.feature-list li {
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.75rem;
    color: var(--text-soft);
}
.feature-list li i { color: var(--teal-light); font-size: 1rem; }

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-card { padding: 2rem; text-align: center; border-radius: 28px; }
.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal-light);
}

/* ── Blog / Insights Cards ────────────────────────────────── */
.blog-card { border-radius: 24px; overflow: hidden; height: 100%; }
.blog-img { width: 100%; height: 220px; object-fit: cover; }
.category-badge {
    background: rgba(0, 200, 177, 0.20);
    color: var(--teal-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ── Contact Info Cards ───────────────────────────────────── */
.contact-info-card { padding: 1.5rem; text-align: center; border-radius: 24px; height: 100%; }
.contact-icon {
    width: 60px; height: 60px;
    background: rgba(0, 200, 177, 0.18);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--teal-light);
}

/* ── Map ──────────────────────────────────────────────────── */
.map-container {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ── Section backgrounds ──────────────────────────────────── */
section, .py-5, .py-6 {
    position: relative;
}

/* Ensure white text on all section headings */
section h2, section h3, section h4,
.py-5 h2, .py-5 h3 {
    color: var(--text-white);
}

/* Input group in footer */
.input-group .form-control.form-premium {
    border-radius: 40px 0 0 40px !important;
}
