/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --color-tosca: #2A9D8F;
    --color-tosca-light: #48b5a7;
    --color-tosca-dark: #1f7a6e;
    --color-black: #121212;
    --color-black-light: #1f2937;
    --color-white: #F8F9FA;
    --color-pure-white: #FFFFFF;
    
    --font-heading: 'Marcellus', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(42, 157, 143, 0.15);
    
    --transition: 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: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-black-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 400;
}

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

/* ==========================================================================
   Glassmorphism Navbar
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 50px;
    width: 50px; /* Force circle aspect ratio */
    object-fit: cover; /* Fill circle */
    border-radius: 50%; /* Make it a circle */
    border: 2px solid rgba(255, 255, 255, 0.2); /* optional: border to pop it */
    background-color: white; /* just in case the logo is transparent dark */
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-logo-img {
    border-color: rgba(42, 157, 143, 0.2);
}

.nav-logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(42, 157, 143, 0.3);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: 'Marcellus', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-pure-white);
    text-transform: lowercase; /* as requested "bale beleq" */
    line-height: 1.1;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar.scrolled .brand-title {
    color: var(--color-black);
}

.brand-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-tosca-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.navbar.scrolled .brand-subtitle {
    color: var(--color-tosca);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-pure-white); /* Default white at top */
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

.navbar.scrolled .nav-links li a {
    color: var(--color-black-light);
}

/* Underline Animation */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-tosca);
    transition: var(--transition);
}

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

.nav-links li a:hover {
    color: var(--color-tosca);
}

/* Submenu / Dropdown */
.nav-links .has-submenu {
    position: relative;
}

.nav-links .submenu {
    position: absolute;
    top: 150%;
    left: 0;
    list-style: none;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.5);
}

.nav-links .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.nav-links .submenu li a {
    padding: 12px 25px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    color: var(--color-black-light);
}

.nav-links .submenu li a::after {
    display: none;
}

.nav-links .submenu li a:hover {
    background-color: rgba(42, 157, 143, 0.08);
    color: var(--color-tosca);
    padding-left: 30px;
}

/* ==========================================================================
   Hero Section (Premium Gradients)
   ========================================================================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--color-black) 0%, #0d3832 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

/* Decorative Orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(42,157,143,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(42,157,143,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    animation: fadeUp 1s ease forwards;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, var(--color-tosca-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(42, 157, 143, 0.2);
}

/* Helper text-white class */
.text-white {
    color: #ffffff !important;
}

.hero p {
    font-size: 1.3rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    background-color: var(--color-tosca);
    color: var(--color-pure-white);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.3);
    border: 2px solid var(--color-tosca);
}

.hero-btn:hover {
    background-color: transparent;
    color: var(--color-tosca);
    box-shadow: 0 15px 25px rgba(42, 157, 143, 0.4);
    transform: translateY(-3px);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section-padding {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--color-tosca);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ==========================================================================
   Premium Cards (Publications)
   ========================================================================== */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--color-pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    top: 0;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    top: -10px; /* Lift effect */
}

.card-img-placeholder {
    height: 220px;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
    transition: var(--transition);
}

.card:hover .card-img-placeholder {
    background: linear-gradient(45deg, rgba(42, 157, 143, 0.1), rgba(42, 157, 143, 0.2));
    color: var(--color-tosca);
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    background-color: var(--color-pure-white); /* To cover scaled image */
    position: relative;
    z-index: 2;
}

.card-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-tosca);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
}

.card:hover .card-title {
    color: var(--color-tosca);
}

.card-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.read-more {
    color: var(--color-tosca);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more::after {
    content: '→';
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--color-pure-white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9ca3af;
    max-width: 350px;
}

.footer-links h4 {
    color: var(--color-pure-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--color-tosca);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #6b7280;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s all cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Mobile Menu (Hamburger)
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-pure-white); /* Default white */
    margin: 3px 0;
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle .bar {
    background-color: var(--color-black);
}

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

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-links.active { left: 0; }
    
    .nav-links li a {
        color: var(--color-black-light) !important;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        background-color: var(--color-black) !important;
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        background-color: var(--color-black) !important;
    }

    .nav-links .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        border: none;
        background: transparent;
        display: none;
    }

    .nav-links .has-submenu:hover .submenu {
        display: block;
    }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
}
