/* ==================== 
   Global Styles 
   ==================== */

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

:root {
    --header-height: 105px;
    --section-gap: 120px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #161616;
    background-image: url('../3_images/paysage2.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
}

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

a {
    display: inline-block;
    position: relative;
    color: #81D31A;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

a:hover {
    color: #FF5532;
}

a:hover::after {
    width: 100%;
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.452);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    text-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.3),
        0 1px 1px rgba(255, 255, 255, 0.24),
        0 0 10px rgba(255, 255, 255, 0.24),
        0 0 22px rgba(255, 255, 255, 0.2);
}



/* ==================== 
   Header / Navigation 
   ==================== */

.header {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;
}

.logo .tagline {
    font-size: 12px;
    letter-spacing: 3px;
    color: #e2e2e2;
    margin-top: 0px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #81D31A;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-toggle-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle-icon path {
    transition: stroke 0.3s ease;
}

.header.menu-open .nav-toggle-icon {
    transform: rotate(90deg);
}

/* ==================== 
   Hero Section 
   ==================== */

.hero {
    padding: 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    margin: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(800px, calc(100% - 100px));
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    padding: 16px 24px;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 30px;
}

/* ==================== 
   CTA Button 
   ==================== */

.cta-button {
    background-color: #81D31A;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #FF5532;
}

.cv-link,
.cv-link:visited,
.cv-link:hover,
.cv-link:active,
.cv-link:focus {
    color: #fff;
    text-decoration: none;
}

.cv-link::after,
.cv-link:hover::after {
    width: 0;
    display: none;
}

/* ==================== 
   About Section 
   ==================== */

.about {
    padding: 40px 0;
    background-color: #2a2a2a;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.about p {
    font-size: 16px;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}


/* ==================== 
   Portfolio Section 
   ==================== */

.portfolio {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: var(--section-gap) 50px 0;
}

.portfolio h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    display: inline-block;
    width: 100%;

}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}



.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    flex-shrink: 0;
}

.portfolio-item h3 {
    padding: 15px 15px 5px 15px;
    font-size: 16px;
    color: #1a1a1a;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.portfolio-item p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-grow: 1;
    overflow: hidden;
}

.portfolio-carousel {
  --swiper-max-width: 520px;
  --swiper-side-clearance: 140px;
  --nav-btn-size: 44px;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.swiper {
  width: min(var(--swiper-max-width), calc(100% - var(--swiper-side-clearance)));
  height: auto;
  margin: 0;
  overflow: visible;
}

.swiper-slide {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  height: auto;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  flex-shrink: 0;
}

.swiper-slide h3 {
  padding: 15px 15px 5px;
  font-size: 16px;
}

.swiper-slide p {
  padding: 0 15px 15px;
  font-size: 14px;
}

.project-card-link {
  color: inherit;
  text-decoration: none;
}

.project-card-link::after {
  display: none;
}

.project-card-link:hover {
  color: inherit;
}

.project-card-link p {
  font-weight: 400;
}

.portfolio-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: var(--nav-btn-size);
  height: var(--nav-btn-size);
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #2D4B09;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.portfolio-prev {
  left: calc((100% - min(var(--swiper-max-width), calc(100% - var(--swiper-side-clearance)))) / 4 - (var(--nav-btn-size) / 2));
}

.portfolio-next {
  right: calc((100% - min(var(--swiper-max-width), calc(100% - var(--swiper-side-clearance)))) / 4 - (var(--nav-btn-size) / 2));
}

.portfolio-nav:hover {
  transform: translateY(calc(-50% - 1px));
  background-color: #81D31A;
  color: #fff;
}

/* ==================== 
   Services Section 
   ==================== */

.services {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: var(--section-gap) 50px 0;
}

.services h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}


/* ==================== 
   Contact Section 
   ==================== */

.contact {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    margin: var(--section-gap) 50px 10px;
    border-radius: 10px;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact > .container > p {
    font-size: 16px;
    color: #e2e2e2;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    align-self: center;

}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2D4B09;
}

.contact-form button {
    align-self: center;
}

/* ==================== 
   Footer 
   ==================== */

.footer {
    background-color: #2a2a2a;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.social-links-footer {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.footer-text {
    margin: 0;
    white-space: nowrap;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.social-links-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #81D31A;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-footer .social-link::after {
    display: none;
}

.social-links-footer .social-link svg {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.social-links-footer .social-link:hover svg {
    color: #FF5532;
    transform: scale(1.2);
}
.email-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
/* ==================== 
   Responsive Design 
   ==================== */

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo {
        justify-content: flex-start;
        margin-bottom: 0;
        gap: 14px;
    }

    .logo-text h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .logo .tagline {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
        margin-top: 0;
    }

    .header.menu-open .nav {
        max-height: 320px;
        opacity: 1;
        margin-top: 10px;
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
        padding: 8px 0 2px;
    }

    .hero-text h2 {
        font-size: 32px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 0;
        min-height: calc(100vh - var(--header-height));
    }

    .social-links-footer {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-text {
        position: static;
        transform: none;
    }

    .social-links-footer .social-link svg {
        width: 25px;
        height: 25px;
    }

    .swiper {
        height: auto;
    }

    .portfolio-carousel {
        --swiper-max-width: 360px;
        --swiper-side-clearance: 108px;
        --nav-btn-size: 38px;
    }

    .portfolio-nav {
        font-size: 22px;
    }
}
