/* GENERAL */

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

* {
  box-sizing: border-box; /* This forces padding to be calculated INSIDE the width */
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden; /* This hides any accidental overflow instead of showing a scrollbar */
  font-family: "Poppins", sans-serif;
  width: 100%;        /* Ensure the body doesn't exceed screen width */
  margin: 0;
  padding: 0;
}

html {
  /*scroll-behavior: smooth;*/
}

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

/* TRANSITION */

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

/* DESKTOP NAVIGATION */

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

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

/* Hero nav: floats over the hero banner */
#desktop-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  height: 10vh;
  justify-content: space-between; /* logo left, links right */
  padding: 1.5rem 3rem;
  box-sizing: border-box;
  font-size: 1rem; /* decrease this to make links smaller */
}

#desktop-nav a {
  color: white;
}

#desktop-nav a:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline 0.1rem solid rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.4rem;
}

.nav-links {
  gap: 1rem;
  list-style: none;
  font-size: 1.2rem;
}

a {
  color: #1f1f1f;
  text-decoration: none;
  text-decoration-color: white;
  font-size: 20px;
}

a:hover {
  color: grey;
  text-underline-offset: 0.50rem;
  text-decoration: underline 0.15rem solid rgb(109, 109, 109);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER NAVIGATION */

#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.3s 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:first-child {
  opacity: 1;
}

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

/* SECTIONS */

section {
  padding-top: 4vh;
  height: auto;
  margin: 0;
  box-sizing: border-box;
  min-height: fit-content;
  padding: 4rem 0;
  overflow: hidden; /* remove or change this to visible */
}

.section-container {
  display: flex;
}


/* HERO / PROFILE SECTION */

#profile {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #a8a8a8;
  overflow: hidden;
  display: block;          /* plain block so no flex side-effects */
  padding: 0 0 5rem 0;
  margin: 0;
  box-sizing: border-box;
  padding-bottom: 5rem; /* Adds breathing room at the bottom for the marquee and socials */
}

/* ── Photo: anchored to bottom-centre, fills the full hero height ── */
.section__pic-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: auto;
  height: auto;           /* fill the full hero */
  margin: 0;
  overflow: visible;
}

.section__pic-container img {
  height: auto;           /* match the container */
  width: 40vw;
  object-fit: unset;    /* keeps the full person visible */
  object-position: bottom center;
  display: block;
  image-rendering: auto; /* Ensures the image is rendered smoothly */
  max-width: unset;  /* add this line */
}

/* ── Right-side text block: vertically centred between nav and marquee ── */

.section__text.hero__text {
  color: white;
  text-align: center;
  position: absolute;
  right: 5%;
  left: unset;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers everything inside */
  gap: 0.5rem;
  color: white;
}

.hero-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(1rem, 3vw, 2.5rem); /* increase this */
  font-weight: 700;
  color: white;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2vw, 1.8rem); /* increase this */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.section__text {
  position: absolute;
  right: 5%;
  left: unset;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers everything inside */
  gap: 0.5rem;
  color: white;
}

.section__text p {
  font-weight: 400;
}

/* Small uppercase label e.g. "MOI, OLEN" */
.section__text__p1 {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgb(126, 124, 124);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Name – large & bold */
.title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #2e2c2c;
  margin-bottom: 0.2rem;
  text-align: center;
  line-height: 1.1;
}

/* Role subtitle */
.section__text__p2 {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  margin-bottom: 0;
  text-align: left;
}

/* ── Social icons: top-right, just below nav ── */
#socials-container {
  position: static;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

#socials-container .icon {
  filter: brightness(0) invert(1);
  height: 2rem;
}

/* ── Action buttons: sit just below the socials ── */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ── Marquee: pinned to the bottom ── */
.marquee-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 4;
  padding: 0.6rem 0;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.02); /* very subtle dark band */
}

.marquee-text {
  display: inline-block;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: scrollText 50s linear infinite;
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ICONS */

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

/* BUTTONS */

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

/* Hero buttons - white outlined style to sit on grey/dark bg */
.btn-color-1,
.btn-color-2 {
  border: rgba(255, 255, 255, 0.85) 0.1rem solid;
  color: white;
}

.btn-color-1 {
  background: white;
  color: #333;
}

.btn-color-1:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #111;
}

.btn-color-2 {
  background: transparent;
  color: white;
}

.btn-color-2:hover {
  background: white;
  color: #333;
  border-color: white;
}





/* --- ABOUT SECTION EXCLUSIVE CONTROL --- */
/* #about-section {
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;   
    padding: 4rem 1.5rem 4rem 1.5rem; 
    box-sizing: border-box; 
 */

/* Ensure the inner containers don't break the layout */
#about-section .section-container,
#about-section .about-details-container {
    width: 100%;
    margin: 0 auto;
}

#about {
  position: relative;
  height: auto;
  padding-bottom: 2rem;
  max-width: 1100px; /* increase from 900px */
}

.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: 5rem;
}

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

/* REPAIRED: The wide container fix for the "Read more" section */
.details-container-wide {
  background:#f9fafe;
  border-radius: 2rem;
  border: rgb(163, 163, 163) 0.1rem solid;
  padding: 2rem;
  width: 100%;           
  max-width: 1100px;     
  margin: 1.5rem auto;   
  display: flex;         
  flex-direction: column; 
  gap: 1.5rem;
  text-align: left;
  box-sizing: border-box; 
}

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

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

.text-container {
  max-width: 1200px;        /* control the width */
  margin: 0 auto;           /* center it */
  padding-top: 4rem;          /* space from the top */
  text-align: center;
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}


/*ABOUT SECTION NEW*/
/* ── Timeline Experience Section ── */
#about-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 2rem 0;
  display: block;
  height: auto;
  overflow: visible !important; /* Forces visibility */
  position: relative; /* Essential for the absolute-positioned line */
  display: flow-root;          /* Modern way to clear floats and contain height */
}
/* Vertical line */
  .timeline::before {
  content: '';
  position: absolute;
  left: 2.5rem; /* Adjust to align with your dots */
  top: 0;
  bottom: 0;   /* CRITICAL: This tells the line to stretch to the bottom of the parent */
  width: 2px;
  background: #e0e0e0;
  z-index: 0;
}

/* Each row */
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
  position: relative;
  overflow: visible !important; /* Critical: prevents items from clipping the line */
}

.timeline-item.appear {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:hover {
  transform: translateX(5px);
}

/* Stagger each item */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }
.timeline-item:nth-child(6) { transition-delay: 0.6s; }
.timeline-item:nth-child(7) { transition-delay: 0.7s; }
.timeline-item:nth-child(8) { transition-delay: 0.8s; }

/* Logo circle */
.timeline-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
  overflow: visible;        /* change from hidden to visible */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}


.timeline-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  border-radius: 50%;       /* add this to keep image circular */
  overflow: hidden;         /* move overflow here */
}

/* Card */
.timeline-card {
  flex: 1;
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover .timeline-card {
  box-shadow: 0 4px 20px rgba(59, 91, 219, 0.15);
  /* border-color: #3b5bdb; */
}

/* ADD THIS RIGHT HERE */
.timeline-item:hover .timeline-logo {
  box-shadow: 0 0 0 1px #3b5bdb;
  border-color: #3b5bdb;
}


/* Header row: role + date */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

.timeline-dot {
  margin: 0 0.3rem;
  color: #999;
}

.timeline-company {
  color: #3b5bdb;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 400;
}

.timeline-company:hover {
  text-decoration: underline;
}

.timeline-date {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
}

/* Description */
.timeline-desc {
  font-size: 0.80rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Tags */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f4f4f4;
  border: 1px solid #e8e8e8;
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: #444;
}

/* Mobile */
@media (max-width: 768px) {
  .timeline::before {
    left: 1.5rem;
  }

  .timeline-logo {
    width: 40px;
    height: 40px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }


  .timeline-header {
    flex-direction: column;
  }

  .timeline-date {
    color: #bbb;
  }
}





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

/* READ MORE FUNCTIONALITY */

.project-read-more {
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  width: fit-content;
  align-self: center;
}

.project-read-more--blue {
  background-color: #007bff;
  color: white;
  border: none;
}

.project-read-more--black {
  background-color: black;
  color: white;
  border: none;
}

.projects-readmore-container {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  width: 100%;
}

.project-more-card {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 360ms ease, opacity 260ms ease;
  width: 100%;
}

.project-more-card.open {
  max-height: 3000px;
  opacity: 1;
}

.work-entry-item {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  padding: 1rem 0;
}

/* CONTACT SECTION */

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

.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: (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: 1.2rem;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

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

footer p {
  text-align: center;
}

.work-details h3 {
    margin-bottom: 0.5rem !important; 
}

.work-details p {
    margin-bottom: 1.25rem !important; 
}

.work-details ul li {
    margin-bottom: 0.8rem !important; 
}

.work-details ul li:last-child {
    margin-bottom: 0;
}
/* This forces the Read More button to match the Download CV button exactly */
.btn.project-read-more {
  /* 1. Fix the Size */
  width: 8rem !important;        /* Matches your Download CV width */
  padding: 1rem !important;      /* Matches your Download CV padding */
  display: inline-block !important;
  
  /* 2. Fix the Font */
  font-weight: 600 !important;   /* Matches the bold look of Download CV */
  font-size: 0.9rem !important;  /* Adjust if text feels too tight */
  
  /* 3. Fix the Colors & Shape */
  background: #3e8be7 !important; /* Removes that light gray background */
  color: #ffffff !important;
  border: #3e8be7 0.1rem solid !important; /* Darker border like CV button */
  border-radius: 2rem !important;
  
  /* 4. Alignment */
  margin: 1rem auto !important;
  cursor: pointer;
  text-align: center;
}

/* Hover effect to match the Download CV button */
.btn.project-read-more:hover {
  background: #3e8be7 !important;
  color: #007bff !important;
}

/* Recommended Hover Correction */
.btn.project-read-more:hover {
  background: #164e92 !important; /* Blue background */
  color: #ffffff !important;      /* White text so it is readable */
}




#partners {
  padding: 4rem 0 0 0 !important; /* Top: 4rem, Right: 0, Bottom: 0, Left: 0 */
  margin-bottom: 5rem!important;
  text-align: center;
  background-color: #ffffff;
  height: auto; /* Ensures the section doesn't stretch to 96vh */
}

.partners-main-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 4rem;
  padding-bottom: 0;
}

.partners-title {
  flex: 1;
  text-align: left;
}

.partners-title h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

.logo-grid {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 logos per row */
  border-left: 1px solid #e5e5e5; /* The vertical line from your image */
  padding-left: 4rem;
}

.logo-item {
  max-width: 100px;  
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0; /* Horizontal lines */
}

.logo-item img {
  max-width: 75px;
  height: auto;
  opacity: 1;               /* Forces the logo to be fully visible (not faded) */
  filter: none !important;  /* Removes grayscale if it was inherited */
  transition: transform 0.3s ease; /* Smoothly animates the size change */
}

.logo-item img:hover {
  transform: scale(1.2);    /* Makes the logo 20% bigger on hover */
  cursor: pointer;
}


.logo img {
    margin-top: 30px; /* Adjust this to control vertical spacing */
    height: 120px;    /* Adjust this based on your header height */
    width: 120px;      /* This keeps the image from stretching */
    display: block;   /* Removes extra spacing at the bottom */
}

/* Optional: Add a hover effect */
.logo img:hover {
    opacity: 0.8;
    transition: 0.3s;
}

/* --- CLEANED & FIXED EXPERIENCE SECTION --- */

#experience {
  position: relative;
  height: auto !important;      /* OVERRIDE: Stops the section from being too tall */
  min-height: auto !important;
  padding-top: 1rem !important;  /* Brings 'Explore My' higher up */
  margin-top: 1rem !important;
}

#experience .section__text__p1 {
  /*margin-bottom: -5px !important; /* Pulls 'Explore My' closer to 'Experience' */
  text-align: center;
}

#experience .title {
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important; /* Reduces gap below the title */
  text-align: center;
}

/* Desktop Grid: 3 Boxes in one row */
#experience .article-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px;
  max-width: 1100px;
  margin: 2rem auto !important; 
  justify-content: center;
  align-items: stretch;
  padding: 0 1rem;
}

.experience-card {
  background-color:rgb(255, 255, 255) !important; /* Matches the green in your photo */
  border: 1px solid #e0e0e0 !important; /* Grey border */
  border-radius: 12px !important;
  padding: 1.5rem 2rem 2.5rem 2rem !important;
  text-align: center !important;
  width: 100%;
  height: 210px;
  margin: 0;
  box-sizing: border-box;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Very light shadow */

  
  
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; 
  text-align: center !important;

  /* Use the "Buttery Smooth" transition we discussed */
 /* ... your existing background and padding ... */
  
  /* 1. Use a faster duration (0.2s - 0.25s is the "sweet spot" for UI) */
  /* 2. Use a cubic-bezier for a more professional, snappy feel */
  transition: 
    transform 0.2s cubic-bezier(0.2, 1, 0.3, 1), 
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.6s ease-out; /* Keeps the scroll-reveal smooth */

  /* 3. This is CRITICAL: It tells the browser to use the GPU for this element */
  will-change: transform; 
  
  /* 4. Forces hardware acceleration */
  backface-visibility: hidden;



}

.experience-card.appear {
  opacity: 1;
  transform: translateY(0);
}

.experience-card:hover {
  background-color: #3e8be7 !important; /* Slightly darker green[cite: 4] */
  /* Scale 1.03 and -5px lift is more stable than larger values */
  transform: translateY(-5px); 
  /* Ensure z-index is high so it doesn't clip through others */
  z-index: 10;
  /* Use a softer shadow to prevent the browser from over-calculating pixels */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Staggering the delay for each card */
.experience-card:nth-child(1) { transition-delay: 0.1s; }
.experience-card:nth-child(2) { transition-delay: 0.2s; }
.experience-card:nth-child(3) { transition-delay: 0.3s; }
.experience-card:nth-child(4) { transition-delay: 0.4s; }
.experience-card:nth-child(5) { transition-delay: 0.5s; }
.experience-card:nth-child(6) { transition-delay: 0.6s; }

.experience-card .icon {
  /*filter: brightness(0) invert(1); /* Makes the checkmark white */
  filter: brightness(0) saturate(100%) !important;
  height: 1.75rem !important;
  margin-bottom: 0;
  margin-top: 0 !important;
  margin-left: auto;
  margin-right: auto;
  transform: scale(1.2);
  transition: transform 0.25s ease;
}

/* Apply the zoom effect on hover */
.experience-card:hover .icon {
  filter: none !important; /* Returns the icon to its original white color */
  transform: scale(1.2); /* Adjust this number (1.3 = 130% size) to your liking */
}

/* Example: Tinting an icon blue */
.experience-card:nth-child(1) .icon {
  filter: sepia(100%) hue-rotate(190deg) saturate(500%);
}

.experience-card h3 {
  color: #1a1a1a !important;
  font-size: 1rem;
  margin: 1rem 0 !important;
}

.experience-card p {
  color: #666666 !important;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Triggers when the mouse is over the card */
.experience-card:hover h3 {
  color: #eae7e7 !important; /* Changes the title to white on hover */
}

.experience-card:hover p {
  color: #eae7e7 !important; /* Changes the paragraph to white on hover */
}





/* --- PROJECTS SECTION: WHITE THEME 4-COLUMN GRID --- */

#projects-grid {
  padding: 5rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}


.publications-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Left column */
.publications-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.publications-title {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.publications-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.publications-signature {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.publications-quote {
  border-left: none;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}

.publications-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 2rem;
  color: #ccc;
}

/* Center column — featured image */
.publications-center {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;        /* keeps image inside rounded corners */
  animation: float 3s ease-in-out infinite;
  perspective: 1000px;   /* just add this one line */
}

@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.publications-featured {
  width: 100%;             /* fill full width */
  height: 100%;            /* fill full height */
  object-fit: cover;       /* cover without stretching */
  border-radius: 1rem;
  transform-origin: left center;  /* add this */
  transition: transform 0.5s ease, opacity 0.4s ease;  /* add this */
}

/* Right column — numbered list */
.publications-right {
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.publications-right::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

.publications-right::after {
  content: '';
  position: sticky;
  bottom: 0;
  display: block;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}

.scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.1em;
  padding: 0.5rem 0;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

.publications-right::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e0e0e0;
}

.pub-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  transition: opacity 0.2s ease;
  opacity: 0.5;
}

.pub-item.active,
.pub-item:hover {
  opacity: 1;
}

.pub-item.active .pub-number {
  color: #1a1a1a;
}

.pub-item.active::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #3b5bdb;
  box-shadow: 0 0 0 0 rgba(59, 91, 219, 0.4);
  animation: pulse 1.5s infinite;
}

.pub-item::after {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e0e0e0;
  z-index: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 91, 219, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(59, 91, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 91, 219, 0);
  }
}

.pub-number {
  font-size: 0.8rem;
  color: #bbb;
  padding-top: 0.2rem;
}

.pub-details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.pub-details p {
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.08em;
  /* text-transform: uppercase; */
}



/* --- MODAL STYLES --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000; /* Sit on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  backdrop-filter: blur(5px); /* Smooth background blur */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2.5rem;
  border-radius: 1.5rem;
  width: 80%;
  max-width: 600px;
  position: relative;
  animation: modalFadeIn 0.3s ease-out; /* Smooth entrance */
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-button {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

.close-button:hover {
  color: #000;
}





/* --- PROJECTS SECTION: TOOL CARD SECTION --- */


/* Ensure the section holding your tools is flexible */
#tools-section {
  width: 100%;
  max-width: 1200px; /* Constrains the width on very large screens */
  margin: 0 auto;    /* Centers the section */
  padding: 4rem 2rem; /* Adds breathing room on the sides for desktop */
}

.tools-container {
  display: grid;
  /* Adjust minmax if you want the cards to be wider/narrower */
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  margin-bottom: 0 !important; /* Ensure no extra space under grid */
  width: 100%;
}

.tool-card {
  display: flex;
  flex-direction: column; /* Stack header and proficiency */
  gap: 12px; /* Space between the top row and bottom row */
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;

  box-sizing: border-box; /* MANDATORY: Prevents padding from breaking layout */
  
}

/* Ensure all 4 rows span the full width */
.tool-card > div {
  width: 100%;
}

/* New row style */
.tool-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 1. Top Row: Logo & Name (Left aligned, side-by-side) */
.tool-header {
  display: flex;
  align-items: center;      /* Vertically aligns icon and text */
  justify-content: flex-start; /* CRITICAL: Forces elements to the LEFT */
  gap: 12px;
  width: auto;              /* Ensures it takes full width of the card */
  max-height: 30px;
}

.tool-header img {
  height: 30px; /* Small icon size to match image */
}

.tool-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  word-break: break-word; /* Prevents long words from breaking the layout */
}

/* 2. Bottom Row: Proficiency & Bar (Vertically stacked) */
.tool-proficiency {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Space between the text line and the bar */
}

/* Label & Percentage (Aligned Left/Right above the bar) */
.proficiency-meta {
  display: flex;
  justify-content: space-between; /* This forces the left/right split */
  align-items: center;
  width: 100%; 
  margin-bottom: 5px;
}

.label {
  color: #888; /* Grey text */
}

.percentage {
  font-weight: 500;
  color: #f7941d; /* Orange/Gold percentage color like image */
}

/* The Bar Container (Spans full card width) */
.proficiency-container {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

/* The actual bar (Blue like the image) */
.proficiency-bar {
  height: 100%;
  background-color: #3e8be7; /* Blue bar color like image */
  border-radius: 4px;
}

/* Update this selector in style.css */
.tool-info-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Control the label (e.g., "Proficiency") */
.label {
  font-size: 12.48px; /* Change 0.85rem to 14px, 0.9rem, etc. */
  color: #888;
  font-weight: 400;
}

/* Control the percentage (e.g., "95%") */
.percentage {
  font-size: 0.9rem;  /* Change this to make the number larger or smaller */
  font-weight: 600;   /* Makes the number bold */
  color: #f7941d;
}

.tool-name {
  font-weight: 100;      /* Controls thickness (400 is thin, 700 is bold) */
  font-size: 12px;     /* Controls size (1rem = 16px, 1.2rem = 19px, etc.) */
  color: #333;           /* Controls the text color */
  font-family: 'Poppins', sans-serif; /* Ensures it uses your defined font */
  letter-spacing: 0.5px; /* Adds a bit of space between letters for a modern look */
}



/* This ensures padding is always calculated inside the element's width */
* {
  box-sizing: border-box;
}

/* Prevents any element from being wider than its parent */
img, .tool-card, .tools-container {
  max-width: 100%;
}


/* --- PROJECTS SECTION: TOOL CARD SECTION --- */


#contact-new {
  background-color: #f4f4f4; /* Light gray background */
  padding: 4rem 2rem;
}

.contact-wrapper {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  gap: 4rem; /* Space between text and form */
  align-items: center;
}

/* 2. Targeting the labels */
.contact-wrapper label {
  font-size: 1rem;
  display: block;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-text { flex: 1; }


/* Text Control */
#contact-new .subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  /* color: #3b5bdb; */
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

#contact-new h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

#contact-new .contact-text p {
  font-size: 0.90rem;
   /* margin-bottom: 1rem; */
}

#contact-new .contact-text {
  margin-bottom: 0;
}

.contact-details p a {
  text-decoration: none; /* Removes the underline */
  color: #333;           /* Sets a clean dark text color */
  font-weight: 400;
  transition: color 0.3s ease;
  margin: 0;
}



/* The Form Card */
.contact-form {
  flex: 1;
  background: white;
  padding: 2.5rem;
  border-radius: 2rem; /* The rounded corners shown in the image */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Form Inputs */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.contact-form button {
  background-color: #007bff;
  color: white;
  padding: 1rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
}

/* Highlight invalid inputs in red */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border: 2px solid #ff4d4d;
  background-color: #fff0f0;
}

/* Optional: Highlight valid inputs in green */
input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border: 2px solid #4caf50;
}

/* 1. Ensure body text has a consistent weight */
.contact-text p {
    font-weight: 400; /* Or whatever weight your body text uses */
  
}

/* Target the links inside your contact section */
.contact-details a {
    font-size: 1rem;
    text-decoration: none;   /* Removes the underline */
    color: rgb(85, 85, 85);         /* Sets your preferred color (e.g., dark gray) */
    font-weight: 400;       /* Makes the text slightly bolder */
    font-style: normal;
    transition: color 0.3s ease; /* Adds a smooth color change on hover */
    font-display: swap;
}

/* Adds a hover effect to let users know it's clickable */
.contact-details a:hover {
    color: #007BFF;         /* Changes color when hovered (e.g., blue) */
    text-decoration: underline; /* Optionally show underline only on hover */
    text-underline-offset: 3px;
}

button:disabled {
  background-color: #a0a0a0 !important;
  cursor: not-allowed;
  opacity: 0.7;
}



/* 3. Style the links (email/phone) */
/* .contact-details a {
    font-weight: 400; 
    text-decoration: none;
    color: #333333;
} */


/* --- SKILLS SECTION: TOOL CARD SECTION --- */

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* grid-template-columns: repeat(5, 1fr); */
  /* Top/Bottom = 40px, Left/Right = 80px (Adjust 80px as needed) */
  padding: 40px 10px; 
  gap: 30px;
  margin: 2rem 0;     /* Add vertical space above and below the grid */
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  /* Ensure it doesn't overflow */
  
  width: 95%;             /* Occupies most of the screen */
  max-width: 1600px;      /* Allow it to be much wider on large monitors */
  
}

.skill-column {
  padding: 0 20px;
  border-right: 1px solid #f3f4f6; /* Adds the subtle column divider */
}

.skill-column:last-child {
  border-right: none;
}

.skill-column h3 {
  font-size: 0.8rem; /* Smaller, cleaner header */
  color: #666; /* Use a subtle accent color */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-item {
  background: transparent; /* Remove white background/shadow */
  padding: 12px 0;
  border-bottom: 1px solid #f9fafb; /* Only subtle separator */
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}

.skill-item:hover {
  transform: none; /* Remove hover lift */
  opacity: 0.7; /* Use opacity for hover effect instead */
  box-shadow: none;
}

.numbered-header {
  display: flex;
  font-size: 1rem;
  color: #2d2e32; /* Matches your dark text color */
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px; /* Space between number and title */
}

/* The '01' number */
.numbered-header::before {
  content: attr(data-number);
  color: #3b5bdb; /* Use your preferred light purple/accent color */
  font-size: 0.9rem;
  font-weight: 500;
}

/* The horizontal line */
.numbered-header::after {
  content: "";
  flex: 1; /* Pushes the line to fill the remaining space */
  height: 1px;
  background-color: #e5e7eb; /* Light gray line color */
  margin-left: 15px;
}

/* The main category header within the column */
.skill-item {
  font-weight:200;
  font-size: 0.7rem;
  color: #374151;
  padding: 10px 0;
  margin-bottom: 5px;
  border-bottom: 1px solid #e5e7eb;
}

/* The container for the 3 tools */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 15px; /* Indentation to show nesting */
  margin-top: 10px;
}

/* The individual tools */
.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
/* This is the key: it tells CSS to animate ALL changes over 0.3s */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-item:hover {
  background: white;
  border-color: #8b5cf6;
  transform: translateY(-4px) scale(1.02); /* Slight lift and scale */
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.1); /* Soft shadow on hover */
}

.tool-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Wide skills section — override narrow section constraints */
#wide-skills-section {
    width: 95% !important;
    max-width: 1600px;
    margin: 0 auto !important;   /* override the media query margin: 0 1rem */
    padding: 4rem 2rem;
    overflow: visible;
    box-sizing: border-box;
}

/* Same for the about text container if it sits inside a section */
#about.text-container {
    width: 95% !important;
    max-width: 1600px;
    margin: 0 auto !important;
}









/* ── Certificates Section ── */
#certificates {
  padding: 5rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

#certificates .title {
  text-align: center;
  margin-bottom: 3rem;
}

.cert-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Left */
.cert-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.cert-spotlight {
  background: #f8f8f8;
  border: 1px solid #ebebeb;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.cert-spotlight-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #3b5bdb;
  background: rgba(59, 91, 219, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.cert-spotlight-title {
  font-family: 'Georgia', serif;
  /* font-style: italic; */
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.cert-spotlight-issuer {
  font-size: 0.85rem;
  color: #424242;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Stats */
.cert-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cert-stat {
  display: flex;
  flex-direction: column;
}

.cert-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.cert-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* List */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cert-list-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cert-list-item span {
  color: #bbb;
  font-size: 0.85rem;
}

.cert-list-item.active,
.cert-list-item:hover {
  color: #1a1a1a;
}

.cert-list-item.active span,
.cert-list-item:hover span {
  color: #3b5bdb;
}

/* Right — stacked cards */
.cert-right {
  display: flex;
  flex-direction: column;
  gap: 0.10rem;
}

.cert-stack {
  position: relative;
  height: auto;
  /* margin-bottom: 1.5rem; */
}

.cert-img {
  position: absolute;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.cert-img-back2 {
  top: -16px;
  left: 16px;
  opacity: 0.3;
  transform: rotate(3deg);
  z-index: 1;
}

.cert-img-back1 {
  top: -8px;
  left: 8px;
  opacity: 0.6;
  transform: rotate(1.5deg);
  z-index: 2;
}

.cert-img-front {
  top: 0;
  left: 0;
  z-index: 3;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

a.cert-credential-btn {
  color: #fffefe;
  text-decoration: none;
  text-decoration-color: white;
  font-size: 11px;
}


a.cert-credential-btn:hover {
  color: rgb(186, 186, 186);
  text-underline-offset: 0.50rem;
  text-decoration: underline 0.05rem solid rgb(109, 109, 109);
}


/* Card label below stack */
.cert-card-label {
  position: static;
  background: #1a1a1a;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  color: white;
}

.cert-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cert-card-issuer {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.cert-card-type {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.cert-featured {
  position:relative;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: none;
  object-fit: contain;
  display: block;
}

.cert-img-back2,
.cert-img-back1 {
  background: #e0e0e0;  /* grey placeholder instead of image */
  border-radius: 1rem;
  position: absolute;
}




/* EXPERIENCE SECTION - Consolidated */
#experience {
  /* background-color: #efefef; */
  padding: 4rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 1300px;
  margin: 0 auto;
}

#experience .skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #ebebeb;
  transition: border-color 0.2s ease;
  
  /* Add this line to control the font size */
  font-size: 0.85rem; 
  
  /* Optional: Adjust line height for better readability */
  line-height: 1.5;
}


/* Tab Navigation */
.skills-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ebebeb;
}

.skills-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.skills-tab:hover { color: #1a1a1a; }

.skills-tab.active {
  color: #1a1a1a;
  border-bottom-color: #3b5bdb;
  font-weight: 400;
}

/* Panels & Grid */
.skills-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.skills-panel.active { display: block; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #ebebeb;
  transition: border-color 0.2s ease;
}

.skill-item:hover { border-color: #3b5bdb; }

.skill-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #3b5bdb;
  margin-top: 0.45rem;
}

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

/* Optional: Clean up empty containers */
.article-container:empty {
  display: none;
}