@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root{
  --bg: #0f1117;
  --card: rgba(255,255,255,0.06);
  --text: #f5f5f5;
  --subtext: #b8b8b8;
  --accent: #c7a46c;
}

html{
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar{
  display: none;
}

body{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* DARK MODE */
body.dark-mode{
  --bg: #0f1117;
  --card: rgba(255,255,255,0.06);
  --text: #f5f5f5;
  --subtext: #b8b8b8;
  --accent: #c7a46c;
}

/* THEME TOGGLE */
.theme-toggle{
  position: fixed;
  top: 12.5px;
  right: 30px;
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255,255,255,0.15);

  transition: 0.3s ease;

  color: var(--text);

  border: 1px solid rgba(255,255,255,0.2);

  z-index: 1001;
}

.theme-toggle:hover{
  transform: rotate(12deg);

  background: var(--accent);
  color: white;
}

body,
.card,
.box,
.project-card,
.nav,
.tag,
.input,
textarea{
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

li{
  list-style: none;
}

a{
  text-decoration: none;
  color: #0f0e17;
  font-size: 1rem;
  transition: .5s;
}

a:hover{
  color: rgba(75, 73, 73, 0.9);
}

header{
  position: relative;
  padding: 0 2rem;
  background: transparent;
}

html{
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
}

/* SaaS-style cursor for mouse and trackpad users. */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor input,
  body.custom-cursor textarea,
  body.custom-cursor select {
    cursor: none;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 1;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity 160ms ease, width 180ms ease, height 180ms ease, background-color 180ms ease;
  }

  .cursor-ring {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }

  .cursor-ring.is-active {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
  }

  .cursor-ring.is-settling {
    transition: opacity 160ms ease, width 180ms ease, height 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(0.22, 1.4, 0.36, 1);
  }

  .cursor-ring.is-hidden {
    opacity: 0;
  }
}
.scroll-up-btn{
  position: fixed;
  height: 45px;
  width: 42px;
  background: #8c7851;
  right: 30px;
  bottom: 10px;
  text-align: center;
  line-height: 45px;
  color: #020826;
  z-index: 9999;
  font-size: 30px;
  border-radius: 6px;
  border-bottom-width: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-up-btn.show{
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}

.scroll-up-btn:hover{
  filter: brightness(70%);
  box-shadow: 0 0 5px #8c7851, 0 0 10px #8c7851, 0 0 15px #8c7851;
}

/* ===== SCROLL ANIMATION ===== */
/* Hidden state before scrolling */
.fade-up{
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 1.2s ease,
    transform 1.8s ease;
}

/* Visible state */
.fade-up.show{
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.nav{
  position: fixed;   /* makes it sticky */
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 5%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;

  /* Glass Effect */
  /* background: rgba(249, 244, 239, 0.75); */
  /* backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); */

  border-bottom: none;

  z-index: 1000;
  transition: all .3s ease;
}

/* Optional hover effect */
.nav:hover{
  background: transparent;
  box-shadow: none;
}

/* Logo */
.nav .logo a{
  font-size: 1.4rem;
  font-weight: bold;
  /* text-decoration: none; */
  color: #020826;
}

.nav-actions{
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Links */
.nav .links{
  display: flex;
  gap: 2rem;
}

.nav .links a{
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: .3s ease;
}

.nav .links a.active{
  color: #fff;
  background: var(--accent);
}

/* When the transparent nav overlays the dark Home hero, keep its controls legible. */
body.nav-on-hero .nav .links a,
body.nav-on-hero .nav .logo a,
body.nav-on-hero .nav .toggle-btn {
  color: #f9f4ef;
}

body.nav-on-hero .nav .links a.active{
  color: #1d141e;
  background: #f8d98f;
}

body.nav-on-hero .nav .links a.active:hover{
  color: #1d141e;
}

body.nav-on-hero .theme-toggle {
  color: #f9f4ef;
  background: rgba(255, 255, 255, 0.12);
}

/* Hover underline */
.nav .links a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #8c7851;
  transition: .3s ease;
}

.nav .links a:hover{
  color: #8c7851;
}

.nav .links a.active:hover{
  color: #fff;
}

.nav .links a:hover::after{
  width: 100%;
}

/* Mobile Toggle */
.nav .toggle-btn{
  color: #020826;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* Prevent content from hiding under navbar */
body{
  padding-top: 0;
}

/* DROPDOWN MENU */
.dropdown-menu{
  display: none;
  position: absolute;
  right: 2rem;
  top: 60px;
  height: 0;
  width: 300px;

  background: rgba(20, 20, 25, 0.85);   /* solid-ish dark panel, always readable */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;

  z-index: 1001;   /* make sure it sits above hero content */

  transition: height .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu.open{
  height: 320px;
}

.dropdown-menu a{
  color: #f9f4ef;   /* light text, readable on the dark panel regardless of theme */
}

.dropdown-menu a:hover{
  color: #8c7851;
}

.dropdown-menu li{
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Home */
#home{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  color: #f9f4ef;
}

/* Background Image */
#home::before{
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/about/background-image.jpg')
              no-repeat center center/cover;
  z-index: -2;
}

/* Dark Overlay */
.overlay{
  position: absolute;
  inset: 0;
  background: rgba(48, 48, 49, 0.65);
  z-index: -1;
}

@media (hover: none) and (pointer: coarse){
  #home::before{
    background: url('/img/about/mobile-bg.png')
                no-repeat center center/cover;
  }
}

/* Main Content */
.main{
  max-width: 850px;
  padding: 0 8%;
  z-index: 1;
}

/* Small Top Text */
.tagline{
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  color: #f8d98f;
  text-transform: uppercase;
}

/* Main Heading */
.main h1,
#hero-title{
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

#hero-title.is-typing::after{
  content: '_';
  color: var(--accent);
  animation: typewriter-caret 700ms steps(1, end) infinite;
}

@keyframes typewriter-caret{
  50%{
    opacity: 0;
  }
}

/* Description */
.description{
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  color: rgba(249, 244, 239, 0.9);
  margin-bottom: 2rem;
}

/* Buttons */
.hero-buttons{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Primary Button */
.button{
  padding: 14px 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #8c7851;
  transition: .4s ease;
}

.button a{
  color: #f9f4ef;
  text-decoration: none;
  font-weight: 600;
}

.button:hover{
  transform: translateY(-3px);
  box-shadow:
    0 0 10px rgba(140,120,81,0.5),
    0 0 20px rgba(140,120,81,0.4);
}

/* Secondary Button */
.secondary{
  background: transparent;
  backdrop-filter: blur(8px);
}

.secondary:hover{
  background: rgba(255,255,255,0.1);
}

/* Responsive */
@media(max-width: 500px){

  .main h1,
  #hero-title{
    font-size: 2.5rem;
  }

  .description{
    font-size: 1rem;
  }

  .hero-buttons{
    flex-direction: column;
    width: 100%;
  }

  .button{
    width: fit-content;
  }
}
.headings{
  font-size: 2.5rem;
  text-align: center;
  margin: 40px 0px;
}
.button{
  padding: 10px 35px;
  background-color: transparent;
  border: 1px solid var(--text);
  outline: none;
  transition: .6s ease;
  background: #8c7851;
  color: #f9f4ef;
  position: relative;
}
.button a{
  color: #f9f4ef;
  text-decoration: none;
}
.button:hover{
  cursor: pointer;
  background: #8c7851;
  border: 1px solid #020826;
  box-shadow: 0 0 5px #8c7851, 0 0 10px #8c7851, 0 0 15px #8c7851;
  font-weight: bold;
}
.button:hover a{
  color: #f9f4ef;
}
/* ===== ABOUT SECTION ===== */

#about{
  padding: 100px 8%;
  background: var(--bg);
  color: var(--text);
}

.about-heading {
  padding: 0 7%;
  margin-bottom: 58px;
  text-align: center;
}

.about-heading h1 {
  display: inline-block;
  margin: 0;
  color: var(--text);
  font-size: 3rem;
  position: relative;
}

.about-heading h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 20px;
  transform: translateX(-50%);
}

.about-layout{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
  padding: 0 8%;
}

.about-content h1{
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.about-content p{
  line-height: 1.8;
  color: var(--subtext);
  font-size: 1.02rem;
}

.check-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.check-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.check-item i{
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
  font-size: 1rem;
}

.about-card{
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 1.8rem;
}

.about-card-header{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.about-avatar{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #f9f4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-card-header h3{
  color: var(--text);
  font-size: 1.05rem;
}

.about-card-header p{
  color: var(--subtext);
  font-size: 0.85rem;
}

.about-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.about-stat{
  background: rgba(140,120,81,0.08);
  border: 1px solid rgba(140,120,81,0.15);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label{
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.stat-value{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.about-timeline{
  border-top: 1px solid rgba(140,120,81,0.2);
  padding-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.timeline-label{
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--subtext);
  margin-bottom: 0.8rem;
}

.timeline-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.timeline-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-role{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.timeline-company{
  font-size: 0.82rem;
  color: var(--subtext);
}

.timeline-date{
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--subtext);
  white-space: nowrap;
}

.about-cta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(140,120,81,0.08);
  border: 1px solid rgba(140,120,81,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: 0.3s ease;
}

.about-cta:hover{
  background: var(--accent);
  color: #f9f4ef;
}

@media(max-width: 900px){
  .about-layout{
    grid-template-columns: 1fr;
  }
  .check-grid{
    grid-template-columns: 1fr;
  }
}

.check-item i{
  flex-shrink: 0;
  margin-top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Project */
#projects{
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  align-items: center;
  padding: 100px 8%;
}

.project-heading {
  padding: 0 7%;
  margin-bottom: 58px;
  text-align: center;
}

.project-heading h1 {
  display: inline-block;
  margin: 0;
  color: var(--text);
  font-size: 3rem;
  position: relative;
}

.project-heading h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 20px;
  transform: translateX(-50%);
}

.project-container{
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Card */
.project-card{
  display: flex;
  flex-direction: column;

  /* background: rgba(234, 221, 207, 0.7); */
  background: var(--card);
  backdrop-filter: blur(12px);

  border-radius: 18px;
  overflow: hidden;

  transition: .4s ease;

  box-shadow:
    0 12px 35px rgba(0,0,0,0.05);
}

/* Hover */
.project-card:hover{
  transform: translateY(-6px);

  box-shadow:
    0 20px 40px rgba(140,120,81,0.15),
    0 0 25px rgba(140,120,81,0.12);
}

/* Image */
.project-card img{
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 10px 10px 10px 10px;
  height: 200px;
}
.project-card:hover img{
  transform: scale(1.03);
}
/* Content */
.project-content{
  display: flex;
  flex-direction: column;
  flex-grow: 1;

  padding: 1.8rem;
}
.project-content p:first-of-type{
  flex-grow: 1;
}
/* Title */
.project-content h3{
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Description */
.project-content p{
  line-height: 1.65;
  text-align: left;
  color: var(--subtext);
}

/* Section Label */
.project-title{
  display: block;
  margin-top: 1.5rem;
  margin-bottom: .8rem;

  color: #8c7851;
  font-size: 1rem;
}

/* Bullet Highlights */
.project-highlights{
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-highlights li{
  list-style: disc !important;
  margin-bottom: .6rem;
  line-height: 1.7;
  color: var(--subtext);
}

/* Tools */
.tools{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* Tag style */
.tag{
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 500;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(140,120,81,0.10);
  color: #8c7851;

  border: 1px solid rgba(140,120,81,0.18);

  backdrop-filter: blur(10px);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover effect */
.tag:hover{
  background: #8c7851;
  color: #f9f4ef;

  transform: translateY(-3px);

  box-shadow:
    0 8px 20px rgba(140,120,81,0.18);
}

/* Responsive */
@media(max-width: 768px){

  #projects{
    padding: 80px 6%;
  }

  .project-card{
    width: 100%;
  }
}
/* ===== SERVICES SECTION ===== */

#services{
  padding: 120px 8%;
  background: var(--bg);
}

/* Section Title */
#services .headings{
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: var(--text);
  position: relative;
}

#services .headings::after{
  content: '';
  width: 80px;
  height: 4px;
  background: #8c7851;
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  border-radius: 20px;
}

.box-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

/* Cards Container */
.row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* SaaS Card Style */
.box{
  position: relative;
  overflow: hidden;

  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px;

  padding: 2rem;

  transition:
    transform .4s ease,
    box-shadow .4s ease;

  box-shadow:
    0 10px 35px rgba(0,0,0,0.06);

  min-height: 520px;
}

/* Hover Glow */
.box:hover{
  transform: translateY(-10px);

  box-shadow:
    0 20px 40px rgba(140,120,81,0.15),
    0 0 25px rgba(140,120,81,0.12);
}

/* Top Glow Effect */
.box::before{
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;

  width: 220px;
  height: 220px;

  background: rgba(140,120,81,0.12);
  border-radius: 50%;

  transition: .5s ease;
}

.box:hover::before{
  transform: scale(1.3);
}

/* Service Image */
.box img{
  width: 70px;
  height: 70px;
  object-fit: cover;

  border-radius: 18px;
  margin-bottom: 1.5rem;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.12);
}

/* Card Heading */
.headingsbox{
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Card Text */
.box{
  display: flex;
  flex-direction: column;
}

/* Makes paragraph take available space */
.box p{
  flex-grow: 1;
  text-align: left;
  color: var(--subtext);
}

/* Align bottom tags evenly */
.box strong{
  display: block;
  margin-top: 1.5rem;
  line-height: 1.7;
  color: #8c7851;
}

/* Responsive */
@media(max-width: 768px){

  #services{
    padding: 90px 6%;
  }

  #services .headings{
    font-size: 2.3rem;
  }

  .box{
    min-height: auto;
  }

  .row{
    grid-template-columns: repeat(1, 1fr);
    display: grid;
    gap: 2rem;
  }
}

@media(max-width: 900px){
  .row{
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
  }
}

@media(width: 600px){
  .row{
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
  }
}

/* Tech Stack */
#tech-stack {
  overflow: hidden;
  padding: 95px 0;
  background: var(--bg);
}

.tech-stack-heading {
  padding: 0 7%;
  margin-bottom: 58px;
  text-align: center;
}

.tech-stack-heading h1 {
  display: inline-block;
  margin: 0;
  color: var(--text);
  font-size: 3rem;
  position: relative;
}

.tech-stack-heading h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 20px;
  transform: translateX(-50%);
}

.logo-marquee {
  width: 100%;
  padding: 0 7%;
}

.logo-marquee-track {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.logo-marquee-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  align-items: center;
}

.tech-logo {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 122px;
  flex: 0 0 calc((100% - 126px) / 8);
}

.tech-logo i {
  font-size: clamp(3.4rem, 4.5vw, 4.8rem);
}

.tech-logo::after {
  content: attr(title);
  color: var(--subtext);
  font-size: 1.1rem;
  font-weight: 600;
}

.tech-logo-odoo {
  color: #714b67;
  font-size: clamp(3.4rem, 4.5vw, 4.8rem);
  font-weight: 700;
}

/* Official technology colors keep the marquee easy to scan. */
.devicon-python-plain { color: #3776ab; }
.devicon-php-plain { color: #777bb4; }
.devicon-java-plain { color: #ea2d2e; }
.devicon-cplusplus-plain { color: #00599c; }
.devicon-javascript-plain { color: #f7df1e; }
.devicon-mysql-plain { color: #4479a1; }
.devicon-postgresql-plain { color: #4169e1; }
.devicon-docker-plain { color: #2496ed; }
.devicon-linux-plain { color: #f7c600; }
.devicon-nginx-original { color: #009639; }
.devicon-github-original { color: var(--text); }

/* Use a unified monochrome treatment that matches each site theme. */
.tech-logo i,
.tech-logo-odoo,
.tech-logo-zkteco {
  color: var(--accent);
}

body.dark-mode .tech-logo i,
body.dark-mode .tech-logo-odoo {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  #tech-stack { padding: 75px 0; }
  .tech-stack-heading h1 { font-size: 2.2rem; }
  .logo-marquee-track { max-width: 100%; }
  .logo-marquee-group { gap: 20px 12px; }
  .tech-logo { flex-basis: calc((100% - 36px) / 4); }
}

#skills {
  background: var(--bg);
  padding: 100px 7%;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* HEADER CARD */
.skills-info {
  padding: 20px 10px;
}

.section-label {
  color: #8c7851;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.skills-info h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 20px 0;
  color: var(--text);
}

.skills-info p {
  color: var(--subtext);
  line-height: 1.8;
  font-size: 15px;
}

/* CARD */
.card {
  background: var(--card);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.4);

  border-radius: 24px;

  padding: 1.2rem;
  min-height: 180px;

  width: 92%;
  max-width: 420px;

  transition: 0.35s ease;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.06),
    inset 0 1px 1px rgba(255,255,255,0.5);
}

/* HOVER */
.card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.10);
}

/* TITLE */
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text);
}

/* TOOLS */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* TAG */
.tag {
  padding: 10px 14px;

  border-radius: 999px;

  background: var(--card);

  border: 1px solid rgba(255,255,255,0.5);

  font-size: 14px;

  transition: 0.25s ease;
}

.tag:hover {
  background: #8c7851;
  color: white;
}

/* MOBILE */
@media (max-width: 991px) {

  .grid {
    grid-template-columns: 1fr;
  }

  .skills-info h1 {
    font-size: 2.2rem;
  }

  .card {
    min-height: auto;
  }
}
/* Opportunity */
#opportunity{
  padding: 120px 7%;
  background: var(--bg);
}

.opportunity-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.opportunity-content{
  max-width: 750px;
}

.opportunity-illustration{
  display: flex;
  align-items: center;
  justify-content: center;
}

.opportunity-illustration img{
  display: block;
  width: min(100%, 440px);
  height: auto;
}

.opportunity-image-dark{
  display: none !important;
}

body.dark-mode .opportunity-image-light{
  display: none;
}

body.dark-mode .opportunity-image-dark{
  display: block !important;
}

/* LABEL */
.section-label{
  color: #8c7851;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* TITLE */
.opportunity-content h1{
  font-size: 3.2rem;
  line-height: 1.1;
  color: var(--text);

  margin: 20px 0;
}

/* DESCRIPTION */
.opportunity-content p{
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--subtext);

  margin-bottom: 35px;

  max-width: 650px;
}

/* BUTTON AREA */
.opportunity-buttons{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* BUTTON */
.opportunity-btn{
  padding: 14px 28px;

  border-radius: 14px;

  background: #8c7851;
  color: #fff;

  border: 1px solid transparent;

  transition: 0.3s ease;

  font-weight: 500;
}

/* HOVER */
.opportunity-btn:hover{
  transform: translateY(-4px);

  box-shadow:
    0 10px 25px rgba(140,120,81,0.25);

  color: white;
}

/* SECONDARY BUTTON */
.secondary-btn{
  background: transparent;
  border: 1px solid #8c7851;
  color: #8c7851;
}

.secondary-btn:hover{
  background: #8c7851;
  color: white;
}

/* MOBILE */
@media(max-width: 768px){

  #opportunity{
    padding: 90px 20px;
  }

  .opportunity-layout{
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .opportunity-illustration{
    order: -1;
  }

  .opportunity-illustration img{
    width: min(100%, 340px);
  }

  .opportunity-content h1{
    font-size: 2.3rem;
  }

  .opportunity-content p{
    font-size: 0.98rem;
  }

  .opportunity-buttons{
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   CONTACT SECTION
========================= */

#contact{
  background: var(--bg);
  padding: 120px 7%;
}

/* CONTAINER */
.contact-container{
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 60px;
  align-items: center;
}

/* LEFT SIDE */
.contact-info h1{
  font-size: 4rem;
  line-height: 1.05;
  color: var(--text);

  margin: 20px 0;
}

.contact-info p{
  color: var(--subtext);
  line-height: 1.9;
  font-size: 1.05rem;

  max-width: 650px;

  margin-bottom: 40px;
}

/* CONTACT DETAILS */
.contact-details{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item{
  display: flex;
  align-items: center;
  gap: 16px;

  font-size: 1rem;
  color: var(--text);
}

.contact-item i{
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #8c7851;
  color: white;

  font-size: 18px;
}

/* RIGHT FORM */
.contact-form-box{
  background: var(--card);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.4);

  border-radius: 28px;

  padding: 40px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.06);
}

/* FORM */
.form{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* INPUT GROUP */
.input-group{
  position: relative;
}

/* LABEL */
.input-group input,
.input-group textarea{
  width: 100%;

  padding: 20px 18px;

  border-radius: 16px;

  border: 1px solid rgba(255,255,255,0.15);

  background: var(--card);

  color: white;

  font-size: 15px;

  outline: none;

  transition: 0.3s ease;
}

/* TEXTAREA */
.input-group textarea{
  resize: none;
}

/* LABEL */
.input-group label{
  position: absolute;

  left: 18px;
  top: 18px;

  color: #8c7851;

  font-size: 14px;

  pointer-events: none;

  transition: 0.25s ease;

  padding: 0 6px;
}

/* FLOAT EFFECT */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label{

  top: -10px;
  left: 14px;

  font-size: 12px;

  color: #8c7851;
}

/* INPUT FOCUS */
.input-group input:focus,
.input-group textarea:focus{
  border-color: #8c7851;

  box-shadow:
    0 0 0 4px rgba(140,120,81,0.15);
}

/* INPUT */
.input,
#msg{
  width: 100%;

  border: none;
  outline: none;

  border-color: #8c7851;

  border-radius: 16px;

  padding: 18px;

  font-size: 15px;

  color: var(--text);
}

/* TEXTAREA */
#msg{
  resize: none;
}

/* BUTTON */
#send{
  border: none;
  outline: none;

  background: #8c7851;
  color: white;

  padding: 16px 24px;

  border-radius: 14px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

/* HOVER */
#send:hover{
  transform: translateY(-4px);

  box-shadow:
    0 10px 25px rgba(140,120,81,0.25);
}

/* MOBILE */
@media(max-width: 991px){

  .contact-container{
    grid-template-columns: 1fr;
  }

  .contact-info h1{
    font-size: 2.7rem;
  }

  .contact-form-box{
    padding: 28px;
  }
}
/* footer */
footer{
  background: var(--bg);
  padding: 20px 23px;
  color: white;
}
footer span a{
  color: gold;
}
footer span a:hover{
  text-decoration: underline;
}
.footer-content{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.socials{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 0;
}
.socials a{
  text-decoration: none;
  color: var(--text);
}
.socials span{
  margin: 0 30px;
  font-size: 25px;
}
.socials:hover{
  cursor: pointer;
}

@media(max-width: 992px){
  .nav .toggle-btn{
    display: none;
  }

  .dropdown-menu{
    display: none !important;
  }
}

/* @media(max-width: 576px){
  .dropdown-menu{
    left: 2rem;
    width: unset;
  }
} */
/* =========================
   MOBILE RESPONSIVE FIXES
========================= */

@media (max-width: 768px) {

  /* GLOBAL */
  html,
  body{
    overflow-x: hidden;
  }

  section{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* NAVBAR */
  .nav{
    padding: 0 20px;
  }

  /* HOME */
  #home{
    min-height: 90vh;
    text-align: left;
  }

  .main{
    padding: 0;
  }

  .main h1{
    font-size: 2.6rem;
    line-height: 1.2;
  }

  .description{
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-buttons{
    width: 100%;
  }

  .button{
    width: fit-content;
  }

  /* ABOUT */
  #about{
    padding-top: 80px;
  }

  #pic{
    gap: 2rem;
  }

  #intro h1{
    font-size: 2.2rem;
  }

  #intro p{
    font-size: 0.98rem;
    text-align: left;
  }

  /* SERVICES */
  .row{
    grid-template-columns: 1fr;
  }

  .box{
    min-height: auto;
    padding: 1.8rem;
  }

  .headingsbox{
    font-size: 1.5rem;
  }

  /* PROJECTS */
  .project-container{
    grid-template-columns: 1fr;
  }

  .project-card img{
    height: auto;
  }

  /* SKILLS */
  #skills{
    padding-top: 80px;
  }

  .skills-title{
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .skills-description{
    font-size: 0.95rem;
    margin-bottom: 35px;
  }

  .grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card{
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1.5rem;
  }

  .card h3{
    font-size: 1.1rem;
  }

  .tag{
    font-size: 13px;
    padding: 8px 12px;
  }

  /* CONTACT */
  .input,
  #email,
  #msg,
  #send{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* FOOTER */
  .socials span{
    margin: 0 15px;
    font-size: 22px;
  }

  footer{
    text-align: center;
  }
}

body.dark-mode #about,
body.dark-mode #projects,
body.dark-mode #services,
body.dark-mode #tech-stack,
body.dark-mode #skills,
body.dark-mode #opportunity,
body.dark-mode #contact,
body.dark-mode footer{
  background: transparent;
}

body.dark-mode{
  background: #06060a;
}

body.dark-mode::before,
body.dark-mode::after{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body.dark-mode::before{
  background-image:
    radial-gradient(1.5px 1.5px at 40px 60px, #fff, transparent),
    radial-gradient(1px 1px at 130px 20px, #ccc, transparent),
    radial-gradient(1.5px 1.5px at 210px 140px, #fff, transparent),
    radial-gradient(1px 1px at 290px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 220px, #ddd, transparent),
    radial-gradient(1px 1px at 340px 200px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 170px 300px, #fff, transparent),
    radial-gradient(1px 1px at 380px 320px, #ccc, transparent),
    radial-gradient(1.5px 1.5px at 10px 380px, #fff, transparent),
    radial-gradient(1px 1px at 250px 400px, #fff, transparent);
  background-repeat: repeat;
  background-size: 420px 450px;
}

body.dark-mode::after{
  background-image:
    radial-gradient(1px 1px at 80px 40px, #fff, transparent),
    radial-gradient(0.5px 0.5px at 190px 90px, #fff, transparent),
    radial-gradient(1px 1px at 300px 30px, #eee, transparent),
    radial-gradient(0.5px 0.5px at 360px 180px, #fff, transparent),
    radial-gradient(1px 1px at 140px 250px, #fff, transparent),
    radial-gradient(0.5px 0.5px at 30px 300px, #fff, transparent),
    radial-gradient(1px 1px at 400px 370px, #fff, transparent);
  background-repeat: repeat;
  background-size: 260px 280px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle{
  from{ opacity: 0.35; }
  to{ opacity: 1; }
}

.scroll-progress-track{
  position: fixed;
  top: 30%;
  bottom: 30%;
  right: 30px;
  width: 1px;
  background: rgba(255,255,255,0.12);
  z-index: 9998;
}

.scroll-progress-bar{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.1s linear;
}