:root {
    --primary: #1c3d73; /* Rich Indigo Royal Blue */
    --primary-2: #c59b43; /* Champagne Gold */
    --primary-3: #f7f2e8; /* Soft Warm Cream */
    --primary-4: #fdfcf9; /* Light Ivory */
    --secondary: #0b1a30; /* Midnight Navy */
    --ink: #071221; /* Ink Black */
    --text: #212c3d; /* Slate Text */
    --muted: #536279; /* Muted Slate */
    --bg: #fbfaf7; /* Warm Champagne Background */
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --glass: rgba(255, 255, 255, 0.78);
    --border: rgba(197, 155, 67, 0.22);
    --border-strong: rgba(197, 155, 67, 0.45);
    --shadow-soft: 0 24px 60px rgba(11, 26, 48, 0.06);
    --shadow-glow: 0 20px 48px rgba(197, 155, 67, 0.2);
    --radius: 28px;
    --radius-sm: 18px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --gradient-primary: linear-gradient(135deg, #1c3d73, #2a5298);
    --gradient-soft: linear-gradient(135deg, #fdfcf9, #f7f2e8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 12%, rgba(77, 168, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 88% 10%, rgba(121, 195, 255, 0.24), transparent 24rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #ffffff 100%);
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 76, 129, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 76, 129, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 78%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 78%, rgba(223, 242, 255, 0.8), transparent 18rem),
        radial-gradient(circle at 92% 70%, rgba(77, 168, 255, 0.13), transparent 22rem);
}

body.loader-active {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(77, 168, 255, 0.28);
    color: var(--secondary);
}

.container {
    width: min(1180px, calc(100% - clamp(2rem, 5vw, 4.5rem)));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(920px, 84vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(77, 168, 255, 0.26), transparent);
}

.section-title {
    max-width: 850px;
    margin: 0 auto clamp(2rem, 4vw, 3.25rem);
    text-align: center;
}

.section-title span,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(77, 168, 255, 0.24);
    border-radius: 999px;
    background: rgba(234, 247, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 30px rgba(77,168,255,0.12);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    padding: 0.72rem 1rem;
    text-transform: uppercase;
}

.section-title h2 {
    margin-top: 1rem;
    color: var(--ink);
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.04;
}

.section-subtitle {
    max-width: 720px;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.section-divider {
    position: relative;
    width: 116px;
    height: 6px;
    margin: 1.2rem auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(77, 168, 255, 0.16);
}

.section-divider::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-primary);
    animation: shimmerLine 2.8s ease-in-out infinite;
}

.grid {
    display: grid;
    gap: clamp(1.15rem, 2vw, 1.8rem);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flex {
    display: flex;
    gap: 1.5rem;
}

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

.flex-between {
    align-items: center;
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted);
}

.btn {
    --btn-bg: var(--gradient-primary);
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.9rem 1.45rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--btn-bg);
}

.btn::after {
    content: '';
    position: absolute;
    inset: -80% -25%;
    z-index: -1;
    background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,0.55), transparent 62%);
    transform: translateX(-70%) rotate(12deg);
    transition: transform 0.75s var(--ease);
}

.btn:hover {
    transform: translateY(-3px) scale(1.015);
}

.btn:hover::after {
    transform: translateX(70%) rotate(12deg);
}

.btn-primary {
    color: #fff;
    box-shadow: 0 18px 42px rgba(77, 168, 255, 0.34);
}

.btn-primary:hover {
    box-shadow: 0 22px 60px rgba(77, 168, 255, 0.44);
}

.btn-secondary {
    --btn-bg: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(223,242,255,0.76));
    border-color: rgba(77, 168, 255, 0.28);
    color: var(--secondary);
    box-shadow: 0 14px 36px rgba(15, 76, 129, 0.08);
}

.btn-small {
    min-height: 42px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
}

.card,
.info-card,
.facility-card,
.counter-card,
.testimonial-card,
.contact-card,
.history-card,
.value-card,
.process-card,
.eligibility-card,
.document-card,
.faq-item,
.enquiry-form,
.preview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(234,247,255,0.58));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.card::before,
.info-card::before,
.facility-card::before,
.counter-card::before,
.testimonial-card::before,
.contact-card::before,
.history-card::before,
.value-card::before,
.process-card::before,
.eligibility-card::before,
.document-card::before,
.faq-item::before,
.enquiry-form::before,
.preview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.85;
}

.card {
    border-radius: var(--radius);
    padding: 1.75rem;
}

.card-soft {
    background: var(--gradient-soft);
}

.shadow-card {
    box-shadow: var(--shadow-soft);
}

.map-frame {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10002;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    box-shadow: 0 0 22px rgba(77, 168, 255, 0.8);
}

.scroll-top,
.floating-contact {
    position: fixed;
    z-index: 900;
    border: 1px solid rgba(255,255,255,0.62);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 42px rgba(15, 76, 129, 0.18);
    backdrop-filter: blur(16px);
}

.scroll-top {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.9);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    animation: floatSoft 4s ease-in-out infinite;
}

.scroll-top span {
    position: absolute;
    inset: 17px;
}

.scroll-top span::before,
.scroll-top span::after {
    content: '';
    position: absolute;
    top: 8px;
    width: 14px;
    height: 3px;
    border-radius: 4px;
    background: var(--secondary);
}

.scroll-top span::before {
    left: 4px;
    transform: rotate(-45deg);
}

.scroll-top span::after {
    right: 4px;
    transform: rotate(45deg);
}

.floating-contact {
    right: 1.25rem;
    bottom: 5.25rem;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    max-width: calc(100vw - 2.5rem);
    border-radius: 999px;
    color: var(--secondary);
    font-weight: 800;
    padding: 0.82rem 1.1rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.floating-contact::before {
    content: '';
    width: 11px;
    height: 11px;
    margin-right: 0.65rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 8px rgba(77,168,255,0.14);
}

.floating-contact:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.floating-whatsapp {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 900;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.32);
    transition: all 0.3s var(--ease);
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 20px 48px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
}

.floating-whatsapp .tooltip-text {
    position: absolute;
    left: 72px;
    background: var(--secondary);
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease);
    pointer-events: none;
}

.floating-whatsapp:hover .tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
