/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #4a90e2;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e6ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

/* ========================================
   BASE STYLES
   ======================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

body.modal-open {
    overflow: hidden;
}

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

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
    
.nav-brand:hover {
    border-bottom-color: currentColor;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   HEADER SECTION
   ======================================== */
header {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f0f4f8 100%);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.contact-info h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-details span {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details span::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero {
    background: var(--bg-white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Project Hero Enhancements */
.project-hero {
    margin-top: 60px;
    padding: 40px 0 60px;
    background: linear-gradient(135deg, var(--bg-white) 0%, #f8fafb 100%);
    border-bottom: 2px solid var(--border-color);
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--secondary-color);
}

.breadcrumb-separator {
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Project Badge */
.project-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10px 10px 10px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.project-badge.large {
    padding: 12px 12px 12px 28px;
    border-radius: 18px;
}

.project-badge.large .badge-text {
    font-size: 16px;
}

.project-badge.large .badge-logo {
    width: 55px;
    height: 55px;
    border-radius: 12px;
}

.project-badge.large .badge-logo-img {
    width: 42px;
    height: 42px;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
}

.badge-text {
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-logo {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.badge-logo.icon-fallback {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
}

.badge-logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.badge-logo-img.loaded {
    opacity: 1;
}

.badge-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.badge-loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.badge-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.badge-logo-img.loaded~.badge-logo::before {
    animation: none;
    display: none;
}

.project-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.project-tagline {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 1000px;
    align-items: center;
    align-content: center;
}

/* Hero Stats Bar */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 10px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    justify-items: center;
}

.meta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
}

.meta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Call to Action */
.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.cta-arrow {
    animation: bounce 2s infinite;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ========================================
   COMPANY SUMMARY SECTION
   ======================================== */
.company-summary {
    background: var(--bg-light);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.company-summary .container {
    text-align: center;
    max-width: 800px;
}

.company-summary h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.company-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.company-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.highlight-item {
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 500px;
    min-width: 180px;
    max-width: 250px;
}

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

.highlight-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.highlight-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.highlight-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Key Focus Pills */
.focus-areas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.focus-pill {
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

/* ========================================
   PROJECT CONTEXT SECTION
   ======================================== */
.project-context-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-white);
    border-left: 4px solid var(--secondary-color);
    border-radius: 12px;
    margin-bottom: 30px;
    margin-top: 40px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-left: auto;
    margin-right: auto;
}

.project-context {
    padding: 30px;
}

.project-context h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-context p {
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.context-contact-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

.contact-icon {
    font-size: 14px;
    opacity: 0.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-label {
    color: var(--text-light);
    font-size: 12px;
}

.contact-value {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--secondary-color);
}

.contact-separator {
    color: var(--text-light);
    opacity: 0.3;
    font-size: 12px;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.section {
    padding: 60px 0;
    background: var(--bg-white);
    margin-bottom: 2px;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-header {
    margin-bottom: 40px;
}

.section-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.section h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-left: 55px;
}

/* Challenge & Approach Grid */
.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.challenge-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.challenge-card h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-icon {
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.challenge-card ul {
    list-style: none;
}

.challenge-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.8;
}

.challenge-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.result-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
}

.result-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.result-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   TECHNOLOGY SECTIONS
   ======================================== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.tech-badge {
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tech-category {
    margin-top: 30px;
}

.tech-category h5 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-showcase {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    text-align: left;
}

.tech-showcase h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-category-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    background: var(--bg-white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

/* ========================================
   MEDIA SECTIONS (VIDEO & IMAGES)
   ======================================== */
.video-showcase {
    margin: 40px 0;
    text-align: center;
}

.video-showcase h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.video-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e6ed 0%, #f0f4f8 100%);
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.lazy-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-video.loaded {
    opacity: 1;
}

.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.video-loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.image-container {
    margin: 0;
    position: relative;
}

.image-container figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

.lazy-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e6ed 0%, #f0f4f8 100%);
    border-radius: 12px;
    min-height: 200px;
    transition: transform 0.3s ease;
}

.lazy-image-wrapper:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    aspect-ratio: 16/10;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.5s ease-in-out;
}

.project-image:hover {
    transform: scale(1.05);
}

.project-image.lazy {
    opacity: 0;
}

.project-image.loaded {
    opacity: 1;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   ARTICLE LINK SECTION
   ======================================== */
.article-link-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.article-link-card {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 30px;
}

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

.article-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 12px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.article-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-link-btn:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.link-arrow {
    transition: transform 0.3s ease;
}

.article-link-btn:hover .link-arrow {
    transform: translateX(3px);
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    font-size: 16px;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10000;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE NAVBAR
   ======================================== */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        padding: 10px 15px;
    }

    .navbar {
        position: relative;
        margin-bottom: -100px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin: 10px 0;
        width: 100%;
    }

    .nav-link {
        font-size: 14px;
        padding: 5px 0;
    }

    .nav-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .nav-contact-item {
        font-size: 12px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
    }

    .hero h2 {
        font-size: 28px;
    }

    .challenge-grid {
        grid-template-columns: 1fr;
    }

    .section h3 {
        font-size: 24px;
    }

    .project-meta {
        gap: 20px;
    }

    .company-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .company-intro {
        font-size: 16px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        margin-top: 20px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-tagline {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
    }

    .tech-category-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta {
        flex-direction: column;
    }

    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .article-link-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .article-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 14px;
    }

    .context-contact-bar {
        flex-wrap: wrap;
        padding: 10px 20px;
        gap: 8px;
    }

    .contact-separator {
        display: none;
    }

    .contact-item {
        flex-basis: 100%;
    }

    .modal-content {
        max-width: 100%;
        max-height: 80vh;
    }

    .modal-prev,
    .modal-next {
        font-size: 20px;
        padding: 5px 10px;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
    }

    .nav-contact {
        flex-direction: column;
        gap: 5px;
    }

    .nav-brand {
        font-size: 20px;
        text-align: center;
        width: 100%;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .focus-areas {
        gap: 10px;
    }

    .company-summary h3 {
        font-size: 20px;
    }

    .company-intro {
        font-size: 15px;
    }

    .focus-pill {
        font-size: 12px;
        padding: 6px 15px;
    }

    .tech-badge {
        padding: 8px 16px;
        font-size: 12px;
    }

    .result-number {
        font-size: 28px;
    }

    .project-badge {
        padding: 8px 8px 8px 20px;
        border-radius: 14px;
    }

    .badge-text {
        font-size: 13px;
    }

    .badge-logo {
        width: 40px;
        height: 40px;
    }

    .badge-logo-img {
        width: 30px;
        height: 30px;
    }

    .article-link-card {
        padding: 20px;
    }

    .article-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .article-content h3 {
        font-size: 18px;
    }

    .article-link-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}