
:root {
  /* Primary Colors */
  --color-primary: #14b8a6;
  --color-primary-dark: #0d9488;
  --color-primary-light: #2dd4bf;
  --color-accent: #3b82f6;
  --color-accent-dark: #2563eb;
  --color-accent-light: #60a5fa;
  
  /* Legacy variables for compatibility */
  --main-color: #53bdff;
  --accent-color: #0ea5e9;
  
  /* Background Colors */
  --bg-color: #080808;
  --second-bg-color: #0f0f0f;
  --color-bg-card: #1a1a1a;
  --color-bg-hover: #242424;
  --card-bg: rgba(255,255,255,0.03);
  --border-color: rgba(255,255,255,0.08);
  
  /* Text Colors */
  --text-color: #ffffff;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a3a3a3;
  --color-text-muted: #737373;
  
  /* Borders */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);
  
  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 20px rgba(83, 189, 255, 0.4);
  --glow-accent: 0 0 20px rgba(59, 130, 246, 0.3);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Rajdhani', 'Poppins', 'Inter', sans-serif;
  --font-display: 'Rajdhani', 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--color-text-primary);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--main-color);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

span {
  color: var(--main-color);
}

.heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header,
header {
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0.76));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header:hover,
header:hover {
  border-bottom-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  letter-spacing: 0.01em;
}

.nav-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  color: #d7dce4;
  text-decoration: none;
  transition: color var(--transition-base), background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-link.active::after {
  display: none;
}

.nav-link.active {
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(30, 64, 175, 0.95));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

.nav-toggle-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #f9fafb;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-1px);
}

.mobile-nav-panel {
  margin: 0.5rem 1rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mobile-nav-menu {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
}

.mobile-nav-link {
  width: 100%;
  justify-content: center;
  border-radius: 0.75rem;
  min-height: 2.6rem;
}

.home-cinematic-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(18, 74, 130, 0.24) 0%, rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.5));
}

.home-hero-card {
  position: relative;
  max-width: 46rem;
  width: 100%;
  padding: 2rem 2.3rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(94, 165, 255, 0.45);
  background: linear-gradient(135deg, rgba(8, 12, 22, 0.84), rgba(8, 8, 8, 0.9));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.16) inset;
  backdrop-filter: blur(8px);
}

.home-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.65), transparent);
}

.home-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(156, 214, 255, 0.9);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.home-role {
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: #8fc4ff;
  margin-bottom: 0.6rem;
}

.home-summary {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: #d9e4f3;
  line-height: 1.85;
  max-width: 34rem;
  margin: 0 auto;
}

/* Logo Animation */
.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 10px var(--main-color),
                 0 0 20px var(--main-color),
                 0 0 30px var(--main-color);
  }
  50% {
    text-shadow: 0 0 20px var(--main-color),
                 0 0 40px var(--main-color),
                 0 0 60px var(--main-color);
  }
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.intro-section {
      background-color: #0a2a43;
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 2rem;
      padding: 3rem 1rem;
    }
    .intro-text {
      flex: 1 1 60%;
      text-align: left;
    }
    .intro-text h1 {
      margin: 0;
      font-size: 2.5rem;
    }
    .intro-text p {
      font-size: 1.2rem;
      color: #a8d6f5;
    }
    .intro-text button {
      margin-top: 1rem;
      padding: 0.5rem 1rem;
      background-color: #4fc3f7;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
      cursor: pointer;
    }
    .intro-image {
      flex: 1 1 35%;
      text-align: center;
    }
    .intro-image img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
    }
    .about-section img {
      float: left;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      margin-right: 1rem;
    }
    .about-section ul {
      list-style: none;
      padding-left: 0;
    }
    .about-section li {
      margin: 0.3rem 0;
    }

/* Fullscreen video background */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Overlay to darken video for better text visibility */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Stylish line */
.line {
  border-top: 2px solid #ffffff;
  width: 60%;
  margin: 1rem auto;
}

/* DaisyUI Menu Customization */
.menu a {
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.menu a:hover {
  border-bottom: 2px solid gray;
}

.logo{
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
} 

.logo:hover{
    transform: scale(1.1);
}

.logo span{
    text-shadow: 0 0 25px var(--main-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.btn, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(83, 189, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(83, 189, 255, 0.5);
}

/* Projects Page Specific */
.bg-projects {
  background-color: #f8f9fa;
}

.project-item img {
  object-fit: cover;
  height: 200px;
  width: 100%;
  border-radius: 0.375rem;
  border: 2px solid #333333;
}

.project-title {
  font-size: 1.125rem;
  color: #333333;
}

.gallery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.gallery-grid {
  width: 100%;
  max-width: 1200px;
}

/* About Page Specific */
.bg-about {
  background-color: #f8f9fa;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  color: #fff;
  margin: 0.5rem;
  transition: background-color 0.3s ease;
  font-size: 18px;
}

.social-btn:hover {
  background-color: #555;
}

.line2 {
  border-top: 2px solid #333333;
  width: 80%;
  margin: 2rem auto;
}

.table-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.table {
  width: 100%;
  max-width: 500px;
}

.table th,
.table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #f4f4f4;
}

/* Home/About layout fixes */
.home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 1rem;
}

.home h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

.home h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
}

.home p {
  margin: 0.4rem 0;
  line-height: 1.55;
}

.home .home-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-img img {
  width: 100%;
  max-width: 340px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.education {
  margin-top: 4rem;
}

.timeline-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--main-color);
  border-radius: 50%;
  position: absolute;
  left: 16px;
  top: 18px;
}

.timeline-data {
  font-weight: 700;
  color: var(--main-color);
  margin-left: 24px;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
}

.timeline-content p {
  margin: 0.2rem 0;
  color: #dfe6f0;
}

/* Responsive header padding */
@media (max-width: 768px) {
  body {
    padding-top: 96px;
  }
  .navbar a {
    margin-left: 0;
  }
  .header {
    padding: 0.6rem 1rem;
  }
}

.text-justify {
  text-align: justify;
}

.text-right {
  text-align: justify;
  margin-right: 80px;
}

.profile-img {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  object-position: center top;
}

.cv-button {
  background-color: #4a90e2;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.cv-button:hover {
  background-color: #357abd;
}

/* Contact Page Specific */
.bg-contact {
  background-color: #f8f9fa;
}

.form-container {
  max-width: 600px;
  margin: var(--space-2xl) auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: var(--glow-primary);
  background: var(--second-bg-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Form in timeline-content styling override */
form.timeline-content {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
}


.btn-primary {
  background-color: #333;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #555;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.popup-content {
  background: var(--color-bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--transition-slow);
  text-align: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-content.success {
  border: 2px solid green;
}

.popup-content.error {
  border: 2px solid red;
}

.popup.success .popup-content {
  border-color: var(--main-color);
  box-shadow: var(--shadow-xl), var(--glow-primary);
}

.popup.error .popup-content {
  border-color: #ef4444;
  box-shadow: var(--shadow-xl), 0 0 20px rgba(239, 68, 68, 0.3);
}

.popup-button {
  margin-top: var(--space-md);
  padding: 0.75rem 2rem;
  background: var(--main-color);
  color: var(--bg-color);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.popup-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(83, 189, 255, 0.1);
  border: 1px solid var(--main-color);
  border-radius: var(--radius-md);
  color: var(--main-color);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.tag:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: translateY(-2px);
}

/* CV Page Specific */
.pdf-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 1150px;
  border: 2px solid #333333;
  border-radius: 0.375rem;
  display: block;
}

.download-btn {
  margin-top: 20px;
  text-align: center;
}

.download-btn button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* SCC Page Specific */
.scroll-arrow {
  cursor: pointer;
  z-index: 10;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow img {
  width: 50px;
}

.gallery-grid1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item1 {
  position: relative;
  overflow: hidden;
}

.gallery-item1 img {
  transition: transform 0.3s ease-in-out;
}

.gallery-item1:hover img {
  transform: scale(1.1);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #4b5563;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

.right::after {
  left: -16px;
}

.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feedback-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.feedback-card {
  flex: 0 0 100%;
}

/* About */
section {
  padding: var(--space-2xl) var(--space-md);
  min-height: auto;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
  padding: 2rem 0;
}


.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  max-width: 800px;
}

span {
  color: var(--main-color);
}

.logo span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.home-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 1rem 0 2rem 0;
}

.home-img {
  position: relative;
}

.home-img img {
  width: 35vw;
  max-width: 400px;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
  border: 3px solid var(--color-border);
}
.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
  border-color: var(--main-color);
  transform: scale(1.02);
}

.home-content p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}

.social-links a:hover {
  background-color: var(--main-color);
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: var(--font-primary);
  text-decoration: none;
  border-radius: 4rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  color: black;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  letter-spacing: 0.1rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--main-color), var(--color-accent));
  z-index: -1;
  transition: transform var(--transition-base);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}

.btn:active {
  transform: scale(0.98);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-group a:nth-of-type(2) {
  background: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  background: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}

.text-animation {
  font-size: clamp(1.5rem, 3vw, 34px);
  font-weight: 600;
  min-width: 280px;
}

.text-animation span {
  position: relative;
  color: var(--main-color);
}

.text-animation span::before {
  content: "Game Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {
  0%, 20% { content: "Game Developer"; }
  21%, 40% { content: "XR Game Developer"; }
  41%, 60% { content: "Web Developer"; }
  61%, 80% { content: "App Developer"; }
  81%, 100% { content: "Constant Learner"; }
}

@keyframes typing {
  10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
    width: 0;
  }
  5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
    width: calc(100% + 8px);
  }
}

/* Education */
.heading {
  color: white;
  font-size: clamp(2rem, 4vw, 4rem);
  text-align: center;
  margin: 5rem 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  width: 100%;
}

.heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), var(--color-accent));
  border-radius: 2px;
  box-shadow: var(--glow-primary);
}

.education {
  padding: 10px 15px;
  background: var(--second-bg-color);
  margin-top: 4rem;
}

.education h2 {
  margin-bottom: 5rem;
}

.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  padding: var(--space-2xl) 0;
}

.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--main-color) 10%,
    var(--color-accent) 90%,
    transparent
  );
  left: calc(50% - 2.5px);
  box-shadow: 0 0 10px var(--main-color);
}

.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
  opacity: 0;
  animation: fadeInTimeline 0.6s ease forwards;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
  animation-delay: 0.1s;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
  text-align: left;
  animation-delay: 0.2s;
}

@keyframes fadeInTimeline {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.timeline-dot {
  height: 21px;
  width: 21px;
  background: linear-gradient(135deg, var(--main-color), var(--color-accent));
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 10.5px);
  border-radius: 50%;
  top: 10px;
  border: 4px solid var(--bg-color);
  z-index: 10;
  transition: all var(--transition-base);
}


.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 30px var(--main-color),
              0 0 60px var(--main-color),
              0 0 80px var(--color-accent);
}

/* Timeline Date Label */
.timeline-data {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 15px;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-data {
  background: var(--main-color);
  color: var(--bg-color);
  border-color: var(--main-color);
  box-shadow: var(--glow-primary);
}

/* Timeline Content Card */
.timeline-content {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  padding: 30px 50px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(83, 189, 255, 0.05),
    rgba(59, 130, 246, 0.05)
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.timeline-item:hover .timeline-content {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
  border-color: var(--color-accent);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

.timeline-content h3 {
  font-size: 20px;
  color: white;
  margin: 0 0 10px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.timeline-content p {
  color: white;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
  position: relative;
  z-index: 1;
}

.timeline-content strong {
  color: var(--main-color);
  font-weight: 600;
}

/* Timeline Images */
.timeline-content img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  border: 2px solid var(--color-border);
  transition: all var(--transition-base);
}

.timeline-content img:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
  box-shadow: var(--glow-primary);
}

.timeline-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border-radius: 50%;
    color: white;
}

.progress-container {
  width: 100%;
  background: var(--second-bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 12px;
  border: 1px solid var(--color-border);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--main-color), var(--color-accent));
  border-radius: var(--radius-lg);
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}


::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 6px;
  border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* Selection styling */
::selection {
  background: var(--main-color);
  color: var(--bg-color);
}

::-moz-selection {
  background: var(--main-color);
  color: var(--bg-color);
}


.social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}

.social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}

.social a:hover {
  background-color: var(--main-color);
  color: black;
  transform: scale(1.3) translateY(-10px);
  box-shadow: 0 0 25px var(--main-color);
}

.footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  margin-top: var(--space-2xl);
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer .social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 48px;
  height: 48px;
  line-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  transition: 0.3s ease-in-out;
}

.footer .social a:hover {
  background-color: var(--main-color);
  color: black;
  transform: scale(1.3) translateY(-10px);
  box-shadow: 0 0 25px var(--main-color);
}

.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer ul li a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  position: relative;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--main-color);
  transition: width var(--transition-base);
}

.footer ul li a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.footer ul li a:hover::after {
  width: 100%;
}

.footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: var(--color-text-muted);
}
/* Responsive Design */


@media (max-width: 1024px) {
  .home {
    flex-direction: column;
    gap: 5rem;
    text-align: center;
  }

  .home-content {
    align-items: center;
    text-align: center;
  }

  .home-content h1 {
    font-size: 3rem;
  }

  .home-content h3 {
    font-size: 1rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .home-img img {
    width: 60vw;
  }

  .text-right {
    margin-right: 10px;
  }

  iframe {
    height: 500px;
  }

  .download-btn button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .timeline::after {
    left: 31px;
  }

  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  .left::after,
  .right::after {
    left: 15px;
  }

  .right {
    left: 0%;
  }
  
  .btn {

  padding: 1rem 1rem;
  font-size: 1rem;
  font-weight: 400;
}
}

@media (max-width: 480px) {
  .home {
    flex-direction: column;
    gap: 5rem;
    text-align: center;
  }

  .home-content {
    align-items: center;
    text-align: center;
  }

  .home-content h1 {
    font-size: 3rem;
  }

  .home-content h3 {
    font-size: 2rem;
  }

  .home-img img {
    width: 60vw;
    max-width: 350px;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  iframe {
    height: 300px;
  }

  .download-btn button {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .timeline-item:nth-child(odd) {
  padding-right: 0px;
  text-align: center;
}

.timeline-item:nth-child(even) {
  padding-left: 0px;
  text-align: center;
}

.timeline-dot {
  display: none;
}



.timeline-content {
  border: 2px solid var(--main-color);
  padding: 15px 25px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
}



.timeline-content h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 500;
}

.timeline-content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}
}

@media (max-width: 768px) {
  body {
    padding-top: 96px;
  }

  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

  .timeline-items::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 4rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 20px !important;
    transform: translateX(-50%);
  }

  .timeline-data {
    display: block;
    margin-left: 3rem;
  }

  .timeline-content {
    border: 2px solid var(--main-color);
    padding: 20px 30px;
    border-radius: 2rem;
  }

  .footer .social {
    gap: var(--space-sm);
  }

  .footer .social a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.25rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .nav-shell {
    gap: 0.15rem;
    padding: 0.2rem;
  }

  .home-hero-card {
    max-width: 100%;
    padding: 1.5rem 1.2rem;
    border-radius: 1rem;
  }

  .home-kicker {
    letter-spacing: 0.12em;
    font-size: 0.7rem;
  }
}

@media (max-width: 1100px) {
  .nav-shell {
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .nav-link {
    font-size: 0.88rem;
    min-height: 2rem;
    padding: 0.35rem 0.72rem;
  }
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 2rem;
  }

  .home-content h3 {
    font-size: 1.5rem;
  }

  .home-img img {
    width: 70vw;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-items::before {
    display: none;
  }

  .timeline-data {
    margin-left: 0;
  }

  .timeline-content {
    padding: 15px 25px;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  header,
  footer,
  .btn,
  .social {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .timeline-content {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* Home overlay centering */

.overlay-content {
  position: fixed !important;  /* Force fixed positioning */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  z-index: 10;
  padding: 1rem;
  pointer-events: none;
  margin-top: 0 !important;  /* Override any margin */
}

form.timeline-content::before {
  pointer-events: none;
}

form.timeline-content { position: relative; }
form.timeline-content > * { position: relative; z-index: 1; }

/* ============================================
   GAME UI SYSTEM
   ============================================ */
.hud-frame {
  position: relative;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: linear-gradient(145deg, rgba(8, 16, 30, 0.9), rgba(7, 11, 22, 0.92));
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(125, 211, 252, 0.5);
  pointer-events: none;
}

.hud-frame::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.hud-frame::after {
  right: 8px;
  bottom: 8px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.hud-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #93c5fd;
}

.hud-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.telemetry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.telemetry-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.58);
  color: #dbeafe;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.68rem;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(37, 99, 235, 0.28));
  color: #ecfeff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.game-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.82);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(37, 99, 235, 0.44));
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.24);
  color: #ffffff;
}

.game-btn.ghost {
  border-color: rgba(148, 163, 184, 0.48);
  background: rgba(15, 23, 42, 0.65);
  color: #dbeafe;
}

.reveal-rise {
  animation: revealRise 520ms ease both;
}

@keyframes revealRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
