@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-primary: #22c55e;
    --brand-secondary: #10b981;
    --brand-accent: #4ade80;
    --bg-main: #000000;
    --bg-card: rgba(15, 23, 42, 0.4);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Institutional Design System */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Modern Institutional Header */
.header-glass {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Immersive Effects */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.glow-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: 0;
}

.glow-button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pulse-primary {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Hero Design */
.hero-gradient {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.1), transparent 40%);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.primary-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

/* Components */
.inst-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.inst-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #000;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.6);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Institutional Footer */
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--brand-primary);
}

/* ========================================
   RESPONSIVE MOBILE-FIRST DESIGN SYSTEM
   ======================================== */

.section-padding {
    padding: 6rem 0;
}

/* Mobile Base (< 640px) */
@media (max-width: 639px) {
    html {
        font-size: 15px;
    }

    .container-custom {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .inst-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .inst-card:hover {
        transform: none;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }

    /* Hero Mobile Optimization */
    .hero-gradient {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    /* Touch-friendly buttons */
    a,
    button {
        min-height: 44px;
    }

    /* Hide floating blobs on mobile for performance */
    .floating {
        display: none;
    }
}

/* Tablet (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    .container-custom {
        padding: 0 2rem;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .inst-card {
        padding: 2rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .section-padding {
        padding: 8rem 0;
    }
}

/* Safe Area Insets for Modern iPhones */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Active/Touch States for Mobile */
@media (hover: none) {
    .inst-card:active {
        transform: scale(0.98);
        border-color: rgba(16, 185, 129, 0.5);
    }

    .btn-primary:active {
        transform: scale(0.95);
    }

    .glow-button:active::before {
        transform: translate(-50%, -50%) scale(1);
    }
}