/* public_html/assets/css/style.css */

/* =========================================
   1. CSS VARIABLES (Theming Engine)
========================================= */
:root {
    /* Light Theme (Default) */
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --primary-color: #26B9FF; /* Legacy brand blue */
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #0f172a; 
    --surface-color: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-color: #38bdf8; 
    --nav-bg: rgba(15, 23, 42, 0.95);
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
}

/* =========================================
   2. BASE RESET & ACCESSIBILITY
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================
   3. HEADER & NAVIGATION
========================================= */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 1rem;       
    padding-inline: 5%;        
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
}

/* Desktop Navigation */
.primary-nav .nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a, 
.dropdown-trigger {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.primary-nav a:hover, 
.dropdown-trigger:hover,
.utility-btn:hover {
    color: var(--primary-color);
}

/* Dropdown Menus */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0; 
    background-color: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-trigger[aria-expanded="true"] + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Utility Buttons */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.utility-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Mobile Responsive Navigation */
.mobile-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--nav-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        display: none; 
    }

    .primary-nav.is-open {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .primary-nav .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dropdown-menu {
        position: static; 
        box-shadow: none;
        border: none;
        border-inline-start: 2px solid var(--primary-color);
        padding-inline-start: 1rem;
        display: none; 
    }

    .dropdown-trigger[aria-expanded="true"] + .dropdown-menu {
        display: block;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. LAYOUT UTILITIES & TYPOGRAPHY
========================================= */
.section-padding {
    padding: 5rem 0; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; 
}

.grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-half {
        grid-template-columns: 1fr; 
        gap: 2rem;
        text-align: center;
    }
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.title-underline {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .title-underline {
        margin: 0 auto 1.5rem auto; 
    }
}

.about-preview p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted); 
}

.rounded-image {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.shadow-large {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

/* =========================================
   5. HERO SECTION
========================================= */
.hero-section {
    position: relative;
    min-height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    color: #ffffff; 
}

.hero-art {
    max-width: 120px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-family: 'Playfair Display', serif; 
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap; 
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--bg-color);
}

/* =========================================
   6. SCROLL ANIMATION CLASSES
========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }