:root {
  /* Dark Theme (Default) */
  --bg-color: #050507;
  --bg-accent: #0f1016;
  --text-main: #ffffff;
  --text-secondary: #a0a0b0;
  --primary-gradient: linear-gradient(135deg, #7f00ff 0%, #00d4ff 100%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --neon-glow: 0 0 15px rgba(0, 212, 255, 0.3);
  --font-main: "Inter", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --header-bg: #050507;
  --card-bg: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(0, 0, 0, 0.2);
  --timeline-line: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg-color: #f5f7fa;
  --bg-accent: #ffffff;
  --text-main: #0f1419;
  --text-secondary: #536471;
  --primary-gradient: linear-gradient(135deg, #6c00ff 0%, #0099cc 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --neon-glow: 0 0 15px rgba(0, 153, 204, 0.15);
  --header-bg: rgba(245, 247, 250, 0.98);
  --card-bg: rgba(255, 255, 255, 0.9);
  --input-bg: rgba(0, 0, 0, 0.03);
  --timeline-line: rgba(0, 0, 0, 0.08);
}

[data-theme="3d"] {
  --bg-color: #e0e5ec;
  --bg-accent: #e0e5ec;
  --text-main: #2d3436;
  --text-secondary: #636e72;
  --primary-gradient: linear-gradient(145deg, #a8b5f5, #7c8bf5);
  --glass-bg: #e0e5ec;
  --glass-border: transparent;
  --glass-shadow: 8px 8px 16px #b8bcc2, -8px -8px 16px #ffffff;
  --neon-glow: 0 0 0 transparent;
  --header-bg: #e0e5ec;
  --card-bg: #e0e5ec;
  --input-bg: #e0e5ec;
  --timeline-line: rgba(0, 0, 0, 0.1);
}

[data-theme="3d"] body {
  background-color: #e0e5ec;
}

[data-theme="3d"] #bg-canvas {
  opacity: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- BACKGROUND ANIMATION CANVAS (DIGITAL STREAM) --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none !important;
}

[data-theme="light"] .timeline-dot {
  background: var(--bg-color);
  border-color: #0099cc;
  box-shadow: 0 0 10px rgba(0, 153, 204, 0.3);
}

[data-theme="light"] .timeline-dot i {
  color: #0099cc;
}

[data-theme="light"] #experience .timeline-dot {
  border-color: #6c00ff;
  box-shadow: 0 0 10px rgba(108, 0, 255, 0.3);
}

[data-theme="light"] #experience .timeline-dot i {
  color: #6c00ff;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-main);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Neumorphic Gradient Text */
[data-theme="3d"] .gradient-text {
  background: linear-gradient(135deg, #7c8bf5, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 10px auto 0;
  border-radius: 2px;
  box-shadow: var(--neon-glow);
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    var(--neon-glow);
}

[data-theme="light"] .glass-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    var(--neon-glow);
}

/* Neumorphism 3D Theme Styles */
[data-theme="3d"] .glass-card {
  background: #e0e5ec;
  border: none;
  border-radius: 20px;
  box-shadow: 8px 8px 16px #b8bcc2, -8px -8px 16px #ffffff;
  transition: all 0.3s ease;
}

[data-theme="3d"] .glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 20px #b8bcc2, -12px -12px 20px #ffffff;
}

[data-theme="3d"] .glass-card:active {
  box-shadow: inset 6px 6px 12px #b8bcc2, inset -6px -6px 12px #ffffff;
}

/* --- NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 15px 0;
  transition: all 0.4s ease;
  background-color: var(--header-bg);
}

header.scrolled {
  padding: 12px 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] header {
  background-color: rgba(245, 247, 250, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] header.scrolled {
  background: rgba(245, 247, 250, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="3d"] header {
  background-color: #e0e5ec;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="3d"] header.scrolled {
  background: #e0e5ec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="3d"] .nav-links a {
  color: #2d3436;
}

[data-theme="3d"] .nav-links a:hover,
[data-theme="3d"] .nav-links a.active {
  color: #7c8bf5;
}

[data-theme="3d"] .logo {
  color: #2d3436;
}

[data-theme="3d"] .timeline-dot {
  background: #e0e5ec;
  border: none;
  box-shadow: inset 2px 2px 5px #b8bcc2, inset -2px -2px 5px #ffffff;
}

[data-theme="3d"] .timeline-dot i {
  color: #7c8bf5;
}

[data-theme="3d"] #experience .timeline-dot {
  border: none;
  box-shadow: inset 2px 2px 5px #b8bcc2, inset -2px -2px 5px #ffffff;
}

[data-theme="3d"] #experience .timeline-dot i {
  color: #9b59b6;
}

[data-theme="3d"] .glass-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 0, 110, 0.3);
  border-color: rgba(255, 0, 110, 0.4);
}

[data-theme="3d"] .hero-image-container {
  box-shadow: 10px 10px 20px #b8bcc2, -10px -10px 20px #ffffff;
}

[data-theme="3d"] .about-image {
  box-shadow: 10px 10px 20px #b8bcc2, -10px -10px 20px #ffffff;
}

[data-theme="3d"] .active-3d {
  color: #7c8bf5 !important;
  text-shadow: none;
  animation: none;
}

@keyframes pulse-3d {

  0%,
  100% {
    box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
  }

  50% {
    box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
  }
}

[data-theme="light"] header.scrolled {
  background: rgba(240, 242, 245, 0.98);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.3s ease;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

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

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10001;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-main);
  font-size: 1.1rem;
  z-index: 10001;
}

.theme-toggle:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}

.theme-toggle i {
  color: var(--text-main);
}

/* 3D Theme Button */
.theme-3d {
  margin-left: 5px;
}

.theme-3d:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: rotate(-15deg);
}

/* Neumorphic Theme Toggle */
[data-theme="3d"] .theme-toggle {
  background: #e0e5ec;
  box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
}

[data-theme="3d"] .theme-toggle:active {
  box-shadow: inset 3px 3px 6px #b8bcc2, inset -3px -3px 6px #ffffff;
}

[data-theme="3d"] .theme-toggle i {
  color: #7c8bf5;
}

.theme-toggle:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: rotate(15deg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- CERTIFICATION LINKS STYLES --- */
.cert-link {
  text-decoration: none;
  /* Removes underline */
  color: inherit;
  /* Keeps text colors (white/gray) */
  display: flex;
  /* Keeps the flex layout of the card */
  flex-direction: column;
  align-items: center;
  height: 100%;
  /* Ensures the whole card height is clickable */
}

/* Hover effect specifically for the link card */
.cert-link:hover {
  transform: translateY(-5px);
  /* Lifts the card up */
  border-color: rgba(0, 212, 255, 0.5);
  /* Adds a cyan border glow */
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
  /* Cyan shadow */
}

/* Changes the title color on hover */
.cert-link:hover .cert-title {
  color: #00d4ff;
}

/* --- HERO SECTION --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-text-content {
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(127, 0, 255, 0.1);
  border: 1px solid rgba(127, 0, 255, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #dcbfff;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(127, 0, 255, 0.1);
  animation: fadeInLeft 1s ease-out;
}

[data-theme="light"] .hero-badge {
  background: rgba(108, 0, 255, 0.1);
  border-color: rgba(108, 0, 255, 0.3);
  color: #6c00ff;
  box-shadow: 0 0 10px rgba(108, 0, 255, 0.1);
}

[data-theme="3d"] .hero-badge {
  background: #e0e5ec;
  color: #7c8bf5;
  box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
  border: none;
}

.hero-title {
  animation: fadeInLeft 1s ease-out 0.4s backwards;
}

.hero-subtitle::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--primary-gradient);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInLeft 1s ease-out 0.6s backwards;
}

.btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* --- HERO IMAGE CONTAINER (ROUNDED CORNERS) --- */
.hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-width: 350px;
  max-height: 400px;
  width: 100%;
  margin: 0 auto;
  animation: fadeInRight 1s ease-out 0.4s backwards;
}

[data-theme="light"] .hero-image-container {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* --- HERO SOCIAL LINKS (NEW ADDITION) --- */
.hero-social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  align-items: center;
  animation: fadeInLeft 1s ease-out 0.8s backwards;
}

/* --- BUTTONS --- */
.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(127, 0, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(127, 0, 255, 0.6);
  transform: translateY(-3px);
}

.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;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 15px rgba(108, 0, 255, 0.3);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(108, 0, 255, 0.5);
}

[data-theme="light"] .btn-outline {
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(108, 0, 255, 0.5);
}

[data-theme="3d"] .btn-primary {
  background: #e0e5ec;
  color: #7c8bf5;
  box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
}

[data-theme="3d"] .btn-primary:hover {
  box-shadow: 8px 8px 16px #b8bcc2, -8px -8px 16px #ffffff;
  color: #5a6fcf;
}

[data-theme="3d"] .btn-primary:active {
  box-shadow: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff;
}

[data-theme="3d"] .btn-outline {
  background: #e0e5ec;
  border: none;
  color: #2d3436;
  box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
}

[data-theme="3d"] .btn-outline:hover {
  box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
  color: #7c8bf5;
}

[data-theme="3d"] .btn-outline:active {
  box-shadow: inset 3px 3px 6px #b8bcc2, inset -3px -3px 6px #ffffff;
}

/* --- ABOUT SECTION --- */
#about {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  max-width: 350px;
  margin: 0 auto;
}

[data-theme="light"] .about-image {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- TIMELINE (Shared for Education & Experience) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border: 2px solid #00d4ff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icons inside dots */
.timeline-dot i {
  font-size: 10px;
  color: #00d4ff;
}

/* Specific border color for Experience section */
#experience .timeline-dot {
  border-color: #7f00ff;
  box-shadow: 0 0 10px rgba(127, 0, 255, 0.5);
}

#experience .timeline-dot i {
  color: #7f00ff;
}

.timeline-content {
  padding: 30px;
}

.timeline-date {
  font-size: 0.9rem;
  color: #00d4ff;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

#experience .timeline-date {
  color: #dcbfff;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: white;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  display: block;
  font-weight: 500;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- CERTIFICATION SECTION --- */

/* --- COURSES / CERT ICON LOGO --- */
.cert-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

/* Certification Icon Styling (For Icons) */
.cert-icon i {
  font-size: 1.5rem;
  /* Size of the icon */
  color: #00d4ff;
  /* Cyan color matching the theme */
}

/* Coursera Logo Image */
.cert-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.1);
}

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

.cert-card {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.cert-issuer {
  color: #00d4ff;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.cert-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- SKILLS SECTION --- */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* Neumorphic Skill Tags */
[data-theme="3d"] .skill-tag {
  background: #e0e5ec;
  border: none;
  box-shadow: 3px 3px 6px #b8bcc2, -3px -3px 6px #ffffff;
  color: #636e72;
}

[data-theme="3d"] .skill-tag:hover {
  color: #7c8bf5;
  box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
}

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-img-wrapper {
  height: 180px;
  overflow: hidden;
  position: relative;
}

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

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

.project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00d4ff;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #00d4ff;
}

/* --- CONTACT SECTION --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #00d4ff;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

/* Neumorphic Contact Icons */
[data-theme="3d"] .contact-icon {
  background: #e0e5ec;
  border: none;
  box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
  color: #7c8bf5;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-secondary);
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #00d4ff;
  background: var(--input-bg);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* Neumorphic Form Controls */
[data-theme="3d"] .form-control {
  background: #e0e5ec;
  border: none;
  box-shadow: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff;
}

[data-theme="3d"] .form-control:focus {
  border: none;
  background: #e0e5ec;
  box-shadow: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- FOOTER --- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 20px;
}

/* --- CONTACT EMAIL LINK --- */
.contact-text p a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text p a:hover {
  color: #00d4ff;
  text-decoration: underline;
}

[data-theme="light"] .contact-text p a:hover {
  color: #0099cc;
}

[data-theme="3d"] .contact-text p a:hover {
  color: #ff006e;
}

/* Global Social Button Styles (Used in Footer and Hero) */
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

/* Neumorphic Social Buttons */
[data-theme="3d"] .social-btn {
  background: #e0e5ec;
  border: none;
  box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
  color: #636e72;
}

[data-theme="3d"] .social-btn:hover {
  background: #7c8bf5;
  color: white;
  box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
  transform: translateY(-3px);
}

[data-theme="3d"] .social-btn:active {
  box-shadow: inset 3px 3px 6px #b8bcc2, inset -3px -3px 6px #ffffff;
}

/* --- NOTIFICATIONS --- */
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: rgba(0, 212, 255, 0.15);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1001;
  bottom: 30px;
  right: 30px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  transform: translateY(100%);
  transition:
    transform 0.3s ease,
    visibility 0.3s;
}

#toast.show {
  visibility: visible;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-social-links {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    font-size: 1.1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .hero-social-links {
    justify-content: center;
  }

  .hero-badge {
    display: block;
    margin: 0 auto 15px;
    width: fit-content;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    z-index: 9998;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
    z-index: 10000;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .theme-toggle,
  .theme-3d {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    z-index: 10000;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text {
    text-align: center;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .about-image {
    max-width: 300px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-item {
    padding: 15px 10px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .timeline-content {
    padding: 20px;
  }

  .certs-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .cert-card {
    padding: 20px;
  }

  .skills-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-category {
    padding: 20px !important;
  }

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

  .project-content {
    padding: 15px;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-desc {
    font-size: 0.9rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-form {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

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

  .cert-icon {
    width: 50px;
    height: 50px;
  }

  .cert-icon i {
    font-size: 1.2rem;
  }

  .cert-title {
    font-size: 0.9rem;
  }

  .skill-tags {
    gap: 8px;
  }

  .skill-tag {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .project-img-wrapper {
    height: 150px;
  }

  .project-tech {
    gap: 6px;
  }

  .tech-span {
    font-size: 0.65rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .form-control {
    padding: 12px;
    font-size: 0.9rem;
  }

  .social-btn {
    width: 36px;
    height: 36px;
  }
}

.nav-links {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  flex-direction: column;
  background: var(--header-bg);
  backdrop-filter: blur(15px);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  z-index: 9998;
}

.nav-links.active {
  display: flex;
}

.menu-toggle {
  display: block;
  z-index: 10000;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  z-index: 10000;
}

.theme-3d {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.nav-right {
  gap: 8px;
}

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

.about-image {
  max-width: 400px;
  margin: 0 auto;
}


@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-item {
    padding: 15px 10px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

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

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-dot {
    left: 1px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .skills-wrapper {
    grid-template-columns: 1fr;
  }

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

  .project-img-wrapper {
    height: 180px;
  }
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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