/* --- Premium Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;500;600;700;800&display=swap');

:root {
    /* Custom Unite Foundation Premium Branding */
    --brand-red: #ED2624;
    --brand-red-light: #F0514F;
    --brand-red-glow: rgba(237, 38, 36, 0.15);
    --brand-dark: #242424;
    --brand-dark-light: #3A3A3A;
    
    /* Backgrounds */
    --bg-base: #FBFBFC; /* Very subtle cool off-white */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-highlight: rgba(255, 255, 255, 1);
    
    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    
    /* Advanced Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.08), 0 10px 15px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 20px 40px -10px rgba(237, 38, 36, 0.2);
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-premium: all 0.6s var(--ease-out-expo);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Premium Aurora Background --- */
.premium-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-base);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(237, 38, 36, 0.12) 0%, rgba(237, 38, 36, 0) 70%);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(36, 36, 36, 0.08) 0%, rgba(36, 36, 36, 0) 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237, 38, 36, 0.08) 0%, rgba(237, 38, 36, 0) 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 50px) scale(1.05); }
    100% { transform: translate(-30px, 20px) scale(0.95); }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* --- Layout --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Hero Section --- */
.hero-section {
    padding: 6rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.logo-container {
    margin-bottom: 3.5rem;
    display: inline-flex;
    justify-content: center;
}

.main-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(237, 38, 36, 0.15));
    transition: var(--transition-premium);
}

.main-logo:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 20px 35px rgba(237, 38, 36, 0.25));
}

/* Hero Content */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--glass-highlight);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(237, 38, 36, 0.5);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--brand-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.status-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.title-text {
    color: var(--brand-dark);
}

.title-gradient {
    background: linear-gradient(135deg, var(--brand-red), #FF5E5B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    transition: var(--transition-premium);
}

/* Focus Cards */
.focus-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6rem;
    width: 100%;
}

.floating-card {
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 200px;
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(237, 38, 36, 0.2);
}

.icon-ring {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.icon-ring svg {
    width: 22px;
    height: 22px;
}

.icon-red { color: var(--brand-red); }
.icon-dark { color: var(--brand-dark); }

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Mission Wrapper */
.mission-wrapper {
    width: 100%;
    max-width: 800px;
}

.main-mission-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-highlight);
    box-shadow: var(--shadow-lg);
    border-radius: 30px;
    padding: 4rem 5rem;
    position: relative;
    text-align: center;
}

.quote-mark {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit', serif;
    font-size: 6rem;
    font-weight: 800;
    color: var(--brand-red-glow);
    line-height: 1;
}

.mission-text {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--brand-dark);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* --- Institutions Section --- */
.institutions-section {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sub-heading {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.heading-line {
    width: 60px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 4px;
}

.inst-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.inst-card {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 360px;
    position: relative;
    overflow: hidden;
}

.glow-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(237, 38, 36, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-premium);
    pointer-events: none;
}

.inst-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(237, 38, 36, 0.08);
}

.inst-card:hover::after {
    opacity: 1;
}

.inst-logo-wrapper {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-premium);
}

.inst-card:hover .inst-logo-wrapper {
    transform: translateY(-5px) scale(1.05);
}

.inst-logo {
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.06));
    transition: var(--transition-premium);
}

.inst-name {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-dark);
    opacity: 0.9;
}

/* --- Pre-Footer Socials & Contact --- */
.pre-footer {
    padding: 2rem 2rem 6rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pre-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    width: 100%;
}

.socials-grid {
    display: flex;
    gap: 5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.soc-group-light {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.group-label-light {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--brand-dark) !important;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
    text-align: center;
}

.social-links-light {
    display: flex;
    gap: 1.5rem;
}

.soc-link-light {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--brand-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-premium);
    border: 1px solid rgba(255, 255, 255, 1);
}

.soc-link-light svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.soc-link-light:hover {
    background: var(--brand-red);
    color: #FFFFFF;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(237, 38, 36, 0.25);
    border-color: transparent;
}

.contact-pill-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.phone-link-light {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--brand-dark);
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
    transition: var(--transition-premium);
}

.phone-link-light svg {
    color: var(--brand-red);
}

.phone-link-light:hover {
    background: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(237, 38, 36, 0.2);
}

/* --- Premium Footer --- */
.footer {
    background-color: var(--brand-dark);
    padding: 4rem 2rem 3rem;
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: radial-gradient(circle, rgba(237, 38, 36, 0.5) 0%, transparent 100%);
    box-shadow: 0 0 20px 2px rgba(237, 38, 36, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    margin-bottom: 0.5rem;
}

.footer-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    font-weight: 500;
}

.developer-credit {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    margin-top: 1rem;
}

.dev-name {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    letter-spacing: 0.12em;
    transition: var(--transition-premium);
    cursor: pointer;
    text-decoration: none !important;
}

.dev-name:hover {
    color: var(--brand-red);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.2rem; margin-bottom: 3rem; }
    
    .focus-cards { gap: 1rem; }
    .floating-card { padding: 1.2rem 2rem; width: 100%; justify-content: center; }
    
    .main-mission-card { padding: 3rem 2rem; }
    .mission-text { font-size: 1.3rem; }
    
    .inst-grid { gap: 2rem; }
    .inst-card { width: 100%; padding: 3rem 2rem; }
    .inst-logo { max-width: 180px; max-height: 80px; }
    
    .pre-footer {
        padding: 2rem 1.5rem 4rem;
    }
    
    .pre-footer-content {
        gap: 2.5rem;
    }
    
    .socials-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 400px;
    }
    
    .soc-group-light {
        gap: 0.8rem;
    }
    
    .group-label-light {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }
    
    .soc-link-light {
        width: 40px;
        height: 40px;
    }
    
    .phone-link-light {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section { padding-top: 4rem; }
    .hero-title { font-size: 2.5rem; }
    .main-logo { height: 70px; }
    .sub-heading { font-size: 1.6rem; }
    .quote-mark { font-size: 4rem; top: -20px; }
    
    .socials-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
