

/* ===== RESET ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
   scroll-behavior: smooth;
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface-main);
  color: var(--text-main);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
 
}
body::before{
  content:'';
  position:fixed;
  inset:0;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: var(--noise-opacity, .04);
  pointer-events:none;
}
.site-footer{
  scroll-snap-align: none;
}
h1 { 
  font-size: clamp(2.2rem, 4vw, 3rem); 
  font-weight: 700; 
}

h2 { 
  font-size: clamp(1.6rem, 3vw, 2.2rem); 
  font-weight: 600; 
}

h3 { 
  font-size: 1.15rem; 
  font-weight: 600; 
}

p { 
  font-size: 0.95rem;
  font-weight: 400; 
  line-height: 1.7;
}


/* ===== LOADER ===== */
#loader{
  position:fixed;inset:0;
  background: var(--color-bg-main);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
#typing{font-size:2.2rem;letter-spacing:4px}

/* ===== HEADER ===== */
header{
  position:fixed;top:0;left:0;
  width:100%;
  padding:20px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:100;
}

.logo{font-weight:700;letter-spacing:2px}
.menu-btn{cursor:pointer;font-size:1.5rem}

/* ===== SIDEBAR MENU ===== */
#sidebar{
  position:fixed;
  top:0;right:-320px;
  width:320px;height:100vh;
   background: var(--surface-elevated);
  padding:60px 30px;
  box-shadow: -10px 0 40px rgba(0,0,0,.08);
  transition: right .6s ease;
  transition:0.6s ease;
  z-index:200;
}
#sidebar.active{right:0}
#sidebar a{
  display:block;
  color: var(--text-main);
  text-decoration:none;
  font-size:1.2rem;
  margin:20px 0;
  transition:0.3s;
  position:relative;
}
#sidebar a:hover{color: var(--color-primary);}
#sidebar a::after{
  content:'';
  position:absolute;
  bottom:-4px;
  left:0;
  width:0;
  height:2px;
   background: var(--color-primary);
  transition:.3s;
}

#sidebar a:hover::after{
  width:100%;
}

/* ===== SIDEBAR CLOSE BUTTON ===== */
.sidebar-close{
  position:absolute;
  top:18px;
  right:20px;
  font-size:1.6rem;
  cursor:pointer;
  color: var(--text-muted);
  transition:.3s;
}

.sidebar-close:hover{
  color:var(--color-primary);
  transform:rotate(90deg);
}

/* ===== SLIDES ===== */
#slides{
  width:100vw;height:100vh;
  transition:transform 1s ease;
}
/*.section{*/
/*  width:100vw;height:100vh;*/
/*  padding:100px 8vw;*/
/*  display:flex;*/
/*  align-items:center;*/
/*}*/
.section{
 width:100%;
  min-height:100vh;
  padding:100px clamp(16px, 6vw, 8vw);
  display:flex;
  align-items:center;
  scroll-snap-align: start;
  transition: all .6s ease;
}

.center{justify-content:center;text-align:center}
@keyframes floatArrow{
  50%{ transform:translate(-50%, -12px); opacity:.7 }
}

.scroll-indicator{
  animation: floatArrow 2s ease-in-out infinite;
}

/* ===== HERO ===== */
#hero{
  
  position:relative;
}
/*#hero::after{*/
/*  content:'';*/
/*  position:absolute;*/
/*  inset:0;*/
/*  background:linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.8));*/
/*}*/
#hero h1{
  position:relative;
  color: var(--hero-text-color);
  text-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation:fadeUp 1.2s ease forwards;
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(20px)}
  to{opacity:1; transform:translateY(0)}
}

.scroll-indicator{
  position:absolute;bottom:30px;left:50%;
  transform:translateX(-50%);
  animation:bounce 1.5s infinite;
  cursor:pointer;
  transition: opacity .25s ease, transform .25s ease;
  z-index:999;
}


@keyframes bounce{
  50%{transform:translate(-50%,-10px)}
}
.card,
.project-card-inner,
.testimonial-text,
.exp-stat,
.service-tab{
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--card-blur);
  transition: all .35s ease;
}
.project-card-inner:hover,
.card:hover,
.exp-stat:hover{
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}
.hidden{
  opacity:0;
  transform:translateY(40px);
  transition: all .9s ease;
}

.reveal{
  opacity:1;
  transform:translateY(0);
}
button,
.form-btn,
.read-more{
  background: linear-gradient(
  135deg, 
  var(--color-primary), 
  var(--color-primary-dark)
);
  
color: var(--color-on-primary);
  font-weight:600;
  letter-spacing:.5px;
  transition: all .3s ease;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 22px;
  border-radius: 12px;
  border: none;

  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;

  cursor: pointer;
  position: relative;
  overflow: hidden;

  color: var(--color-on-primary);

  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );

  box-shadow:
    0 10px 25px color-mix(in srgb, var(--color-primary) 35%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.15);

  transition: all 0.25s ease;
}

button:hover{
  transform: translateY(-3px);
  box-shadow: var(--btn-shadow);
}

/* ===== ABOUT ===== */
.about-box{
  max-width:600px;
}
.socials a{
  margin-right:15px;
  font-size:1.3rem;
  text-decoration:none;
  color:var(--color-primary);
}

/* ===== SERVICES ===== */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}
.card{
  background: var(--color-bg-soft);
  padding:30px;
  border-radius:12px;
  transition:.4s;
}
.card:hover{
  transform:translateY(-8px);
  background: var(--color-bg-soft-3);
}

/* ===== TESTIMONIAL ===== */
.testimonial{
  max-width:500px;
  background: var(--testimonial-surface);
  padding:30px;
  border-radius:16px;
}
/* =========================
   TESTIMONIAL CAROUSEL
========================= */

.testimonials-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-title {
  margin-bottom: 40px;
}

/* Carousel container */
.testimonial-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Track */
.testimonial-track {
  display: flex;
  transition: transform .6s ease;
  will-change: transform;
}

/* Slide */
.testimonial-slide {
  flex: 0 0 100%;
  padding: 20px;
}

/* Card */
.testimonial-text {
  background: var(--testimonial-surface);
  padding: 32px;
  border-radius: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  border: 1px solid var(--testimonial-border);
  color: var(--testimonial-text);
  box-shadow: var(--testimonial-shadow);
}


.testimonial-author {
  display: block;
  margin-top: 18px;
  color: var(--testimonial-author);
  font-weight: 600;
}
.testimonial-carousel {
  cursor: grab;
}

.testimonial-carousel.dragging {
  cursor: grabbing;
}

/* Tablet */
@media (max-width: 768px) {
  .testimonial-text {
    padding: 26px;
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .testimonial-text {
    padding: 22px;
    font-size: .95rem;
  }
}

/* ===== PROFILES ===== */
.iframes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px;
}
iframe{
  width:100%;height:200px;
  border-radius:12px;
  border:1px solid var(--contact-border);
  background:var(--contact-surface-soft);
}
/* =========================
   CONTACT SECTION
========================= */

.contact-wrap {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: grid;
 grid-template-columns: .3fr .7fr;
  gap: 60px;
  align-items: start;
}

/* LEFT */
.contact-chip {
  display: inline-block;
  padding: 6px 16px;
  font-size: .7rem;
  letter-spacing: 3px;
  color:var(--contact-accent);
  background:var(--contact-chip-bg);
  border:1px solid var(--contact-chip-border);
  border-radius: 20px;
  margin-bottom: 20px;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1rem;
}

.contact-item a {
  color: var(--contact-text);
  text-decoration: none;
  transition:.3s ease;
}

.contact-item a:hover {
  color: var(--contact-accent);
}

.contact-socials {
  margin-top: 30px;
}

.contact-socials a {
  margin-right: 18px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: .95rem;
}

/* RIGHT FRAMES (DESKTOP) */
.contact-social-frames {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--contact-surface);
   border:1px solid var(--contact-border);
  backdrop-filter:blur(12px);
}

.social-frame iframe {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  border: none;
  background: var(--contact-surface-soft);
}

/* =========================
   DROPDOWN (MOBILE / TABLET)
========================= */

.social-dropdown {
  display: none;
  grid-column: 1 / -1;
}

.dropdown-toggle {
  width: 100%;
  padding: 16px;
  background:var(--contact-surface);
  color:var(--contact-accent);
  border:1px solid var(--contact-border);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
}
.dropdown-toggle:hover{
  box-shadow:var(--contact-hover-glow);
  transform:translateY(-3px);
}
.dropdown-content {
  display: none;
  margin-top: 20px;
  gap: 20px;
}

.dropdown-content .social-frame iframe {
  height: 300px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-social-frames {
    display: none;
  }

  .social-dropdown {
    display: block;
  }
}


/* =========================
   CONTACT FORM (PREMIUM UPGRADE)
========================= */
#contact {
  min-height: 100vh;
  scroll-snap-align: start;
}
.contact-form-wrap {
  margin-top: 60px;
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

/* Premium Glass Container */
.contact-form {
  max-width: 520px;
  width: 100%;
  padding: 45px 40px;
  border-radius: 28px;

  background: var(--form-surface);
  border: 1px solid var(--form-border);
  backdrop-filter: blur(18px);

  box-shadow: var(--form-shadow);
  transition: transform .4s ease, box-shadow .4s ease;
}

.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: var(--form-hover-shadow);
}


.contact-form h3 {
  margin-bottom: 30px;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .5px;
}

/* Input Groups */

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;

  border: 1px solid var(--form-input-border);
  background: var(--form-input-bg);
  color: var(--form-input-text);

  font-size: .95rem;
  outline: none;

  transition:
    border .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

.contact-form textarea {
  resize: none;
}


/* Placeholder */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--form-placeholder);
  letter-spacing: .3px;
}


/* Focus State */

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--form-focus-border);
  background: var(--glass-bg-strong);
  box-shadow: var(--form-focus-glow);
}

/* Premium Button */

.form-btn {
  width: 100%;
  margin-top: 15px;
  padding: 15px;

  border-radius: 50px;
  border: none;

  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );

  color: var(--color-on-primary);

  font-weight: 700;
  letter-spacing: 1px;

  cursor: pointer;
  transition: transform .3s ease,
              box-shadow .3s ease,
              filter .3s ease;
}

.form-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 40px
    color-mix(in srgb, var(--color-primary) 40%, transparent);
  filter: brightness(1.05);
}

/* =========================
   FOOTER (CLEAN PREMIUM)
========================= */

.site-footer {
  margin-top: 100px;
  padding: 40px 20px;

  border-top: 1px solid var(--border-soft);
  background: var(--surface-main);

  text-align: center;
  font-size: .85rem;
  letter-spacing: .4px;

  color: var(--text-muted);

  min-height: auto !important;
  height: auto;
  scroll-snap-align: end;
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity .3s ease;
}

.site-footer a:hover {
  opacity: .7;
}


.site-footer p {
  margin: 8px 0;
}



/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {
  .contact-form {
    padding: 30px 25px;
  }

  .contact-form h3 {
    font-size: 1.4rem;
  }
}


/* ===== ABOUT SECTION ===== */
#about{
  background: var(--surface-main);
  position:relative;
}

#about::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      circle at 80% 20%,
      color-mix(in srgb, var(--color-primary) 12%, transparent),
      transparent 60%
    );
  pointer-events:none;
}


.about-wrapper{
  width:100%;
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:60px;
  align-items:center;
}

.about-chip{
  display:inline-block;
  padding:6px 14px;
  font-size:.7rem;
  letter-spacing:3px;
  color:var(--about-accent);
  background:var(--about-chip-bg);
  border:1px solid var(--about-chip-border);
  border-radius:20px;
  margin-bottom:20px;
}

.about-heading{
  font-size:2.4rem;
  line-height:1.2;
  margin-bottom:15px;
}

.about-sub{
  color: var(--color-text-muted);
  font-size:.95rem;
  margin-bottom:20px;
}

.about-text{
  line-height:1.8;
  opacity:.9;
  max-width:520px;
}

.about-socials{
  margin-top:30px;
}

.about-socials a{
  margin-right:18px;
  text-decoration:none;
  color:var(--about-accent);
  font-size:.95rem;
  position:relative;
  transition:.3s ease;
}

.about-socials a::after{
  content:'';
  position:absolute;
  left:0;bottom:-4px;
  width:0;
  height:1px;
  background:var(--about-accent);
  transition:.3s;
}

.about-socials a:hover::after{
  width:100%;
}

/* ===== RIGHT SIDE FLOATING PILLS ===== */

.about-right{
  position:relative;
  height:260px;
}

.skill-pill{
  position:absolute;
  padding:14px 22px;
  background:var(--about-pill-bg);
  border:1px solid var(--about-pill-border);
  border-radius:30px;
  backdrop-filter:blur(12px);
  font-size:.9rem;
  box-shadow:var(--about-pill-shadow);
  animation:float 6s ease-in-out infinite;
  transition:.3s ease;
}
    .skill-pill:hover{
      transform:translateY(-6px);
      box-shadow:
        0 15px 40px color-mix(in srgb, var(--color-primary) 25%, transparent);
    }

.skill-pill:nth-child(1){top:0;left:20%}
.skill-pill:nth-child(2){top:80px;right:0;animation-delay:1s}
.skill-pill:nth-child(3){bottom:60px;left:0;animation-delay:2s}
.skill-pill:nth-child(4){bottom:0;right:30%;animation-delay:3s}


@keyframes float{
  50%{transform:translateY(-12px)}
}

/* ===== MOBILE ===== */

@media(max-width:768px){
  .about-wrapper{
    grid-template-columns:1fr;
    gap:40px;
  }
  .about-right{
    height:180px;
  }
  .about-heading{
    font-size:1.9rem;
  }
  .about-text{
    max-width:100%;
  }
}
@media (max-width: 480px){
  #about{
    padding:70px 5vw;
  }

  .about-heading{
    font-size:1.7rem;
  }

  .about-sub{
    font-size:.85rem;
  }

  .about-text{
    font-size:.95rem;
    line-height:1.6;
  }

  .about-socials a{
    display:inline-block;
    margin:10px 15px 0 0;
    font-size:.9rem;
  }

  .about-right{
    height:150px;
  }

  .skill-pill{
    font-size:.75rem;
    padding:8px 14px;
  }
}
/* ===== EXPERIENCE ===== */

.exp-wrapper{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding: 0 20px;
}


.exp-chip{
  display:inline-block;
  padding:6px 16px;
  font-size:.7rem;
  letter-spacing:3px;
  color:var(--exp-accent);
  background:var(--exp-chip-bg);
  border:1px solid var(--exp-chip-border);
  border-radius:20px;
  margin-bottom:20px;
}

.exp-title{
  font-size:2.3rem;
  margin-bottom:50px;
}

/* ===== TIMELINE ===== */

.exp-timeline{
  position:relative;
  border-left:2px solid var(--exp-timeline-line);
  padding-left:40px;
}
.exp-timeline::before{
  content:'';
  position:absolute;
  left:-6px;
  width:12px;
  height:12px;
  background:var(--exp-dot-bg);
  box-shadow:var(--exp-dot-glow);
  border-radius:50%;
}

.exp-item{
  display:flex;
  gap:30px;
  margin-bottom:40px;
}

.exp-year{
  min-width:60px;
  color:var(--exp-accent);
  font-weight:600;
}

.exp-content h4{
  margin-bottom:6px;
}

.exp-content p{
  color: var(--color-text-muted);
  line-height:1.6;
}

/* ===== ALT MODE (STATS) ===== */

.exp-alt{
  /*display:grid;*/
  /*grid-template-columns:repeat(auto-fit,minmax(160px,1fr));*/
  /*gap:30px;*/
  /*margin-top:30px;*/
  display:flex;
  flex-wrap:wrap;
  gap:30px;
  justify-content:center;
  margin-top:40px;
}

.exp-stat{
  background:var(--exp-stat-bg);
    border:1px solid var(--exp-stat-border);
    box-shadow:var(--exp-stat-shadow);
    transition:.35s ease;
  border-radius:18px;
  padding:30px;
  text-align:center;
}
.exp-stat:hover{
  transform:translateY(-6px);
  box-shadow:
    0 20px 50px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.exp-stat strong{
  font-size:2rem;
  color:var(--exp-accent);
}

.exp-stat span{
  display:block;
  margin-top:8px;
  font-size:.85rem;
  color: var(--color-text-muted);
}
/* =========================
   EXPERIENCE RESPONSIVE
========================= */

@media (max-width: 1024px){
  .exp-title{
    font-size:2rem;
  }
}

/* ===== TABLET & MOBILE ===== */
@media (max-width: 768px){

  #experience{
    padding:80px 6vw;
  }

  .exp-title{
    font-size:1.8rem;
    margin-bottom:40px;
  }

  /* Timeline */
  .exp-timeline{
    padding-left:25px;
  }

  .exp-item{
    flex-direction:column;
    gap:10px;
    margin-bottom:30px;
  }

  .exp-year{
    font-size:.9rem;
    opacity:.8;
  }

  .exp-content h4{
    font-size:1.05rem;
  }

  .exp-content p{
    font-size:.95rem;
  }

  /* Stats */
  .exp-alt{
    gap:20px;
  }

  .exp-stat{
    padding:24px;
  }

  .exp-stat strong{
    font-size:1.7rem;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px){

  #experience{
    padding:70px 5vw;
  }

  .exp-title{
    font-size:1.6rem;
  }

  .exp-chip{
    font-size:.65rem;
    padding:5px 14px;
  }

  .exp-timeline{
    border-left:1px solid rgba(255,255,255,.12);
  }

  .exp-stat{
    padding:20px;
  }

  .exp-stat strong{
    font-size:1.5rem;
  }

  .exp-stat span{
    font-size:.8rem;
  }
}
#education {
  padding: 100px 8%;
}

.edu-wrapper {
  max-width: 1100px;
  margin: auto;
}

.edu-chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 50px;
  background: var(--edu-chip-bg);
  border: 1px solid var(--edu-chip-border);
  color: var(--edu-accent);
  margin-bottom: 20px;
}
.edu-cgpa {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 6px;
}
.edu-title {
  font-size: 32px;
  margin-bottom: 60px;
  color: var(--text-main);
}

/* Timeline */

.edu-timeline {
  position: relative;
  border-left: 2px solid var(--edu-timeline-line);
  padding-left: 40px;
}

.edu-item {
  position: relative;
  margin-bottom: 50px;
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -51px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--edu-dot-bg);
  box-shadow: var(--edu-dot-glow);
}

.edu-year {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.edu-content h4 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.edu-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
/* ===== SERVICES ===== */
#services{
  min-height:100vh;
}
.services-wrap{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:50px;
  align-items:flex-start;
}

/* LEFT TABS */
.services-tabs{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.service-tab{
  background: var(--surface-elevated);
  border:none;
  color: var(--color-text-muted);
  padding:18px 22px;
  border-radius:14px;
  font-size:1rem;
  text-align:left;
  cursor:pointer;
  transition:.4s;
  position:relative;
  border: 1px solid var(--border-soft);
}

.service-tab::before{
  content:'';
  position:absolute;
  left:0;top:0;
  width:4px;height:100%;
  background:var(--color-primary);
  border-radius:4px;
  opacity:0;
  transition:.4s;
}

.service-tab:hover{
  color: var(--color-text-white);
  transform:translateX(6px);
}

.service-tab.active{
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.service-tab.active::before{
  opacity:1;
}

/* RIGHT CONTENT */
.services-content{
  position:relative;
  min-height:260px;
}

.service-panel{
  opacity:0;
  transform:translateY(20px);
  transition:.6s ease;
  pointer-events:none;
  display:none;
}

.service-panel.active{
  display:block;
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}


.service-panel h3{
  font-size:1.8rem;
  margin-bottom:10px;
}

.service-panel p{
  max-width:600px;
  opacity:.9;
  margin-bottom:20px;
}

.service-panel ul{
  list-style:none;
}

.service-panel li{
  margin-bottom:8px;
  opacity:.85;
}

@media (max-width: 768px){

  .services-wrap{
    grid-template-columns:1fr;
    gap:30px;
  }

  .services-tabs{
    flex-direction:row;
    overflow-x:auto;
    padding-bottom:10px;
  }

  .service-tab{
    white-space:nowrap;
    min-width:180px;
    text-align:center;
  }

  .service-tab::before{
    left:50%;
    top:auto;
    bottom:0;
    width:40%;
    height:3px;
    transform:translateX(-50%);
  }

  .services-content{
    min-height:320px;
  }
}
/* =========================
   PROJECTS SECTION
========================= */

#projects h2 {
  margin-bottom: 40px;
}

/* Carousel wrapper */
.project-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}
#projects .projects-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;           /* centers container */
}

/* Track */
.project-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
  gap:0;
}

/* Cards */
.project-card {
  flex: 0 0 33.3333%;
  padding: 12px;
  flex-shrink: 0;
}

/* Card inner */
.project-card-inner {
  height: 100%;
  background: var(--surface-card);
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}

.project-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

/* Tag */
.project-tag {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  margin-bottom: 14px;
}

/* Text */
.project-card-inner h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-card-inner p {
  font-size: .95rem;
  opacity: .85;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Button */
.read-more {
  padding: 10px 18px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}
.read-more:hover {
  background: var(--btn-hover);
}

/* Navigation arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--carousel-btn-bg);
  color: var(--carousel-btn-text);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

.carousel-nav:hover {
  background: var(--carousel-btn-hover-bg);
  color: var(--carousel-btn-hover-text);
}
/* =========================
   CAROUSEL CONTROLS (BELOW)
========================= */

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

/* Override old arrow positioning */
.carousel-nav {
  position: static;
  transform: none;
}

/* Make buttons touch-friendly */
.carousel-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
}


/* ===== TABLET (2 cards) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  #projects .projects-wrap {
    max-width: 900px;
  }

  .project-card {
    flex: 0 0 50%;
  }

  .carousel-nav {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

/* ===== MOBILE (1 card) ===== */
@media (max-width: 768px) {
  #projects .projects-wrap {
    max-width: 100%;
    padding: 0 12px;
  }

  .project-card {
    flex: 0 0 100%;
    padding: 8px;
  }

  .project-card-inner {
    padding: 20px;
  }

  /* Hide arrows on mobile (swipe UX) */
  /*.carousel-nav {*/
  /*  display: none;*/
  /*}*/
}

/* ===== MODAL ===== */
#project-modal{
  position:fixed;
  inset:0;
  background: var(--modal-overlay);
  backdrop-filter: blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:500;
}
#project-modal.active{
  display:flex;
}

.modal-box{
    background: var(--modal-surface);
  max-width:800px;
  width:90%;
  border-radius:20px;
  padding:30px;
  position:relative;
  border: 1px solid var(--modal-border);
  backdrop-filter: blur(20px);
  color: var(--modal-text);
}


.modal-box h3{
  margin-bottom:10px;
}
.modal-box p{
    color: var(--modal-text);
  opacity:.85;
  margin-bottom:20px;
}
/* ===== MODAL MOBILE FIX ===== */
@media(max-width:768px){
  .modal-box{
    max-height:90vh;
    overflow-y:auto;
    padding:20px;
  }

  .modal-gallery img{
    height:140px;
    flex-shrink:0;
  }

  .close-modal{
    font-size:1.8rem;
  }
}

.modal-gallery{
  display:flex;
  gap:15px;
  overflow-x:auto;
}
.modal-gallery img{
  height:180px;
  border-radius:12px;
  color: var(--modal-text-muted);
}

.close-modal{
  position:absolute;
  top:15px;
  right:20px;
  cursor:pointer;
  font-size:1.5rem;
  color: var(--modal-close-color);
  transition: color .2s ease;
}
.close-modal:hover{
  color: var(--modal-close-hover);
}
@media(max-width:480px){
  .modal-box{
    max-height:85vh;
    overflow-y:auto;
  }

  .modal-gallery{
    padding-bottom:10px;
  }
}
#project-modal.active .modal-box{
  animation: modalPop .4s ease;
}

@keyframes modalPop{
  from{transform:scale(.9); opacity:0}
  to{transform:scale(1); opacity:1}
}