/* ==========================
   COLOR SYSTEM
========================== */
:root {
    --bg: #ffffff;
    --card: #ededed;
    --fg: #000000;
    --muted: #555555;
    --brand: #7aa2ff;
    --accent: #ef030b;
    --accent2: #dc2424;
}

/* Dark mode overrides */
.dark-mode {
    --bg: #0b1020;
    --card: #1c1c1c;
    --fg: #f5f5f5;
    --muted: #aaaaaa;
    --brand: #7aa2ff;
    --accent: #ef030b;
    --accent2: #dc2424;
}

/* ==========================
   BASE STYLES
========================== */
html,
body {
    height: 100%;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

p {
    color: var(--fg);
}

a {
    color: inherit;
    text-decoration: none;
}

.big-word {
    color: var(--accent);
    font-size: 80px;
}

@media (max-width: 600px) {
    .big-word {
        font-size: 60px;
    }
}

/* ==========================
   NAVBAR
========================== */
.navbar {
    background: var(--card) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 69, 69, 0.25);
}

.navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--fg) !important;
}

.navbar .nav-link {
    color: var(--fg) !important;
    opacity: .85;
    margin: 0 .25rem;
    border-radius: 10px;
    padding: .5rem .8rem;
}

#navbarNav{
    margin-right: 90px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    opacity: 1;
    background: rgba(255, 255, 255, .08);
}

/* ==========================
   BUTTONS
========================== */
.btn-brand {
    background: linear-gradient(120deg, rgba(81, 54, 54, 0.8), var(--accent));
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 50px;
    padding: .7rem 1.1rem;
    box-shadow: 0 12px 35px rgba(122, 162, 255, .35);
}

.btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: var(--fg);
    border: 1px solid rgba(39, 39, 39, 0.3);
    border-radius: 14px;
    padding: .7rem 1.1rem;
}

.btn-ghost:hover {
    border: 1px solid var(--fg);
    background-color: rgba(55, 55, 55, 0.19);
}

/* SECTIONS */
section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative
}

.section-pad {
    padding: min(12vh, 120px) 6vw
}

.card-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25)
}


/* ABOUT */
#about .feature {
    background: var(--card);
    border: 1px solid rgba(4, 4, 4, 0.241);
    border-radius: 20px;
    padding: 22px
}

/* HORIZONTAL SHOWCASE */
#showcase {
    background: #0f1631;
}

.h-container {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden
}

.h-track {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 10vw;
    height: 100%
}

.h-panel {
    flex: 0 0 70vw;
    height: 70vh;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: clamp(1.6rem, 5vw, 3.4rem);
    color: #fff;
    background: linear-gradient(120deg, rgba(122, 162, 255, .25), rgba(248, 213, 126, .18));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35)
}

/* SKILLS TAGS */
#skills {
    background: #0e172f
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.tag {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 600;
    font-size: .95rem
}

/* CONTACT */
#contact {
    background: #ffffff
}

.form-control,
.form-select {
    background: #cfd0d592;
    border-color: rgba(255, 255, 255, .1);
    color: var(--fg)
}

.form-control:focus,
.form-select:focus {
    background: #d3d4d4;
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(122, 162, 255, .25)
}

/* Orbs */
.orb {
    position: absolute;
    width: 220px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(20px);
    opacity: .35
}

.o1 {
    right: 10%;
    top: 120vh;
    background: radial-gradient(circle at 30% 30%, #7aa2ff, transparent 60%)
}

.o2 {
    left: 8%;
    top: 200vh;
    background: radial-gradient(circle at 70% 40%, #f8d57e, transparent 60%)
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        transform: none !important;
        opacity: 1 !important
    }
}

.menu-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 80px;
    overflow-x: auto;
    white-space: nowrap;
    position: fixed;
    top: 60px;
    /* below navbar */
    z-index: 999;
    gap: 20px;
    margin-top: 15px;
}

.menu-bar a {
    color: #0c0c0c;
    margin: 0 10px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.menu-bar a:hover {
    color: #d92e2e;
}

.badge {
    padding: 13px;
    font-size: medium;
}

.floating-icons .icon {
    position: absolute;
    width: 60px;
    opacity: 0.8;
    transition: transform 0.2s ease-out;
    pointer-events: none;
}

@media (max-width: 600px) {
    .floating-icons .icon {
        opacity: .4;
    }
}

/* container */
.menu-bar {
    display: flex;
    gap: .6rem;
    padding: 10px 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: fixed;
    top: 60px;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
    cursor: grab;
    border-bottom: 1px solid rgba(74, 69, 69, 0.551);
}

.menu-bar::-webkit-scrollbar {
    display: none;
}

/* hide Chrome scrollbar */

/* items */
.menu-bar a {
    flex: 0 0 auto;
    /* don’t shrink */
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgb(96, 94, 94);
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    user-select: none;
    /* nicer dragging */
    -webkit-user-drag: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.menu-bar a:hover {
    background: rgba(255, 45, 45, 0.492);
    color: #000000;
    border: 1px solid rgba(255, 18, 18, 0.6);
}

.menu-bar.is-dragging {
    cursor: grabbing;
}


/* ==========================
   MENU BAR
========================== */
.menu-bar {
  display: flex;
  gap: .6rem;
  padding: 10px 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  position: fixed;
  top: 60px;
  background: var(--card);
  color: var(--fg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  cursor: grab;
}

.menu-bar::-webkit-scrollbar {
  display: none;
}

.menu-bar a {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(96, 94, 94, 0.6);
  color: var(--fg);
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.menu-bar a:hover {
  background: var(--accent2);
  color: #fff;
  border: 1px solid var(--accent);
}



/* Dark mode */
.dark-mode {
    background: #1c1c1c;
    color: #f5f5f5;
}

/* Toggle container */
.switch {
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-block;
    width: 60px;
    height: 30px;
}

/* Hide checkbox */
.switch input {
    display: none;
}

/* Slider background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

/* Circle knob */
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Checked state */
input:checked+.slider {
    background-color: #ef030b;
}

input:checked+.slider:before {
    transform: translateX(30px);
}


/* ==========================
   SECTIONS & CARDS
========================== */
section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
}

.section-pad {
  padding: min(12vh, 120px) 6vw;
}

.card-glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

/* About */
#about .feature {
  background: var(--card);
  border: 1px solid rgba(4, 4, 4, 0.15);
  border-radius: 20px;
  padding: 22px;
}

/* Contact */
#contact {
  background: var(--card);
}





/* ==========================
   DARK MODE TOGGLE
========================== */
/* Hide checkbox */
.switch {
  position: absolute;
  display: inline-block;
  width: 53px;
  height: 30px;
  
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider base */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}

/* Knob */
.slider::before {
  content: "🔆";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Checked state */
input:checked + .slider {
  background: rgba(255,255,255,0.15);
}
input:checked + .slider::before {
  transform: translateX(25px);
  content: "🌙";
  background: #1e1e2f;
  color: white;
}

@media (max-width: 768px) {
    .switch {
        width: 60px; 
        margin-top: 37px;
        right: 10px;
    }
}

.card-glass{
    padding: 50px;
}





  /* Glass Footer */
  footer {
    background: rgba(255, 255, 255, 0.003);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 20px;
    color: white;
  }

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

  footer a:hover {
    color: #ea4c4c;
  }

  .footer-logo img {
    width: 120px;
  }

  .footer-section h5 {
    margin-bottom: 20px;
  }

  .social-icons a {
    margin-right: 15px;
    font-size: 24px;
    transition: transform 0.3s;
  }

  .social-icons a:hover {
    transform: scale(1.2);
    color: #ffcc00;
  }

  @media (max-width: 768px) {
    footer .row {
      text-align: center;
    }
    .social-icons {
      justify-content: center;
      margin-top: 20px;
    }
  }

  footer h5,
  .list-unstyled a{
    color:var(--fg);
  }