:root {
  --bg: #0b0f1a;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #fe9c0a;
  --radius: 8px;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --glow: 0 0 18px rgba(254, 156, 10, 0.2);
  --card: rgba(255, 255, 255, 0.06);
  --bg2: #000
}


/* 🌞 LIGHT MODE */
html.light {
  --bg: #f5f7fb;;
  --panel: rgba(0, 0, 0, 0.04);
  --text: #000;
  --muted: #4b5563;
  --primary: #f59e0b;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --glow: 0 0 18px rgba(245, 158, 11, 0.25);
  --card: rgba(0, 0, 0, 0.04);
  --bg2: #fff;
}

/* smooth transition */
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* toggle UI */
.theme-switch {
  position: relative;
  width: 3.5rem;
  height: 1.8rem;
  display: inline-block;
}

/* hide checkbox */
.theme-switch input {
  display: none;
}

/* track */
.slider {
  position: absolute;
  inset: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* knob (the sliding circle) */
.slider::before {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  left: 3px;
  transition: 0.3s ease;
  box-shadow: var(--glow);
}

/* icons */
.icon {
  font-size: 14px;
  z-index: 1;
  transition: opacity 0.2s ease;
}

/* default (night mode) → moon visible, sun hidden */
.sun {
  opacity: 0;
}

/* checked (light mode) */
.theme-switch input:checked + .slider::before {
  transform: translate(1.7rem, -50%);
}

.theme-switch input:checked + .slider .sun {
  opacity: 1;
}

.theme-switch input:checked + .slider .moon {
  opacity: 0;
}
/* addd */
/* default: show desktop */
.theme-switch.desktop {
  display: inline-block;
}

.theme-switch.mobile {
  display: none;
}

/* mobile view */
@media (max-width: 768px) {
  .theme-switch.desktop {
    display: none;
  }

  .theme-switch.mobile {
    display: inline-block;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-padding-top: 40px;
}

body {
  background: var(--bg);
  color: var(--text);
  scrollbar-gutter: stable;
  padding: 0;
}

/* =================HEADER================= */

.header {
  position: fixed;
  top: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;

}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo,
.logo span {
  color: var(--text);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 900;
  text-decoration: none;
  height: 1;
}

.nav,
.burger {
  height: auto;
  display: flex;
  align-items: center;
}

/* DESKTOP NAV */
.nav {
  gap: 30px;
  flex-shrink: 0;
  margin-left: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--primary);
}

.contact-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: #000 !important;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  border-radius: var(--radius);
}

/* BURGER */
.burger {
  display: none;
  visibility: hidden;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .burger {
    margin-left: auto;
    display: flex;
  }
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: 0.3s ease;
  margin-right: 1rem;
}

/* BURGER ANIMATION */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* MOBILE */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .burger {
    visibility: visible;
  }
}

/* MOBILE NAV (inside container) */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: 20px;
  margin: 0 auto;
  width: 40%;
  background: var(--bg2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding:1rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.3s ease;
}

.header-container.active .mobile-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* LINKS */
.mobile-nav a {
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s;
  text-align: left;
  padding-left: .5rem;
  border-bottom: 1px dotted var(--primary);
  line-height: 2;
}

/* OPEN STATE */

.mobile-nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(254, 156, 10, 0.6);
}

/* OVERLAY */
.overlay {
  display: none !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ================= HERO ================= */
.hero {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow:
  0 30px 80px rgba(0, 0, 0, 0.7),
  0 10px 30px rgba(0, 0, 0, 0.4),
  0 0 60px rgba(254, 156, 10, 0.08),
  inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  min-height: calc(100vh - 70px);
  padding: 0 5%;
  gap: 40px;
  margin: 1rem;
  background: radial-gradient(circle at top left,
      rgba(254, 156, 10, 0.12),
      transparent 40%);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero:hover {
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(254, 156, 10, 0.249),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Mobile layout */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 70px);
    padding: 20px;
    gap: 30px;
  }
  .contact-nav{
    padding: .2rem 1rem;
  }
}

/* Desktop layout */
@media (min-width: 768px) {
  .hero-box {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    align-items: center;
    width: 100%;
    gap: 20px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 600px;
    gap: 0.8rem;
  }
}

.hero-text {
  padding: 0 1rem;
}

.hero-text h1,
.hero-text .subtitle {
  width: 100%;
  margin: 0;
}

h1 {
  line-height: 1.1;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 4rem);
}

h1 span {
  font-size: clamp(3rem, 5vw, 5rem)!important;
  color: var(--primary);
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}

.badge {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  color: #fe9c0a;
  background: rgba(254, 156, 10, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(254, 156, 10, 0.25);
  box-shadow: 0 4px 20px rgba(254, 156, 10, 0.12);
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(254, 156, 10, 0.25);
  border-color: rgba(254, 156, 10, 0.4);
}

.hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-img img {
  width: clamp(230px, 30vw, 320px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(254, 156, 10, 0.2));
}

/* ================= BUTTONS ================= */
.btn,
.btn-outline {
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
  font-weight: 500;
  transition: top 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
  position: relative;
}

/* PRIMARY BUTTON */
.btn {
  margin-top: 2rem;
  background: var(--primary);
  color: #000;
}

/* HOVER (both buttons) */
.btn:hover,
.btn-outline:hover,
.contact-nav:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--glow);
  cursor: pointer;
}

.contact-nav:hover {
  color: var(--text) !important;
}

.hero-text .btn,
.hero-text .btn-outline {
  transform: none;
}

/* OUTLINE BUTTON */
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

/* OUTLINE HOVER */
.btn-outline:hover {
  background: rgba(254, 156, 10, 0.1);
}

/* ================= SECTIONS ================= */
.section {
  padding: 60px 10%;
}

h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  margin: 1rem 0;
  text-align: center;
}

h3 {
  color: var(--text) !important;
  font-size: clamp(18px, 1.3vw, 24px);
}

.hero p,
.about p {
  text-align: justify;
  font-size: clamp(16px, 1.5vw, 26px);
}

.hero p {
  margin: 0 1rem;
}

/* -----------------------ABOUT-------------- */
.about {
  padding: 60px 10%;
}

.about-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  background: transparent;
  margin-bottom: 1.3rem;
  overflow: hidden;
}

.about-img img {
  max-width: 300px;
  margin: 0;
}

.about-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-text {
  color: var(--muted);
  max-width: 750px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-box {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin-top: 2rem;
}

/* GRID LAYOUT */
@media (min-width: 768px) {
  .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .about-text {
    margin-top: 2rem;
  }
}

.about-grid .card {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .about-box {
    display: flex;
    flex-direction: column;
  }

  .about-text {
    margin-top: 0;
  }
}

/* CARD STYLE */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* HOVER EFFECT */
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: rgba(254, 156, 10, 0.3);
}

/* TITLE INSIDE CARD */
.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* TEXT */
.card p,
.card ul {
  color: var(--muted);
  line-height: 1.6;
}

.card ul {
  padding-left: 18px;
}

/* OPTIONAL LIGHT SWIPE EFFECT */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transition: 0.5s;
}

.card:hover::before {
  left: 100%;
}

.item {
  margin-bottom: 10px;
  color: var(--text);
}

.year-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--primary);
  border-bottom: 1px solid rgba(254, 156, 10, 0.2);
}

.card ul {
  padding-left: 18px;
}

.card ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.skills-li {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* PROJECT */
.project h3 {
  margin-bottom: 5px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--glow);
}

/* Image */
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Content */
.project-info {
  padding: 16px;
}

.project-info h3 {
  margin-bottom: 6px;
}

.project-info p {
  font-size: clamp(14px, 1vw, 15px);
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Buttons */
.actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.actions a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--panel);
  color: var(--text);
  transition: 0.3s;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.actions a:hover {
  transform: scale(1.05);
}

/* TIMELINE */
.timeline p {
  margin: 10px 0;
  color: var(--muted);
}

/* =========================
   CONTACT SECTION
========================= */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
}

/* Glass effect */
.glass {
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: 2px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.glass-left {
  background: red;
}

/* =========================
   LEFT CONTACT PANEL
========================= */

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Glass already applied from .glass */

/* Title */
.contact-info h3 {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--primary);
  margin-bottom: 10px;
}

/* Description */
.contact-info>p {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* =========================
   STATUS BADGE
========================= */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 16px;
}

.status-badge span {
  width: 8px;
  height: 8px;
  background: #00c853;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  70% {
    transform: scale(1.6);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   CONTACT DETAILS
========================= */

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Icon */
.detail i {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  margin-top: 4px;
}

/* Label (Email / Location) */
.detail span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

/* Value */
.detail p,
.detail a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.detail a:hover {
  color: var(--primary);
}

/* =========================
   ACTION BUTTONS
========================= */

.contact-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-actions a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

/* Outline button (CV) */
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

/* WhatsApp button */
.whatsapp-right {
  padding: 0;
  background: rgba(0, 200, 83, 0.1);
}

.whatsapp-right img {
  width: 2rem;
  height: 2rem;
}

/* Hover effect */
.whatsapp-right:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* Icon size inside */
.btn-whatsapp i {
  width: 18px;
  height: 18px;
}

/* =========================
   FORM
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form .input-group {
  border-radius: 2px;
}

/* Input group */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

/* Icon */
.input-group i {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

/* Inputs */
.input-group input,
.input-group textarea {
  border: none;
  outline: none;
  width: 100%;
  font-size: clamp(14px, 1.2vw, 15px);
  background: transparent;
  font-family: inherit;
}

/* Floating label */
.input-group label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #888;
  pointer-events: none;
  transition: 0.3s ease;
}

/* Focus animation */
.input-group:focus-within {
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* Move label */
.input-group input:focus+label,
.input-group textarea:focus+label,
.input-group input:valid+label,
.input-group textarea:valid+label {
  top: -8px;
  left: 23px;
  font-size: 11px;
  color: var(--primary);
  background: rgba(254, 156, 10, 0.1);
  padding: 0 6px;
  border-radius: 2px;
}

/* Textarea fix */
.input-group.textarea {
  align-items: flex-start;
}

.input-group.textarea textarea {
  min-height: 120px;
  resize: none;
}

.input-group.textarea label {
  top: 20px;
}

/* =========================
   BUTTON
========================= */

.contact-form .btn {
  margin-top: 10px;
  padding: clamp(10px, 1.5vw, 14px) clamp(18px, 2vw, 24px);
  border-radius: 2px;
  font-size: clamp(14px, 1.2vw, 15px);
  transition: 0.3s ease;
  border: none;
  width: 100%;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
}

#responseMsg {
  display: block;
  font-size: clamp(14px, 1.2vw, 20px);
  color: var(--primary);
  margin-top: 0;
  opacity: 0;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#responseMsg.show {
  opacity: 1;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

.footer {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 60px 10%;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: auto;
}

/* BRAND */
.footer-brand h3 {
  color: var(--primary);
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  margin: auto;
}

/* SOCIAL ICONS */
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.about-socials .icon-btn svg {
  fill: var(--primary);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
  transition: 0.3s;
}

.icon-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.icon-btn:hover svg {
  fill: var(--primary);
}

/* LINKS */
.footer-brand h3 {
  color: var(--primary) !important;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* DIVIDER */
.footer-line,
.about-line {
  height: 1px;
  background: var(--border);
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
}

.about-line {
  background: rgba(240, 138, 4, 0.53);
  max-width: 100vw;
}

/* BOTTOM */
.footer-bottom {
  font-size: 13px;
  color: var(--muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px;
  }

  .socials {
    gap: 10px;
  }

  .footer-links {
    gap: 12px;
  }
}

/* ================= ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.6s ease;
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}