/* Modern Minimalist Portfolio Styles */
:root {
  /* Color Scheme - Dark Theme */
  --primary: #000000;
  --primary-light: #0d0d0d;
  --secondary: #00e5c0;
  --secondary-light: #00b3b3;
  --accent: #ff4d4d;
  --light: #f5f5f5;
  --dark: #000000;
  --gray: #a0a0a0;
  --white: #ffffff;
  --black: #000000;
  --surface: #121212;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Liquid Glass Theme Variables - Dark Mode */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: 16px;
  --glass-glow: 0 0 20px rgba(0, 229, 192, 0.2);
  --blob-opacity: 0.15;
  --nested-glass-bg: rgba(255, 255, 255, 0.03);
  --nested-glass-border: 1px solid rgba(255, 255, 255, 0.08);

  /* Buttons - Dark Theme Liquid Glass */
  --btn-glass-1-bg: linear-gradient(135deg, rgba(0, 229, 192, 0.25), rgba(0, 179, 179, 0.1));
  --btn-glass-1-border: 1px solid rgba(0, 229, 192, 0.4);
  --btn-glass-1-shadow: 0 8px 20px 0 rgba(0, 229, 192, 0.15), 0 0 8px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.08), inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.05), inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.25), inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.15), inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.15), inset 0 0 6px 6px rgba(255, 255, 255, 0.04), inset 0 0 2px 2px rgba(255, 255, 255, 0.02), 0 0 12px rgba(0, 0, 0, 0.15);

  --btn-glass-2-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  --btn-glass-2-border: 1px solid rgba(255, 255, 255, 0.2);
  --btn-glass-2-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.2), 0 0 8px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.08), inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.05), inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.25), inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.15), inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.15), inset 0 0 6px 6px rgba(255, 255, 255, 0.04), inset 0 0 2px 2px rgba(255, 255, 255, 0.02), 0 0 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] {
  --primary: #f5f5f5;
  --primary-light: #ffffff;
  --secondary: #00b3b3;
  --secondary-light: #00e5c0;
  --accent: #ff4d4d;
  --light: #0d0d0d;
  --dark: #f5f5f5;
  --gray: #606060;
  --white: #ffffff;
  --black: #0d0d0d;
  --surface: #f0f0f0;

  /* Liquid Glass Theme Variables - Light Mode */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
  --glass-glow: 0 0 20px rgba(0, 179, 179, 0.15);
  --blob-opacity: 0.06;
  --nested-glass-bg: rgba(0, 0, 0, 0.02);
  --nested-glass-border: 1px solid rgba(0, 0, 0, 0.06);

  /* Buttons - Light Theme Liquid Glass */
  --btn-glass-1-bg: linear-gradient(135deg, rgba(0, 179, 179, 0.25), rgba(0, 229, 192, 0.15));
  --btn-glass-1-border: 1px solid rgba(0, 179, 179, 0.4);
  --btn-glass-1-shadow: 0 8px 20px 0 rgba(0, 179, 179, 0.1), 0 0 6px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.08), inset 3px 3px 0.5px -3px rgba(0, 0, 0, 0.9), inset -3px -3px 0.5px -3px rgba(0, 0, 0, 0.85), inset 1px 1px 1px -0.5px rgba(0, 0, 0, 0.6), inset -1px -1px 1px -0.5px rgba(0, 0, 0, 0.6), inset 0 0 6px 6px rgba(0, 0, 0, 0.12), inset 0 0 2px 2px rgba(0, 0, 0, 0.06), 0 0 12px rgba(255, 255, 255, 0.15);

  --btn-glass-2-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
  --btn-glass-2-border: 1px solid rgba(0, 0, 0, 0.15);
  --btn-glass-2-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.05), 0 0 6px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.08), inset 3px 3px 0.5px -3px rgba(0, 0, 0, 0.9), inset -3px -3px 0.5px -3px rgba(0, 0, 0, 0.85), inset 1px 1px 1px -0.5px rgba(0, 0, 0, 0.6), inset -1px -1px 1px -0.5px rgba(0, 0, 0, 0.6), inset 0 0 6px 6px rgba(0, 0, 0, 0.12), inset 0 0 2px 2px rgba(0, 0, 0, 0.06), 0 0 12px rgba(255, 255, 255, 0.15);
}

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

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

/* Lenis Smooth Scroll Integration */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--primary);
  color: var(--light);
  transition: var(--transition-slow);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Liquid Glass background blobs */
body::before,
body::after {
  display: none;
  /* Disabled for a plain black background */
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: var(--blob-opacity);
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

body::before {
  background: var(--secondary);
  top: 20%;
  left: 10%;
  animation: drift 20s infinite alternate ease-in-out;
}

body::after {
  background: var(--accent);
  bottom: 20%;
  right: 10%;
  animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(120px, 60px) scale(1.3);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--light);
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, var(--light), var(--secondary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: var(--radius-full);
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  color: var(--gray);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

a:hover {
  color: var(--secondary);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

section {
  padding: var(--space-2xl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  width: 100%;
}

.section-header .title {
  position: relative;
  display: inline-block;
}

.section-header .title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Profile Section - FIXED CIRCLE ISSUE */
#profile {
  height: 100vh;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 80px;
  /* Added for nav bar space */
}

#profile .section-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  height: 100%;
  flex-direction: column;
  padding-top: var(--space-xl);
  /* Added padding */
}

#profile .btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0 0 0;
}

.section__pic-container {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 229, 192, 0.25);
  /* Subtle teal border */
  box-shadow: 0 0 20px rgba(0, 229, 192, 0.25), 0 0 10px rgba(0, 229, 192, 0.1), var(--shadow-xl);
  /* Soft ambient glow */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
  position: relative;
  margin: 0 auto;
  aspect-ratio: 1/1;
}

.section__pic-container:hover {
  transform: scale(1.03);
  /* Soft zoom of the container */
  border-color: rgba(0, 229, 192, 0.6);
  /* Softened border highlight on hover */
  box-shadow: 0 0 35px rgba(0, 229, 192, 0.5), 0 0 15px rgba(0, 229, 192, 0.2), var(--shadow-2xl);
  /* Balanced glow on hover */
}

.profile-img,
.about-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.section__pic-container:hover .profile-img,
.section__pic-container:hover .about-pic {
  transform: scale(1.06);
  /* Subtle internal photo zoom */
}

.glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.5s ease;
  mix-blend-mode: overlay;
  opacity: 0.4;
  /* Reduced static glare overlay opacity */
}

.section__pic-container:hover .glow-effect {
  opacity: 0.6;
  /* Reduced hover glare overlay opacity */
}

.section__text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  /* Added padding for mobile */
}

.section__text__p1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--secondary);
}

.title {
  font-size: 3.5rem;
  margin-bottom: 0;
  background: linear-gradient(90deg, var(--light), var(--secondary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.typewriter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 1.5rem auto 0 auto;
  height: 3.5rem;
}

.gooey-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: url(#threshold);
}

.typewriter-text {
  position: absolute;
  display: inline-block;
  user-select: none;
  text-align: center;
  white-space: nowrap;
  color: var(--light);
}

.btn-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

#socials-container {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: row;
  gap: var(--space-xl);
  width: 100%;
}

.about-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-details-container {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about-containers {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.details-container {
  flex: 1;
  padding: var(--space-lg);
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.details-container:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  border-color: var(--secondary);
}

.icon-container {
  width: 60px;
  height: 60px;
  background: rgba(0, 229, 192, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--secondary);
  font-size: 1.5rem;
}

.text-container {
  max-width: 100%;
  text-align: left;
}



.scroll-down {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {

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

  40% {
    transform: translateY(-15px) translateX(-50%);
  }

  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

/* Experience Section */
.experience-details-container {
  width: 100%;
}

.experience-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.experience-header i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.article-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

article {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--nested-glass-bg);
  border: var(--nested-glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
  text-align: left;
  position: relative;
  overflow: hidden;
}

article:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  border-color: var(--secondary);
}

.skill-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 229, 192, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.skill-level {
  height: 100%;
  background-color: var(--secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-slow);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.color-container {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--glass-shadow);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.color-container:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  border-color: var(--secondary);
}

.project-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-normal);
  border-radius: var(--radius-md);
}

.overlay-content {
  text-align: center;
  color: var(--white);
}

.overlay-content h3 {
  color: var(--white);
  font-size: 1.5rem;
}

.project-image-container:hover .project-overlay {
  opacity: 1;
}

.project-image-container:hover .project-img {
  transform: scale(1.05);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--light);
}

.project-description {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  color: var(--gray);
}

.projects-btn {
  margin-top: var(--space-sm);
}

/* Contact Section */
.contact-info-upper-container {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
  min-width: 250px;
  position: relative;
  overflow: hidden;
}

.contact-info-container p {
  margin-top: 15px;
}

.contact-info-container:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  border-color: var(--secondary);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 229, 192, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--surface);
  color: var(--light);
  padding: var(--space-xl);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: var(--light);
  margin-bottom: var(--space-md);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.footer-socials a {
  color: var(--light);
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.footer-socials a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: var(--space-md);
  right: var(--space-lg);
  z-index: 1001;
}

.theme-switch {
  display: none;
}

.theme-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--surface);
  border-radius: 50px;
  padding: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-icon {
  font-size: 14px;
  z-index: 1;
  color: var(--light);
}

.theme-ball {
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: var(--secondary);
  border-radius: 50%;
  left: 4px;
  transition: transform 0.3s ease;
}

.theme-switch:checked+.theme-label .theme-ball {
  transform: translateX(30px);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.orbital-loader {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbital-ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
}

.orbital-ring-1 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-top-color: var(--secondary);
  filter: drop-shadow(0 0 5px var(--secondary));
  animation: spin-clockwise 1s linear infinite;
}

.orbital-ring-2 {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-top-color: var(--secondary);
  opacity: 0.8;
  filter: drop-shadow(0 0 3px var(--secondary));
  animation: spin-counter-clockwise 1.5s linear infinite;
}

.orbital-ring-3 {
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-top-color: var(--secondary);
  opacity: 0.6;
  filter: drop-shadow(0 0 2px var(--secondary));
  animation: spin-clockwise 0.8s linear infinite;
}

@keyframes spin-clockwise {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-counter-clockwise {
  to {
    transform: rotate(-360deg);
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
#desktop-nav,
#hamburger-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-normal);
}

[data-theme="light"] #desktop-nav,
[data-theme="light"] #hamburger-nav {
  background-color: rgba(245, 245, 245, 0.9);
}

#desktop-nav,
#hamburger-nav,
#desktop-nav::before,
#desktop-nav::after {
  background: var(--primary) !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

#desktop-nav {
  background: transparent !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#desktop-nav .logo {
  flex: 1;
}

#desktop-nav>div:nth-child(2) {
  flex: 1;
  display: flex;
  justify-content: center;
}

#desktop-nav .theme-toggle {
  position: static;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
  transition: var(--transition-normal);
}

.logo-accent {
  color: var(--secondary);
  transition: var(--transition-normal);
}

.logo:hover {
  color: var(--secondary);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .nav-links {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-links li:not(.nav-cursor) {
  position: relative;
  z-index: 10;
}

.nav-link {
  font-weight: 500;
  display: block;
  padding: var(--space-xs) var(--space-md);
  color: var(--gray);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--light);
}

.nav-cursor {
  position: absolute;
  z-index: 0;
  height: calc(100% - 8px);
  top: 4px;
  left: 0;
  width: 0;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 192, 0.12);
  border: 1px solid rgba(0, 229, 192, 0.3);
  box-shadow: 0 0 15px rgba(0, 229, 192, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.25s ease;
}

[data-theme="light"] .nav-cursor {
  background: rgba(0, 179, 179, 0.10);
  border: 1px solid rgba(0, 179, 179, 0.25);
  box-shadow: 0 0 10px rgba(0, 179, 179, 0.15);
}

/* Mobile Navigation */
#hamburger-nav {
  display: none;
  z-index: 2000;
}

.mobile-nav-container {
  display: flex;
  align-items: center;
}

.hamburger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  z-index: 2001;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--light);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

[data-theme="light"] .hamburger-icon {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hamburger-icon:hover {
  background: rgba(0, 229, 192, 0.08);
  border-color: rgba(0, 229, 192, 0.25);
  color: var(--secondary);
}

[data-theme="light"] .hamburger-icon:hover {
  background: rgba(0, 179, 179, 0.08);
  border-color: rgba(0, 179, 179, 0.25);
  color: var(--secondary);
}

.hamburger-svg {
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.hamburger-svg path {
  transform-origin: center;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-svg .line-top {
  transform: translateY(-7px);
  transition-timing-function: cubic-bezier(.5, .85, .25, 1.1);
}

.hamburger-svg .line-middle {
  transition-timing-function: cubic-bezier(.5, .85, .25, 1.8);
}

.hamburger-svg .line-bottom {
  transform: translateY(7px);
  transition-timing-function: cubic-bezier(.5, .85, .25, 1.1);
}

/* Open State Animations matching React component exactly */
.hamburger-icon.open .hamburger-svg .line-top {
  transform: translateY(0) rotate(315deg);
}

.hamburger-icon.open .hamburger-svg .line-middle {
  transform: rotate(45deg);
}

.hamburger-icon.open .hamburger-svg .line-bottom {
  transform: translateY(0) rotate(135deg);
}

.menu-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-left: var(--glass-border);
  z-index: 1999;
  padding: 80px 30px 30px;
  transition: right 0.4s ease;
  box-shadow: var(--glass-shadow);
}

.menu-links.open {
  right: 0;
}

.menu-links ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.menu-links li a {
  display: block;
  padding: 15px 0;
  color: var(--light);
  font-size: 1.2rem;
  transition: color 0.3s ease;
  border-bottom: var(--nested-glass-border);
}

.menu-links li a:hover {
  color: var(--secondary);
  padding-left: 10px;
}

.mobile-theme-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

body.menu-active {
  overflow: hidden;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.1, 0.4, 0.2, 1);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  gap: var(--space-sm);
  backdrop-filter: url("#container-glass");
  -webkit-backdrop-filter: url("#container-glass");
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

/* Shine Sweep effect for glass buttons */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.btn:hover::after {
  left: 125%;
  opacity: 1;
}

.btn-color-1 {
  background: var(--btn-glass-1-bg);
  color: var(--light);
  border: var(--btn-glass-1-border);
  box-shadow: var(--btn-glass-1-shadow);
}

.btn-color-1:hover {
  color: var(--light);
  border-color: var(--secondary-light);
  box-shadow: var(--btn-glass-1-shadow), 0 0 20px rgba(0, 229, 192, 0.4);
}

.btn-color-2 {
  background: var(--btn-glass-2-bg);
  color: var(--light);
  border: var(--btn-glass-2-border);
  box-shadow: var(--btn-glass-2-shadow);
}

.btn-color-2:hover {
  color: var(--light);
  border-color: var(--secondary);
  box-shadow: var(--btn-glass-2-shadow), 0 0 20px rgba(0, 229, 192, 0.2);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about-containers {
    flex-direction: column;
    align-items: center;
  }

  .details-container {
    max-width: 100%;
  }

  .section__pic-container {
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .about-image-container {
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  #profile {
    padding-top: 80px;
    height: auto;
    min-height: 100vh;
  }

  .section__pic-container {
    width: 280px;
    height: 280px;
    max-width: 90vw;
    max-height: 90vw;
    /* Ensures perfect circle on all devices */
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-upper-container {
    flex-direction: column;
    gap: var(--space-md);
  }

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
  }

  .theme-toggle:not(.mobile-theme-toggle) {
    display: none;
  }

  .theme-label {
    width: 50px;
    height: 25px;
  }

  .theme-ball {
    width: 18px;
    height: 18px;
  }

  .theme-switch:checked+.theme-label .theme-ball {
    transform: translateX(25px);
  }

  h1 {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .typewriter {
    font-size: 2rem;
    height: 3rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .section__pic-container {
    width: 250px;
    height: 250px;
  }

  .details-container {
    padding: var(--space-md);
  }

  .article-container {
    grid-template-columns: 1fr;
  }

  .section__text__p1 {
    font-size: 1.2rem;
  }

  .typewriter {
    font-size: 1.6rem;
    height: 2.6rem;
  }
}

.scroll-down i {
  position: relative;
  top: 30px;
}

.details-container {
  margin-bottom: 2rem;
}

.social-icon i {
  font-size: 20px;
  margin: 0 10px;
}


article h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  margin-top: 0.5rem;
}

/* New overlay for when menu is open */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

body.menu-active .menu-overlay {
  opacity: 1;
  visibility: visible;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
}

.flip-card {
  background: transparent;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  border-radius: 1.5rem;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  border-radius: 1.5rem;
  min-height: 420px;
  min-width: 0;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
}

.flip-card-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.flip-card-front .btn-container {
  margin-top: auto;
  margin-bottom: 0.5rem;
}

/* Default (dark mode) */
.flip-card-back {
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--light);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1;
  font-size: 1rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Light mode styles */
[data-theme="light"] .flip-card-back {
  background: var(--glass-bg);
  color: var(--black);
  border: var(--glass-border);
}

/* Responsive fix for grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

/* Ensure flip cards fill the grid cell */
.projects-grid .flip-card {
  height: 100%;
  width: 100%;
  min-height: 420px;
  min-width: 0;
  display: flex;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  min-height: 420px;
  min-width: 0;
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  height: 100%;
  min-height: 420px;
  min-width: 0;
}

@media (max-width: 600px) {
  .about-containers {
    flex-direction: column;
    gap: 1.5rem;
  }

  .details-container {
    min-height: 220px;
    width: 100%;
  }

  .projects-grid .flip-card,
  .flip-card-inner,
  .flip-card-front,
  .flip-card-back {
    min-height: 380px;
  }

  .btn-container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .projects-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.7em 0;
  }

  #profile .btn-container {
    flex-direction: column;
    gap: 1rem;
  }
}

#desktop-nav {
  background: var(--primary);
}

/* Mobile menu uses responsive glass variables, so overrides are not needed here */

[data-theme="light"] .menu-links li a {
  color: #222c36;
}

[data-theme="light"] .menu-links li a:hover {
  color: #00B3B3;
}

[data-theme="light"] .logo {
  color: #222c36;
}

/* AI Chatbot Styles */
.chat-toggle-btn {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--btn-glass-1-bg);
  border: var(--btn-glass-1-border);
  backdrop-filter: url("#container-glass");
  -webkit-backdrop-filter: url("#container-glass");
  color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--btn-glass-1-shadow);
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
  animation: pulse-glow 2s infinite;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  background: var(--btn-glass-1-bg);
  box-shadow: var(--btn-glass-1-shadow), 0 0 25px rgba(0, 229, 192, 0.4);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 192, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 229, 192, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 192, 0);
  }
}

.chatbot-container {
  position: fixed;
  bottom: calc(var(--space-xl) + 70px);
  right: var(--space-xl);
  width: 350px;
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
}

.chatbot-container.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(0, 229, 192, 0.2), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black);
  font-size: 1.2rem;
}

.chatbot-title {
  flex: 1;
}

.chatbot-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--light);
}

.online-status {
  font-size: 0.8rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.online-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--secondary);
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.chatbot-close:hover {
  color: var(--accent);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background-color: var(--gray);
  border-radius: 10px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
  word-wrap: break-word;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.bot-message {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  border-top-left-radius: 2px;
  color: var(--light);
}

.user-message {
  align-self: flex-end;
  background-color: rgba(0, 229, 192, 0.15);
  border-top-right-radius: 2px;
  color: var(--light);
  border: 1px solid rgba(0, 229, 192, 0.3);
}

.bot-typing {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  border-top-left-radius: 2px;
  padding: 12px 16px;
  border-radius: 15px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gray);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.chatbot-input {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.2);
}

#chat-input {
  flex: 1;
  background-color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px 15px;
  color: var(--light);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

#chat-input:focus {
  border-color: var(--secondary);
}

#chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--black);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#chat-send:hover {
  transform: scale(1.05);
  background-color: var(--secondary-light);
}

#chat-send:active {
  transform: scale(0.95);
}

#chat-send:disabled {
  background-color: var(--gray);
  cursor: not-allowed;
  transform: none;
}

/* Make sure chatbot fits on tiny mobile screens */
@media (max-width: 480px) {
  .chatbot-container {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: calc(var(--space-xl) + 70px);
  }
}
}
}