/* Updated CSS for Dandu Suresh Portfolio - Modern Glassmorphism Redesign */

/* ===== IMPORT GOOGLE FONT ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700&display=swap");

/* ===== CSS VARIABLES ===== */
:root {
  /* Theme Colors: Dark Background (Black -> Deep Blue) */
  --gradient-top-start: #000000;
  --gradient-top-end: #0a0a12;
  --gradient-bottom-start: #050510;
  --gradient-bottom-end: #0a192f;

  /* Accents */
  --color-primary: #2563eb; /* Electric Blue */
  --color-primary-light: #60a5fa;
  --color-primary-dark: #1d4ed8;
  --color-accent: #7c3aed; /* Deep Purple for gradients */
  --color-glow: rgba(37, 99, 235, 0.5);

  /* Typography Gradients */
  /* Main Titles: Deep Blue -> Purple */
  --gradient-title: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  /* Subtitles: Sky Blue -> Cyan */
  --gradient-subtitle: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);

  /* Text Colors */
  --color-text: #f8fafc; /* White/Off-white solid */
  --color-text-muted: #94a3b8; /* Slate gray */

  /* Glassmorphism */
  --color-bg-card: rgba(15, 23, 42, 0.6); /* Dark Blue tint */
  --color-border: rgba(255, 255, 255, 0.08);
  --backdrop-blur: 16px;

  --font-family-body: "Inter", sans-serif;
  --font-family-heading: "Poppins", sans-serif;

  --container-max-width: 1200px;
  --radius-lg: 1.25rem; /* Softer rounded corners */
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ===== LIGHT MODE VARIABLES ===== */
body.light-mode {
  --gradient-top-start: #f8fafc;
  --gradient-top-end: #e2e8f0;
  --gradient-bottom-start: #f1f5f9;
  --gradient-bottom-end: #cbd5e1;

  --color-text: #1e293b; /* Slate 800 */
  --color-text-muted: #64748b; /* Slate 500 */

  --color-bg-card: rgba(255, 255, 255, 0.65);
  --color-border: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);

  /* Keep primary/accent same but maybe adjust brightness if needed */
  /* Re-use typography gradients as they work well on light too */
}

/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  color: var(--color-text);
  line-height: 1.6;
  background: linear-gradient(
    to bottom right,
    var(--gradient-top-start),
    var(--gradient-bottom-end)
  );
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0; /* More spacing */
}
.section-bg {
  background: transparent; /* Rely on body gradient */
}

/* Typography Gradient Utility classes */
h1,
h2,
.section-title,
.logo {
  font-family: var(--font-family-heading);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3.5rem;
  font-size: 1.1rem;
  background: var(--gradient-subtitle);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.section-title-contact {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== HEADER & NAVBAR ===== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 16, 0.7); /* Deep dark background */
  backdrop-filter: blur(var(--backdrop-blur));
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-links-container {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-light);
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 1.5rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
  transform: rotate(15deg);
}

body.light-mode .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Icon Switching Logic */
.theme-toggle .sun-icon {
  display: none; /* Hidden by default (Dark Mode active) */
}
.theme-toggle .moon-icon {
  display: block; /* Shown by default */
}

/* When Light Mode is active */
body.light-mode .theme-toggle .sun-icon {
  display: block;
}
body.light-mode .theme-toggle .moon-icon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-left h1 {
  font-size: 3.5rem; /* Reduced size as requested */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;

  white-space: nowrap; /* Forces single line */
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Adding a slight drop shadow to text for better legibility if needed, but not on transparent text fill */
  filter: drop-shadow(0 0 2px rgba(58, 123, 213, 0.3));
}
.subtitle {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: #64ffda; /* Neon Cyan/Teal */
  font-weight: 600;
}
.intro {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  padding: 0.85rem 2rem;
  border-radius: 50px; /* Fully rounded */
  font-weight: 600;
  font-family: var(--font-family-body);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6); /* Glow */
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}
.btn-secondary:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  background: rgba(37, 99, 235, 0.1);
}

/* Profile Image */
.profile-image-container {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #000; /* Match bg */
}

/* Code Editor */
.code-editor {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.editor-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.editor-dots {
  display: flex;
  gap: 8px;
  margin-right: auto;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.editor-title {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-family: monospace;
  opacity: 0.7;
}

.editor-content {
  padding: 1.5rem;
  text-align: left;
}

.editor-content pre {
  margin: 0;
  color: var(--color-text);
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Syntax Highlighting */
.code-keyword {
  color: #c678dd;
} /* Purple */
.code-class {
  color: #e5c07b;
} /* Yellow */
.code-method {
  color: #61afef;
} /* Blue */
.code-string {
  color: #98c379;
} /* Green */
.code-comment {
  color: #5c6370;
  font-style: italic;
}

@media (max-width: 768px) {
  .code-editor {
    margin-top: 3rem;
  }
}

/* ===== EDUCATION ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.edu-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.edu-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: var(--shadow-glow);
}
.edu-card h3 {
  background: var(--gradient-subtitle);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.edu-card h4 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.edu-card .date {
  display: block;
  color: var(--color-primary-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.edu-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--backdrop-blur));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(96, 165, 250, 0.3);
}

.project-image {
  height: 200px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85); /* Dark blue overlay */
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay,
.project-overlay {
  opacity: 1; /* Always visible on mobile default */
}
@media (hover: hover) {
  .project-overlay {
    opacity: 0;
  }
  .project-card:hover .project-overlay {
    opacity: 1;
  }
}

.project-icon {
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-icon:hover {
  background: var(--color-primary);
  transform: scale(1.1);
  border-color: var(--color-primary);
}

.project-content {
  padding: 1.75rem;
}
.project-content h3 {
  margin-bottom: 0.75rem;
  background: var(--gradient-subtitle);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
}
.project-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tech-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ===== SKILLS SECTION (Redesigned) ===== */
.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.skill-category h3 {
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-subtitle);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--backdrop-blur));
  padding: 1.5rem;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.skill-item:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.skill-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.skill-item:hover img {
  transform: scale(1.1) rotate(5deg);
}

.skill-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.skill-item:hover span {
  color: white;
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--backdrop-blur));
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.contact-info h3 {
  margin-bottom: 1.25rem;
  background: var(--gradient-subtitle);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.3rem;
}
.contact-info > p {
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.info-item .icon {
  font-size: 1.5rem;
  display: inline-flex;
  color: var(--color-primary-light);
  background: rgba(37, 99, 235, 0.1);
  padding: 10px;
  border-radius: 12px;
}
.info-item h4 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.info-item a,
.info-item span {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.info-item a:hover {
  color: var(--color-primary-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-form h3 {
  margin-bottom: 1.25rem;
  font-family: var(--font-family-heading);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
  margin-top: 6rem;
  /* backgrounds adjusted for theme consistency */
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--backdrop-blur));
}

.social-links {
  margin-bottom: 2rem;
}
.social-links a {
  color: var(--color-text-muted);
  margin: 0 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}
.social-links a:hover {
  color: white;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.copyright p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ===== BACK TO TOP LINK (Footer) ===== */
.back-to-top-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  opacity: 0.7;
}

.back-to-top-link:hover {
  color: var(--color-primary-light);
  transform: translateY(-2px);
  opacity: 1;
}

/* ===== TIMELINE (Internship) ===== */
#internship {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-accent)
  );
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-dot {
  position: absolute;
  left: -2.9rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}
.timeline-content {
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--backdrop-blur));
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.timeline-date {
  color: var(--color-primary-light);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.timeline-content h3 {
  background: var(--gradient-subtitle);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .navbar-links-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 20, 0.98);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s;
    backdrop-filter: blur(20px);
  }
  .navbar-links-container.active {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  .nav-links a {
    font-size: 1.5rem;
  }

  /* Global Mobile Adjustments */
  section {
    padding: 3rem 0; /* Reduced padding */
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Hero Section Mobile */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-left h1 {
    font-size: 2rem; /* Smaller font on mobile */
    white-space: normal; /* Allow wrapping on very small screens */
    margin-left: 0; /* Reset margin if added */
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column; /* Stack buttons on very small screens */
    width: 100%;
  }

  .btn {
    width: 100%; /* Full width buttons on mobile */
    text-align: center;
  }

  /* Contact Section Mobile */
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }

  .project-overlay {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-left h1 {
    font-size: 1.75rem;
  }
}

/* Contact Visual 3D Area */
.contact-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.contact-visual:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
}

.visual-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Add a cool gradient orb behind the visual for 3D depth feel */
.contact-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.15;
  filter: blur(60px);
  z-index: 0;
}

/* Premium 3D Tech Visual */
#tech-canvas-container {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

#tech-canvas-container:active {
  cursor: grabbing;
}

/* ===== LIGHT MODE SPECIFIC OVERRIDES ===== */
body.light-mode .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-mode .code-editor {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body.light-mode .editor-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .editor-title {
  color: #64748b;
}

body.light-mode .editor-content pre {
  color: #1e293b;
}

/* Syntax Highlighting adjustments for Light Mode */
body.light-mode .code-keyword {
  color: #9333ea;
} /* Darker Purple */
body.light-mode .code-class {
  color: #d97706;
} /* Darker Orange */
body.light-mode .code-method {
  color: #2563eb;
} /* Blue */
body.light-mode .code-string {
  color: #16a34a;
} /* Green */
body.light-mode .code-comment {
  color: #94a3b8;
}

body.light-mode .nav-links a {
  color: #475569;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: var(--color-primary);
}

/* Mobile Nav Light Mode */
@media (max-width: 768px) {
  body.light-mode .navbar-links-container {
    background: rgba(255, 255, 255, 0.98);
    color: #1e293b;
  }
}
