/* GLOBAL STYLES */
* {
  /*outline: 1px solid red; for debugging only */
  box-sizing: border-box;
}

html, body {
    font-family: "Playfair Display", serif;
    font-style: italic;
    scroll-behavior: smooth;
    margin: 0;    
    padding: 0;
    width: 100%;
}

 p {
    color: #40242b !important;
    font-style: normal !important;
 }

 h3 {
    font-size: 37px;
    padding-left: 20px;
 }

 h4 {
    font-size: 27px;
    padding: 20px;
    margin-top: 0;
    margin-bottom: 0;
 }

h3, h4 {
    color: #40242b;
}


/* NAVIGATION BAR */
nav {
  position: fixed;
  top: 0;
  left: 0;               /* ensures alignment with viewport */
  width: 100%;           /* stretches full width */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 130px;
  background-color: #dbccd1;
  z-index: 1000;
  box-shadow: 0px 5px 10px #0000005e;
  padding: 0 30px;
  margin: 0;
}

.nav-links {  
    display: flex;
    justify-content: flex-start; /*allows me to align my links to the left*/
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none; 
}

.nav-links li {
    position: relative; /*creates the right spacing between the nav links*/
    margin: 35px 35px;
}

.nav-links li a {
    text-decoration: none;
    color: #40242b;
    font-size: 35px;
    font-weight: bold;
    transition: color 0.3s, box-shadow 0.3s;
}

.nav-links li a:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: #e7e7e7;
    border-radius: 5px;
    box-shadow: 0 0 10px #40242b, 0 0 15px #40242b;
    transition: width 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.logo img {
    height: 200px;
    width: 200px;
}

.nav-right {
  display: flex;
  align-items: center;   /* vertically align FR/EN and hamburger */
  gap: 3rem;             /* space between them */
}

.langue {
    display: flex; /*section*/
}

.languages {
    font-size: 20px;
    color: #40242b;
    text-decoration: none;
}
 
/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    gap: 5px;
    z-index: 10;
}

.hamburger span {
    width: 30px;
    height: 3px;
    margin: 4px 0;
    background: #40242b;
    border-radius: 5px;
    transition: 0.3s;
}

section {
  width: 100%;
  max-width: 100%;
  overflow-x: auto; /* prevent horizontal scroll from children */
}

/* HERO BANNER SECTION - DO NOT TOUCH*/

.intro {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('GImages/Personal Brand Logo-10-herobanner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.text-container {
    padding-top: 20vh; /* relative to viewport */
    padding-bottom: 5vh;
    font-size: 60px;
    color: #40242b;
}

.text-container p {
    color: #40242b;
    font-size: 25px;
    max-width: 1000px;  /* adjust as needed */    /* centers the paragraph */
    line-height: 1.6;
    padding-top: 20px;
    text-align: center;
    margin: 0 auto;
}

/* ACTION BUTTON*/
.action button {
    height: 100px;
    width: 240px;
    font-size: 25px;
    border: none;
    border-radius: 30px;
    opacity: 60%;
    box-shadow: 0px 0px 25px 4px #ffffff;
    margin: 90px;
}

.primary-one {
    color: #dbccd1;
    background-color: #40242b;
}

.primary-two {
    color: #40242b;
    background-color: #dbccd1;
}

.primary-one:hover {
    background-color: #dbccd1;
    color: #40242b;
    font-weight: bold;
    cursor: pointer;
}

.primary-two:hover {
    background-color: #40242b;
    color: #dbccd1;
    font-weight: bold;
    cursor: pointer;
}

/* END OF HERO BANNER SECTION - DO NOT TOUCH*/

/* ABOUT ME SECTION */
.about-me {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 50px;
    background-color: #ffffff;
    padding-top: 100px;
    min-height: 100vh;
}

.left-side {
    margin-left: 100px;
}

.left-side, .right-side {
    width: 50%;
    position: relative;
}

.about-me li {
    font-size: 22px;
}

.card  {
    position: absolute;
    overflow: visible;
    width: 100%;
    height: auto;
    padding: 30px;
    margin-left: 100px;
    margin-top: -320px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px); /* Optional: subtle glass effect*/
    color: #40242b;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease; 
    background-color: #dbccd1a2;
}

.card.active {
    opacity: 1;
    transform: translateX(0); /* Slide into place */
    z-index: 1;
}

.card p {
    font-size: 25px;
}

.buttons { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: -50px; /* Adjust this based on your layout */
    top: 50%;
    transform: translateY(-50%); /* Center the icons vertically */
    margin: 0 40px 0 20px;
}

.buttons button {
    background: none;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition */
    position: relative;
}

.icones {
    width: 60px;
    height: 60px;
    margin-bottom: -10px;
}

.buttons p {
    font-size: 15px;
}

button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #40242b; /* The color of the active indicator */
    transition: all 0.3s ease; /* Smooth transition for indicator */
}

button.active::after {
    width: 100%;
    left: 0;
}

button:not(.active)::after {
    width: 0; /* Ensure the indicator disappears when not active */
    left: 0;
}

.buttons button:hover {
    background-color: #dbccd1; /* Optional: background change on hover */
  }

.right-side img {
    margin-left: 200px;
    width: 500px;
    height: 500px;
    border-radius: 40px;
}

/* PROJECTS SECTION*/

.projects {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.project-deck {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    transition: transform 0.5s ease-in-out;
    /*scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none; /* Hides scrollbar on Firefox */
}

.square {
        width: 850px; /* Adjust size */
        height: 550px;
        display: flex;
        flex-direction: column;
        align-items: left;
        justify-content:flex-end;
        border-radius: 20px;
        cursor: pointer;
        background-color: #dbccd1a2;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.179);
        transition: transform 0.2s, box-shadow 0.2s;

}

.project-deck h2 { 
    text-align: center;
    text-decoration: none;
    font-size: 35px;
    color: #40242b;
    margin: 0;
}

.square h3 {
    margin: 0;
}

.square li {
    color: #40242b;
    font-size: 22px;
    margin-left: 50px;
}

.square ul {
    margin-bottom: 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding-left: 0;
    margin-top: 0.5rem;
}

.square:hover ul {
    max-height: 500px; /* set large enough to reveal the whole list */
}

.square ul li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.square:hover ul li {
    opacity: 1;
    transform: translateY(0);
}

.star {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgb(250, 250, 250);
    border-radius: 50%;
    box-shadow: 0 0 10px #986D5A;
    pointer-events: none;
    animation: fadeOut 1.5s ease-out forwards, floatStar 4s ease-in-out infinite;
    opacity: 0.6; /* Slightly transparent for more softness */
    transform: scale(0.8); /* Slightly smaller by default */
    animation-delay: 0s; /* Randomize delay for each star if multiple stars are used */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0); /* Start at full size */
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5) translateY(-10px); /* Scale up and float upwards */
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(20px); /* Fade out and shrink */
    }
}

@keyframes floatStar {
    0% {
        transform: translateY(0) translateX(0); /* Start at initial position */
    }
    50% {
        transform: translateY(-10px) translateX(5px); /* Slight upward movement and horizontal shift */
    }
    100% {
        transform: translateY(10px) translateX(-5px); /* Slight downward movement and horizontal shift */
    }
}

#project1, #project2, #project3, #project4, #project5, #project6 {
    background-image: url('GImages/Personal Brand Logo-6-bipbg.png');
    background-size: cover;
    background-repeat: no-repeat;
}


#project1:hover, #project2:hover, #project3:hover, #project4:hover, #project5:hover{
    background-color: #dbccd1;
}

#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    text-align: center;
    background-color: white;
}

.contact-me {
    width: 100%;
    max-width: 100%;
}

.contact-me, .projects h2 {
    font-size: 55px !important;
}

.contact-me p {
    font-size: 25px;
    margin-bottom: 30px;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

input, textarea {
    height: 70px;
    width: 700px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #40242b;
    background: #dbccd1;
    color: #40242b;
    font-size: 20px;
    outline: none;
}

input::placeholder, textarea::placeholder {
    font-size: 20px;
    color: #aaa;
}

button {
    background: #40242b;
    color: #dbccd1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #dbccd1;
    color: #40242b;
}

.hidden {
    display: none;
}

#successMessage {
    color: #40242b;
    font-size: 18px;
    margin-top: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 1rem; 
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;   /* keep each link’s text together */
    font-size: 25px;
    color: #40242b;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.3s;
}

.social-links a:hover {
    border-bottom: 1px dotted #40242b;
}

i {
    padding-right: 10px;
}

.visit {
    list-style-type: none;
    padding-top: 20px;
}

/* MOBILE MENU */
@media (max-width: 738px) {

   .nav-links {
        display: none;              /* hidden by default on mobile */
        position: absolute;
        top: 130px;                 /* below fixed nav */
        left: 0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0px 5px 10px #0000005e;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        background-color: #40242b; 
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        z-index: 1000;
    }
    
    .nav-links li a {
        font-size: 30px !important;
        color: #dbccd1;
    }
    
    .hamburger {
        display: flex;
       /* margin-right: 5rem !important;*/
    }

    .logo img {
        width: 150px;
        height: 150px;
    }
    /* X Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(20px, 4px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(25px, -6px);
    }

    .text-container h1{
        font-size: 40px !important;
        color: #40242b;
        padding-bottom: 50px;
    }

    .text-container p, .card p {
        font-size: 20px !important;
    }
    
    .card h2 {
        font-size: 28px !important;
    }

    .action button {
        height: 80px !important;
        width: 180px !important;
        font-size: 20px !important;
        margin-top: -20px !important;
    }

    .primary-one {
        margin-bottom: 20px !important;
    }

    .about-me {
        padding-top: 200px !important;
        flex-direction: column !important;
    }

    .left-side, .right-side {
        width: 100% !important;
    }

    .card {
        padding: 17px !important;
        margin-left: -73px !important;
        margin-top: 100px !important;
        width: 350px !important;

    }

    .buttons {
        flex-direction: row !important;
        padding-bottom: 40px !important;
        gap: 7px !important;
        left: -80px !important;
    }

    .buttons button:hover {
        background-color: transparent !important;
    }
    
    .buttons p {
        font-size: 10px !important;
    }
    .icones {
        width: 38px !important;
        height: 38px !important; 
    }

    .right-side img {
        width: 320px !important;
        height: auto !important;
        border-radius: 30px !important;
        margin-left: -21px !important;
        margin-top: 63rem;
    }

    #projects h2 {
        font-size: 50px !important;
    }
    .square {
        width: 90% !important;
    }
    .square h3 {
        font-size: 25px !important;
    }
    .square h4 {
        font-size: 19px !important;
    }
    
    .square li {
        font-size: 16px !important;
    }
    
    #contact h2 {
        font-size: 50px !important;
    }

    input, textarea {
        max-width: 92% !important;
    }

    .social-links a {
        margin-bottom: 10px !important;
    }   
    
}

/*END OF MENU*/