/* Glassmorphism Navbar */
.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 20px;
}

.glass-nav {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.nav-logo span {
  color: var(--primary-glow);
}

.nav-pills {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-pill {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.nav-pill:hover, .nav-pill.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Hero Section Styles */
.hero-container {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 25px;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 650px;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  gap: 15px;
}

/* Buttons */
.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Skills Layout & Glass Cards */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.skills-matrix {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skills-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-green { color: var(--accent-green); }
.icon-blue { color: var(--primary-glow); }

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.skill-pill i {
  color: var(--primary-glow);
}

.skill-pill.learning {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.05);
}

.skill-pill.learning i {
  color: var(--secondary-glow);
}

.skill-pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Project Filter Tabs & Grid */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-glow);
  color: #0b0f19;
  border-color: var(--primary-glow);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tag {
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-glow);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #fff;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  font-size: 0.88rem;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--primary-glow);
}

/* Contact Section */
.contact-section {
  min-height: 60vh;
  align-items: center;
}

.contact-card {
  text-align: center;
  max-width: 650px;
  width: 100%;
  padding: 50px;
}

.contact-card h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--glass-border);
}

/* Responsive queries */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .glass-nav {
    gap: 15px;
    padding: 10px 18px;
  }
  .nav-pill span {
    display: none;
  }
}

/* Casino / Decrypting Text Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #05070c;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.preloader-hud-ring {
  width: 70px;
  height: 70px;
  border: 2px dashed rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: hudSpin 3s linear infinite;
}

.hud-inner {
  width: 45px;
  height: 45px;
  border: 2px solid var(--primary-glow);
  border-top-color: transparent;
  border-radius: 50%;
  animation: hudSpinReverse 1.5s ease-in-out infinite;
}

.preloader-text-container {
  font-family: 'Outfit', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  min-height: 40px;
  background: linear-gradient(135deg, var(--primary-glow), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

@keyframes hudSpin {
  to { transform: rotate(360deg); }
}

@keyframes hudSpinReverse {
  to { transform: rotate(-360deg); }
}


/* =========================================
   EDUCATION & INTERESTS TIMELINE
========================================= */

.timeline-section {
  position: relative;
  width: min(100% - 40px, 900px);
  margin: 100px auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 55px;
}

.section-kicker {
  display: inline-block;
  color: #9b8cff;
  font-size: 0.75rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.section-heading h2 span {
  color: #9b8cff;
}

.section-heading p {
  opacity: 0.65;
  margin-top: 12px;
}

.timeline {
  position: relative;
  padding-left: 35px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    #8b7cff,
    #53d6ff,
    transparent
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a18aff;
  box-shadow: 0 0 15px #a18aff;
  z-index: 2;
}

.timeline-card {
  padding: 25px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155,140,255,0.6);
}

.timeline-year {
  display: inline-block;
  color: #a99aff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-size: 1.3rem;
  margin: 0 0 7px;
}

.timeline-card h4 {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  margin: 0 0 12px;
}

.timeline-card p {
  line-height: 1.7;
  opacity: 0.7;
  margin: 0;
}

.timeline-status {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  background: rgba(120,220,170,0.12);
  color: #83e8b5;
}

.timeline-status.ongoing {
  background: rgba(100,180,255,0.12);
  color: #80c8ff;
}

@media (max-width: 600px) {
  .timeline-section {
    width: calc(100% - 30px);
    margin: 70px auto;
  }

  .timeline-card {
    padding: 19px;
  }

  .timeline-card h3 {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-card {
    transition: none;
  }

  .timeline-card:hover {
    transform: none;
  }
}


/* =========================================
   DIGITAL RAIN CANVAS
   ========================================= */

html,
body {
    isolation: isolate;
}

#digital-rain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    z-index: -1;
    pointer-events: none;

    opacity: 0.72;
    mix-blend-mode: screen;

    display: block;
}

/* Keep the effect subtle on smaller screens. */
@media (max-width: 768px) {
    #digital-rain {
        opacity: 0.48;
    }
}


/* =================================
   MY JOURNEY — UNIFIED TIMELINE
================================= */

.journey-section {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 24px;
}

.journey-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 75px;
}

.journey-eyebrow {
    display: inline-block;
    color: #70cfff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.journey-header h2 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
}

.journey-header h2 span {
    color: #70cfff;
    text-shadow: 0 0 25px rgba(112, 207, 255, 0.3);
}

.journey-header p {
    color: rgba(220, 235, 255, 0.65);
    font-size: 1rem;
    line-height: 1.7;
}

/* Timeline structure */

.journey-timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.journey-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: 35px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(112, 207, 255, 0.8),
        rgba(112, 207, 255, 0.12)
    );
}

.journey-year {
    position: relative;
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 28px;
    margin-bottom: 55px;
}

.journey-year:last-child {
    margin-bottom: 0;
}

.journey-year-marker {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 8px;
    border-radius: 50%;
    background: #70cfff;
    border: 3px solid #101b32;
    box-shadow: 0 0 15px rgba(112, 207, 255, 0.7);
}

.journey-year-content {
    min-width: 0;
}

.journey-year-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.journey-year-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
}

.journey-year-caption {
    color: rgba(180, 215, 245, 0.55);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.journey-events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* Event cards */

.journey-card {
    position: relative;
    min-width: 0;
    padding: 23px;
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(160, 210, 255, 0.12);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-5px);
    background: rgba(112, 207, 255, 0.065);
    border-color: rgba(112, 207, 255, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.journey-category {
    display: inline-block;
    margin-bottom: 13px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #70cfff;
}

.journey-card.interest .journey-category {
    color: #a9baff;
}

.journey-card h3 {
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.4;
    margin: 0 0 9px;
}

.journey-card p {
    color: rgba(220, 235, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

.journey-detail {
    display: inline-block;
    margin-top: 12px;
    color: rgba(112, 207, 255, 0.8);
    font-size: 0.76rem;
}

/* Future milestone */

.journey-year.upcoming .journey-year-marker {
    background: #101b32;
    border: 2px solid #70cfff;
    box-shadow: 0 0 12px rgba(112, 207, 255, 0.35);
}

.journey-year.upcoming .journey-card {
    border-style: dashed;
    border-color: rgba(112, 207, 255, 0.3);
}

/* Responsive layout */

@media (max-width: 650px) {
    .journey-section {
        padding: 75px 18px;
    }

    .journey-header {
        margin-bottom: 55px;
    }

    .journey-year {
        gap: 19px;
        margin-bottom: 42px;
    }

    .journey-year-number {
        font-size: 1.7rem;
    }

    .journey-events {
        grid-template-columns: 1fr;
    }

    .journey-card {
        padding: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-card {
        transition: none;
    }

    .journey-card:hover {
        transform: none;
    }
}


/* =================================
   HERO SECTION — TWO COLUMN LAYOUT
================================= */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-layout {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 100px 35px 60px;

    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 55px;
}

.hero-copy {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.hero-copy .hero-title {
    text-align: left;
}

.hero-copy .hero-subtitle {
    max-width: 650px;
}

.hero-profile {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.hero-profile .card-3d-wrapper {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

/* Keep existing 3D card effects intact */

.hero-profile .card-3d {
    width: 100%;
}

/* Skills section no longer needs the card column */

.skills-grid {
    display: block;
}

.skills-matrix {
    width: 100%;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
        gap: 30px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .hero-profile .card-3d-wrapper {
        max-width: 300px;
    }
}

@media (max-width: 700px) {
    .hero-section {
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 130px 22px 70px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .hero-title {
        text-align: center;
    }

    .hero-copy .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-copy .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-profile .card-3d-wrapper {
        max-width: 320px;
    }
}
