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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #f8f8f8;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: #333;
}

h1 {
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
}

h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

h3 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: #333333;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: #666666;
}

/* Desktop Navigation - List Style */
.desktop-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    cursor: grab;
    user-select: none;
    transition: transform 0.1s ease;
    will-change: transform;
    min-width: 250px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.desktop-nav:active {
    cursor: grabbing;
}

.nav-list-container {
    padding: 0;
}

.nav-list-vertical {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list-vertical li {
    border-bottom: none;
}

.nav-list-vertical li:last-child {
    border-bottom: none;
}

.nav-list-vertical a {
    display: block;
    padding: 16px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Light gray hover colors for menu items */
.nav-list-vertical li:nth-child(1) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(2) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(3) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(4) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(5) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(6) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(7) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(8) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical li:nth-child(9) a:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-list-vertical a:active {
    background: #e0e0e0;
    color: #333333;
}

/* Custom text selection color */
::selection {
    background: #0066cc;
    color: #ffffff;
}

::-moz-selection {
    background: #0066cc;
    color: #ffffff;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav {
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Mobile logo adjustments - reduce font size by 20% and change to thin weight */
@media (max-width: 1024px) {
    .logo h1 {
        font-size: 16px; /* 20px * 0.8 = 16px (20% reduction) */
        font-weight: 300; /* Changed from 600 to 300 (thin) */
    }
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.logo a:hover {
    color: #666666;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    background: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-weight: 500;
    color: #333333;
}

.menu-toggle:hover {
    background: #f0f0f0;
    color: #333333;
}

.nav-menu {
    display: none;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    display: block;
}

.nav-list {
    list-style: none;
    padding: 1rem 2rem;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    font-weight: 500;
    font-size: 12px;
    color: #333333;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #666666;
}

/* Hero Section */
.hero {
    background: #000000;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Default hero text color */
.hero h2,
.hero p {
    color: #ffffff;
}

/* Hero Section with Video Background */
.hero:has(.hero-video) {
    background: transparent;
}

/* Hero Section with Image Background */
.hero:has(.hero-background) {
    background: transparent;
}

.hero:has(.hero-background) h2,
.hero:has(.hero-background) p {
    color: #000000;
}

/* Hero Section with White Background for Zeichnungen page */
.hero.white-bg {
    background: #ffffff;
}

.hero.white-bg h2,
.hero.white-bg p {
    color: #000000;
}

/* Hero Section with Video Background - White Text */
.hero:has(.hero-video) h2,
.hero:has(.hero-video) p {
    color: #ffffff;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    min-width: 100%;
    min-height: 100%;
    /* Hide video controls on mobile */
    -webkit-media-controls: none;
    -webkit-media-controls-panel: none;
    -webkit-media-controls-play-button: none;
    -webkit-media-controls-start-playback-button: none;
}

/* iPhone and iOS specific styles */
@supports (-webkit-touch-callout: none) {
    .carousel-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .slide-image {
        height: 350px;
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .slide-caption {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* iPhone specific image sizing */
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    
    /* iPhone modal centering - only when modal is active */
    .image-modal.active {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80vh;
        width: auto;
        height: auto;
        object-fit: contain !important;
        margin: 0 auto;
    }
    
    /* Fix for iPhone viewport */
    .carousel-container {
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .slide-image {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iPhone 14 Pro Max, 15 Pro Max - 430px width */
@media only screen and (max-width: 430px) and (-webkit-device-pixel-ratio: 3) {
    .slide-image {
        height: 320px;
    }
    
    .carousel-container {
        margin: 0 auto 1rem auto;
        max-width: 95%;
    }
}

/* iPhone 14 Pro, 15 Pro - 393px width */
@media only screen and (max-width: 393px) and (-webkit-device-pixel-ratio: 3) {
    .slide-image {
        height: 310px;
    }
    
    .carousel-container {
        margin: 0 auto 1rem auto;
        max-width: 95%;
    }
}

/* iPhone 14, 15 - 390px width */
@media only screen and (max-width: 390px) and (-webkit-device-pixel-ratio: 2) {
    .slide-image {
        height: 300px;
    }
    
    .carousel-container {
        margin: 0 auto 1rem auto;
        max-width: 95%;
    }
}

/* iPhone SE, 12 mini, 13 mini - 375px width */
@media only screen and (max-width: 375px) and (-webkit-device-pixel-ratio: 2) {
    .slide-image {
        height: 280px;
    }
    
    .carousel-container {
        margin: 0 auto 1rem auto;
        max-width: 95%;
    }
}

/* Additional mobile video optimizations */
@media (max-width: 768px) {
    .hero-video {
        /* Force hardware acceleration */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Prevent video controls from showing */
        pointer-events: none;
    }
    
    .hero-video::-webkit-media-controls {
        display: none !important;
    }
    
    .hero-video::-webkit-media-controls-panel {
        display: none !important;
    }
    
    .hero-video::-webkit-media-controls-play-button {
        display: none !important;
    }
    
    .hero-video::-webkit-media-controls-start-playback-button {
        display: none !important;
    }
    
    /* Better carousel image sizing on mobile */
    .carousel-container {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .slide-image {
        height: 250px;
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    
    .slide-caption {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    min-width: 100%;
    min-height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 41px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}



/* About Section */
.about {
    padding: 80px 0;
    background: #f0f0f0;
    position: relative;
    z-index: 1;
}

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

.about-text h2 {
    font-size: 27px;
    margin-bottom: 1.5rem;
    color: #333333;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #333333;
    font-weight: 400;
}

.education h3 {
    font-size: 15px;
    color: #333333;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.education p {
    color: #333333;
    font-size: 11px;
    margin: 0;
    font-weight: 400;
}

/* About visual styles with profile image */
.about-visual {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-image {
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
}

.about-details h3 {
    font-size: 17px;
    margin-bottom: 0.5rem;
    color: #333333;
    font-weight: 500;
}

.about-details p {
    color: #333333;
    font-size: 12px;
    margin: 0 0 0.25rem 0;
}

/* Contact Section - Simplified */
.contact {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #333333;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-left,
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 12px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-2px);
}

.contact-details h3, .contact-details h4 {
    margin-bottom: 0.5rem;
    color: #333333;
    font-weight: 500;
}

.contact-details p {
    color: #333333;
    font-size: 12px;
    margin: 0;
}

.contact-title {
    color: #333333 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

.contact-details a {
    color: #4a9eff;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: #66b3ff;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: #f0f0f0;
    position: relative;
    z-index: 1;
}

.skills h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #333333;
}

.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skills-column {
    flex: 1;
    text-align: center;
}

.skills-column h3 {
    font-size: 16px;
    margin-bottom: 1.5rem;
    color: #333333;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    color: #333333;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 0.8rem;
    text-align: left;
    padding-left: 1rem;
    position: relative;
}

.skills-list li:before {
    content: "•";
    color: #333333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #333333;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
    border-top: 8px solid #ffffff;
}

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

.footer-content p {
    color: #333333;
    font-size: 11px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #333333;
    transition: color 0.2s ease;
    font-size: 11px;
    font-weight: 400;
}

.footer-links a:hover {
    color: #666666;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .hero {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .categories-grid {
        max-width: 100%;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem;
}
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 31px;
    }
    

    
    .contact-info {
        flex-direction: column;
        gap: 2rem;
        max-width: 600px;
    }
    
    .contact-left,
    .contact-right {
        gap: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .desktop-nav {
        top: 10px;
        left: 10px;
        padding: 0;
        min-width: 250px;
    }
    
    .nav-list-vertical a {
        padding: 12px 15px;
        font-size: 10px;
    }
    
    .about h2,
    .contact h2 {
        font-size: 20px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}



/* Hover effects for interactive elements */
button, .social-icon {
    cursor: pointer;
    transition: all 0.2s ease;
}

button:active, .social-icon:active {
    transform: scale(0.95);
}

/* Additional desktop navigation styles */
@media (min-width: 1025px) {
    .desktop-nav {
        animation: slideInLeft 0.8s ease-out;
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Project Categories with Carousels */
.project-categories {
    padding: 80px 0;
    background: #f8f8f8;
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 100%;
    margin: 0 auto;
}

.category-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-block h3 {
    font-size: 20px;
    margin-bottom: 1.5rem;
    color: #333333;
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.01em;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    margin-bottom: 1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

/* Responsive image adjustments */
.slide-image img,
.slide-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
    display: block;
}

/* Ensure images are properly sized on mobile */
@media (max-width: 768px) {
    .slide-image {
        height: 250px;
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slide-image img,
    .slide-image video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }
    
    .categories-grid {
        max-width: 100%;
        gap: 2rem;
    }
    
    .category-block {
        padding: 1.5rem;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
        background: rgba(128, 128, 128, 0.2);
        border: none;
        color: rgba(0, 0, 0, 0.6);
    }
}

@media (max-width: 480px) {
    .slide-image {
        height: 300px;
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .slide-image img,
    .slide-image video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: transform 0.2s ease;
        display: block;
    }
    
    .categories-grid {
        max-width: 100%;
        gap: 1.5rem;
    }
    
    .category-block {
        padding: 1rem;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        background: rgba(128, 128, 128, 0.2);
        border: none;
        color: rgba(0, 0, 0, 0.6);
    }
}

.slide-image img,
.slide-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
    display: block;
}

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

.slide-caption {
    padding: 1.5rem 0;
    text-align: center;
    background: transparent;
}

.slide-caption h4 {
    font-size: 16px;
    margin-bottom: 0.5rem;
    color: #333333;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.slide-caption p {
    color: #333333;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Responsive adjustments for carousels */
@media (max-width: 1024px) {
    .categories-grid {
        max-width: 100%;
        gap: 3rem;
    }
    
    .slide-caption {
        padding: 1.5rem 0;
    }
}



/* Fullscreen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Large screen optimization */
@media (min-width: 1920px) {
    .modal-content {
        width: 1920px;
        height: 1080px;
        max-width: 90%;
        max-height: 85%;
    }
}

.modal-content {
    max-width: 95%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Desktop modal content - elegant padding with proper image filling */
@media (min-width: 1025px) {
    .image-modal {
        padding: 50px 20px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        object-fit: cover;
        max-width: 90%;
        max-height: 80vh;
        width: auto;
        height: auto;
        border-radius: 8px;
    }
    
    /* Desktop carousel images - fill the container */
    .slide-image img,
    .slide-image video {
        object-fit: cover !important;
    }
}

.modal-caption {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    margin-bottom: 0.8rem;
}

.modal-caption h4 {
    font-size: 19.2px;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.modal-caption p {
    color: #333333;
    font-size: 12.8px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

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

.close-modal:hover {
    color: #666666;
}

/* Modal Navigation Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128, 128, 128, 0.3);
    border: none;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.modal-nav-btn:hover {
    background: rgba(128, 128, 128, 0.5);
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.modal-nav-btn.prev {
    left: 30px;
}

.modal-nav-btn.next {
    right: 30px;
}

/* Make carousel images clickable */
.slide-image img {
    cursor: pointer;
}

/* Responsive Skills Section */
@media (max-width: 1024px) {
    .skills-container {
        flex-direction: column;
        gap: 2rem;
        max-width: 600px;
    }
    
    .skills-column {
        text-align: center;
    }
    
    .skills-list li {
        text-align: center;
        padding-left: 0;
    }
    
    .skills-list li:before {
        display: none;
    }
}

@media (max-width: 768px) {
    .skills-container {
        gap: 1.5rem;
    }
    
    .skills-column h3 {
        font-size: 15px;
        margin-bottom: 1rem;
    }
    
    .skills-list li {
        font-size: 11px;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 480px) {
    .skills-container {
        gap: 1rem;
    }
    
    .skills-column h3 {
        font-size: 14px;
        margin-bottom: 0.8rem;
    }
    
    .skills-list li {
        font-size: 10px;
        margin-bottom: 0.5rem;
    }
}

/* Responsive modal adjustments */
@media (max-width: 1024px) {
    .image-modal {
        padding: 50px 15px 15px 15px;
    }
    
    .modal-content {
        max-width: 98%;
        max-height: 75vh;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .image-modal {
        padding: 20px 10px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        max-width: 90%;
        max-height: 70vh;
        width: auto;
        height: auto;
        object-fit: contain !important;
        margin: 0 auto;
    }
    
    .modal-caption {
        margin-top: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 0.6rem;
    }
    
    .modal-caption h4 {
        font-size: 16px;
    }
    
    .modal-caption p {
        font-size: 11.2px;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
    
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 28px;
        background: rgba(128, 128, 128, 0.3);
        border-radius: 50%;
        color: white;
        border: none;
    }
    
    .modal-nav-btn:hover {
        background: rgba(128, 128, 128, 0.5);
    }
    
    .modal-nav-btn.prev {
        left: 15px;
    }
    
    .modal-nav-btn.next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .image-modal {
        padding: 10px 5px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 65vh;
        width: auto;
        height: auto;
        object-fit: contain !important;
        margin: 0 auto;
    }
    
    .modal-caption {
        margin-top: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 0.4rem;
    }
    
    .modal-caption h4 {
        font-size: 14.4px;
    }
    
    .modal-caption p {
        font-size: 9.6px;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-nav-btn {
        width: 55px;
        height: 55px;
        font-size: 30px;
        background: rgba(128, 128, 128, 0.3);
        border-radius: 50%;
        color: white;
        border: none;
    }
    
    .modal-nav-btn:active {
        background: rgba(128, 128, 128, 0.5);
        transform: scale(0.95);
    }
    
    .modal-nav-btn.prev {
        left: 10px;
    }
    
    .modal-nav-btn.next {
        right: 10px;
    }
}

.pinterest-gallery {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.pinterest-grid {
    columns: 4;
    column-gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.pinterest-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.pinterest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pinterest-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    max-width: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .pinterest-grid {
        columns: 3;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .pinterest-grid {
        columns: 2;
        column-gap: 15px;
        max-width: 95%;
    }
    
    .pinterest-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .pinterest-grid {
        columns: 1;
        max-width: 95%;
    }
}