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

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%;
}

.content {
    padding: 2rem 0;
}

.hero-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
    color: rgb(80, 74, 74);
    max-width: 1200px;
    margin: 0 auto;
}

.pierre-photo {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}



.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3rem;
    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;
}

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

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    text-align: center;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-height: 0;
}

.project-card {
    display: flex;
    justify-content: center;
}


/* Card Style */
.card {
  --main-color: #323232;
  --sub-color: #5b5b5b;
  --bg-color: #c7c7c7;
  --accent-color: #242C88;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: 350px;
  padding: 30px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--bg-color);
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0px 0px 5px -1.5px #000;
}

.card::before {
  content: '';
  width: 99%;
  height: 99%;
  background: var(--sub-color);
  position: absolute;
  z-index: -1;
  top: 1px;
  left: 1px;
  border-radius: 25px;
  transition: all 0.3s;
}

.card__wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
}

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

.card__title {
  color: var(--main-color);
  font-weight: 900;
  font-size: 25px;
}

.card__subtitle {
  color: var(--sub-color);
  font-weight: 600;
  font-size: 20px;
}

.card__icon {
  width: 60px;
  height: 200px;
  transform: rotate(-45deg);
  transition: all 0.3s;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__icon g {
  fill: var(--main-color);
}

.card__icon circle, polyline, line {
  stroke: var(--main-color);
}

.card:hover .card__icon {
  transform: rotate(0);
}

.card:hover .card__icon circle, .card:hover .card__icon polyline, .card:hover .card__icon line {
  stroke: var(--accent-color);
}

.card:hover .card__icon g {
  fill: var(--accent-color);
}

.card:hover {
  box-shadow: 0px 0px 20px -5px #000;
}

.card:hover::before {
  transform: rotate(10deg);
  box-shadow: 0px 0px 20px -5px #000;
}

/* Footer Styles */
footer {
    background-color: #ccccd1;
    padding: 2rem;
    margin-top: 4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9rem;
    padding-left: 10%;
}

.snakeImg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 0 175px;
    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;
  
}

/* Project Description Styles */
.project-description {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.project-description p {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
    margin: 0;
}

.project-description img {
    flex: 0 0 400px;
    width: 400px;
    height: 300px;
    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);
}

/* 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;
    }
}

/* Projects Container */
.projects-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Project Navigation Styles */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #313b66 0%, #2c2236 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 10;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #3b3442 0%, #363947 100%);
}

.nav-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: scale(1.1);
}

.prev-btn:hover i {
    transform: translateX(-3px) scale(1.1);
}

.next-btn:hover i {
    transform: translateX(3px) scale(1.1);
}

/* Project cycling styles */
.project-item {
    flex: 0 0 350px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
}

.project-item.hidden {
    display: none !important;
    opacity: 0;
    transform: translateX(50px);
    pointer-events: none;
    width: 0;
    margin: 0;
    padding: 0;
}

/* Button positioning */
.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.projects-grid {
    flex: 1;
    margin: 0;
}

/* Mobile carousel - show only one project at a time */
@media (max-width: 768px) {
    .projects-container {
        position: relative;
        max-width: 100%;
        overflow: hidden;
    }
    
    .projects-grid {
        display: flex;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        width: 100%;
    }
    
    .project-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    .project-item.hidden {
        display: none !important;
    }
    
    .nav-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        background: linear-gradient(135deg, #313b66 0%, #2c2236 100%);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .nav-btn:hover {
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
        transform: translateY(-50%) scale(1.05);
    }
    
    /* Ensure cards are properly sized for mobile */
    .card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Mobile-specific project section adjustments */
    .projects-section {
        padding: 2rem 0;
    }
    
    .projects-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Ensure navigation buttons are always visible on mobile */
    .nav-btn {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }
    
    /* Add some padding to prevent buttons from overlapping content */
    .projects-container {
        padding: 0 80px;
    }
}

/* Additional mobile breakpoint for smaller screens */
@media (max-width: 480px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .projects-container {
        padding: 0 60px;
    }
    
    .card {
        max-width: 280px;
        padding: 20px;
    }
    
    .card__title {
        font-size: 20px;
    }
}

/* SVG Styles for the second card */
.st1 {
  fill: #fff
}

.st2 {
  fill: none;
  stroke: #242c88;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10
}

.st7 {
  fill: #589fff
}

.st9 {
  fill: #bc8d66
}

.st15,.st16 {
  opacity: .4;
  fill: #242c88
}

.st16 {
  opacity: .2
}

.st18 {
  fill: #ffc408
}

.st53 {
  fill: none;
  stroke: #19191d;
  stroke-width: 1.848;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10
}

@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;
    }
}
