:root {
  --bg-color: #0a0a0a;
  --card-bg: rgba(22, 22, 22, 0.7);
  --text-main: #ffffff;
  --text-muted: #d1d1d1;
  --accent-color: #5a4bda;
  --accent-glow: rgba(90, 75, 218, 0.4);
  --font-main: "Inter", sans-serif;
  --nav-bg: rgba(0, 0, 0, 0.8);
  --desc-bg: rgba(31, 26, 33, 0.5);
  --modal-bg: #020617;
  --logo-border: var(--accent-color);
}

body.light-theme {
  --bg-color: #f3f4f6;
  --card-bg: rgba(255, 255, 255, 0.8);
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --accent-color: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.3);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --desc-bg: rgba(255, 255, 255, 0.7);
  --modal-bg: #ffffff;
}

/* Light Theme Overrides */
body.light-theme .navbar,
body.light-theme .logo-name,
body.light-theme .nav-links a,
body.light-theme .theme-toggle {
  color: #000000 !important;
}

body.light-theme .logo-occupation {
  color: #000000 !important;
  opacity: 0.7;
}

body.light-theme .btn-primary {
  color: #000000 !important;
  border-color: #000000;
}

.hero-content h1,
.hero-content h2,
.hero-content .highlight {
  color: white !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 20px 16px 20px 16px;
  padding-top: 100px;
  margin-top: -20px;
}

/* Video Background */
.video-layer {
  position: absolute;
  top: 30px;
  inset: 2;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), #0a0a0a);
  z-index: 2;
}

/* Banner Layer */
.banner-layer {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1450px;
  height: auto;
  aspect-ratio: 1450 / 300;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
}

.banner-layer img.Top_of {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* NAVBAR & COMPONENTS */   
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1450px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  color: #fff;
  z-index: 1000;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--logo-border);
  background: #000;
}

.logo-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-occupation {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-occupation::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background-color: hsl(238, 100%, 25%);
  border-radius: 50%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease;
}

body.light-theme .hamburger span {
  background-color: #000;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

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

.btn-primary {
  border: 1px solid var(--accent-color);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent-color) !important;
  backdrop-filter: blur(5px);
}

.btn-primary:hover {
  background: var(--accent-color);
  color: #fff !important;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  margin-left: 10px;
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 1000px;
  padding: 20px;
  margin-top: 200px;
  margin-bottom: 50px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.hero-content h1 {
  font-size: clamp(1rem, 4vw, 2rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.sub-headline {
  font-size: clamp(1rem, 2.4vw, 2rem);
  margin-bottom: 25px;
  font-weight: 600;
}

.highlight {
  background: linear-gradient(to right, hsl(42, 88%, 45%), oklab(58.408% 0.20783 0.11538));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  background: var(--desc-bg);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(4px);
  display: inline-block;
}

mark {
  background: transparent !important;
  color: #a78bfa;
  font-weight: bold;
}

/* About Section */
.about-section {
  position: relative;
  width: 100%;
  padding: 80px 4vw;
  background-image: url('images/background5.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  /* Dark overlay so text remains clearly visible */
  z-index: 0;
}

body.light-theme .about-section::before {
  background: rgba(255, 255, 255, 0.6);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  z-index: 10;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.about-content {
  flex: 1;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-content:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.about-content h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--text-main);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.about-content strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Projects & Cards */
.gallery-section {
  position: relative;
  width: 100%;
  padding: 40px 20px 80px;
  background-image: linear-gradient(to bottom, var(--bg-color) 0%, transparent 20%), url('images/gallery.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

span {
  content: "\2192";
}

.gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* dark overlay */
  z-index: 0;
}

body.light-theme .gallery-section::before {
  background: rgba(255, 255, 255, 0.4);
}

.gallery-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gallery-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--text-main);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-arrow {
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.gallery-title:hover .gallery-arrow {
  transform: translateX(8px);
}

.gallery-subheading {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
  text-align: center;
  max-width: 600px;
}

.projects-container {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding-left: 10vw;
}

.card {
  margin-top: 60px;
  position: relative;
  width: 280px;
  height: 400px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: pink;
  box-shadow: 0 10px 40px var(--accent-glow);
}

.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}

.card-content {
  text-align: center;
  z-index: 2;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  margin-top: auto;
}

.card-footer span {
  color: #4900be;
}

.arrow {
  color: var(--accent-color);
  transition: transform 0.3s;
}

.card:hover .arrow {
  transform: translateX(5px);
}

.glow-bg {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  filter: blur(80px);
  opacity: 0.2;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover .glow-bg {
  opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  cursor: pointer;
  text-shadow: 0 2px 4px black;
}

.chevron {
  font-size: 2rem;
  color: var(--accent-color);
  line-height: 0.5;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal.show {
  display: flex;
}

.modal-content {
  background: var(--modal-bg);
  padding: 20px 24px;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #e5e7eb;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.close-btn:hover {
  color: #38bdf8;
  transform: scale(1.1);
}

.video-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  justify-content: center;
}

.video-wrapper iframe {
  max-width: 100%;
  border-radius: 8px;
  border: none;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Video Overlay (No-Redirect) */
.video-container {
  position: relative;
  display: block;
  width: fit-content;
  border-radius: 8px;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.video-overlay::before {
  /* Title Block */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  pointer-events: auto;
}

.video-overlay::after {
  /* Logo Block */
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 60px;
  pointer-events: auto;
}

.skills-section {
  padding: 80px 4vw;
  text-align: center;
  position: relative;
  z-index: 10;
}

.skills-section h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--text-main);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.skills-subheading {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.skills-box {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 50px 40px;
  max-width: 1000px;
  margin: 0 auto;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.skills-box:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px var(--accent-glow);
  transform: translateY(-5px);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.skill-item {
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 18px;
}

.skill-item:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 30px var(--accent-glow);
  border-color: rgba(255, 255, 255, 0.3);
}

.skill-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

.skill-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .skills-box {
    padding: 30px 20px;
    border-radius: 20px;
  }
  .skill-item {
    width: 70px;
    height: 70px;
    padding: 12px;
    border-radius: 18px;
  }
  .skills-container {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .skills-box {
    padding: 20px 10px;
    border-radius: 15px;
  }
  .skill-item {
    width: 60px;
    height: 60px;
    padding: 10px;
    border-radius: 15px;
  }
  .skills-container {
    gap: 15px;
  }
}

/* SKILLS PROGRESS SECTION */
.skills-progress-container {
  margin-top: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.progress-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.progress-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(15px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: left;
}

.progress-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--accent-glow);
  border-color: rgba(255, 255, 255, 0.3);
}

.progress-card h4 {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

body.light-theme .progress-card h4 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-item {
  margin-bottom: 20px;
}

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

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

body.light-theme .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #a78bfa);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* RESUME & TIMELINE SECTION */  
.resume-section {
  padding: 80px 4vw;
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.resume-header {
  margin-bottom: 60px;
}

.resume-header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--text-main);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--accent-glow);
}

.download-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.edu-proj-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  text-align: left;
}

.timeline-column {
  flex: 1;
  min-width: 300px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(15px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-column:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.column-title {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.timeline-box {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .timeline-box {
  border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

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

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.certificates-section {
  padding: 80px 4vw;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-header {
  text-align: center;
  margin-bottom: 20px;
}

.cert-header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--text-main);
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.cert-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cert-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.cert-btn {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cert-btn.active, .cert-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: stretch;
}

.cert-card {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeIn 0.5s ease;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--accent-glow);
  border-color: rgba(255, 255, 255, 0.3);
}

.cert-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.cert-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.1);
}

.cert-info {
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cert-info h4 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.cert-info span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

body.light-theme .cert-info span {
  background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .cert-header, .cert-toggle {
    text-align: center;
    justify-content: center;
  }
}

.contact-section {
  padding: 100px 10vw 60px 10vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 10;
  min-height: 400px;
  justify-content: center;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/background3.png');
  background-size: cover;
  background-position: center top 20%;
  background-repeat: no-repeat;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  opacity: 0.4;
}

.contact-section h2,
.contact-info,
.contact-socials {
  transform: translateX(0);
}

.contact-section h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  text-align: left;
}

.contact-info {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: left;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--accent-color);
  font-weight: 500;
  transition: color 0.3s;
}

.contact-info a:hover {
  text-shadow: 0 0 10px var(--accent-glow);
  color: #a78bfa;
}

.contact-socials {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}

.contact-socials a {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-socials a img {
  width: 30px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.contact-socials a.fb img {
  width: 50px;
  height: 50px;
}

.contact-socials a.ln img {
  width: 40px;
  height: 40px;
}

.contact-socials a.ig img {
  width: 37px;
  height: 37px;
}


.contact-socials a:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

.contact-socials a:hover img {
  filter: drop-shadow(0 0 10px var(--accent-color));
}

body.light-theme .contact-socials a img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

body.light-theme .contact-socials a:hover img {
  filter: drop-shadow(0 0 10px var(--accent-color));
}

.enquiry-section {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-color);
  position: relative;
  z-index: 10;
}

.enquiry-section h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 10px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.enquiry-section p {
  color: var(--text-muted);
  margin-bottom: 40px;
  text-align: center;
}

.enquiry-form {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
  display: flex;
  flex-direction: column;
  width: calc(50% - 10px);
}

.full-width {
  width: 100%;
}

.form-group label {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

.form-group select option {
  background: var(--bg-color);
  color: var(--text-main);
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group select:focus,
body.light-theme .form-group textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
  outline: none;
}

.submit-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #4900be;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}
 
@media (min-width: 1024px) {
  .hero-content {
    margin-top: 300px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 12px 16px 12px;
    padding-top: 90px;
  }

  .banner-layer {
    top: 95px;
    aspect-ratio: 1450 / 300;
  }

  /* Hero */
  .hero-content {
    margin-top: 30vh;
    /* Reverting to 30vh to ensure play safety on mobile, though user had 38vh base. 30vh is safer? user had 38vh in base... actually 38vh in base overrides 30vh in media query if base defines it? No, media query specificity usually wins if selectors equal. 
  Let's stick to the mobile block values */
    padding-inline: 8px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .sub-headline {
    font-size: 1.1rem;
  }

  .description {
    font-size: 0.85rem;
    padding: 16px;
  }

  /* Nav */
  .navbar {
    height: 64px;
    padding: 0 16px;
    flex-wrap: nowrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 20px 0 40px 0;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: inline-block;
    padding: 10px;
    font-size: 1.1rem;
    width: 100%;
  }

  /* About */
  .about-section {
    padding: 60px 16px;
  }

  .about-container {
    flex-direction: column;
    gap: 40px;
  }

  .about-image {
    width: 100%;
    justify-content: center;
  }

  .about-image img {
    max-width: 320px;
  }

  .about-content {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .about-content p {
    font-size: 1.05rem;
  }

  /* Projects */
  .projects-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-left: 0;
  }

  .card {
    margin-top: 24px;
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  /* Modal */
  .modal-content {
    padding: 16px;
    max-width: 95vw;
    max-height: 85vh;
  }

  .video-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%; /* For Image modal */
  }

  /* Short section wrappers */
  .row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .video-container {
    width: 100%;
    height: auto !important;
    margin-top: 0 !important;
    display: flex;
    justify-content: center;
  }

  .video-container iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    position: static !important;
    display: block;
  }

  .box .video-container {
    max-width: 315px; /* Prevent it from getting too huge on tablet */
    width: 100%;
  }

  .box .video-container iframe {
    aspect-ratio: 9 / 16;
  }

  .video-layer {
    height: 100vh;
  }

  /* Enquiry Form Mobile */
  .form-group {
    width: 100%;
  }

  .enquiry-form {
    padding: 24px;
  }

  .resume-section, .skills-section, .contact-section, .certificates-section, .gallery-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .edu-proj-container {
    flex-direction: column;
    gap: 30px;
  }

  .timeline-column {
    min-width: 100%;
    padding: 20px;
  }
}

.footer-bottom {
  text-align: center;
  padding: 30px 20px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 100%;
}