/* ===========================
   COMPONENT STYLES
   =========================== */

/* ===========================
   BUTTONS & CTA
   =========================== */

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 2.5s forwards;
}

.cta-buttons .hero-social-links {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-bg);
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-color);
}

/* ===========================
   SOCIAL LINKS
   =========================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-5px);
}

.hero-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-buttons .hero-social-links {
    margin-top: 0;
    margin-left: 1rem;
    gap: 1rem;
}

.hero-social {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
    backdrop-filter: blur(10px);
}

.hero-social:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

/* ===========================
   ABOUT SECTION
   =========================== */

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

.about-image {
    position: relative;
    transform: scale(1.4);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    z-index: -1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

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

.about-text p:last-child {
    margin-bottom: 0;
}

/* ===========================
   SKILLS GRID
   =========================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
}

.skill-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ===========================
   PROJECTS SECTION
   =========================== */

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

.project-card {
    background: var(--secondary-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    display: none; /* Hidden by default until loaded */
}

/* Video loaded state */
.project-image video[style*="display: block"] {
    display: block !important;
}

/* Hover effects - work with or without video */
.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Video hover effects only when video is present and loaded */
.project-card:hover .project-image video[style*="display: block"] {
    opacity: 1;
}

.project-card:hover .project-image video[style*="display: block"] + img {
    opacity: 0.3;
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    flex: 1;
    min-height: 3em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

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

.project-link:hover {
    color: var(--text-primary);
}

/* ===========================
   CONTACT SECTION
   =========================== */

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

.contact-info {
    background: var(--secondary-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-bg);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--secondary-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--secondary-bg);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===========================
   MODALS
   =========================== */

.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
}

.project-modal.active {
    display: block;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--secondary-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-header {
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.modal-body {
    display: grid;
    gap: 3rem;
}

.modal-video {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 0; /* Collapse when empty */
    transition: all 0.3s ease;
}

/* Hide modal-video container when video fails to load */
.modal-video:has(video[style*="display: none"]) {
    display: none;
}

/* Smooth removal of video containers */
.modal-video:empty {
    display: none !important;
    margin: 0 !important;
    height: 0 !important;
}

.modal-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #000; /* Black background during loading */
    min-height: 200px; /* Minimum height while loading */
}

/* When video loads successfully */
.modal-video video[style*="display: block"] {
    min-height: auto;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-description p {
    margin-bottom: 1.5rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

.modal-description p {
    margin-bottom: 1.5rem;
}

/* Images in modal descriptions */
.modal-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.modal-description img:hover {
    transform: scale(1.02);
}

/* Responsive image sizing for mobile */
@media (max-width: 768px) {
    .modal-description img {
        float: none !important;
        display: block;
        margin: 15px auto !important;
        width: 100% !important;
        max-width: 300px;
    }
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.modal-video {
    width: 100%;
    border-radius: 15px;
    margin: 2rem 0;
}

/* ===========================
   SPECIAL ELEMENTS
   =========================== */

.konami-hint {
    transition: opacity 0.3s ease, color 0.3s ease;
    cursor: help;
}

.konami-hint:hover {
    opacity: 0.7 !important;
    color: var(--accent-color) !important;
}

/* ===========================
   PROJECT HIGHLIGHTING SYSTEM
   =========================== */

.project-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0 2rem 0;
    flex-wrap: wrap;
    text-align: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.filter-info {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* Clickable Skill Cards */
.clickable-skill {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-skill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
}

.clickable-skill.active {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.clickable-skill.active .skill-icon i {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

/* Project Card Highlighting - Much Lighter Effect */
.project-card {
    transition: all 0.4s ease;
    position: relative;
}

.project-card.highlighted {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.project-card.highlighted .project-title {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.project-card.highlighted .tech-tag {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.4);
}

.project-card.dimmed {
    opacity: 0.5;
    filter: grayscale(0.2);
}

/* Tech Tags - Enhanced Styling */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* ===========================
   SECTION INDICATOR
   =========================== */

.section-indicator {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
    opacity: 0;
    animation: fadeInIndicator 1s ease-out 0.5s forwards;
}

@keyframes fadeInIndicator {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.indicator-item {
    position: relative;
    display: flex;
    align-items: center;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.indicator-dot {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    transform-origin: center;
}

.indicator-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    margin-left: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left center;
}

.indicator-label {
    margin-left: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    pointer-events: none;
}

/* Active State - Snap Animation */
.indicator-item.active {
    animation: snapToActive 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes snapToActive {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.indicator-item.active .indicator-dot {
    background: rgba(255, 255, 255, 0.85);
    height: 24px;
    width: 4px;
    border-radius: 2px;
}

.indicator-item.active .indicator-line {
    width: clamp(20px, 4vw, 32px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 100%);
}

/* Transitioning State */
.indicator-item.transitioning .indicator-dot {
    background: rgba(255, 255, 255, 0.5);
    height: 20px;
    width: 3px;
}

.indicator-item.transitioning .indicator-line {
    width: clamp(12px, 2.5vw, 20px);
}

/* Brief Show Animation - Snap Effect */
.indicator-item.brief-show {
    animation: briefSnap 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes briefSnap {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Remove automatic label showing - only show on hover */
.indicator-item.brief-show .indicator-label {
    opacity: 0;
    transform: translateX(-8px);
}

.indicator-item.brief-show .indicator-line {
    width: clamp(24px, 5vw, 40px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.indicator-item.brief-show .indicator-dot {
    height: 28px;
    width: 4px;
    background: rgba(255, 255, 255, 0.95);
}

/* Brief Hide Animation */
.indicator-item.brief-hide .indicator-label {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.indicator-item.brief-hide .indicator-line {
    width: clamp(20px, 4vw, 32px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.indicator-item.brief-hide .indicator-dot {
    height: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Hover Effects - Only way to see labels */
.indicator-item:hover .indicator-dot {
    background: rgba(255, 255, 255, 0.7);
    height: 22px;
    width: 4px;
}

.indicator-item:hover .indicator-line {
    width: clamp(18px, 3.5vw, 28px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.indicator-item:hover .indicator-label {
    opacity: 0.9;
    transform: translateX(0);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-indicator {
        left: 16px;
        gap: 14px;
    }
    
    .indicator-label {
        display: none; /* Hide text labels on mobile */
    }
    
    .indicator-line {
        display: none; /* Hide lines on mobile */
    }
    
    .indicator-dot {
        width: 2px;
        height: 14px;
    }
    
    .indicator-item.active .indicator-dot {
        width: 3px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .section-indicator {
        left: 12px;
        gap: 12px;
    }
    
    .indicator-label {
        display: none; /* Hide text labels on small mobile */
    }
    
    .indicator-line {
        display: none; /* Hide lines on small mobile */
    }
    
    .indicator-dot {
        width: 2px;
        height: 12px;
    }
    
    .indicator-item.active .indicator-dot {
        width: 3px;
        height: 18px;
    }
    
    .indicator-label {
        font-size: 11px;
    }
}

/* ===========================
   PROJECT SLIDESHOW STYLES
   =========================== */

.project-slideshow {
    margin: 2rem 0;
    background: rgba(18, 18, 18, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    text-align: center;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-primary);
    padding: 1.5rem 1rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.prev-slide, .next-slide {
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-color);
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(0, 255, 255, 0.4);
    transform: scale(1.1);
}

.slide-indicators {
    text-align: center;
    margin-top: 1rem;
}

.slide-indicators .indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicators .indicator.active,
.slide-indicators .indicator:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Project Content Enhancements */
.tech-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-item {
    background: rgba(18, 18, 18, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
}

.tech-item img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.awards-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    background: rgba(18, 18, 18, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.award-image {
    flex: 1;
    max-width: 300px;
    border-radius: 8px;
}

.award-text {
    flex: 2;
}

.presentation-section {
    text-align: center;
    margin: 2rem 0;
    background: rgba(18, 18, 18, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.presentation-image {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.presentation-caption {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile Responsiveness for Slideshow */
@media (max-width: 768px) {
    .slide img {
        height: 250px;
    }
    
    .awards-section {
        flex-direction: column;
        text-align: center;
    }
    
    .slideshow-controls {
        padding: 0 0.5rem;
    }
    
    .prev-slide, .next-slide {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }
}

/* ===========================
   IMAGE LIGHTBOX SYSTEM
   =========================== */

.image-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* Clickable project images */
.project-image-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-image-clickable::after {
    content: '🔍';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.project-image-clickable:hover::after {
    opacity: 1;
}

.project-image-clickable:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* PowerPoint Embed Styles */
.powerpoint-embed {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    margin: 1rem 0;
}

.powerpoint-container {
    background: rgba(18, 18, 18, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    margin: 1rem 0;
}

.powerpoint-fallback {
    text-align: center;
    padding: 2rem;
    background: rgba(18, 18, 18, 0.8);
    border-radius: 8px;
    border: 2px dashed rgba(0, 255, 255, 0.3);
}

/* Mobile Responsiveness for Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .lightbox-caption {
        bottom: -40px;
        font-size: 0.8rem;
    }
    
    .powerpoint-embed {
        height: 400px;
    }
}
