/* ---------- Theme Variables - BLACK & WHITE THEME ---------- */
:root {
  --bg-color: #000000;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-color: #ffffff;
  --muted-text: #b0b0b0;
  --accent1: #ffffff;
  --accent2: #000000;
  --accent3: #808080;
  --header-bg: rgba(0, 0, 0, 0.98);
  --footer-bg: rgba(0, 0, 0, 0.98);
  --border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Light Theme (Black & White Light Mode) ---------- */
body.light-theme {
  --bg-color: #ffffff;
  --card-bg: rgba(0, 0, 0, 0.03);
  --text-color: #000000;
  --muted-text: #4d4d4d;
  --accent1: #000000;
  --accent2: #ffffff;
  --accent3: #808080;
  --header-bg: rgba(255, 255, 255, 0.98);
  --footer-bg: rgba(255, 255, 255, 0.98);
  --border-color: rgba(0, 0, 0, 0.2);
}

/* Light-mode hero text fix */
body.light-theme #hero p {
  color: var(--muted-text);
  text-shadow: none;
  opacity: 1;
}




/* ---------- Global Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pixelify Sans', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  transition: background 0.6s ease, color 0.6s ease;
  font-size: 16px;
  letter-spacing: 0.5px;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Scanlines Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 999;
  animation: scanlines 8s linear infinite;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Press Start 2P', cursive;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

/* Glitch effect for headings */
@keyframes glitch-1 {
  0% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 5%, 0% 5%);
    transform: translateX(-2px);
  }
  20% {
    clip-path: polygon(0% 15%, 100% 15%, 100% 25%, 0% 25%);
    transform: translateX(2px);
  }
  40% {
    clip-path: polygon(0% 35%, 100% 35%, 100% 50%, 0% 50%);
    transform: translateX(-2px);
  }
  60% {
    clip-path: polygon(0% 60%, 100% 60%, 100% 75%, 0% 75%);
    transform: translateX(2px);
  }
  80% {
    clip-path: polygon(0% 85%, 100% 85%, 100% 95%, 0% 95%);
    transform: translateX(-2px);
  }
  100% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: translateX(0);
  }
}

@keyframes glitch-2 {
  0% {
    clip-path: polygon(0% 25%, 100% 25%, 100% 35%, 0% 35%);
    transform: translateX(2px);
  }
  20% {
    clip-path: polygon(0% 50%, 100% 50%, 100% 60%, 0% 60%);
    transform: translateX(-2px);
  }
  40% {
    clip-path: polygon(0% 10%, 100% 10%, 100% 20%, 0% 20%);
    transform: translateX(2px);
  }
  60% {
    clip-path: polygon(0% 70%, 100% 70%, 100% 80%, 0% 80%);
    transform: translateX(-2px);
  }
  80% {
    clip-path: polygon(0% 40%, 100% 40%, 100% 55%, 0% 55%);
    transform: translateX(2px);
  }
  100% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: translateX(0);
  }
}

/* RGB Color Channel Separation - Professional Glitch (B&W) */
@keyframes glitch-rgb {
  0% {
    text-shadow: -3px 0 #ffffff, 3px 0 #000000, 0 0 0.5px #808080;
    transform: translate(0);
  }
  25% {
    text-shadow: -2px 1px #ffffff, 2px -1px #000000, -1px 0.5px #808080;
    transform: translate(1px, -1px);
  }
  50% {
    text-shadow: 2px -2px #ffffff, -2px 2px #000000, 0 1px #808080;
    transform: translate(-1px, 1px);
  }
  75% {
    text-shadow: -1px 2px #ffffff, 1px -2px #000000, 2px -1px #808080;
    transform: translate(1px, 1px);
  }
  100% {
    text-shadow: -3px 0 #ffffff, 3px 0 #000000, 0 0 0.5px #808080;
    transform: translate(0);
  }
}

/* Subtle Scanlines Effect */
@keyframes scanlines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100px;
  }
}

/* CRT Screen Flicker */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.98;
  }
}

/* Glitch Burst - Random Movement */
@keyframes glitch-burst {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  10% {
    transform: translate(-2px, 2px);
  }
  20% {
    transform: translate(2px, -2px);
  }
  30% {
    transform: translate(-1px, -2px);
  }
  40% {
    transform: translate(2px, 1px);
  }
  50% {
    transform: translate(-2px, 2px);
  }
  60% {
    transform: translate(1px, -1px);
  }
  70% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(-2px, -1px);
  }
  90% {
    transform: translate(1px, 2px);
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

/* Horizontal Glitch Displacement */
@keyframes glitch-horizontal {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-3px);
  }
}

/* Horror Minecraft Corrupted Text Glitch - Obfuscated Style */
@keyframes text-corruption {
  0% {
    text-shadow: none;
  }
  5% {
    text-shadow: -2px 0 #ffffff, 2px 0 #000000;
    filter: contrast(1.2);
  }
  10% {
    text-shadow: 2px 1px #ffffff, -2px -1px #000000, 0 0 2px #808080;
    filter: contrast(0.8);
  }
  15% {
    text-shadow: -1px 2px #ffffff, 1px -2px #000000;
    filter: contrast(1.3);
  }
  20% {
    text-shadow: 1px -1px #ffffff, -1px 1px #000000, 2px 2px #808080;
    filter: contrast(0.9);
  }
  25% {
    text-shadow: -2px 2px #ffffff, 2px -2px #000000;
    filter: contrast(1.1);
  }
  30% {
    text-shadow: 0 -2px #ffffff, 0 2px #000000, -2px 0 #808080;
    filter: contrast(1.2);
  }
  35% {
    text-shadow: -2px -1px #ffffff, 2px 1px #000000;
    filter: contrast(0.8);
  }
  40% {
    text-shadow: 2px 0 #ffffff, -2px 0 #000000;
    filter: contrast(1.4);
  }
  45% {
    text-shadow: -1px -2px #ffffff, 1px 2px #000000, 0 1px #808080;
    filter: contrast(0.7);
  }
  50% {
    text-shadow: 1px 1px #ffffff, -1px -1px #000000;
    filter: contrast(1.3);
  }
  55% {
    text-shadow: -2px 2px #ffffff, 2px -2px #000000;
    filter: contrast(0.9);
  }
  60% {
    text-shadow: 2px -1px #ffffff, -2px 1px #000000, 1px 1px #808080;
    filter: contrast(1.1);
  }
  65% {
    text-shadow: -1px 1px #ffffff, 1px -1px #000000;
    filter: contrast(1.2);
  }
  70% {
    text-shadow: 0 2px #ffffff, 0 -2px #000000;
    filter: contrast(0.8);
  }
  75% {
    text-shadow: 2px 2px #ffffff, -2px -2px #000000, -1px 1px #808080;
    filter: contrast(1.4);
  }
  80% {
    text-shadow: -2px 0 #ffffff, 2px 0 #000000;
    filter: contrast(0.9);
  }
  85% {
    text-shadow: 1px -2px #ffffff, -1px 2px #000000;
    filter: contrast(1.2);
  }
  90% {
    text-shadow: -1px -1px #ffffff, 1px 1px #000000, 0 -1px #808080;
    filter: contrast(1.1);
  }
  95% {
    text-shadow: 2px 1px #ffffff, -2px -1px #000000;
    filter: contrast(0.8);
  }
  100% {
    text-shadow: none;
    filter: contrast(1);
  }
}

h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: var(--accent1);
  position: relative;
  animation: glitch-rgb 8s ease-in-out infinite;
  display: inline-block;
  min-height: 1.2em;
  line-height: 1.2;
}

h2::before,
h2::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

h2::before {
  animation: glitch-1 3s infinite;
  color: var(--accent2);
  z-index: -1;
}

h2::after {
  animation: glitch-2 3s infinite;
  color: var(--accent3);
  z-index: -2;
}

/* Skip link (visible on keyboard focus only) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  z-index: 1000;
  background: var(--accent2);
  color: #111;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  color: var(--accent1);
  font-weight: 700;
  font-size: 1.2em;
  font-family: 'Press Start 2P', cursive;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0px rgba(100, 255, 218, 0.3);
}

.header-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  color: var(--muted-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
  padding: 5px 0;
  letter-spacing: 0.5px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: width 0.2s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--accent1);
  text-shadow: 0 0 8px rgba(128, 128, 128, 0.4);
}

/* Mobile menu toggle */
#mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent1);
  cursor: pointer;
  color: var(--accent1);
  font-size: 1.5em;
  padding: 8px 10px;
  transition: all 0.2s ease;
  border-radius: 12px;
  box-shadow: 2px 2px 0px rgba(255, 0, 110, 0.2);
}

#mobile-menu-toggle:hover {
  color: var(--accent2);
  border-color: var(--accent2);
  box-shadow: 2px 2px 0px var(--accent1);
}

#mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
}

/* ---------- Theme Toggle ---------- */
#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent1);
  font-size: 1.4em;
  transition: color 0.2s ease;
}

#theme-toggle:hover {
  color: var(--accent2);
}

#theme-toggle:focus {
  outline: none;
}

#theme-toggle:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
}

/* ---------- Hero Section ---------- */
#hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.15) 0%, transparent 60%);
}

body.light-theme #hero {
  background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.08) 0%, transparent 60%);
}

body.light-theme #hero p {
  color: var(--muted-text);
  text-shadow: none;
  opacity: 1;
}


.hero-text h2 {
  font-size: 2.5em;
  color: var(--text-color);
  font-weight: 700;
  font-family: 'Press Start 2P', cursive;
  letter-spacing: 2px;
  text-shadow: none;
  line-height: 1.3;
  position: relative;
  white-space: nowrap;
  overflow: visible;
  display: inline-block;
  width: auto;
}

.hero-text h2::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--accent2);
  opacity: 0.8;
  animation: glitch-1 3s infinite;
  z-index: -1;
}

.hero-text h2::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--accent1);
  opacity: 0.8;
  animation: glitch-2 3s infinite;
  z-index: -2;
}

.hero-text h2 span {
  color: var(--accent1);
  display: inline-block;
}

.hero-text p {
  margin: 20px 0;
  color: var(--muted-text);
  font-size: 1.1em;
  font-family: 'Pixelify Sans', sans-serif;
  text-shadow: 1px 1px 0 var(--accent2);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(145deg, var(--accent1), var(--accent2));
  color: var(--accent2);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.1s ease;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3), 8px 8px 0px rgba(128, 128, 128, 0.3);
  cursor: pointer;
  border: 2px solid var(--accent1);
  font-family: 'Pixelify Sans', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent3);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3), 4px 4px 0px rgba(128, 128, 128, 0.3);
  animation: glitch-horizontal 0.3s ease-in-out;
}

.btn:hover::before {
  left: 0;
}

.btn:active {
  transform: translate(0px, 0px);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3), 2px 2px 0px rgba(128, 128, 128, 0.2);
}

/* ---------- Section Base ---------- */
section {
  padding: 100px 10%;
  text-align: center;
}

/* Prevent header overlap on anchor navigation */
section { scroll-margin-top: 90px; }

h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  font-family: 'Press Start 2P', cursive;
  letter-spacing: 2px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
  border-radius: 6px;
}

h2::before {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  color: var(--accent2);
  z-index: -1;
  opacity: 0.8;
}

/* ---------- Animated Gradient Cards ---------- */
.about-container,
.edu-card,
.project-card,
.intern-card,
.cert-card,
.skill-box,
.contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform-style: preserve-3d;
}

/* ---------- Hover Glow ---------- */
.about-container:hover,
.edu-card:hover,
.project-card:hover,
.intern-card:hover,
.cert-card:hover,
.skill-box:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--accent1);
}

/* ---------- About Section ---------- */
.about-section {
  position: relative;
  overflow: hidden;
}

/* Background image placeholder - add your custom image here */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Uncomment and update the path below when you add your image */
  /* background-image: 
    linear-gradient(rgba(15, 20, 25, 0.85), rgba(15, 20, 25, 0.85)),
    url('../Images/your-image.jpg'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Light theme background - uncomment and update when you add your image */
/* body.light-theme .about-section::before {
  background-image: 
    linear-gradient(rgba(248, 249, 250, 0.88), rgba(248, 249, 250, 0.88)),
    url('../Images/your-image.jpg');
} */

.about-section h2,
.about-section .about-container {
  position: relative;
  z-index: 1;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 60px;
  border-radius: 15px;
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-photo-wrapper {
  flex-shrink: 0;
}

.about-photo {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--card-bg);
  transition: all 0.3s ease;
}

.about-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 212, 170, 0.25);
}

.about-photo i {
  font-size: 5em;
  color: rgba(255, 255, 255, 0.8);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  flex: 1;
  text-align: left;
  line-height: 1.8;
}

.about-container p {
  color: var(--muted-text);
  margin-bottom: 25px;
  font-size: 1.1em;
}

.about-container p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for About section */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
    text-align: center;
  }
  
  .about-photo {
    width: 200px;
    height: 200px;
  }
  
  .about-text {
    text-align: center;
  }
}

/* ---------- Education, Projects, Internships, Certifications ---------- */
.edu-card,
.project-card,
.intern-card,
.cert-card {
  padding: 25px;
  margin: 15px auto;
  max-width: 750px;
  text-align: left;
  overflow: visible;
  transform-style: preserve-3d;
}

.edu-card h3,
.project-card h3,
.intern-card h3,
.cert-card h3 {
  color: var(--accent1);
  margin-bottom: 10px;
}


/* ---------- Skills ---------- */
.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-card-modern {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 2px solid var(--accent1);
  border-radius: 12px;
  padding: 30px;
  overflow: visible;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 3px 3px 0px var(--accent1), 6px 6px 0px rgba(128, 128, 128, 0.2);
  transform-style: preserve-3d;
}

.skill-card-modern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent1), var(--accent2), var(--accent3));
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card-modern:hover::before {
  opacity: 0.3;
}

.skill-card-modern:hover {
  box-shadow: 1px 1px 0px var(--accent2), 3px 3px 0px rgba(128, 128, 128, 0.3);
}

.skill-card-modern .skill-icon {
  width: 70px;
  height: 70px;
  background: var(--accent2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0px var(--accent1), 4px 4px 0px rgba(128, 128, 128, 0.2);
  transition: all 0.2s ease;
  border: 2px solid var(--accent1);
}

.skill-card-modern:hover .skill-icon {
  transform: scale(1.05);
}

.skill-card-modern .skill-icon i {
  font-size: 2.5em;
  color: var(--accent1);
}

.skill-card-modern h3 {
  color: var(--text-color);
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 20px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-item {
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  border: 1px solid rgba(0, 212, 170, 0.2);
  transition: all 0.2s ease;
  font-weight: 500;
}

.skill-item:hover {
  background: var(--accent1);
  color: #ffffff;
  border-color: var(--accent1);
  transform: translateY(-2px);
}

/* Responsive adjustments for Skills */
@media (max-width: 768px) {
  .skills-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Internship ---------- */
.internship-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 25px;
  justify-content: center;
}

.intern-card ul {
  list-style-type: square;
  margin-left: 18px;
  color: var(--muted-text);
}

.intern-card li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  padding: 18px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 280px;
}

.contact-card i {
  font-size: 1.4em;
  color: var(--accent1);
  width: 25px;
  text-align: center;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.contact-card a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 10px var(--accent1);
}

.contact-card:hover a {
  color: var(--accent1);
}

/* ---------- Scroll Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 30px 0;
  background: var(--footer-bg);
  color: var(--muted-text);
  margin-top: 80px;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

/* ---------- Scroll to Top Button ---------- */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent1);
  color: var(--accent2);
  border: 2px solid var(--accent1);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2em;
  box-shadow: 3px 3px 0px var(--accent2), 6px 6px 0px rgba(128, 128, 128, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--accent2), 3px 3px 0px rgba(128, 128, 128, 0.3);
}

#scroll-to-top:active {
  transform: translateY(-1px);
}

#scroll-to-top:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
  width: 0%;
  z-index: 101;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(128, 128, 128, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.3em;
  }

  #mobile-menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, box-shadow 0.4s ease;
    box-shadow: none;
  }

  nav.active {
    max-height: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  nav a {
    display: block;
    padding: 15px 30px;
    font-size: 1.05em;
  }

  nav a::after {
    display: none;
  }

  .hero-text h2 {
    font-size: 2em;
  }

  .btn {
    padding: 8px 18px;
  }

  section {
    padding: 80px 5%;
  }

  .contact-card {
    min-width: 250px;
  }

  #scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.1em;
  }

  /* Projects responsive */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 10px;
  }

  .project-card-modern {
    padding: 25px;
  }

  .project-icon {
    width: 60px;
    height: 60px;
  }

  .project-icon i {
    font-size: 1.7em;
  }

  /* Certifications responsive */
  .certifications-showcase {
    gap: 30px;
    padding: 0 10px;
  }

  .cert-badge {
    flex-direction: column !important;
    text-align: center;
    padding: 25px;
  }

  .cert-ribbon {
    margin: 0 auto 20px;
  }

  .cert-badge:hover {
    transform: translateY(-5px);
  }

  .cert-badge:nth-child(even):hover {
    transform: translateY(-5px);
  }

  .cert-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .cert-meta {
    justify-content: center;
  }

  /* Internships responsive */
  .internship-showcase {
    padding: 0 10px;
    gap: 30px;
  }

  .internship-header {
    flex-direction: column;
    padding: 25px;
    text-align: center;
  }

  .internship-number {
    font-size: 2.5em;
    min-width: auto;
  }

  .internship-icon {
    width: 70px;
    height: 70px;
  }

  .internship-icon i {
    font-size: 2em;
  }

  .internship-body {
    padding: 25px;
  }

  .internship-body h3 {
    font-size: 1.3em;
  }

  .internship-skills {
    gap: 10px;
  }

  .internship-skills span {
    font-size: 0.85em;
    padding: 7px 14px;
  }
}

.dropdown-card {
  position: relative;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dropdown-btn {
  background: linear-gradient(145deg, var(--accent1), var(--accent2));
  color: white;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 174, 0.15);
}

.dropdown-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 174, 0.3);
}

.dropdown-btn i {
  float: right;
  transition: transform 0.3s ease;
}

/* Hide by default */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.4s ease;
  background: var(--card-bg);
  padding: 0 1rem;
  border-radius: 0 0 12px 12px;
}

/* Reveal on hover */
.dropdown-card:hover .dropdown-content {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding: 1rem 1.2rem;
}

.dropdown-card:hover .dropdown-btn i {
  transform: rotate(180deg);
}

/* Also reveal dropdowns on click via a class (set in JS) */
.dropdown-card.open .dropdown-content {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding: 1rem 1.2rem;
}

.dropdown-card.open .dropdown-btn i {
  transform: rotate(180deg);
}

/* ---------- Projects Grid (Modern Card Layout) ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 20px;
}

.project-card-modern {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 2px solid var(--accent2);
  border-radius: 12px;
  overflow: visible;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 0px var(--accent2), 6px 6px 0px rgba(128, 128, 128, 0.2);
  padding: 30px;
  transform-style: preserve-3d;
}

.project-card-modern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent2), var(--accent1), var(--accent3));
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card-modern:hover::before {
  opacity: 0.3;
}

.project-card-modern:hover {
  box-shadow: 1px 1px 0px var(--accent1), 3px 3px 0px rgba(128, 128, 128, 0.2);
  border-color: var(--accent3);
}

.project-icon {
  width: 70px;
  height: 70px;
  background: var(--accent2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0px var(--accent1), 4px 4px 0px rgba(128, 128, 128, 0.2);
  transition: all 0.2s ease;
  border: 2px solid var(--accent1);
}

.project-card-modern:hover .project-icon {
  transform: scale(1.05);
}

.project-icon i {
  font-size: 2.5em;
  color: var(--accent1);
}

.project-card-modern h3 {
  color: var(--text-color);
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tag {
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent1);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  border: 1px solid rgba(0, 212, 170, 0.2);
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--accent1);
  color: #ffffff;
  border-color: var(--accent1);
  transform: translateY(-1px);
}

.project-card-modern p {
  color: var(--muted-text);
  line-height: 1.7;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.project-tech i {
  font-size: 1.4em;
  color: var(--accent2);
  transition: color 0.2s ease;
  opacity: 0.7;
}

.project-tech i:hover {
  opacity: 1;
  color: var(--accent1);
}

/* ---------- Certifications Badge Layout ---------- */
.certifications-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cert-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 2px solid var(--accent1);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: visible;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 0px var(--accent2), 6px 6px 0px rgba(128, 128, 128, 0.2);
  transform-style: preserve-3d;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent2), var(--accent1), var(--accent3));
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  box-shadow: 1px 1px 0px var(--accent2), 3px 3px 0px rgba(128, 128, 128, 0.2);
  border-color: var(--accent3);
}

.cert-card:hover::before {
  opacity: 0.3;
}

.cert-icon {
  width: 70px;
  height: 70px;
  background: var(--accent2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0px var(--accent1), 4px 4px 0px rgba(128, 128, 128, 0.2);
  transition: all 0.2s ease;
  border: 2px solid var(--accent1);
}

.cert-card:hover .cert-icon {
  transform: scale(1.05);
}

.cert-icon i {
  font-size: 2.5em;
  color: var(--accent1);
}

.cert-card h3 {
  color: var(--text-color);
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.cert-card p {
  color: var(--muted-text);
  line-height: 1.7;
  font-size: 0.95em;
  margin-bottom: 20px;
}

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

.cert-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  border: 1px solid var(--accent2);
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 1px 1px 0px rgba(0, 245, 255, 0.3);
}

.cert-tag:hover {
  background: var(--accent2);
  color: #000000;
  border-color: var(--accent2);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px rgba(0, 245, 255, 0.5);
}

.cert-tag i {
  font-size: 0.9em;
}

.cert-meta i {
  font-size: 1em;
}

/* ---------- Internships Showcase (Modern Card Design) ---------- */
/* ---------- Internship ---------- */
.internship-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.internship-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 2px solid var(--accent3);
  border-radius: 12px;
  padding: 30px;
  overflow: visible;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 0px var(--accent1), 6px 6px 0px rgba(128, 128, 128, 0.2);
  transform-style: preserve-3d;
}

.internship-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent3), var(--accent1), var(--accent2));
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.internship-card:hover {
  box-shadow: 1px 1px 0px var(--accent1), 3px 3px 0px rgba(128, 128, 128, 0.3);
  border-color: var(--accent2);
}

.internship-card:hover::before {
  opacity: 0.3;
}

.internship-icon {
  width: 70px;
  height: 70px;
  background: var(--accent3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0px var(--accent1), 4px 4px 0px rgba(255, 190, 11, 0.2);
  transition: all 0.2s ease;
  border: 2px solid var(--accent3);
}

.internship-card:hover .internship-icon {
  transform: scale(1.05);
}

.internship-icon i {
  font-size: 2.5em;
  color: var(--text-color);
}

.internship-card h3 {
  color: var(--text-color);
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.internship-card p {
  color: var(--muted-text);
  line-height: 1.7;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.internship-skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.internship-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent3);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  border: 1px solid var(--accent3);
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 1px 1px 0px rgba(255, 190, 11, 0.3);
}

.internship-tag:hover {
  background: var(--accent3);
  color: #000000;
  border-color: var(--accent3);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px rgba(255, 190, 11, 0.5);
}

.internship-tag i {
  font-size: 0.9em;
}

/* Accessible focus styles for interactive elements */
button:focus-visible,
a:focus-visible,
.dropdown-btn:focus-visible,
.intern-btn:focus-visible {
  outline: 2px solid var(--accent1);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.3);
}
