/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
    /* Color Palette - Elegant Black, Soft Greys & Pure White */
    --color-bg: #FFFFFF;
    --color-bg-light: #F4F4F6;
    --color-text-main: #0A0A0A;
    --color-text-muted: #555555;
    
    --color-primary: #121212;
    --color-primary-hover: #333333;
    
    --color-border: #E0E0E0;
    --color-border-light: rgba(0, 0, 0, 0.05);

    /* Shadow & Depth */
    --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.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.05);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(245,245,245,1) 0%, rgba(255,255,255,1) 100%);
    
    /* Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Fonts */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    opacity: 1;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Page load animation */
body.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, #111, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   Utilities & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Card System */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape for modern look */
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header & Glass Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
    
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height var(--transition-smooth);
}

.header.scrolled .header-content {
    height: 70px;
}

/* Logo styling for the uploaded image that needs adjustment */
.logo {
    height: 50px;
    width: auto;
    max-width: 50vw;
    object-fit: contain;
    transition: transform var(--transition-smooth);
    /* In case user passes original grey image with white text, 
       we invert it so it becomes light text on dark background? 
       Actually user will provide the image. */
}

.logo:hover {
    transform: scale(1.05);
}

/* Modern Menu */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

/* Animated Menu Hover Line */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow-sm);
    padding: 0 10px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-smooth);
    border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 90px;
}

/* Decorative background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-text {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0,0,0,0.05);
    border-radius: 30px;
}

.hero .description {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ==========================================================================
   Inner Pages (General headers)
   ========================================================================== */
.page-header {
    padding: 150px 0 80px;
    background: var(--color-bg-light);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ==========================================================================
   Directory / Members Cards Layout
   ========================================================================== */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.media-card {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.media-logo-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
}

.media-card-content {
    padding: 2rem;
}

.media-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.media-card-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.media-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.media-link svg {
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.media-card:hover .media-link svg {
    transform: translateX(5px);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info {
    padding: var(--spacing-md);
    background: var(--color-primary);
    color: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-info .section-title {
    color: white;
}

.contact-info .section-title::after {
    background-color: white;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: white;
}

.contact-details svg {
    fill: white;
    width: 24px;
    height: 24px;
}

/* Floating Input Style Form */
.contact-form {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    font-size: 1rem;
    color: var(--color-text-main);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    pointer-events: none;
    font-weight: 500;
}

/* Float Label on focus or valid input */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #050505;
    color: white;
    padding: var(--spacing-xl) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85); /* Slightly more transparent */
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        transform: translateX(100%); /* Slide from right */
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.8rem;
        padding: 1rem 0; /* Thumb friendly */
        display: inline-block;
        min-height: 48px;
    }
    
    .mobile-menu-btn {
        z-index: 1002;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    /* Extra Mobile Overrides */
    .header-content {
        height: 65px;
    }
    .header.scrolled .header-content {
        height: 65px;
    }
    h1, .page-header h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.15;
    }
    .media-card {
        box-shadow: 0 4px 10px rgba(0,0,0,0.04);
        border: 1px solid rgba(0,0,0,0.08); /* More flat UI look */
    }
    .btn {
        min-height: 48px;
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-transform: uppercase;
}
