/* Global Styles */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #5eb3f6;
    --light-gray: #f5f7fa;
    --medium-gray: #e1e8ed;
    --dark-gray: #34495e;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Design tokens: spacing, radii, type scale */
:root {
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --type-heading: 'Lora', serif;
    --type-ui: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* Index page only: restore balogo background */
body.index-page {
    background: url('images/balogo.jpg') no-repeat center center fixed;
    background-size: cover;
}

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

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.3;
    font-family: 'Lora', serif;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

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


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 2rem;

    background: var(--white);   /* white background for all pages */
    backdrop-filter: none;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background: transparent; /* ✅ remove box */
        box-shadow: none;        /* ✅ remove border look */
        padding: 0;              /* ✅ avoid block feel */
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }
}
/* body.gallery-page header::after,
body.information-page header::after {
    background: rgba(0,0,0,0.12);
} */

.busua-bg,
.busua-bg-layer,
.busua-gradient {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 48px;
    height: 48px;
    max-width: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}


.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;            /* THIN LINE */
    background-color: currentColor;
    transition: width 0.3s ease;
}
    
.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(44, 90, 160, 0.1);
    transform: scale(1.05);
}

.hamburger:active {
    transform: scale(0.95);
}

/* Hamburger Lines Base Styles */
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark-gray);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
}

.hamburger span:nth-child(1) {
    width: 28px;
}

.hamburger span:nth-child(2) {
    width: 22px;
    margin-left: auto;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                width 0.3s ease,
                opacity 0.2s ease;
}

.hamburger span:nth-child(3) {
    width: 16px;
    margin-left: auto;
}

/* Hover effect - all lines same width */
.hamburger:hover span {
    width: 28px;
    background-color: var(--primary-color);
}

/* Active State - Transform to X */
.hamburger.active {
    background: rgba(44, 90, 160, 0.15);
}

.hamburger.active span {
    width: 28px;
    background-color: var(--primary-color);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    width: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* When header overlaps hero-like pages, make nav links white for contrast */
header .nav-menu a {
    color: var(--dark-gray); /* navy / dark */
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.nav-menu a:focus {
    outline: none;
}

.nav-menu a:focus-visible::after {
    width: 0;
}
.nav-menu a:focus-visible {
    outline: none;
    text-shadow: 0 0 6px rgba(44, 90, 160, 0.4);
}
    

/* ===== INDEX PAGE NAVBAR TEXT (SAME AS OTHER PAGES) ===== */
body.index-page header .nav-menu a {
    color: var(--dark-gray) !important; /* dark text like other pages */
    font-weight: 600;
}
body.index-page header .nav-menu a:hover {
    color: var(--primary-color) !important;
    opacity: 1;
}

body.index-page header .nav-menu a::after {
    background-color: var(--primary-color) !important;
}

header .nav-menu a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

body.index-page header .nav-menu a:hover {
    color: var(--primary-color);
    opacity: 0.9;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

body.index-page .nav-menu a::after {
    background-color: var(--primary-color);
}

.nav-menu a:focus {
    outline: none;
    outline-offset: 0;
}

/* Remove visible box when links are clicked with mouse, but keep keyboard focus visible */
header .nav-menu a:focus:not(:focus-visible),
header .nav-menu a:active:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Index and Gallery page hamburger colors */
body.index-page .hamburger span,
body.gallery-page .hamburger span {
    background: #333;
}

body.index-page .hamburger:hover span,
body.gallery-page .hamburger:hover span {
    background: var(--primary-color);
}

body.index-page .hamburger.active span,
body.gallery-page .hamburger.active span {
    background: var(--primary-color);
}


/* Hero Section */
#hero {
    background: transparent;
    color: var(--white);
    padding: 6rem 0 4rem 0;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section {
    background: transparent;
    /* ensure hero sits below header underline */
    margin-top: 0.6rem;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile: stack and give full width */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
}

.hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-content h1 {
    font-size: clamp(1rem, 3vw, 2rem);
    margin-bottom: 0.6rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.3px;
    animation: fadeInUp 0.8s ease;
    color: #ffffff;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.85);
    word-break: keep-all;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    white-space: normal;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-image {
    border-radius: 16px;
    overflow: visible;
    box-shadow: none;
    animation: fadeInUp 0.8s ease 0.4s both;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .hero-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-content h1 { 
        font-size: clamp(0.95rem, 3.5vw, 1.5rem); 
        margin-bottom: 0.75rem;
        word-break: keep-all;
        overflow-wrap: normal;
        word-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
    }
    .hero-image { 
        order: -1; 
        width: 100%;
    }
    .hero-image img { 
        height: auto; 
        max-height: none;
        object-fit: contain;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 640px) {
    #hero { padding: 2rem 0 2rem 0; }
    .hero-wrapper { gap: 1.5rem; padding: 0 16px; }
    .hero-image img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        border-radius: 12px;
    }
    .hero-content h1 {
        font-size: clamp(0.85rem, 3.5vw, 1.2rem);
        line-height: 1.4;
        word-break: keep-all;
        overflow-wrap: normal;
        word-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
    }
    .hero-subtitle { font-size: 0.8rem; margin-bottom: 1rem; line-height: 1.5; }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 0.8rem;
        line-height: 1.45;
    }
    .hero-subtitle { font-size: 0.75rem; }
}

/* Standard card base for gallery and lifestyle */
.card, .life-card, .busua-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 30px rgba(11,61,145,0.06);
}


.busua-hero {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
}

.busua-bg,
.busua-bg-layer,
.busua-gradient {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.card:hover, .life-card:hover, .busua-card.active {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(11,61,145,0.10);
}

/* Form inputs & focus */
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16,24,40,0.08);
    background: #fff;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(44,90,160,0.08);
}

.submit-btn {
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
}

/* Accessibility: visible focus for keyboard users */
a:focus, button:focus, .nav-menu a:focus {
    outline: 3px solid rgba(44,90,160,0.16);
    outline-offset: 3px;
}

/* Carousel specific styles */
/* Carousel styles removed */


/* About Section */
.about-section {
    padding: 6rem 0;
    background: white;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f2a44;
    line-height: 1.3;
    font-weight: 800;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 999px;
    padding: 0.9rem 2.4rem;
    box-shadow: 0 12px 30px rgba(44,90,160,0.18);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(44,90,160,0.22);
}

.btn-secondary {
    background-color: var(--dark-gray);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

/* Showcase Section */
.showcase-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

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

.showcase-image {
    width: 100%;
    overflow: visible;
}

.showcase-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.showcase-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.showcase-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Featured Section */
.featured-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #5DADE2 0%, #2E86C1 100%);
    text-align: center;
    color: white;
}

.featured-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: white;
}

.timeline-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.timeline-card {
    background: white;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(11, 61, 145, 0.15);
    transform: translateY(-8px);
}

/* Timeline card with image + content layout */
.timeline-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.25rem;
    align-items: center;
    text-align: left;
}

.timeline-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.timeline-body h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.timeline-body .muted {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.timeline-body p { color: var(--text-color); margin-bottom: 0.5rem; }

@media (max-width: 900px) {
    .timeline-card {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
    .timeline-media img { height: 200px; }
}

.timeline-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-card p {
    color: var(--text-color);
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--dark-gray);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-buttons .btn {
    transition: all 0.3s ease;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(44, 90, 160, 0.45);
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.cta-buttons .btn-text {
    background: none;
    border: none;
    color: white;
    padding: 1rem 0;
    text-decoration: underline;
    cursor: pointer;
}

.cta-buttons .btn-text:hover {
    color: var(--accent-color);
    transform: none;
}

/* Internship Timeline */
#internship-timeline {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

#internship-timeline h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.week-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.week-container:hover {
    transform: translateY(-5px);
}

.week-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.week-container p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.week-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.week-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.week-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Blog Page */
/* Blog page styles are now in blog.html within <style> tag for better responsiveness */

Gallery Page
/* #gallery-page {
    padding: 4rem 0;
    color: white;
}

#gallery-page h1, #gallery-page p {
    text-align: center;
    margin-bottom: 3rem;
}

/* Carousel Styles */
.gallery-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
} */

.carousel-container {
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.carousel {
    flex: 1;
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.carousel-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.carousel-content .subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* New Hero + Cards Layout */
.gallery-hero {
    position: relative;
    padding: 4rem 0;
    color: white;
    overflow: hidden;
}

.gallery-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://picsum.photos/seed/hero/2000/1000');
    background-size: cover;
    background-position: center;
    filter: brightness(0.32) saturate(0.9);
    z-index: 0;
}

.gallery-hero .hero-inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-left {
    padding: 2rem 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.05;
}

.hero-sub {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.2rem;
    max-width: 36rem;
}

.hero-cards {
    position: relative;
    display: flex;
    align-items: center;
}

.cards-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
}

.cards-track {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem;
    transition: transform 0.5s cubic-bezier(.22,.9,.32,1);
    will-change: transform;
}

.card {
    min-width: 220px;
    max-width: 320px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card.hidden {
    display: none !important;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 0.9rem 1rem;
    color: white;
}

.card h3 { margin: 0 0 6px 0; font-size: 1.15rem; }
.card p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.95rem; }

.cards-btn {
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 12px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cards-btn:hover { background: rgba(0,0,0,0.6); transform: translateY(-3px); }

/* Card Overlay Styles */
.card-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 3000;
    padding: 2rem;
}

.card-overlay {
  position: fixed;
  inset: 0;
  height: 100dvh; /* dynamic viewport height */
  width: 100vw;
}

.card-overlay[aria-hidden="false"] { display: flex; }
.card-overlay-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.overlay-close {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  right: 12px;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  font-size: 28px;
  font-weight: 700;
  line-height: 1;

  z-index: 2147483647; /* MAX safe z-index */
  cursor: pointer;

  transform: translateZ(0); /* Android GPU fix */
  -webkit-transform: translateZ(0);
}

.overlay-media {
    width: 100%;
    height: calc(100vh - 160px);
    background-position: center;
    background-size: cover;
}
.overlay-meta {
    padding: 1rem 1.25rem;
    color: white;
    background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
}

/* Pattern classes for overlay (simple gradients/patterns) */
.pattern-0::before,
.pattern-1::before,
.pattern-2::before,
.pattern-3::before,
.pattern-4::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.28;
}
.pattern-0::before { background: linear-gradient(120deg, rgba(94,179,246,0.35), rgba(74,144,226,0.18)); }
.pattern-1::before { background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.08), transparent 20%), linear-gradient(60deg, rgba(255,200,150,0.18), rgba(226,91,91,0.08)); }
.pattern-2::before { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px), linear-gradient(90deg, rgba(75,192,192,0.18), rgba(58,123,213,0.06)); }
.pattern-3::before { background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.12)), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent 10%); }
.pattern-4::before { background: linear-gradient(90deg, rgba(43,197,90,0.12), rgba(18,144,255,0.06)); }


@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-left { order: 2; padding-top: 1rem; }
    .hero-cards { order: 1; }
    .card img { height: 140px; }
}


.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Gallery Grid Section */
/* .gallery-grid-section {
    padding: 6rem 0;
    background: white;
}

.gallery-grid-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gallery-grid-section > div > p {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 20px;
}
 */
/* .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
} */

/* .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
} */

/* .gallery-item:hover .gallery-caption {
    transform: translateY(0);
} */

/* Lightbox */
/* .lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--accent-color);
} */

/* Information Page */
#information-page {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

#information-page h1 {
    text-align: center;
    margin-bottom: 2.25rem;
    color: var(--primary-color);
    font-size: 2.25rem;
    font-weight: 700;
}

.info-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

/* Constrain information content */
.info-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    object-fit: cover;
}

.about-text {
    flex: 1 1 420px;
}

.about-text p { margin-bottom: 0.85rem; color: var(--dark-gray); }

.about-text p {
    margin-bottom: 1rem;
}

.company-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.company-info {
    flex: 0 0 320px;
    padding-right: 1rem;
}

.company-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.company-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-description {
    flex: 2;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.responsibility-card {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    padding: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.responsibility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(11,61,145,0.08);
}

.responsibility-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.responsibility-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.responsibility-card ul {
    list-style-position: inside;
}

.responsibility-card li {
    margin-bottom: 0.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    display: block;
    font-weight: 500;
    flex: 1;
}

.skill-rating {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.skill-bar {
    height: 12px;
    background-color: var(--medium-gray);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 999px;
}

/* Contact Page */
#contact-page {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

#contact-page h1, #contact-page p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-details-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-details-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
}

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

.social-links h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3.5rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-logo img:nth-child(3) {
    transform: scale(1.11);
}

footer p {
    margin-bottom: 0.5rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-image {
        width: 100%;
    }
    
    .showcase-image img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .showcase-text h3 {
        font-size: 1.5rem;
    }

    .timeline-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .company-content {
        flex-direction: column;
    }
    
    .company-info {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .responsibilities-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }

    .blog-entry {
        grid-template-columns: 1fr;
        direction: ltr !important;
    }

    .blog-entry .blog-description {
        direction: ltr !important;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .carousel-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .carousel {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-indicators {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }

    .gallery-grid-section h2 {
        font-size: 1.8rem;
    }

    header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    
    .logo-container {
        width: auto;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .logo {
        width: 36px;
        height: 36px;
        max-width: 36px;
        object-fit: cover;
        display: inline-block;
    }
    
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .week-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    #about-me .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-img {
        margin: 0 auto;
    }
    
    .responsibilities-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Mobile Responsiveness for iOS & Android */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 0.75rem 1rem;
    }

    .container {
        width: 100%;
        padding: 0 12px;
        max-width: 100%;
    }

    /* Hero Section Mobile */
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    /* Timeline mobile */
    .timeline-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .timeline-media img {
        height: 150px;
    }

    .timeline-body h3 {
        font-size: 1rem;
    }

    .timeline-body p {
        font-size: 0.9rem;
    }

    /* Gallery hero mobile */
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 1.5rem 0;
    }

    .cards-viewport {
        min-height: 280px;
    }

    .card {
        min-width: 240px;
        max-width: 280px;
    }

    .card img {
        height: 140px;
    }

    .cards-btn {
        width: 40px;
        height: 40px;
        margin: 0 8px;
    }

    /* Information page mobile */
    .info-wrapper {
        padding: 0 0.75rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .company-content {
        flex-direction: column;
    }

    .responsibilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .responsibility-card {
        padding: 1rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Contact form mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-container,
    .contact-details-container {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.75rem;
    }

    .submit-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    /* Blog mobile */
    .blog-entry {
        grid-template-columns: 1fr;
        direction: ltr !important;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .blog-entry:nth-child(even) {
        direction: ltr;
    }

    .blog-video {
        min-height: 220px;
    }

    .blog-description h3 {
        font-size: 1.1rem;
    }

    .blog-description p {
        font-size: 0.9rem;
    }

    /* Gallery grid mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 12px;
    }

    .gallery-item img {
        height: 200px;
    }

    /* Footer mobile */
    footer {
        padding: 2rem 0;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    /* Make footer logos scale on small screens instead of a fixed 35px size */
    .footer-logo img {
        width: clamp(32px, 8vw, 44px);
        height: auto;
    }
}

/* Tablet responsiveness (641px - 900px) */
@media (min-width: 641px) and (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .hero-inner {
        grid-template-columns: 1fr 1.2fr;
        gap: 1.5rem;
    }

    .timeline-card {
        grid-template-columns: 1fr;
    }

    .timeline-media img {
        height: 160px;
    }

    .card {
        min-width: 200px;
        max-width: 260px;
    }

    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
    }

    .responsibilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Home Page About Me Section */
#about-me-home {
    padding: 4rem 0;
    background-color: var(--white);
}

#about-me-home .about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

#about-me-home .profile-img {
    width: 250px;
    height: 250px;
}
/* ===== HEADER BOTTOM LINE FIX (FINAL) ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

White line for hero pages
body.index-page header::after,
body.gallery-page header::after {
    background: rgba(255, 255, 255, 0.35);
}
/* FIX: Gallery header needs background for underline to show */
body.gallery-page header {
    background: #f8fafc; /* same as page background */
}
body.gallery-page header::after {
    background: rgba(0, 0, 0, 0.25);
}
header {
    border: none !important;
    box-shadow: none !important;
}

header::after {
    display: none !important;
}
/* Create visual separation instead of fake border */
main,
.page-content,
#hero,
.gallery-hero,
#information-page,
#contact-page,
#blog-page {
    padding-top: 1.5rem;
}
header {
    position: sticky;
    top: 0;
    z-index: 2000;
    border: none;
    box-shadow: none;
}
/* ===== PROFESSIONAL NAVBAR DIVIDER ===== */
header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    pointer-events: none;
}
body.information-page header::after,
body.contact-page header::after,
body.blog-page header::after {
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.18),
        transparent
    );
}
body.index-page header::after,
body.gallery-page header::after {
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
}
/* ===== NAVBAR PROFESSIONAL DIVIDER (HARD FIX) ===== */
header {
    position: sticky;
    top: 0;
    z-index: 3000;
}

/* force visual divider */
header + * {
    position: relative;
}

header + *::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.15);
    z-index: 5;
}
body.index-page header + *::before,
body.gallery-page header + *::before {
    background: rgba(255,255,255,0.4);
}
/* FIX: Make divider visible on Gallery page */
body.gallery-page header + *::before {
    z-index: 9999;
}
body.gallery-page .gallery-hero {
    z-index: 1;
}
/* ===== PROFESSIONAL NAVBAR DIVIDER (FINAL FIX) ===== */
header {
    position: sticky;
    top: 0;
    z-index: 5000;
    border: none;
    box-shadow: none;
}

/* Divider lives OUTSIDE header visually */
header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px; /* pushes it outside header */
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.18);
    pointer-events: none;
}
/* FIX: Remove extra top line on Home hero */
body.index-page #hero,
body.index-page .hero-section {
    border-top: none !important;
    box-shadow: none !important;
}

body.index-page #hero::before,
body.index-page #hero::after,
body.index-page .hero-section::before,
body.index-page .hero-section::after {
    display: none !important;
}
/* Home page: dark divider (same as other pages) */
body.index-page header::before {
    background: rgba(0, 0, 0, 0.12);
}
body.index-page #hero,
body.index-page .hero-section {
    border-top: none !important;
    box-shadow: none !important;
}

body.index-page #hero::before,
body.index-page #hero::after,
body.index-page .hero-section::before,
body.index-page .hero-section::after {
    display: none !important;
}

/* ===== PROFESSIONAL HAMBURGER ANIMATION FIX ===== */
@media (max-width: 768px) {
    .hamburger {
        filter: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .hamburger span {
        height: 3px !important;
        background-color: #333 !important;
    }
    
    .hamburger:hover span,
    .hamburger.active span {
        background-color: var(--primary-color) !important;
    }
    
    /* Preserve active state transforms */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
    }
}

/* ===== HARD FIX: FOOTER LOGO MOBILE LAYOUT ===== */
@media (max-width: 768px) {
    footer .footer-logo {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 1.25rem !important;
    }

    footer .footer-logo img {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        object-fit: contain !important;
        border-radius: 50% !important;
        transform: none !important;
    }

    /* Optional: slight emphasis only */
    footer .footer-logo img:nth-child(3) {
        transform: scale(1.05) !important;
    }
}

/* =================================================
   PROFESSIONAL INFORMATION PAGE ENHANCEMENT
   ================================================= */

/* Page spacing & rhythm */
#information-page {
    padding: 5rem 0;
    background: linear-gradient(
        180deg,
        #f7f9fc 0%,
        #f2f5f9 100%
    );
}

/* Main title */
#information-page h1 {
    font-size: clamp(1.3rem, 5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* subtle divider under main title */
#information-page h1::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    margin: 1rem auto 0;
    border-radius: 999px;
}

/* Section cards */
.info-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

/* Section headings */
.info-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2a44;
    position: relative;
}

/* About Me layout refinement */
#about-me .about-content {
    gap: 2.5rem;
}

#about-me .about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #3b465c;
}

/* Profile image polish */
.profile-img {
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* Company profile */
.company-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.company-info p {
    font-size: 0.95rem;
    color: #4a5568;
}

/* Responsibilities cards – more corporate look */
.responsibility-card {
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid rgba(16,24,40,0.06);
}

.responsibility-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.responsibility-card ul {
    margin-top: 0.75rem;
}

.responsibility-card li {
    font-size: 0.95rem;
    color: #4a5568;
}

/* Skills section refinement */
.skill-category {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 30px rgba(16,24,40,0.06);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Skill bars smoother */
.skill-bar {
    height: 10px;
    background-color: #e6ebf2;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .info-section {
        padding: 1.75rem;
    }

    #information-page h1 {
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
        padding: 0 8px;
        line-height: 1.3;
    }

    .info-section h2::before {
        left: -8px;
    }
}

/* ===== REMOVE TECHNICAL SKILLS SECTION ===== */
#skills-learned .skill-category:first-child {
    display: none !important;
}

/* =================================================
   OJT WEEKLY RESPONSIBILITIES – PROFESSIONAL COLOR
   ================================================= */

/* Section title accent */
#weekly-responsibilities h2 {
    position: relative;
    padding-left: 1rem;
    color: #1f2a44;
}

#weekly-responsibilities h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 5px;
    height: 1.2em;
    background: linear-gradient(
        180deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border-radius: 6px;
}

/* Responsibility cards */
.responsibility-card {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fafc 100%
    );
    border-left: 5px solid var(--primary-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Card titles */
.responsibility-card h3 {
    color: var(--primary-color);
}

/* Card list text */
.responsibility-card li {
    color: #3b465c;
}

/* Hover effect (subtle, professional) */
.responsibility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.12);
    border-left-color: var(--secondary-color);
}

/* Improve spacing on mobile */
@media (max-width: 768px) {
    .responsibility-card {
        border-left-width: 4px;
    }
}

/* ===== FIX OVERSIZED IMAGE – MATCH HERO IMAGE STYLE ===== */

/* Apply hero-style framing */
.about-image img,
.showcase-image img,
.timeline-media img {
    width: 100%;
    height: 360px;          /* same as hero image */
    object-fit: cover;     /* prevents stretching */
    border-radius: 12px;
}

/* Tablet */
@media (max-width: 900px) {
    .about-image img,
    .showcase-image img,
    .timeline-media img {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .about-image img,
    .showcase-image img,
    .timeline-media img {
        height: 240px;
    }
}

/* =================================================
   12-WEEK INTERNSHIP – PROFESSIONAL TIMELINE LAYOUT
   ================================================= */

#timeline {
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    padding: 6rem 0;
}

/* Timeline title */
#timeline h2 {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

#timeline h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 1rem auto 0;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border-radius: 999px;
}

/* Timeline grid */
.timeline-grid {
    gap: 2.5rem;
}

/* Timeline card */
.timeline-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(16,24,40,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover polish */
.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(16,24,40,0.12);
}

/* =================================================
   TIMELINE IMAGE CARD FIX
   ================================================= */

.timeline-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.timeline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtle overlay for readability */
.timeline-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.25)
    );
}
    
/* ===== GALLERY COLOR PALETTE (30 PROFESSIONAL TONES) =====
.life-card.c1 { background: linear-gradient(135deg,#2bb3a2,#36c5b1); }
.life-card.c2 { background: linear-gradient(135deg,#63a4ff,#83eaf1); }
.life-card.c3 { background: linear-gradient(135deg,#1f2a44,#2f3c5f); }
.life-card.c4 { background: linear-gradient(135deg,#f6ad80,#f8917d); }
.life-card.c5 { background: linear-gradient(135deg,#f1709b,#f89abf); }
.life-card.c6 { background: linear-gradient(135deg,#5fd3f3,#79a3ff); }
.life-card.c7 { background: linear-gradient(135deg,#7f5af0,#5c3ad4); }
.life-card.c8 { background: linear-gradient(135deg,#00c6ff,#0072ff); }
.life-card.c9 { background: linear-gradient(135deg,#11998e,#38ef7d); }
.life-card.c10{ background: linear-gradient(135deg,#fc5c7d,#6a82fb); }

.life-card.c11{ background: linear-gradient(135deg,#ee9ca7,#ffdde1); }
.life-card.c12{ background: linear-gradient(135deg,#42275a,#734b6d); }
.life-card.c13{ background: linear-gradient(135deg,#bdc3c7,#2c3e50); }
.life-card.c14{ background: linear-gradient(135deg,#de6262,#ffb88c); }
.life-card.c15{ background: linear-gradient(135deg,#56ab2f,#a8e063); }

.life-card.c16{ background: linear-gradient(135deg,#614385,#516395); }
.life-card.c17{ background: linear-gradient(135deg,#e65c00,#f9d423); }
.life-card.c18{ background: linear-gradient(135deg,#2193b0,#6dd5ed); }
.life-card.c19{ background: linear-gradient(135deg,#cc2b5e,#753a88); }
.life-card.c20{ background: linear-gradient(135deg,#8360c3,#2ebf91); }

.life-card.c21{ background: linear-gradient(135deg,#ff512f,#dd2476); }
.life-card.c22{ background: linear-gradient(135deg,#1d4350,#a43931); }
.life-card.c23{ background: linear-gradient(135deg,#43cea2,#185a9d); }
.life-card.c24{ background: linear-gradient(135deg,#f7971e,#ffd200); }
.life-card.c25{ background: linear-gradient(135deg,#141e30,#243b55); }

.life-card.c26{ background: linear-gradient(135deg,#fc466b,#3f5efb); }
.life-card.c27{ background: linear-gradient(135deg,#00bf8f,#001510); }
.life-card.c28{ background: linear-gradient(135deg,#ffe000,#799f0c); }
.life-card.c29{ background: linear-gradient(135deg,#396afc,#2948ff); }
.life-card.c30{ background: linear-gradient(135deg,#d38312,#a83279); } */

/* ===== CARD → COVER EXPAND EFFECT ===== */

/* .card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.card-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.card-overlay-inner {
    width: 90%;
    max-width: 1100px;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: transform 0.35s ease;
}

.card-overlay[aria-hidden="false"] .card-overlay-inner {
    transform: scale(1);
}

.overlay-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.overlay-media {
    height: 70vh;
    background-size: cover;
    background-position: center;
}

.overlay-meta {
    padding: 1.5rem 1.75rem;
    color: white;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.6)
    );
} */

/* Mobile */
@media (max-width: 768px) {
    .overlay-media {
        height: 55vh;
    }
}

/* =================================================
   RESPONSIVE CARD COVER IMAGE (MOBILE FIX)
   ================================================= */

/* Default (desktop/tablet already good) */
.overlay-media {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
}

/* Tablets */
@media (max-width: 900px) {
    .overlay-media {
        height: 60vh;
    }
}

/* Mobile phones */
@media (max-width: 640px) {
    .card-overlay-inner {
        width: 100%;
        height: 100%;
        border-radius: 0; /* fullscreen feel */
    }

    .overlay-media {
        height: 45vh; /* avoid image dominating screen */
        background-position: center top; /* better portrait framing */
    }

    .overlay-meta {
        padding: 1rem 1.25rem;
    }

    .overlay-meta h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .overlay-media {
        height: 40vh;
    }

    .overlay-meta h2 {
        font-size: 1.1rem;
    }
}

/* FIX showcase image cropping on desktop */
@media (min-width: 1024px) {
    .showcase-image img {
        height: auto;
        max-height: none;
        object-fit: contain;
        background-color: #f5f7fa;
    }

    .showcase-image {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ================================
   /* GALLERY OVERLAY (PROFESSIONAL FIX)
================================ */

/* Overlay backdrop */
.card-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Active state */
.card-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

/* Inner container */
.card-overlay-inner {
    position: relative;
    width: min(92vw, 420px);
    max-height: min(88vh, 720px);
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);

    display: flex;
    flex-direction: column;
}

/* Image area */
#overlayMedia {
    flex: 1;
    background-size: contain;   /* ✅ FULL IMAGE */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
}

/* Text content */
#overlayMeta {
    padding: 1rem 1.25rem 1.5rem;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.6),
        transparent
    );
    color: white;
}

#overlayMeta h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

#overlayMeta p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Close button (modern floating) */
.overlay-close {
    position: absolute;
    top: env(safe-area-inset-top, 12px);
    right: env(safe-area-inset-right, 12px);

    width: 44px;
    height: 44px;
    border-radius: 50%;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 1.4rem;
    font-weight: 600;

    border: none;
    cursor: pointer;

    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.overlay-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.overlay-close:active {
    transform: scale(0.95);
}

/* Small devices */
@media (max-width: 480px) { */
    .card-overlay-inner {
        width: 94vw;
        max-height: 90vh;

/* Desktop refinement */
@media (min-width: 1024px) {
    .card-overlay-inner {
        width: 420px;
    }
}
    }
}

/* ===== FULLSCREEN IMAGE OVERLAY FIX =====
.card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-overlay[aria-hidden="true"] {
  display: none;
}

.card-overlay-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Full image */
/* //////////


/* 🔥 Remove overlay close button on gallery page */
body.gallery-page .overlay-close,
body.gallery-page .card-overlay {
  display: none !important;
}


/* ==========================
   Busua Navigation (Mobile Safe)
   ========================== */

.busua-nav {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%);

  display: flex;
  gap: 1rem;
  z-index: 10;
}

.busua-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.55);
  color: #fff;

  font-size: 1.2rem;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  backdrop-filter: blur(6px);
}

/* Touch feedback */
.busua-nav-btn:active {
  transform: scale(0.95);
}


@media (max-width: 768px) {
  .busua-right {
    padding-bottom: 90px; /* space for nav buttons */
  }
}

/* ===============================
   GLOBAL PAGE LOAD ANIMATIONS
================================ */

/* Initial hidden state */
.animate {
    opacity: 0;
    transform: translateY(24px);
    transition: 
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.22,.9,.32,1);
}

/* Animate when visible */
.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* GALLERY PAGE OVERRIDE - Keep images always visible */
.gallery-page .animate,
.gallery-page img.animate,
.gallery-page section.animate,
.arch-portfolio.animate,
.arch-portfolio .animate,
.arch-grid__item.animate,
.arch-grid__image.animate,
.busua-hero.animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Variations */
.animate.fade {
    transform: none;
}

.animate.left {
    transform: translateX(-30px);
}

.animate.right {
    transform: translateX(30px);
}

.animate.zoom {
    transform: scale(0.92);
}

/* Letter animation */
.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
    animation: letterFade 0.6s ease forwards;
}

@keyframes letterFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(1.4rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    max-width: 100%;
    margin-bottom: 1rem;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    white-space: normal;
}

/* ================================================
   PROFESSIONAL SKILLS SECTION – TWO COLUMN LAYOUT
   ================================================ */

#skills-learned {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#skills-learned h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #1f2a44;
    position: relative;
    padding-bottom: 1.5rem;
}

#skills-learned h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #4a90e2);
    border-radius: 2px;
}

.skills-container.professional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skill-column {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.column-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 1.75rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    margin-bottom: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.skill-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.skill-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-percent {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Percent colors - professional gray */
.skill-percent.percent-great {
    color: #4b5563;
}

.skill-percent.percent-good {
    color: #4b5563;
}

.skill-percent.percent-average {
    color: #4b5563;
}

.skill-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-label.label-great {
    color: #6b7280;
}

.skill-label.label-good {
    color: #6b7280;
}

.skill-label.label-average {
    color: #6b7280;
}

.skill-bar {
    height: 10px;
    background-color: #f3f4f6;
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.skill-bar .skill-level {
    height: 100%;
    border-radius: 10px;
    transition: none;
}

/* Gradient bar colors based on rating */
.skill-bar .skill-level.gradient-great {
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 30%, #3b82f6 70%, #60a5fa 100%) !important;
}

.skill-bar .skill-level.gradient-good {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 40%, #3b82f6 70%, #60a5fa 100%) !important;
}

.skill-bar .skill-level.gradient-average {
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 50%, #93c5fd 100%) !important;
}

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

    .skill-column {
        padding: 1.5rem;
    }

    .column-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .skills-container.professional-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #skills-learned h2 {
        font-size: 1.6rem;
        margin-bottom: 1.75rem;
    }

    #skills-learned h2::after {
        width: 40px;
    }

    .skill-column {
        padding: 1.25rem;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .column-title {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }

    .skill-list {
        gap: 1.25rem;
    }

    .skill-name {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .skill-bar {
        height: 7px;
    }
}

/* Extra small devices (iPhone SE, small Android) */
@media (max-width: 360px) {
    #information-page h1 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
        padding: 0 6px;
    }

    .info-wrapper {
        padding: 0 8px !important;
    }
}
/* ================================================================
   PROFESSIONAL DARK FOOTER - MODERN DESIGN
   ================================================================ */

.professional-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1a202c 50%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 2rem 2rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === FOOTER TOP SECTION === */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
}

/* Logos Section */
.footer-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.12);
}

/* Branding Section */
.footer-branding {
    text-align: center;
    flex-shrink: 0;
}

.footer-branding h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #ffffff 0%, #a8d5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.5;
}

/* Categories Section */
.footer-categories {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}

.category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.category:hover {
    color: #ffffff;
}

.category-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a90e2;
    flex-shrink: 0;
}

/* === FOOTER DIVIDER === */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 2rem 0;
}

/* === FOOTER MIDDLE SECTION === */
.footer-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    gap: 3rem;
}

.footer-center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-nav a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a90e2;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4a90e2;
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.social-icon i {
    font-size: 1.1rem;
}

/* === FOOTER BOTTOM SECTION === */
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-logos-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal .divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 300;
    margin-top: 0.5rem;
}

/* === RESPONSIVE FOOTER === */
@media (max-width: 1200px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-logos {
        justify-content: center;
        width: 100%;
    }

    .footer-categories {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-middle {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 1.5rem 0;
    }

    .footer-nav {
        justify-content: center;
        width: 100%;
    }

    .footer-socials {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .professional-footer {
        padding: 2.5rem 1.5rem 2rem;
        margin-top: 0;
    }

    .footer-container {
        padding: 0 12px;
    }

    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-logos {
        justify-content: center;
        gap: 1rem;
    }

    .footer-logo-img {
        width: 48px;
        height: 48px;
    }

    .footer-branding h3 {
        font-size: 1.3rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-categories {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .category {
        font-size: 0.85rem;
    }

    .footer-divider {
        margin: 1.5rem 0;
    }

    .footer-middle {
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 1.5rem;
    }

    .footer-nav {
        gap: 1.5rem;
        justify-content: center;
        width: 100%;
        font-size: 0.9rem;
    }

    .footer-socials {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .footer-legal {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    .footer-legal .divider {
        display: inline;
    }

    .footer-copyright {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .professional-footer {
        padding: 2rem 1rem 1.5rem;
        margin-top: 0;
    }

    .footer-branding h3 {
        font-size: 1.1rem;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    .footer-nav {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon i {
        font-size: 0.95rem;
    }

    .footer-legal a {
        font-size: 0.75rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .category {
        font-size: 0.8rem;
    }
}

/* ===== SKILL BARS FINAL FIX - FORCE VISIBILITY ===== */
#skills-learned .skill-bar {
    height: 10px !important;
    background-color: #f3f4f6 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    position: relative !important;
    display: block !important;
}

#skills-learned .skill-bar .skill-level {
    height: 100% !important;
    border-radius: 10px !important;
    display: block !important;
    position: relative !important;
}

#skills-learned .skill-bar .skill-level.gradient-great {
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 30%, #3b82f6 70%, #60a5fa 100%) !important;
}

#skills-learned .skill-bar .skill-level.gradient-good {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 40%, #3b82f6 70%, #60a5fa 100%) !important;
}

#skills-learned .skill-bar .skill-level.gradient-average {
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 50%, #93c5fd 100%) !important;
}