@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&family=Oswald:wght@200..700&family=Outfit:wght@100..900&display=swap');

:root {
    --bg-main: #f8fafc;
    --text-deep: #1e293b;
    --accent-teal: #1abc9c;
    --nav-navy: #2c3e50;
    --glass-white: rgba(255, 255, 255, 0.9);

    --base-color: #0f172a;
    --base-dark: #0a0a0a;
    --secondary-color: #1e293b;
    --accent-color: #38bdf8;
}

html {
    scroll-behavior: smooth;
}

.body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    /* background-color: #f0f2f5; */
    background-color: var(--bg-main) !important;
    /* color: #1a202c; */
    color: var(--text-deep);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* --- Header Section --- */
.header {
    width: 100%;
    background: #0f172a;
    padding: 50px 0;
    border-bottom: 1px solid rgba(26, 188, 156, 0.2);
    position: relative;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 6%;
    /* Side padding ensures it doesn't touch the screen edge */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Keeps everything on the left */
    gap: 50px;
    /* Space between logo and text */
}

/* --- LOGO --- */
.logo {
    position: relative;
}

.logo-accent-blur {
    position: absolute;
    width: 120px;
    /* Matches logo */
    height: 120px;
    background: #1abc9c;
    filter: blur(50px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.responsive-logo {
    height: 110px;
    width: auto;
    position: relative;
    z-index: 2;
}

/* --- TEXT: Left Alignment --- */
.company-name {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle vertical separator */
    padding-left: 40px;
}

.institute-tag a {
    font-family: 'Oswald', sans-serif;
    color: #1abc9c;
    /* font-size: 0.85rem;
    letter-spacing: 6px; */
    font-size: 0.80rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.company-name h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.9px;
}

.company-name h1 span {
    display: block;
    color: #94a3b8;
    font-weight: 400;
    font-size: 1.8rem;
    margin-top: 5px;
}

/* --- Animation Keyframes --- */
@keyframes radar-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
}

@keyframes text-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}


/* --- Applied Styles --- */

.header {
    width: 100%;
    background: #0f172a;
    padding: 50px 0;
    border-bottom: 1px solid rgba(26, 188, 156, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-accent-blur {
    position: absolute;
    width: 130px;
    height: 130px;
    background: #1abc9c;
    filter: blur(50px);
    top: 50%;
    left: 50%;
    z-index: 1;
    /* Active Radar Animation */
    animation: radar-pulse 4s infinite ease-in-out;
}


.company-name {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
    /* Sequential Fade-in */
    animation: text-slide-in 0.8s ease-out forwards;
}

.company-name h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    animation: text-slide-in 0.8s ease-out 0.4s backwards;
}

.responsive-logo {
    height: 110px;
    width: auto;
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease;
}

.logo:hover .responsive-logo {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(26, 188, 156, 0.4));
}

/* --- Mobile Optimization (768px and below) --- */
@media (max-width: 768px) {
    .header {
        padding: 30px 0;
    }

    .header-container {
        gap: 20px;
    }

    .company-name {
        padding-left: 0.6rem;
    }

    /* Adjust Logo for Mobile */
    .responsive-logo {
        height: 100px;
        margin-bottom: 5px;
    }

    /* Center the radar glow behind the logo */
    .logo-accent-blur {
        width: 140px;
        height: 140px;
        top: 50%;
        left: 50%;
    }

    .institute-tag {
        font-size: 0.75rem;
        letter-spacing: 4px;
        margin-bottom: 8px;
    }

    .institute-tag a {
        font-size: 0.70rem;
        letter-spacing: 2px;
    }

    .company-name h1 {
        font-size: 0.9rem;
        line-height: 1.1;
        /* max-width: 320px; */
    }

    .company-name h1 span {
        font-size: 1.1rem;
        margin-top: 4px;
        display: block;
    }
}

/* Extra small devices (iPhone SE / small Androids) */
@media (max-width: 395px) {
    .header {
        padding: 21px 0;
    }

    .company-name h1 {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .responsive-logo {
        height: 75px;
        margin-bottom: 0px;
    }

    /* Center the radar glow behind the logo */
    .logo-accent-blur {
        width: 140px;
        height: 140px;
        top: 50%;
        left: 50%;
    }


    .institute-tag {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }

    .institute-tag a {
        font-size: 0.60rem !important;
        letter-spacing: 1.1px !important;
    }

    .company-name h1 span {
        font-size: 1rem;
        margin-top: 2px;
        display: block;
    }
}




/* nav start ... */
nav {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* padding: 10px 0; */
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    padding: 15px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    font-family: Outfit;
    text-transform: uppercase;
}

nav a:hover {
    background-color: #1abc9c;
    border-radius: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}









/* committee............................ */
.page-title {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

/* The small "Advisory Board" tag */
.page-title .tag {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #1abc9c;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* The main "International Advisory Committee" heading */
.page-title h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: #1abc9c;
    margin: 20px auto 0;
    border-radius: 10px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    width: 8px;
    height: 4px;
    background: rgba(26, 188, 156, 0.3);
    border-radius: 10px;
}


/* --- Committee Page Layout --- */
.committee-page {
    background-color: #f8fafc;
    /* Off-white background */
    padding: 60px 0;
}

/* Flex Container: "3-3-1" alignment */
.committee-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centers the 7th member on the bottom row */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* The Card Structure */
.committee-card {
    position: relative;
    flex: 0 1 280px;
    /* Fixed width prevents stretching */
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    text-align: center;
}

/* The Portrait */
.portrait-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}

.portrait-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents image distortion */
    object-position: top;
    /* Keeps faces in frame */
    transition: transform 0.6s ease;
}

/* Information Area */
.committee-info {
    padding: 25px 20px;
}

.committee-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0;
    transition: color 0.3s ease;
}

.committee-info p {
    color: #1abc9c;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* The Link Overlay: Full card clickability */
.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Ensures it stays on top for clicking */
    cursor: pointer;
    text-decoration: none;
}


/* --- HOVER EFFECTS --- */

/* Card Lift and Glow */
.committee-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 15px rgba(26, 188, 156, 0.1);
    border-color: #1abc9c;
}

/* Image Zoom */
.committee-card:hover .portrait-box img {
    transform: scale(1.08);
}

/* Name Color Change */
.committee-card:hover .committee-info h3 {
    color: #1abc9c;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .committee-card {
        flex: 0 1 100%;
        /* Single column on mobile */
        max-width: 320px;
    }

    .portrait-box {
        height: 280px;
        /* Slightly taller for mobile focus */
    }
}











/* footer start.................... */
footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 40px 20px;
    margin-top: 0;
    border-top: 3px solid;
    border-image: linear-gradient(to right, transparent, #1abc9c, transparent) 1;
    text-align: center;
    position: relative;
    /* width: 97vw;
    display: flex;
    flex-direction: column;
    justify-content: center;*/
    /* margin-top: auto;  */

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
}


/* The Button Styling */
.back-to-top-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #1abc9c;
    /* Teal Border */
    color: #1abc9c;
    /* Teal Text */
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    transition: all 0.4s ease;
}

/* Hover Effect */
.back-to-top-btn:hover {
    background: #1abc9c;
    /* Fill with Teal */
    color: #0f172a;
    /* Navy Text */
    box-shadow: 0 0 20px rgba(26, 188, 156, 0.4);
    transform: translateY(-3px);
}





/* --- Tablet & Mobile Queries --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 5px 0;
    }

    nav ul {
        display: flex;
        justify-content: center;
        gap: 5px;
        padding: 0 10px;
    }

    nav li {
        margin: 0;
        /* Clear previous margins */
    }

    nav a {
        padding: 12px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    /* hover effect */
    nav a:active,
    nav a:hover {
        background-color: #1abc9c;
        border-radius: 4px;
    }
}

@media screen and (max-width: 768px) {
    footer {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    footer p {
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 300px;
        margin: 0 auto;
        color: #cbd5e1;
    }

    footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: #1a202c;
    }
}