@import 'variables.css';

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 90px;
    /* Taller, more elegant */
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    /* Align left */
    align-items: center;
    height: 100%;
    gap: 4rem;
    /* Space between logo and menu */
}

.logo img {
    height: 55px;
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

header.scrolled .logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    /* Spacious premium feel */
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    height: auto;
    position: relative;
    display: inline-block;
    border-bottom: none;
}

/* Elegant Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-item:hover .nav-link::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover .nav-link {
    color: var(--primary-color);
    background-color: transparent;
    /* Remove blocky hover */
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: -10px;
    /* Slight offset */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 260px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(15px) scale(0.98);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Invisible bridge to keep hover active */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-item:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    display: block;
    margin-bottom: 2px;
}

.dropdown-menu li a {
    color: var(--text-dark);
    padding: 10px 16px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    border-radius: 8px;
    /* Rounded items */
    border-bottom: none;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(0, 166, 147, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Card Styles for Content */
.section {
    padding: var(--spacing-lg) 0;
}

.director-profile,
.profile-card {
    background: var(--white);
    padding: var(--spacing-md);
    /* Add padding back to the card container */
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items on mobile */
    gap: var(--spacing-md);
}

/* Desktop layout */
@media (min-width: 768px) {

    .director-profile,
    .profile-card {
        flex-direction: row;
        align-items: flex-start;
        /* Align to top */
        text-align: left;
    }

    .director-profile img,
    .profile-card img {
        width: 200px;
        /* Fixed, reasonable width */
        height: 266px;
        /* 3:4 Aspect Ratio roughly */
        margin-bottom: 0;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .profile-content {
        padding: 0;
        /* Remove extra padding since container has it */
        flex: 1;
    }
}

.director-profile img,
.profile-card img {
    width: 200px;
    /* Constrain width on mobile too */
    height: 266px;
    object-fit: cover;
    object-position: top;
    /* Important for portraits */
    border-radius: var(--radius-md);
    /* Smooth rounding on image */
    box-shadow: var(--shadow-sm);
}

.director-profile:hover,
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 166, 147, 0.2);
}

.profile-content {
    width: 100%;
}

.director-profile h2,
.profile-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.director-profile h2::after,
.profile-card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 5px;
    border-radius: 2px;
}

/* Center underline on mobile if centered text */
@media (max-width: 767px) {

    .director-profile,
    .profile-card {
        text-align: center;
    }

    .director-profile h2::after,
    .profile-card h3::after {
        margin: 5px auto 0 auto;
    }
}

.director-profile p,
.profile-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    line-height: 1.6;
}

/* Clean up transitions */
.director-profile img,
.profile-card img {
    transition: transform 0.3s ease;
}

.director-profile:hover img,
.profile-card:hover img {
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-column p,
.footer-column a {
    color: #ccc;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid #444;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hamburger {
        display: block;
        z-index: 1001;
        /* Ensure above header if needed */
    }

    header {
        height: 70px;
        padding: 0 1.5rem;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        /* Slide from right */
        left: auto;
        /* Reset left */
        top: 0;
        height: 100vh;
        width: 300px;
        /* Standard sidebar width */
        max-width: 80%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    .nav-item {
        width: 100%;
        height: auto;
        display: block;
        /* Break flex context */
    }

    /* Mobile Links */
    .nav-link {
        width: 100%;
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link::after {
        display: none;
        /* No animated underline on mobile */
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        /* Hidden by default */
        visibility: visible;
        opacity: 1;
        transform: none;
        width: 100%;
        background-color: transparent;
        border: none;
        padding: 0;
        padding-left: 1rem;
        margin-top: 0.5rem;
        border-radius: 0;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 1rem;
        color: var(--text-light);
        border-bottom: none;
    }

    .dropdown-menu li a:hover {
        padding-left: 10px;
        background: transparent;
    }
}