/* ===================================
   1. VARIABLES & THEME SETUP
   =================================== */
:root {
    /* Premium Color Palette */
    --primary: #0f3460;       /* Royal Navy - Authority */
    --primary-dark: #16213e;
    --gold: #c1902f;          /* Muted Gold - Wisdom */
    --gold-light: #eecda3;
    
    --text-main: #1a1a2e;
    --text-body: #555b6e;
    --text-light: #8892b0;
    
    --bg-body: #f9f9f9;
    --bg-white: #ffffff;
    --bg-accent: #f4f6f8;

    /* Shadows & Effects */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -5px rgba(15, 52, 96, 0.15);
    --glass: rgba(255, 255, 255, 0.9);
    --blur: blur(12px);
    
    /* Fonts */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===================================
   2. GLOBAL RESETS
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ===================================
   3. LUXURY NAVBAR
   =================================== */
.nav-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 9999;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Gold dot after name */
.logo-text::after {
    content: '.';
    color: var(--gold);
    font-size: 2.5rem;
    line-height: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::before { width: 100%; }

/* Contact Button Highlight */
.nav-menu li:last-child .nav-link {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.2);
}
.nav-menu li:last-child .nav-link:hover {
    background: var(--gold);
    transform: translateY(-2px);
}
.nav-menu li:last-child .nav-link::before { display: none; }

/* ===================================
   4. HERO SECTION (Modern Layout)
   =================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 100px; /* Space for navbar */
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fffbf2 0%, #f4f7f6 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(193, 144, 47, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--primary);
}

.hero-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.title-badge {
    background: rgba(15, 52, 96, 0.05);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    border-left: 3px solid var(--gold);
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Social Icon styling */
.hero-social .social-link {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}
.hero-social .social-link:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-4px);
}

/* Hero Image Styling */
.image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
}

.image-wrapper img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

/* Floating Badge */
.experience-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    z-index: 2;
    text-align: center;
    box-shadow: var(--shadow-hover);
    border: 4px solid white;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.experience-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.experience-text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.scroll-indicator {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

/* ===================================
   5. SECTIONS GENERAL
   =================================== */
.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

/* ===================================
   6. ABOUT SECTION
   =================================== */
.about-section { background: white; }

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.about-text p { font-size: 1.15rem; color: var(--text-body); margin-bottom: 1.5rem; }

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: var(--text-light); }

/* ===================================
   7. SKILLS & CARDS GRID
   =================================== */
.skills-section { background: var(--bg-accent); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-card h3 { font-size: 1.4rem; margin-bottom: 1rem; margin-top: 1rem; }

/* ===================================
   8. PUBLICATIONS & GALLERY
   =================================== */
.publication-tabs, .gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button, .tabbutton {
    background: transparent;
    border: 2px solid #e2e8f0;
    padding: 10px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover, .tabbutton:hover, 
.tab-button.active, .tabbutton.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.2);
}

.publications-grid, .galleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.publication-card, .gallery-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.publication-card:hover, .gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.publication-header {
    background: var(--primary);
    padding: 1.5rem;
    color: white;
}

.publication-body, .gallery-card-body { padding: 1.5rem; flex-grow: 1; }

.publication-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn-download, .btn-view {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-download { background: var(--gold); color: white; }
.btn-download:hover { background: #a67c29; }
.btn-view { background: #f0f0f0; color: var(--primary); }

/* Gallery Specific */
.gallery-card-image-wrap { height: 220px; overflow: hidden; position: relative; }
.gallery-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-card:hover .gallery-card-image { transform: scale(1.08); }

/* ===================================
   9. CONTACT FORM
   =================================== */
.contact-section { background: var(--bg-accent); }

.contact-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.contact-info {
    background: var(--primary);
    padding: 3rem;
    color: white;
}
.contact-info h3 { color: white; margin-bottom: 2rem; }
.contact-item { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 15px; }
.contact-item svg { color: var(--gold); }

.contact-form { padding: 3rem; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* ===================================
   10. FOOTER & RESPONSIVE
   =================================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-name { font-size: 3rem; }
    .hero-titles, .hero-social { justify-content: center; }
    
    .image-wrapper { width: 300px; height: 300px; margin-top: 3rem; }
    .experience-badge { bottom: -20px; left: 50%; transform: translateX(-50%); animation: none; }
    
    .contact-content { grid-template-columns: 1fr; }
    .nav-menu { display: none; } /* Mobile Menu would need JS */
}