/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
}   

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

/* TRANSITION */

a, 
.btn {
    transition: all 300ms ease;
}

/*  DESKTOP NAV */  

nav, 
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

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

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:nth-child(2) {
    opacity: 1;
}

.hamburger-icon span:last-child {
    transform: none;
}

/* SECTION */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex
}

/* PROFILE SECTION*/

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1, 
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover, 
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1, 
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color1:hover {
    background: rgb(0, 0, 0);  
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION */

#about{
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers, 
.about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 1rem;
    width: 2rem;
}

.arrow:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.details-container {
    padding: 1rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.text-container {
        text-align: justify;
    }

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* EXPERTISE SECTION */

#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: flex-start;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}




/* PROJECTS SECTION */

#projects {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 40vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon{
    height: 2.4rem;
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* SCROLLING */

section,
.details-container {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.active,
.details-container.active {
    opacity: 1;
    transform: translateY(0);
}









/* Request CV Popup */
/* Overlay container */
/* ============================= */
/* ULTRA ELEGANT APPLE MODAL */
/* ============================= */

.cv-popup {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ACTIVE OVERLAY */
.cv-popup.active {
    opacity: 1;
    visibility: visible;
}

/* ============================= */
/* MODAL CARD */
/* ============================= */

.cv-popup-content {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border-radius: 28px;
    padding: 2.5rem;
    width: 420px;
    max-width: 95%;
    text-align: center;
    position: relative;

    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 8px 30px rgba(0, 0, 0, 0.15);

    transform: translateY(40px) scale(0.94);
    opacity: 0;

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease;
}

/* ACTIVE CARD */
.cv-popup.active .cv-popup-content {
    transform: translateY(0px) scale(1);
    opacity: 1;
}


/* The popup content */
.cv-popup-content {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    width: 400px;
    max-width: 95%;           /* ensures it never overflows on small screens */
    text-align: center;
    box-sizing: border-box;
    position: relative;       /* allows absolute positioning of close button */
}

.cv-popup-content input {
    width: 90%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 1rem;
    border: 1px solid #aaa;
    font-family: 'Poppins', sans-serif;
}

.cv-popup-content h2 {
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* CONSENT CHECKBOX DESIGN */

.consent-container {
    margin: 1rem 0;
    text-align: left;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    color: #333;
    position: relative;
}

/* Hide default checkbox */
.consent-check input {
    display: none;
}

/* Custom check circle */
.checkmark {
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f1f1;
    transition: all 0.3s ease;
    position: relative;
}

/* When checked */
.consent-check input:checked + .checkmark {
    background: #000; /* or your theme color */
}

/* Check icon */
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show check when checked */
.consent-check input:checked + .checkmark::after {
    display: block;
}

/* Hover effect */
.consent-check:hover .checkmark {
    background: #ddd;
}

.consent-text {
    flex: 1;
}

/* Submit button when disabled */
#submitBtn:disabled {
    background-color: white !important; /* white background */
    color: rgb(150,150,150);           /* grey text for disabled look */
    cursor: not-allowed;
    border: 1px solid rgb(200,200,200); /* optional light border */
}








/* ============================= */
/* APPLE STYLE EXPERTISE CAROUSEL */
/* ============================= */

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  padding: 3rem 0;
}

.carousel-track {
  display: flex;
  gap: 3rem;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  padding-left: 8vw;
  padding-right: 8vw;
}

/* Apple-style cards */
.carousel-item {
  min-width: 520px;
  flex: 0 0 auto;
  background: #f5f5f7;
  border-radius: 32px;
  padding: 3rem;
  margin: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.carousel-item h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.carousel-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Hover like Apple subtle lift */
.carousel-item:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Floating minimal arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

  font-size: 1.5rem;
  cursor: pointer;

  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.left-btn {
  left: 10px;
}

.right-btn {
  right: 10px;
}

/* Show partial next card */
@media (max-width: 768px) {
  .carousel-item {
    min-width: 85%;
    height: 280px;
  }
}

/* ============================= */
/* FULL BLEED APPLE CAROUSEL */
/* ============================= */

#experience {
  overflow: visible;
}

/* Break out of the section margin */
#experience .carousel-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
}

.experience-list {
  text-align: justify;
  padding-left: 2rem;
  line-height: 1.6;
}


/* ============================= */
/* APPLE STYLE PROJECT CAROUSEL */
/* ============================= */

#projects {
  position: relative;
  overflow: visible;
}

/* Full bleed like Apple */
#projects .carousel-wrapper {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
}

.project-card {
  min-width: 620px;
  background: #f5f5f7;
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

.project-image-wrapper {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Project Image */
.project-image-wrapper {
  width: 100%;
  margin-top: 1.5rem;
}

.project-image-wrapper img {
  width: 100%;
  border-radius: 1.5rem;
  display: block;
}

/* Make button centered and clean */
#projects .btn-container {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

/* PDF Modal */
.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.pdf-modal-content {
  width: 80%;
  height: 85%;
  background: #fff;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.pdf-modal-content iframe {
  width: 100%;
  height: 100%;
}

.pdf-modal .close-modal {
    position: absolute;
    top: .2rem;
    right: -0.4rem;
    width: 2.5rem;                /* set equal width */
    height: 2.5rem;               /* set equal height */
    font-size: 1.5rem;
    border-radius: 50%;           /* perfect circle */
    display: flex;                 /* center the X */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 20;
    transition: all 0.2s ease;
}

.pdf-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.3); /* transparent hover */
    transform: scale(1.1);
}
/* ============================= */
/* FULL-BLEED APPLE STYLE PROJECT CAROUSEL */
/* ============================= */

#projects {
  position: relative;
  overflow: visible;
  margin: 0;          /* remove default section margins */
  padding: 4rem 0;    /* optional vertical spacing */
}

#projects .carousel-wrapper {
  position: relative;
  width: 100vw;       /* full viewport width */
  left: 50%;          /* center the carousel */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

#projects .carousel-container {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
}

#projects .carousel-track {
  display: flex;
  gap: 3rem;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  padding-left: 8vw;  /* optional partial visibility of next card */
  padding-right: 8vw;
}

#projects .carousel-item {
  min-width: 350px;
  height: 450px;
  flex: 0 0 auto;
  background: #f5f5f7;
  border-radius: 32px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

#projects .carousel-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Project Image */
.project-image-wrapper {
  width: 90%;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center button below card */
#projects .btn-container {
  display: flex;
  justify-content: center;
  margin-top: .1rem;
  margin-bottom: .5rem;
}

/* Floating arrow buttons */
#projects .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

#projects .carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

#projects .left-btn { left: 10px; }
#projects .right-btn { right: 10px; }

/* Responsive adjustments */
@media (max-width: 1200px) {
  #projects .carousel-track {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

@media (max-width: 768px) {
  #projects .carousel-item {
    min-width: 85%;
  }
}

/* Center project heading + subheading */
#projects .carousel-item h2,
#projects .carousel-item h3 {
  text-align: Justify;
  margin: 0.25rem 0; 
  margin-left: 1.2rem;
  margin-right: 1.2rem; /* spacing between heading and subheading */
}

#projects .carousel-item .project-headings {
  text-align: right;
  margin-bottom: .1rem;
  margin-left: 1.2rem;
  margin-right: 1.2rem;  /* spacing from image */
}

/* Subheading styling */
#projects .carousel-item .project-subheading {
  font-weight: 400;           /* lighter */
  color: #888888;             /* grayish/light color */
  font-size: 1.2rem;
  margin-top: .1rem;  
  margin-bottom: .1rem;
  text-align: justify;
  margin-left: 1.2rem;
  margin-right: 1.2rem;        /* slightly smaller than main heading */
}

/* Arrow for Project Section */
#projects {
    position: relative; /* ensures absolute positioning inside works */
}

#projects .arrow {
    position: absolute;
    right: 4.7%;           /* horizontally center */
    bottom: 1rem;        /* same distance from bottom as other sections */
    transform: translateX(-50%); /* center exactly */
    height: 2rem;        /* same size as other arrows */
    width: 2rem;
    cursor: pointer;
    z-index: 20;         /* above carousel */
    transition: all 0.3s ease;
}

#projects .arrow:hover {
    transform: translateX(-50%) translateY(-1px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}


#logo-loop {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 2rem 0;
    padding: 1rem;
    text-align: center;
    height: auto;
}

#logo-loop .logo-loop-wrapper {
    overflow: hidden;
    width: 100%;
}

.logo-subheader {
    margin-bottom: 20rem; /* space between sub-header and logos */
    font-size: 1.2rem;
    font-weight: 500;
    color: #333; /* change as needed */
}

#logo-loop .logo-loop-track {
    display: flex;
    gap: 4rem; /* spacing between logos */
    align-items: center;
    animation: scroll-logos 20s linear infinite;
}

.loop-logo {
    flex: 0 0 auto;
    height: 60px; /* adjust logo height */
    object-fit: contain;
}



/* Responsive */
@media (max-width: 768px) {
    .loop-logo {
        height: 40px;
    }
    #logo-loop .logo-loop-track {
        gap: 2rem;
    }
}


#tools-loop {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 2rem 0;
    padding: 1rem;
    text-align: center;
    height: auto;
}

#tools-loop .logo-loop-wrapper {
    overflow: hidden;
    width: 100%;
}

.tools-subheader {
    margin-bottom: 2rem; /* space between sub-header and logos */
    font-size: 1.2rem;
    font-weight: 500;
    color: #333; /* change as needed */
}

#tools-loop .logo-loop-track {
    display: flex;
    gap: 4rem; /* spacing between logos */
    align-items: center;
    animation: scroll-logos 20s linear infinite;
}

.loop-logo {
    flex: 0 0 auto;
    height: 60px; /* adjust logo height */
    object-fit: contain;
}

/* Infinite scroll animation */
@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loop-logo {
        height: 40px;
    }
    #tools-loop .logo-loop-track {
        gap: 2rem;
    }
}

/* ============================= */
/* MATCH EXPERIENCE ARROWS TO PROJECT STYLE */
/* ============================= */

#experience .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;

  box-shadow: 0 4px 20px rgba(0,0,0,0.15);

  font-size: 1.5rem;
  cursor: pointer;

  transition: all 0.3s ease;
  z-index: 10;
}

/* Hover effect */
#experience .carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Positioning */
#experience .left-btn {
  left: 10px;
}

#experience .right-btn {
  right: 10px;
}