/* Base Styles & Variables */
:root {
  --primary-dark: #121212;
  --secondary-dark: #1e1e1e;
  --accent-gradient-start: #9b30ff;
  --accent-gradient-end: #4b0082;
  /* RGB versions of the gradient colors for rgba() usage */
  --accent-gradient-start-rgb: 155, 48, 255;
  --accent-gradient-end-rgb: 75, 0, 130;
  --text-dark: #ffffff;
  --text-secondary-dark: #b3b3b3;
  
  --primary-light: #f5f5f5;
  --secondary-light: #e0e0e0;
  --text-light: #212121;
  --text-secondary-light: #555555;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 12px;
  --glow: 0 0 15px rgba(var(--accent-gradient-start-rgb), 0.6);
}

/* Custom Cursor */
body {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.custom-cursor img {
  width: 100%;
  height: 100%;
}

.cursor-trail {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  pointer-events: none;
  z-index: 9990;
  opacity: 0.15;
  transition: opacity 2s ease-out;
}

/* Apply cursor:none to all interactive elements */
a, button, .btn, .card-header, .education-card, .achievement-card, 
.experience-card, .contact-card, .social-icon, .theme-toggle, .hamburger,
input, textarea, .education-logo, .nav-links li, .see-more-container {
  cursor: none !important;
}

/* Make sure cursor:none is applied to all elements with hover states */
*:hover {
  cursor: none !important;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

body.dark-mode {
  background-color: var(--primary-dark);
  color: var(--text-dark);
}

body.light-mode {
  background-color: var(--primary-light);
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Welcome Chatbot */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.chatbot-container {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease-out;
  position: relative;
}

/* Add gradient border to chatbot container */
.chatbot-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent, rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.chatbot-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
}

.avatar-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border-radius: 50%;
  border: 3px solid;
  border-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end)) 1;
  animation: pulse 2s infinite;
}

.chatbot-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #2e2e2e;
}

.chatbot-message {
  width: 100%;
  background-color: rgba(20, 20, 20, 0.7);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  position: relative;
}

.chatbot-message::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(20, 20, 20, 0.7);
}

.chatbot-message p {
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
  min-height: 24px;
}

.chatbot-input {
  width: 100%;
  display: flex;
  align-items: center;
}

.chatbot-input input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

.chatbot-input input:focus {
  outline: none;
  box-shadow: 0 0 0 2px;
  box-shadow-color: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
}

.chatbot-input button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  color: #fff;
  margin-left: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.chatbot-input button:hover {
  transform: scale(1.1);
  box-shadow: var(--glow);
}

.chatbot-input button:active {
  background-image: linear-gradient(to right, var(--accent-gradient-end), var(--accent-gradient-start));
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.dark-mode nav {
  background-color: rgba(18, 18, 18, 0.8);
}

.light-mode nav {
  background-color: rgba(245, 245, 245, 0.8);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background-image: linear-gradient(45deg, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer !important;
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.1), rgba(var(--accent-gradient-end-rgb), 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.3s ease;
  z-index: -1;
}

.logo:hover::before {
  transform: scale(1.1);
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.2), rgba(var(--accent-gradient-end-rgb), 0.2));
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 1.2rem;
}

.nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.dark-mode .nav-links a {
  color: var(--text-dark);
}

.light-mode .nav-links a {
  color: var(--text-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  transition: var(--transition);
}

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

.nav-links a:active {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
}

.menu-toggle {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  margin-right: 2rem;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: var(--transition);
}

/* Updated theme toggle button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.2), rgba(var(--accent-gradient-end-rgb), 0.2));
  cursor: pointer !important;
}

.theme-toggle i {
  font-size: 1.2rem;
  background-image: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-toggle:hover {
  transform: rotate(30deg);
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3));
}

.theme-toggle:active {
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  color: white;
}

.theme-toggle:active i {
  -webkit-text-fill-color: white;
}

/* Theme menubar styles - FIXED */
.theme-menubar {
  position: fixed;
  top: 0;
  right: -320px; /* Start off-screen */
  width: 320px;
  height: 100vh;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(40, 40, 40, 0.95));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* Add gradient border to theme menubar */
.theme-menubar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 2px solid;
  border-image: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end)) 1;
  pointer-events: none;
  z-index: -1;
}

.theme-menubar.open {
  right: 0;
}

.theme-menubar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.theme-menubar-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.theme-menubar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-menubar-header h3 {
  margin: 0;
  font-size: 1.4rem;
  background-image: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-menubar {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-menubar:hover {
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  transform: rotate(90deg);
}

.theme-section {
  margin-bottom: 2rem;
}

.theme-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
}

/* Mode toggle styling */
.mode-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 1rem;
}

.mode-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.mode-label i {
  font-size: 1.1rem;
}

.dark-mode .mode-label:first-child,
.light-mode .mode-label:last-child {
  color: white;
  font-weight: 600;
}

.mode-toggle {
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  position: relative;
  cursor: none;
  padding: 3px;
  transition: all 0.3s ease;
}

.mode-toggle:hover {
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
}

.mode-toggle-thumb {
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark-mode .mode-toggle-thumb {
  left: 3px;
}

.light-mode .mode-toggle-thumb {
  left: calc(100% - 27px);
}

/* Theme grid styling */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 10px;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.theme-option.active {
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.theme-option.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: white;
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.theme-preview {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.theme-option:hover .theme-preview {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.theme-option span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Style the theme previews with their respective gradients */
.theme-option[data-theme="purple"] .theme-preview {
  background: linear-gradient(45deg, #9b30ff, #4b0082);
}

.theme-option[data-theme="sunset"] .theme-preview {
  background: linear-gradient(45deg, #FF2E4C, #1E2A78);
}

.theme-option[data-theme="ocean"] .theme-preview {
  background: linear-gradient(45deg, #18A5A7, #BFFFC7);
}

.theme-option[data-theme="aurora"] .theme-preview {
  background: linear-gradient(45deg, #FF3E9D, #0E1F40);
}

.theme-option[data-theme="amber"] .theme-preview {
  background: linear-gradient(45deg, #FF8F00, #B53C02);
}

.theme-option[data-theme="emerald"] .theme-preview {
  background: linear-gradient(45deg, #00B894, #006A4E);
}

/* Theme transition effects */
.theme-transition {
  animation: theme-pulse 0.5s ease-in-out;
}

@keyframes theme-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.theme-flash-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.theme-selected {
  animation: theme-selected 0.5s ease-in-out;
}

@keyframes theme-selected {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Particle Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Main Content */
main {
  padding-top: 80px;
}

.section {
  padding: 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gradient-start), var(--accent-gradient-end), transparent);
}

/* Fix for the Cosmic Playground section title */
.interactive-element .section-title {
  position: relative;
  left: 0;
  transform: none;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

/* Home Section */
.greeting {
  text-align: center;
  margin-bottom: 3rem;
}

.greeting h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Updated intro section with proper alignment */
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-direction: row-reverse; /* This will place profile image on right */
}

.profile-image {
  position: relative;
  width: 300px;
  height: 300px;
  margin-top: 0.5rem;
}

/* Fixed orbital ring to be circular with theme colors */
.orbital-ring {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(var(--accent-gradient-start-rgb), 0.7);
  animation: rotate 20s linear infinite;
}

.orbital-ring::before,
.orbital-ring::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
}

/* Position orbiting circles along the path of the circle */
.orbital-ring::before {
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
}

.orbital-ring::after {
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow);
}

.bio {
  width: calc(100% - 350px);
  text-align: left;
  padding-top: 0;
  margin-top: 0;
}

/* Updated intro text properties */
.intro-greeting, .intro-name, .intro-aka {
  text-align: left !important;
  font-size: 3.5rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

/* Fix for Soumya Saha gradient */
.highlight {
  background-image: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Fix for aka styling */
.aka-text {
  font-weight: normal;
  font-style: normal;
}

.bio h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  letter-spacing: 2px;
  background-image: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bio p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  color: white;
}

.btn.secondary {
  background: transparent;
  position: relative;
  color: var(--accent-gradient-start);
  border: none;
}

.btn.secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(45deg, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.3s ease;
}

.btn.primary:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.btn.primary:active {
  background-image: linear-gradient(to right, var(--accent-gradient-end), var(--accent-gradient-start));
}

.btn.primary:active,
.btn.secondary:active {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
}

.btn.secondary:hover {
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.1), rgba(var(--accent-gradient-end-rgb), 0.1));
  transform: translateY(-5px);
}

.btn.secondary:hover::before {
  background: linear-gradient(45deg, var(--accent-gradient-start), var(--accent-gradient-end), transparent, var(--accent-gradient-start));
  animation: borderGlow 2s ease-in-out infinite;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

/* UNIFIED STYLING FOR ALL CARD TYPES */
.stat-card, 
.contact-card, 
.carousel-card,
.education-card,
.achievement-card, 
.experience-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.8));
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(15px);
  border: none !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Common ::before pseudo-element for gradient border */
.stat-card::before, 
.contact-card::before, 
.carousel-card::before,
.education-card::before,
.achievement-card::before, 
.experience-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), 
                             rgba(var(--accent-gradient-end-rgb), 0.3), 
                             transparent, 
                             rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}

/* Hover effect for all cards */
.stat-card:hover::before, 
.contact-card:hover::before, 
.carousel-card.active-center::before,
.education-card:hover::before,
.achievement-card:hover::before, 
.experience-card:hover::before {
  background: linear-gradient(45deg, var(--accent-gradient-start), 
                             var(--accent-gradient-end), 
                             transparent, 
                             var(--accent-gradient-start));
  animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.stat-card:hover,
.contact-card:hover,
.education-card:hover,
.carousel-card.active-center,
.achievement-card:hover,
.experience-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(var(--accent-gradient-start-rgb), 0.3);
}

/* Card icons */
.stat-card i,
.contact-card i {
  font-size: 2.5rem;
  background-image: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(var(--accent-gradient-start-rgb), 0.5));
}

/* Card headings */
.stat-card h4,
.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Card text */
.stat-card p,
.contact-card p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.contact-card p {
  /* Add gradient text styling to all contact card paragraphs */
  background-image: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}
.contact-card p:hover {
  text-shadow: 0 0 20px rgba(var(--accent-gradient-start-rgb), 0.8);
}


.light-mode .stat-card,
.light-mode .contact-card,
.light-mode .carousel-card,
.light-mode .education-card,
.light-mode .achievement-card,
.light-mode .experience-card {
  background: linear-gradient(145deg, rgba(220, 220, 220, 0.8), rgba(230, 230, 230, 0.8));
}

/* Carousel styles */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
  min-height: 380px;
  overflow: visible;
}

/* Standardized Card Base Styles */
.carousel-card {
  width: 320px;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 320px;
  padding: 0;
}

/* Smooth Card Transitions */
.carousel-card.active-center {
  transform: translateX(0) scale(1.15);
  opacity: 1;
  visibility: visible;
  z-index: 10;
  box-shadow: 0 0 30px var(--accent-gradient-start);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-card.active-left {
  transform: translateX(-340px) scale(0.85);
  opacity: 0.7;
  visibility: visible;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-card.active-right {
  transform: translateX(340px) scale(0.85);
  opacity: 0.7;
  visibility: visible;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Navigation Buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none;
  z-index: 20;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  box-shadow: var(--glow);
}

.carousel-button.prev {
  left: 5%;
}

.carousel-button.next {
  right: 5%;
}

/* Experience and Achievement Cards */
.experience-card .card-header {
  padding: 1.5rem;
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Remove border and use pseudo-element for border */
.experience-card .card-header::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent);
  pointer-events: none;
}

.experience-card .card-header i {
  font-size: 2.2rem;
  background-image: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
}

.experience-card .card-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  text-align: center;
  line-height: 1.3;
  color: white;
}

.experience-card .card-header .date {
  font-size: 0.9rem;
  opacity: 0.7;
  color: white;
}

/* Card body with project and organization */
.experience-card .card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-body h4 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: bold;
}

.card-body .organization-name {
  font-size: 0.9rem;
  color: var(--accent-gradient-start);
  display: block;
  line-height: 1.2;
}

.experience-card .card-body .project-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
  line-height: 1.3;
}

.card-body .organization {
  font-size: 0.9rem;
  color: var(--accent-gradient-start);
  line-height: 1.3;
}

/* Ensure consistent styling for card footer */
.experience-card .card-footer {
  padding: 1rem;
  flex: 0 0 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

/* Use pseudo-element for footer top border */
.experience-card .card-footer::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent);
  pointer-events: none;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3));
  color: white;
  transition: var(--transition);
}

.tag:hover {
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.5), rgba(var(--accent-gradient-end-rgb), 0.5));
  transform: translateY(-2px);
}

/* Fixed height for carousel wrappers */
.experience-carousel-wrapper,
.achievement-carousel-wrapper,
.education-carousel-wrapper {
  min-height: 380px;
}

/* Education Preview */
.education-preview {
  margin-bottom: 4rem;
}

/* IMPROVED EDUCATION CARD STYLES */
.education-card {
  min-width: 300px;
  max-width: 300px;
  height: auto;
  min-height: 320px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Improved circular cropping for education logos */
.education-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  padding: 10px;
  overflow: hidden;
  border: 3px solid var(--accent-gradient-start);
  transition: all 0.3s ease;
}

.education-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(var(--accent-gradient-start-rgb), 0.4);
}

.education-logo.large {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.education-logo a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.education-logo img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Metadata (year, ID, transcript) styling */
.education-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
}

.education-date,
.student-id,
.see-transcript {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.1), rgba(var(--accent-gradient-end-rgb), 0.1));
    color: var(--accent-gradient-start);
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    min-width: 180px; /* Consistent width for all buttons */
    justify-content: center; /* Center text within each button */
}

.education-date {
  margin-top: 0.5rem;
}

.see-transcript a {
  color: var(--accent-gradient-start);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.see-transcript a::after {
  content: '\f019';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.see-transcript:hover {
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3));
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.education-content {
  text-align: center;
}

.education-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: white;
}

.education-content h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  color: white;
}

.education-content p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: white;
}

.see-more-container {
  text-align: center;
}

/* Achievement card specific styles */
.achievement-card {
  text-align: center;
  padding: 0;
  height: 320px;
}

.achievement-header {
  padding: 1.5rem;
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Use pseudo-element for achievement header border */
.achievement-header::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent);
  pointer-events: none;
}

.medal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.medal i {
  font-size: 2rem;
  color: white;
}

.medal.gold {
  background: linear-gradient(145deg, #ffd700, #ffaa00);
}

.medal.silver {
  background: linear-gradient(145deg, #c0c0c0, #a0a0a0);
}

.medal.bronze {
  background: linear-gradient(145deg, #cd7f32, #a05a2c);
}

.achievement-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
  line-height: 1.3;
}

.achievement-header .event {
  font-size: 0.9rem;
  opacity: 0.7;
  color: white;
}

.achievement-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.achievement-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.achievement-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.achievement-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
}

.achievement-location {
  font-size: 0.9rem;
  color: var(--accent-gradient-start);
}

/* Education Page Styles */
.education-page {
  padding-top: 120px;
}

.education-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

.education-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.education-item {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  position: relative;
}

/* Use pseudo-element for bottom border */
.education-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-gradient-start-rgb), 0.4), rgba(var(--accent-gradient-end-rgb), 0.4), transparent);
  pointer-events: none;
}

.education-item:last-child::after {
  display: none;
}

.education-details {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.education-content-full {
  flex: 1;
}

.education-content-full h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background-image: linear-gradient(to bottom, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.education-content-full h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.education-content-full h5 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.education-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gradient-start);
  margin-bottom: 1.5rem;
}

.education-description {
  margin-top: 1.5rem;
}

.education-description p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.education-description h6 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent-gradient-start);
}

.education-description ul {
  list-style-type: none;
  margin-left: 1rem;
}

.education-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.education-description li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-gradient-start);
}

/* Course Dropdown Styles */
.course-dropdown {
  margin-top: 2rem;
  width: 100%;
}

.dropdown-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border-radius: 20px;
  color: var(--text-dark);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  z-index: 2;
  border: none !important;
}

.dropdown-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent, rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: -1;
}

.dropdown-btn:hover {
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.dropdown-btn:hover::before {
  background: linear-gradient(45deg, var(--accent-gradient-start), var(--accent-gradient-end), transparent, var(--accent-gradient-start));
  animation: borderGlow 2s ease-in-out infinite;
}

.dropdown-btn i {
  transition: all 0.3s ease;
}

.dropdown-btn.active::before {
  border-radius: 20px 20px 0 0;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.7);
  border-radius: 0 0 20px 20px;
  transition: max-height 0.3s ease;
  position: relative;
  top: -2px;
  backdrop-filter: blur(10px);
  margin-bottom: -2px;
  border: none !important;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0 0 20px 20px;
  padding: 2px;
  padding-top: 0;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent, rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.semester {
  padding: 1.5rem;
  position: relative;
}

/* Use pseudo-element for semester border */
.semester:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-gradient-start-rgb), 0.1), rgba(var(--accent-gradient-end-rgb), 0.1), transparent);
  pointer-events: none;
}

.semester h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-gradient-start);
}

.dropdown-content ul {
  list-style-type: none;
  margin-left: 1rem;
  padding: 1.5rem;
}

.semester ul {
  padding: 0;
}

.dropdown-content li,
.semester li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.dropdown-content li::before,
.semester li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-gradient-start);
}

.education-skills {
  margin-top: 4rem;
  position: relative;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.7), rgba(40, 40, 40, 0.7));
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: none !important;
  overflow: visible;
}

.education-skills::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), 
                              rgba(var(--accent-gradient-end-rgb), 0.3), 
                              transparent, 
                              rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}

.education-skills:hover::before {
  background: linear-gradient(45deg, var(--accent-gradient-start), 
                             var(--accent-gradient-end), 
                             transparent, 
                             var(--accent-gradient-start));
  animation: borderGlow 2s ease-in-out infinite;
}

.education-skills h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  position: relative;
}

.skill-category::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), 
                              rgba(var(--accent-gradient-end-rgb), 0.3), 
                              transparent, 
                              rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}

.skill-category:hover::before {
  background: linear-gradient(45deg, var(--accent-gradient-start), 
                             var(--accent-gradient-end), 
                             transparent, 
                             var(--accent-gradient-start));
  animation: borderGlow 2s ease-in-out infinite;
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3 i {
  color: var(--accent-gradient-start);
}

.skill-category ul {
  list-style-type: none;
}

.skill-category li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.skill-category li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gradient-start);
}

.back-to-home {
  margin-top: 3rem;
  text-align: center;
}

.back-to-home .btn i {
  margin-right: 0.5rem;
}

/* Stellarium Embed - FIXED WITH CLICK AND CURSOR */
.stellarium-section {
    margin-bottom: 4rem;
}

.stellarium-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.stellarium-section p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stellarium-embed {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    background: linear-gradient(var(--primary-dark), var(--primary-dark)) padding-box,
                linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end)) border-box;
    transition: var(--transition);
}

.stellarium-embed:hover {
    box-shadow: 0 15px 40px rgba(var(--accent-gradient-start-rgb), 0.4);
}

/* CRUCIAL FIX: Allow clicks to pass through to iframe */
.stellarium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Lower z-index */
    pointer-events: none; /* CRITICAL: Allow clicks to pass through */
    cursor: none !important; 
}

.stellarium-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
    z-index: 1;
    position: relative;
    pointer-events: auto !important; /* CRITICAL: Make sure iframe gets clicks */
}

/* Cosmic playground section fixes - BORDER REMOVED */
.interactive-element {
    text-align: center;
    margin-bottom: 2rem;
}

#cosmic-sphere {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

/* Remove the border pseudo-element entirely */
#cosmic-sphere::before {
    display: none;
}

/* Video section - FIXED WITH CLICK AND CURSOR */
.shortfilm-section {
    margin: 4rem 0;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    background: linear-gradient(var(--primary-dark), var(--primary-dark)) padding-box,
                linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end)) border-box;
    transition: var(--transition);
}

.video-container:hover {
    box-shadow: 0 15px 40px rgba(var(--accent-gradient-start-rgb), 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
    z-index: 1;
    pointer-events: auto !important; /* CRITICAL: Make sure iframe gets clicks */
}

/* CRUCIAL FIX: Allow clicks to pass through to iframe */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Lower z-index */
    pointer-events: none; /* CRITICAL: Allow clicks to pass through */
    cursor: none !important;
}

/* Projects & Experience Section */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Contact Section */
#contact {
  padding: 8rem 0;
  min-height: 100vh;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.8fr; /* Wider form column */
  gap: 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* Improved contact card styling - consistent for ALL cards including Address */
.contact-card {
  min-height: 160px;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.8));
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

/* Ensure ALL contact cards have consistent gradient border */
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), 
                           rgba(var(--accent-gradient-end-rgb), 0.3), 
                           transparent, 
                           rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}

/* Consistent hover effects for ALL contact cards */
.contact-card:hover::before {
  background: linear-gradient(45deg, var(--accent-gradient-start), 
                           var(--accent-gradient-end), 
                           transparent, 
                           var(--accent-gradient-start));
  animation: borderGlow 2s ease-in-out infinite;
}

.contact-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(var(--accent-gradient-start-rgb), 0.3);
}

/* Enhanced contact card icons */
.contact-card i {
  font-size: 2.5rem;
  background-image: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(var(--accent-gradient-start-rgb), 0.5));
}

.contact-card a {
  background-image: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-card a:hover {
  text-shadow: 0 0 20px rgba(var(--accent-gradient-start-rgb), 0.8);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-gradient-start-rgb), 0.2), rgba(var(--accent-gradient-end-rgb), 0.2));
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover {
  transform: translateY(-8px) rotate(360deg);
  box-shadow: 0 15px 30px rgba(var(--accent-gradient-start-rgb), 0.4);
}

.social-icon i {
  font-size: 1.4rem;
  z-index: 1;
  position: relative;
  color: white;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Form container with improved styling and proportions */
.contact-form form {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.8));
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(15px);
  border: none !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: auto;
  min-height: calc(2 * 160px + 2 * 2rem); /* At least two fields visible */
  padding-bottom: 3rem; /* More space at bottom for the button */
}

/* Gradient border for form */
.contact-form form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent, rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}

/* Add hover effect to form border */
.contact-form form:hover::before {
  background: linear-gradient(45deg, var(--accent-gradient-start), var(--accent-gradient-end), transparent, var(--accent-gradient-start));
  animation: borderGlow 2s ease-in-out infinite;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gradient-start);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(var(--accent-gradient-start-rgb), 0.2);
}

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

/* Send Message Button - IMPROVED POSITIONING AND STYLING */
.contact-form .btn.primary {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2.5rem; /* More space above button */
  width: 100%; /* Full width */
  align-self: center;
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  color: white;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(var(--accent-gradient-start-rgb), 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 60px; /* Taller height for better proportions */
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.5px;
}

/* Shine effect for button */
.contact-form .btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.contact-form .btn.primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--accent-gradient-start-rgb), 0.5);
}

.contact-form .btn.primary:hover::before {
  left: 100%;
}

/* Make sure the button icon is properly spaced */
.contact-form .btn.primary i {
  margin-left: 10px;
  font-size: 1.2rem;
}

.contact-form .btn.primary:active {
  transform: translateY(0);
  background-image: linear-gradient(to right, var(--accent-gradient-end), var(--accent-gradient-start));
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem; /* More space between sections on mobile */
  }
  
  .contact-info {
    position: static;
    order: 2;
  }
  
  .contact-form {
    order: 1;
  }
  
  .contact-form form {
    height: auto;
    min-height: 550px;
    padding-bottom: 3rem;
  }
  
  .contact-form .btn.primary {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-form form {
    padding: 2rem;
  }
  
  .contact-form .btn.primary {
    width: 100%;
    align-self: center;
    margin-top: 1.5rem;
  }
}

/* Footer */
footer {
  background-color: rgba(18, 18, 18, 0.95);
  padding: 3rem 0; /* Increased padding */
  position: relative;
  overflow: visible;
}

/* Add gradient border to footer */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  box-shadow: 0 0 10px rgba(var(--accent-gradient-start-rgb), 0.5);
}

.light-mode footer {
  background-color: rgba(220, 220, 220, 0.95);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.light-mode .footer-quote {
  color: var(--text-light);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to right, rgba(var(--accent-gradient-start-rgb), 0.2), rgba(var(--accent-gradient-end-rgb), 0.2));
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background-image: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.footer-social i {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.light-mode .footer-social i {
  color: var(--text-light);
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--text-dark);
}

.light-mode .footer-copyright {
  color: var(--text-light);
}

.form-response {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  animation: slideIn 0.3s ease-out;
  position: relative;
}

.form-response::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(45deg, rgba(var(--accent-gradient-start-rgb), 0.3), rgba(var(--accent-gradient-end-rgb), 0.3), transparent, rgba(var(--accent-gradient-start-rgb), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.success-response {
  background: linear-gradient(145deg, rgba(40, 167, 69, 0.2), rgba(34, 139, 58, 0.2));
  color: #d4edda;
  text-align: center;
  flex-direction: column;
  padding: 3rem 2rem;
}

.error-response {
  background: linear-gradient(145deg, rgba(220, 53, 69, 0.2), rgba(184, 44, 58, 0.2));
  color: #f8d7da;
}

.response-content {
  text-align: center;
  width: 100%;
}

.response-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.success-response .response-icon i {
  color: #28a745;
  filter: drop-shadow(0 0 20px rgba(40, 167, 69, 0.6));
}

.response-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.response-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.error-content i {
  font-size: 1.5rem;
  color: #dc3545;
  flex-shrink: 0;
}

.error-content span {
  font-size: 1rem;
  line-height: 1.5;
}

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

/* Loading state for submit button */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-image {
    margin-bottom: 2rem;
    width: 200px;
    height: 200px;
  }
  
  .bio {
    width: 100%;
    text-align: center;
  }

  .intro-greeting, .intro-name, .intro-aka {
    text-align: center !important;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .education-details {
    flex-direction: column;
    align-items: center;
  }
  
  .education-logo.large {
    margin-bottom: 2rem;
  }
  
  .education-content-full {
    text-align: center;
  }
  
  .education-meta {
    justify-content: center;
  }
  
  .carousel-button.prev {
    left: 0;
  }
  
  .carousel-button.next {
    right: 0;
  }
  
  .carousel-card.active-left {
    transform: translateX(-200px) scale(0.8);
  }
  
  .carousel-card.active-right {
    transform: translateX(200px) scale(0.8);
  }
}

@media (max-width: 768px) {
  .quick-stats {
    grid-template-columns: 1fr;
  }

  #contact {
    padding: 5rem 0;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form form {
    height: auto;
    padding: 2rem;
  }
  
  .social-links {
    gap: 1.5rem;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
  }

  html {
    font-size: 14px;
  }
  
  nav {
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .quick-stats {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .dropdown-btn {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
  
  .semester {
    padding: 1.2rem;
  }
  
  .semester h4 {
    font-size: 1.1rem;
  }
  
  .semester li {
    font-size: 0.9rem;
  }
  
  .education-meta {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .education-date,
  .student-id,
  .see-transcript {
    width: 100%;
    justify-content: center;
  }

  /* Theme menubar mobile adjustments */
  .theme-menubar {
    width: 280px;
    padding: 1.5rem;
  }
  
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .theme-menubar-header h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .greeting h1 {
    font-size: 2.5rem;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .achievement-card,
  .experience-card {
    min-width: 100%;
  }
  
  .education-card {
    min-width: 250px;
  }
}