
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    min-height: 100vh;
}

/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
} */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.navbar h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #2c3e50;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Project Header Styles */
.project-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #8d94b4 0%, #392f44 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.project-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    animation: slideInDown 1s ease-out;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-header .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-top: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    animation: slideInUp 1s ease-out 0.3s both;
}

.project-header .decorative-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    margin: 2rem auto;
    position: relative;
    z-index: 2;
    animation: expandLine 1s ease-out 0.6s both;
}

/* Floating animation for background */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* Project Description Styles */
.project-description {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 9rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.project-description p {
    flex: 1;
    text-align: left;
    padding: 50px;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.6;
}

.project-description img {
    flex: 0 0 400px;
    width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.project-description img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Project Content Styles */
.project-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.project-content h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    border-radius: 2px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-gallery img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.1), rgba(52, 152, 219, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-gallery img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.project-gallery img:hover::before {
    opacity: 1;
}

/* Individual image styling for variety */
.project-gallery img:nth-child(1) {
    border-radius: 20px 5px 20px 5px;
}

.project-gallery img:nth-child(2) {
    border-radius: 5px 20px 5px 20px;
}

.project-gallery img:nth-child(3) {
    border-radius: 20px;
}

/* Modal/Lightbox Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.5);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Keyboard navigation hint */
.modal-hint {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
}

/* Project Video Styles */
.project-video {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.project-video h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-video h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    border-radius: 2px;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 20px;
}

.video-container:hover::before {
    opacity: 1;
}

/* Video controls styling */



/* Responsive design for project description */
@media (max-width: 768px) {
    .project-description {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .project-description img {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
    
    .project-description p {
        text-align: center;
        font-size: 1.1rem;
        
    }
    
    .project-content {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
    
    .project-content h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-gallery img {
        height: 250px;
    }
    
    /* Modal responsive styles */
    .modal-nav {
        display: none; /* Hide navigation buttons on mobile */
    }
    
    .modal-hint {
        bottom: -40px;
        font-size: 0.8rem;
    }
    
    .modal-close {
        top: -30px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    /* Video responsive styles */
    .project-video {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
    
    .project-video h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .video-container {
        max-width: 100%;
    }
    
    /* Project header responsive styles */
    .project-header {
        padding: 4rem 1rem 3rem;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .project-header .subtitle {
        font-size: 1.1rem;
    }
}





/* Footer Styles */
footer {
    background-color: #ccccd1;
    padding: 2rem;
    margin-top: 4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding-left: 10%;
}

.snakeImg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 0 8rem;
    max-width: 40%;
}

.snakeImg img {
    max-width: 130px;
    height: auto;
    border-radius: 8px;
}

.footer-content {
    flex: 1;
    text-align: left;
    padding: 2rem;
    max-width: 40%;
}

.footer-content h2 {
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;

}

.contact-intro {
    color: #000000;
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    line-height: 1.6;
   
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-links p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: #000000;
   
}

.contact-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-weight: 500;
  
}

.contact-links a:hover {
    color: #363452;
    transform: translateY(-2px);
}

.copyright {
    color: #000000;
    font-size: 0.9rem;
    margin-top: 2rem;
  
}





@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .logo {
        height: 80px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .pierre-photo {
        width: 250px;
        height: 320px;
    }

    .hero-section h2 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .projects-section h2 {
        font-size: 2rem;
    }

    footer {
        flex-direction: column;
        padding-left: 5%;
        gap: 2rem;
        min-height: auto;
    }

    .snakeImg {
        max-width: 100%;
        justify-content: center;
        padding: 0;
    }

    .footer-content {
        max-width: 100%;
        text-align: center;
    }

    .contact-links {
        align-items: center;
    }

    .contact-links p {
        justify-content: center;
    }
}