/* 
 * IRIS Institutional Platform - Premium Design System
 * Theme: Modern Institutional Corporate - Glass & Diagonal Layout
 * Focus: Authority, Research, Digital Transformation
 */

:root {
    /* Brand Colors */
    --primary-navy: #0F1E3A;
    --royal-blue: #1E3A8A;
    --accent-teal: #0EA5A4;
    --accent-glow: rgba(14, 165, 164, 0.4);

    /* Functional Colors */
    --bg-light: #F8FAFC;
    --bg-silver: #F1F5F9;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px);

    /* Shadows & Glows */
    --shadow-premium: 0 10px 40px rgba(15, 30, 58, 0.06);
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.1);
    --glow-teal: 0 0 20px rgba(14, 165, 164, 0.2);

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary-navy);
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-navy), var(--royal-blue), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Premium Diagonal Sections --- */
.section {
    position: relative;
    padding: 7rem 0;
}

.diagonal-section {
    position: relative;
    z-index: 1;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: skewY(-3deg);
    z-index: -1;
    transform-origin: top left;
}

.bg-navy {
    background: linear-gradient(135deg, #0F1E3A 0%, #1E3A8A 100%);
    color: var(--white);
}

.hero-light {
    background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 100%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.hero-light h1 {
    color: var(--primary-navy);
}

.hero-light p {
    color: var(--text-muted);
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Hero Slider System --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(15, 30, 58, 0.1);
}

.hero-slider-track {
    display: flex;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider-slide {
    min-width: 100%;
    height: 100%;
}

.hero-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background: var(--accent-teal);
    width: 30px;
    border-radius: 10px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-teal));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(14, 165, 164, 0.35);
    filter: brightness(1.1);
}

.btn-outline {
    border: 2px solid var(--royal-blue);
    color: var(--royal-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--royal-blue);
    color: var(--white);
    transform: translateY(-4px);
}

/* --- Glass Elements --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-teal);
    box-shadow: 0 30px 60px rgba(15, 30, 58, 0.15);
}

.glass-card.dark {
    background: rgba(15, 30, 58, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Geometric Backgrounds --- */
.geo-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(14, 165, 164, 0.1), transparent);
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(45deg);
    }
}

/* --- Timeline Layout --- */
.timeline-v {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-v::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #E2E8F0;
    transform: translateX(-50%);
}

.timeline-v-item {
    margin-bottom: 6rem;
    position: relative;
    width: 50%;
    padding-right: 4rem;
}

.timeline-v-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 4rem;
    text-align: left;
}

.timeline-v-item:nth-child(odd) {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    right: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--accent-teal);
    border-radius: 50%;
    z-index: 10;
}

.timeline-v-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Horizontal Scroll for Cards */
.horizontal-scroll {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 2rem 0 4rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll>* {
    scroll-snap-align: start;
    flex: 0 0 350px;
}

/* --- Dynamic Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: 0.3s;
}

.nav-links li a .material-icons-outlined {
    font-size: 1.2rem;
    color: #94A3B8;
    transition: 0.3s;
}

.nav-links li.active a,
.nav-links li a:hover {
    background: rgba(14, 165, 164, 0.08);
    color: var(--accent-teal);
}

.nav-links li.active a .material-icons-outlined,
.nav-links li a:hover .material-icons-outlined {
    color: var(--accent-teal);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Burger Menu Toggle */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--primary-navy);
    border-radius: 10px;
    transition: 0.3s;
}

@media (max-width: 1100px) {

    .nav-links,
    .admin-btn {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .header nav {
        justify-content: center;
    }

    /* Center logo */
    .header-actions {
        position: absolute;
        right: 2rem;
    }
}

/* Side Menu Drawer */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 2100;
    padding: 2.5rem 1.5rem;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 25px 0 50px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F1F5F9;
}

.side-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.side-nav-links li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: 18px;
    transition: 0.3s;
}

.side-nav-links li a.active {
    background: var(--accent-teal);
    color: #FFFFFF;
}

.side-nav-links li a .material-icons-outlined {
    font-size: 1.4rem;
}

.side-dropdown {
    list-style: none;
    padding-left: 3.5rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

.side-dropdown.active {
    max-height: 500px;
    padding-bottom: 1rem;
}

.side-dropdown li a {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    opacity: 0.7;
    padding: 0.8rem !important;
}

.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2050;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.side-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mega Menu Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    list-style: none;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    color: var(--text-dark) !important;
    padding: 0.8rem 1.2rem;
    display: block;
    border-radius: 8px;
    opacity: 1 !important;
}

.dropdown li a:hover {
    background: var(--bg-light);
    color: var(--royal-blue) !important;
}

/* --- Animations & Premium Entry States --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-in-diagonal {
    opacity: 0;
    transform: translate(60px, 60px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Glass Card Premium Glow Overlay */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 164, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

/* --- End of Base Styles --- */

/* Mobile App Bottom Navigation Bar Base */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2000;
    padding: 0.7rem 1rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    flex: 1;
    gap: 4px;
}

.m-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
    transition: 0.3s;
}

.m-nav-item span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.m-nav-item.active {
    color: var(--accent-teal);
}

.m-nav-item.active svg {
    transform: translateY(-2px);
    stroke: var(--accent-teal);
}

.m-nav-item.active::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 5px;
    height: 5px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
}

/* Footer & Micro-animations */
.hover-up {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.social-circle {
    transition: all 0.3s ease;
}

.social-circle:hover {
    background: var(--primary-navy) !important;
    color: white !important;
    border-color: var(--primary-navy) !important;
    transform: translateY(-5px);
}

footer ul li a {
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--accent-teal) !important;
    padding-left: 8px;
}

/* Modular Section Utilities */
.wave-separator {
    position: absolute;
    width: 100%;
    height: auto;
    line-height: 0;
    z-index: 5;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: -1px;
}

.section-diagonal {
    position: relative;
    overflow: hidden;
}

.diagonal-top-right {
    clip-path: polygon(0 10vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -10vw;
}

.diagonal-top-left {
    clip-path: polygon(0 0, 100% 10vw, 100% 100%, 0 100%);
    margin-top: -10vw;
}

.diagonal-bottom-right {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 0 100%);
    padding-bottom: 10vw;
}

.diagonal-bottom-left {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 10vw));
    padding-bottom: 10vw;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(14, 165, 164, 0.2);
    border-color: rgba(14, 165, 164, 0.3);
}

/* --- Global Media Elements Safety --- */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* --- CONSOLIDATED RESPONSIVE ARCHITECTURE --- */
@media (max-width: 100vw) {
    body {
        width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 4rem;
    }
}

@media (max-width: 1100px) {

    .nav-links,
    .admin-btn {
        display: none !important;
    }

    .burger-menu {
        display: flex !important;
    }

    .header nav {
        justify-content: center !important;
    }

    .header-actions {
        position: absolute;
        right: 2rem;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    /* --- ULTIMATE MOBILE RESET --- */
    * {
        max-width: 100vw !important;
        overflow-wrap: break-word !important;
    }

    body,
    html {
        width: 100vw !important;
        overflow-x: hidden !important;
        position: relative;
    }

    /* Proper Font Scaling */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    p {
        font-size: 0.9rem !important;
    }

    /* Layout Spacing */
    .section {
        padding: 3rem 0 !important;
    }

    .container {
        padding: 0 1.2rem !important;
        width: 100% !important;
    }

    /* Aggressive Grid Reset */
    [style*="display: grid"],
    [style*="grid-template-columns"],
    .grid-2,
    .grid-3,
    .grid-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Aggressive Flex Reset */
    [style*="display: flex"]:not(.mobile-bottom-nav):not(.social-links-footer):not(.header-actions):not(.side-menu-header) {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }

    /* Identity & Header */
    .header {
        padding: 0.6rem 0 !important;
    }

    .logo img {
        height: 35px !important;
        width: auto !important;
    }

    .header-actions {
        right: 1rem !important;
    }

    /* Bottom Nav Fix */
    .mobile-bottom-nav {
        display: flex !important;
        padding: 0.6rem 0.2rem !important;
        height: 65px !important;
    }

    .m-nav-item span {
        font-size: 0.58rem !important;
        letter-spacing: 0 !important;
    }

    /* Spacing & Heights */
    [style*="height: 600px"],
    [style*="height: 500px"],
    [style*="height: 700px"] {
        height: auto !important;
    }

    [style*="margin-top: 15rem"],
    [style*="margin-top: 10rem"] {
        margin-top: 2.5rem !important;
    }

    [style*="padding: 10rem"],
    [style*="padding: 12rem"] {
        padding: 3.5rem 0 !important;
    }

    /* Footer Fix */
    .footer-matrix {
        gap: 3rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Hide Overflows */
    .geo-shapes,
    .shape,
    .wave-separator {
        display: none !important;
    }
}

/* Force Native Scaling */
@viewport {
    width: device-width;
    zoom: 1.0;
}