/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-color: #0c1e3e;
    /* Deep Navy */
    --primary-light: #162f5f;
    --secondary-color: #5a6a85;
    /* Slate */
    --accent-color: #1a56db;
    /* Professional Blue */
    --background-color: #f6f9fc;
    /* Soft Gray Blue */
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    /* Reduced back */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
}

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

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: var(--background-color);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow var(--transition-fast), padding var(--transition-fast);
    padding: 1.25rem 0;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding-top: 130px;
    padding-bottom: 50px;
    min-height: 75vh;
    /* Reduced height from 100vh */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url('../images/bg.jfif');
    background-size: cover;
    /* Center top usually works best for portraits */
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    /* Smooth gradient to fade into the background image */
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;

    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    /* Constrain text width */

}

.tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: #eef2ff;
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    /* Reduced */
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.25rem;
    /* Reduced from 4.5rem */
    margin-bottom: 0.25rem;
    line-height: 1.1;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    /* Reduced */
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.hero-subtitle span {
    margin: 0 0.5rem;
    color: var(--border-color);
}

.hero-desc {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
    /* Reduced */
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
    align-items: center;
}

.hero-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    transition: transform var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005582);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #115cbf);
}

.social-link.twitter {
    background: linear-gradient(135deg, #000000, #333333);
}

.social-link.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.hero-quote {
    position: absolute;
    top: 25%;
    right: 5%;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.15rem;
    /* Reduced */
    max-width: 200px;
    line-height: 1.4;
    text-align: left;
    z-index: 2;
}

.hero-quote::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats {
    padding: 2.5rem 0;
    /* Reduced from 4rem */
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    /* Reduced gap */
    text-align: center;
}

.stat-item {
    padding: var(--spacing-sm);
    border-right: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.stat-icon svg {
    width: 36px;
    /* Reduced from 48px */
    height: 36px;
    color: var(--primary-color);
}

.stat-value {
    font-size: 1.85rem;
    /* Reduced from 2.25rem */
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    /* Reduced from 1rem */
    font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.about-content p {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    line-height: 1.7;
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.fact-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fact-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.fact-chip svg {
    color: var(--accent-color);
}

.about-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.core-interests {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.interest-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem .75rem;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.interest-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform var(--transition-fast);
}

.interest-card:hover .interest-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.interest-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.interest-card p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.bg-blue-light {
    background: #e0f2fe;
    color: #0284c7;
}

.bg-teal-light {
    background: #ccfbf1;
    color: #0d9488;
}

.bg-purple-light {
    background: #f3e8ff;
    color: #9333ea;
}

.bg-orange-light {
    background: #ffedd5;
    color: #ea580c;
}

/* ==========================================================================
   Two Column Layout (Education & Certs)
   ========================================================================== */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: var(--spacing-lg);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-md);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -2.3rem;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--primary-color);
}

.timeline-content {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-title {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--secondary-color);
    display: flex;
    gap: 1rem;
    font-weight: 500;
}

/* Cards Grid - Updated for 3 columns */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cert-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cert-img {
    height: 140px;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.cert-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.cert-org {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.cert-tag {
    font-size: 0.7rem;
    background: #eef2ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent-color);
    font-weight: 600;
}

.cert-link {
    font-size: 1.15rem;
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

.cert-link:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Goal / CTA Section
   ========================================================================== */
.goal-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.goal-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/DSC_0046.jpg.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}

.goal-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.goal-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.goal-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.goal-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.goal-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.goal-feature svg {
    fill: #4ade80;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #061022;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

.footer-logo {
    color: var(--white);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
}

.footer-social a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-top: var(--spacing-md);
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Inner Pages Specific Styles
   ========================================================================== */

/* Page Header (Hero for inner pages) */
.page-header {
    padding: 180px 0 80px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

/* Background Image Overlay */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/IMG_20180412_123503.jpg.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--white);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    letter-spacing: -1px;
    position: relative;
}

.page-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    line-height: 1.6;
}

/* Biography Section */
.bio-section {
    padding: var(--spacing-xl) 0;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.bio-image-wrapper {
    position: sticky;
    top: 100px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.bio-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bio-content h2 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.bio-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

/* Info List */
.info-list {
    margin-top: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.skill-category {
    background: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* ==========================================================================
   Rich Timeline (Education & Experience pages)
   ========================================================================== */
.rich-timeline-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-color);
}

.rich-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.rich-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--border-color);
}

.rt-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: 80px;
}

.rt-item:last-child {
    margin-bottom: 0;
}

.rt-icon {
    position: absolute;
    left: 11px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.rt-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
}

.rt-content {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.rt-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-md);
}

.rt-title-group h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.rt-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.rt-meta {
    text-align: right;
}

.rt-period {
    display: inline-block;
    background: #eef2ff;
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rt-result {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.rt-body {
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.rt-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--spacing-md);
}

.rt-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all var(--transition-fast);
}

.rt-doc-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.rt-doc-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .rich-timeline::before {
        left: 15px;
    }

    .rt-icon {
        left: -3px;
        width: 36px;
        height: 36px;
    }

    .rt-item {
        padding-left: 45px;
    }

    .rt-content {
        padding: 1rem;
    }

    .rt-title-group h3 {
        font-size: 1.2rem;
    }

    .rt-subtitle {
        font-size: 1rem;
    }

    .rt-meta {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .rt-body {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Split Layout (Certificates Page)
   ========================================================================== */
.cert-split-section {
    display: flex;
    flex-wrap: nowrap;
    /* Force side-by-side */
    width: 100%;
}

.split-content {
    flex: 1 1 50%;
    width: 50%;
    padding: 8% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content.dark {
    background-color: #587376;
    color: var(--white);
}

.split-content.dark h2 {
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.split-content.dark p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.split-content.light {
    background-color: var(--white);
}

.split-content.light .section-tag {
    color: #3bbfa8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.split-content.light h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.split-image {
    flex: 1 1 50%;
    width: 50%;
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-outline-white:hover {
    background: var(--white);
    color: #587376;
}

.btn-teal {
    background: #3bbfa8;
    color: var(--white);
    border: 2px solid #3bbfa8;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-teal:hover {
    background: #2ea891;
    border-color: #2ea891;
}

/* Cert List */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--transition-fast);
    border: 1px solid var(--border-color);
}

.cert-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon svg {
    width: 24px;
    height: 24px;
    fill: #3bbfa8;
}

.cert-details h4 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    color: var(--text-main);
}

.cert-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.cert-details a {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3bbfa8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-details a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Document Grid Styles (documents.html)
   ========================================================================== */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.doc-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.doc-icon {
    width: 48px;
    height: 48px;
    background-color: #fef2f2;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ef4444;
}

.doc-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.doc-info {
    flex-grow: 1;
}

.doc-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    line-height: 1.3;
}

.doc-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.doc-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.doc-action:hover {
    text-decoration: underline;
}

.doc-category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* ==========================================================================
   Gallery Page Styles
   ========================================================================== */
.video-section {
    padding: 2rem 0 4rem;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    border: 4px solid var(--white);
}

.video-wrapper video {
    width: 100%;
    display: block;
    outline: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 30, 62, 0.85) 0%, rgba(12, 30, 62, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    transform: translateY(15px);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .split-section {
        flex-wrap: wrap;
        /* Allow wrapping on mobile */
    }

    .split-content,
    .split-image {
        flex: 1 1 100%;
        width: 100%;
        min-height: 350px;
    }
}

/* ==========================================================================
   Gallery Slider Section (Responsive)
   ========================================================================== */

.gallery-section-bg {
    background: linear-gradient(135deg, #f6f3eb 0%, #e2e8e3 50%, #d8e8ea 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gallery-portfolio-tag {
    font-weight: 900;
    font-size: 1.5rem;
    color: #1a1525;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

.gallery-slider-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.gallery-slider-content {
    flex: 0 0 320px;
}

.gallery-slider-content h2 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #1a1525;
    font-weight: 800;
    letter-spacing: -2px;
}

.gallery-slider-content p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 280px;
}

.btn-gallery-explore {
    background: linear-gradient(to right, #ff3366, #ff6b35);
    color: white !important;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
    border-radius: 50px;
    padding: 0.85rem 2.8rem;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gallery-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 51, 102, 0.4);
}

.gallery-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-right: 2px;
    width: 100%;
}

.gallery-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-slide-card {
    flex: 0 0 calc((100% - 30px) / 3);
    aspect-ratio: 3/4.5;
    background: #000;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-slide-card img,
.gallery-slide-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-slide-card:hover img,
.gallery-slide-card:hover video {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.slide-caption h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.slide-caption span {
    color: #ff3366;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.gallery-social {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1525;
}

.gallery-social a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.gallery-social a:hover {
    color: #ff3366;
}

.gallery-pagination {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.gallery-pagination .divider {
    margin: 0 2rem;
    color: #cbd5e1;
    font-weight: 300;
}

#galleryCounter {
    color: #1a1525;
}

.slider-controls {
    display: flex;
    gap: 0.8rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: transparent;
    color: #1a1525;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.slider-btn:hover {
    background: #1a1525;
    color: white;
    border-color: #1a1525;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .gallery-slider-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .gallery-slider-content {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .gallery-slider-content h2 {
        font-size: 3rem;
    }

    .gallery-slider-content p {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .gallery-portfolio-tag {
        margin-bottom: 2rem;
        text-align: center;
    }

    .gallery-slide-card {
        flex: 0 0 calc((100% - 15px) / 2);
        /* 2 cards on tablet */
    }

    .gallery-bottom-nav {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .gallery-slider-content h2 {
        font-size: 2.5rem;
    }

    .gallery-slide-card {
        flex: 0 0 100%;
        /* 1 card on mobile */
    }

    .gallery-pagination .divider {
        margin: 0 1rem;
    }
}