/* --- Global Variables --- */
:root {
  --primary-color: #00d2ff;
  --secondary-color: #3a7bd5;
  --accent-color: #8b5cf6;
  --bg-dark: #0a0f1e;
  --bg-card: #151f2f;
  --text-main: #ffffff;
  --text-muted: #a0b3d9;
  --text-soft: #cbd5e1;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-card: rgba(21, 31, 47, 0.8);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  --gradient-soft: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(58, 123, 213, 0.2));
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -15px rgba(0, 210, 255, 0.3);
  --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.3);
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 30px;
}

/* --- Light Theme --- */
body.light-theme {
  --bg-dark: #f4f7fc;
  --bg-card: #ffffff;
  --text-main: #1a2639;
  --text-muted: #4a5568;
  --text-soft: #2d3748;
  --glass: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-card: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px -15px rgba(0, 210, 255, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

section {
  padding: 100px 0;
  position: relative;
}

/* --- Typography --- */
h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 4px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 0;
  transition: var(--transition);
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.95);
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  font-size: 1rem;
}

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

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

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

#theme-toggle {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#theme-toggle:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 0% 0%, rgba(0, 210, 255, 0.05), transparent 50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 3rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 340px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  object-fit: cover;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
  border-color: var(--primary-color);
}

.hero-image-badge {
  position: absolute;
  bottom: 20px;
  right: 30px;
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
  max-width: 600px;
}

.hero-greeting-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  background: rgba(0, 210, 255, 0.1);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  display: inline-block;
}

.hero-description-card {
  background: var(--bg-card);
  
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-description-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.description-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gradient-soft);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.description-badge i {
  color: var(--primary-color);
  font-size: 1rem;
}

.description-main {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
  background: rgba(0, 210, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

.description-extended {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--glass);
  border-radius: var(--border-radius-md);
  
}

.description-quote {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.2rem;
  background: rgba(0, 210, 255, 0.05);
  border-radius: var(--border-radius-md);
}

.description-quote i {
  color: var(--primary-color);
  font-size: 1.1rem;
  opacity: 0.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-border);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== SKILLS SECTION - MODERN MINIMAL CARDS ===== */
.skills-minimal {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Animated background effect */
.skills-minimal::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  top: 0;
  left: 0;
  pointer-events: none;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.skills-row {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  position: relative;
  z-index: 2;
}

/* Staggered animations for rows */
.skills-row:nth-child(1) { animation-delay: 0.1s; }
.skills-row:nth-child(2) { animation-delay: 0.2s; }
.skills-row:nth-child(3) { animation-delay: 0.3s; }
.skills-row:nth-child(4) { animation-delay: 0.4s; }
.skills-row:nth-child(5) { animation-delay: 0.5s; }

.skills-row-title {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skills-row-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.skills-row-title:hover::before {
  left: 100%;
}

.skills-row-title:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.skills-row-title i {
  color: var(--primary-color);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.skills-row-title:hover i {
  transform: rotate(360deg);
}

.skills-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.8rem;
}

.skill-mini-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Gradient border effect on hover */
.skill-mini-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Shine effect */
.skill-mini-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-mini-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 15px 30px -10px rgba(0, 210, 255, 0.3);
}

.skill-mini-card:hover::before {
  opacity: 1;
}

.skill-mini-card:hover::after {
  opacity: 1;
  animation: shine 1.5s ease-out;
}

@keyframes shine {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(180deg); opacity: 0; }
}

.skill-mini-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 2;
}

.skill-mini-card:hover .skill-mini-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.skill-mini-icon i {
  font-size: 1.5rem;
  color: white;
  transition: transform 0.3s ease;
}

.skill-mini-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.skill-mini-card:hover span {
  color: var(--primary-color);
}

.skill-mini-card small {
  font-size: 0.65rem;
  color: var(--primary-color);
  font-weight: 600;
  background: rgba(0, 210, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.skill-mini-card:hover small {
  background: var(--primary-color);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 210, 255, 0.3);
}

/* Technology colors for icons */
.html-bg { background: linear-gradient(135deg, #e34f26, #ff764a); }
.css-bg { background: linear-gradient(135deg, #1572b6, #33a9dc); }
.js-bg { background: linear-gradient(135deg, #f7df1e, #f0b400); }
.js-bg i { color: #000; }
.react-bg { background: linear-gradient(135deg, #61dafb, #2c7eb6); }
.python-bg { background: linear-gradient(135deg, #3776ab, #ffd43b); }
.java-bg { background: linear-gradient(135deg, #007396, #ed8b00); }
.cpp-bg { background: linear-gradient(135deg, #00599c, #004482); }
.node-bg { background: linear-gradient(135deg, #68a063, #3c873a); }
.php-bg { background: linear-gradient(135deg, #777bb3, #4d588e); }
.mysql-bg { background: linear-gradient(135deg, #4479a1, #5b87b0); }
.mongodb-bg { background: linear-gradient(135deg, #47A248, #3c873a); }
.oracle-bg { background: linear-gradient(135deg, #F80000, #B00000); }
.sqlserver-bg { background: linear-gradient(135deg, #CC2927, #A12B2A); }
.vscode-bg { background: linear-gradient(135deg, #007ACC, #1F9CF0); }
.git-bg { background: linear-gradient(135deg, #F05032, #C43C26); }
.github-bg { background: linear-gradient(135deg, #333, #24292e); }
.canva-bg { background: linear-gradient(135deg, #00C4CC, #1FA2B2); }

/* Light theme adjustments for skills */
body.light-theme .skill-mini-card {
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .skill-mini-card span {
  color: #1e293b;
}

body.light-theme .skill-mini-card small {
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary-color);
}

body.light-theme .skill-mini-card:hover small {
  background: var(--primary-color);
  color: white;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: var(--bg-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

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

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

.project-info {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.project-tech-icons {
  display: flex;
  gap: 1rem;
}

.project-tech-icons i {
  font-size: 1.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.fa-java:hover { color: #f89820; }
.fa-html5:hover { color: #e34f26; }
.fa-css3-alt:hover { color: #1572b6; }
.fa-js:hover { color: #f7df1e; }
.fa-react:hover { color: #61dafb; }
.fa-database:hover { color: #4479a1; }

.github-project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.3s ease;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.github-project-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.pointing-arrow {
  animation: slideRight 1s infinite alternate;
}

@keyframes slideRight {
  from { transform: translateX(0); }
  to { transform: translateX(5px); }
}

/* ===== GITHUB PROFILE COMPONENT ===== */
.github-profile {
  margin-top: 4rem;
  padding: 2rem 0;
  position: relative;
  width: 100%;
}

.github-profile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
  border-radius: 50px;
  z-index: 0;
  pointer-events: none;
}

.github-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.github-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.github-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.github-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.3);
  animation: gentlePulse 3s infinite ease-in-out;
}

@keyframes gentlePulse {
  0% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 210, 255, 0.3); }
  50% { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0, 210, 255, 0.5); }
  100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 210, 255, 0.3); }
}

.github-icon i {
  font-size: 3rem;
  color: white;
}

.github-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.github-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto 0.5rem;
}

.github-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--gradient);
  color: white;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
  border: none;
  cursor: pointer;
  margin: 0.5rem 0 1rem;
  width: fit-content;
}

.github-profile-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 210, 255, 0.5);
}

.github-profile-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.github-profile-btn:hover i:last-child {
  transform: translateX(8px);
}

.github-profile-btn:hover i:first-child {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.github-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.github-note::before {
  content: '⭐';
  font-size: 1rem;
}

/* ===== CODE SNIPPETS SECTION ===== */
.code-snippets {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Light Theme Overrides */
body.light-theme .code-snippets {
  background: #f8fafc;
}

body.light-theme .snippet-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

body.light-theme .snippet-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 20px 30px -10px rgba(0, 210, 255, 0.2);
}

body.light-theme .snippet-header h3 {
  color: #1e293b;
}

body.light-theme .snippet-subtitle {
  color: #64748b;
}

body.light-theme .snippet-description p {
  color: #475569;
}

body.light-theme .code-block-container {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.light-theme .code-header {
  background: #e9eef3;
  border-bottom-color: #cbd5e1;
}

body.light-theme .file-info {
  color: #334155;
}

body.light-theme .code-wrapper {
  background: #f8fafc;
}

body.light-theme .code-wrapper pre {
  background: #f8fafc !important;
}

/* Light Theme Syntax Highlighting */
body.light-theme .token.keyword { color: #d73a49 !important; }
body.light-theme .token.string { color: #032f62 !important; }
body.light-theme .token.comment { color: #6a737d !important; }
body.light-theme .token.function { color: #6f42c1 !important; }
body.light-theme .token.number { color: #005cc5 !important; }
body.light-theme .token.class-name { color: #22863a !important; }
body.light-theme .token.operator { color: #d73a49 !important; }
body.light-theme .token.property { color: #005cc5 !important; }
body.light-theme .token.punctuation { color: #24292e !important; }
body.light-theme .token.tag { color: #22863a !important; }
body.light-theme .token.attr-name { color: #6f42c1 !important; }
body.light-theme .token.attr-value { color: #032f62 !important; }

body.light-theme .tag {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.light-theme .tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #e6f7ff;
}

body.light-theme .slide-counter {
  color: #334155;
}

body.light-theme .indicator {
  background: #94a3b8;
}

body.light-theme .indicator.active {
  background: var(--primary-color);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

.code-snippets h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background: var(--primary-color);
  opacity: 1;
  transform: scale(1.2);
}

/* Carousel Container */
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Main Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:hover {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

.prev-arrow {
  left: 0;
}

.next-arrow {
  right: 0;
}

body.light-theme .carousel-arrow {
  background: white;
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Carousel Track */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1.5rem;
}

/* Snippet Slides */
.snippet-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}

.snippet-slide.active {
  opacity: 1;
  display: block;
}

/* Snippet Card */
.snippet-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 0 !important;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.snippet-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.snippet-card-inner {
  position: relative;
  padding: 2rem;
}

/* Card Inner Navigation */
.card-navigation {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.light-theme .card-navigation {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

.card-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.card-nav-btn:hover {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  transform: scale(1.1);
}

.slide-counter {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 35px;
  text-align: center;
}

/* Beginner Friendly Card */
.beginner-card {
  border-left: 4px solid #2ecc71;
  position: relative;
}

.beginner-card::before {
  content: '🌟';
  position: absolute;
  top: -10px;
  right: 80px;
  font-size: 2rem;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

.beginner-lang {
  background: rgba(46, 204, 113, 0.15) !important;
  color: #2ecc71 !important;
  border-color: rgba(46, 204, 113, 0.3) !important;
}

.beginner-badge {
  background: rgba(46, 204, 113, 0.1) !important;
  color: #2ecc71 !important;
  border-color: rgba(46, 204, 113, 0.2) !important;
}

/* Java Card */
.java-card {
  border-left: 4px solid #f89820;
  position: relative;
}

.java-card::before {
  content: '☕';
  position: absolute;
  top: 60px;
  right: 80px;
  font-size: 2.5rem;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.java-lang {
  background: rgba(248, 152, 32, 0.15) !important;
  color: #f89820 !important;
  border-color: rgba(248, 152, 32, 0.3) !important;
}

.java-badge {
  background: rgba(248, 152, 32, 0.1) !important;
  color: #f89820 !important;
  border-color: rgba(248, 152, 32, 0.2) !important;
}

/* Snippet Header */
.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-right: 80px;
}

.snippet-title-group h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.snippet-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  display: block;
}

.snippet-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.snippet-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.snippet-project-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  border: 1px solid var(--glass-border);
}

/* Description */
.snippet-description {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.snippet-description p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Code Block Container */
.code-block-container {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid #2d333b;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: #161b22;
  border-bottom: 1px solid #2d333b;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8b949e;
  font-size: 0.9rem;
  font-family: 'Fira Code', 'Consolas', monospace;
}

.file-info i {
  color: var(--primary-color);
  font-size: 1rem;
}

.copy-btn {
  background: #2d333b;
  color: #c9d1d9;
  border: 1px solid #444c56;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #3b434d;
  border-color: var(--primary-color);
  color: white;
}

.copy-btn.copied {
  background: #2ecc71;
  border-color: #2ecc71;
  color: white;
}

/* Code Wrapper */
.code-wrapper {
  max-height: 400px;
  overflow: auto;
  background: #0d1117;
}

.code-wrapper pre {
  margin: 0 !important;
  padding: 1.5rem !important;
  background: #0d1117 !important;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

/* Syntax Highlighting */
.token.keyword { color: #ff7b72 !important; }
.token.string { color: #a5d6ff !important; }
.token.comment { color: #8b949e !important; font-style: italic !important; }
.token.function { color: #d2a8ff !important; }
.token.number { color: #79c0ff !important; }
.token.class-name { color: #ffa657 !important; }
.token.operator { color: #ff7b72 !important; }
.token.property { color: #79c0ff !important; }
.token.punctuation { color: #c9d1d9 !important; }
.token.tag { color: #ff7b72 !important; }
.token.attr-name { color: #ffa657 !important; }
.token.attr-value { color: #a5d6ff !important; }

/* Tags */
.snippet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.tag {
  color: #8b949e;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 1px solid #2d333b;
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary-color);
  opacity: 1;
  transform: scale(1.3);
  width: 30px;
  border-radius: 10px;
}

/* Scrollbar Styling */
.code-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.code-wrapper::-webkit-scrollbar-track {
  background: #161b22;
}

.code-wrapper::-webkit-scrollbar-thumb {
  background: #3b434d;
  border-radius: 4px;
}

.code-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

body.light-theme .code-wrapper::-webkit-scrollbar-track {
  background: #e9eef3;
}

body.light-theme .code-wrapper::-webkit-scrollbar-thumb {
  background: #94a3b8;
}

/* ===== JOURNEY & BLOG SECTION - ENHANCED STYLING ===== */
.journey {
  background: var(--bg-dark);
  position: relative;
}

.journey::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.roadmap-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  padding: 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
}

.roadmap-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.roadmap-card:hover::after {
  opacity: 1;
}

.roadmap-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.roadmap-marker {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.roadmap-marker::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.roadmap-card:hover .roadmap-marker::before {
  opacity: 1;
}

.future-marker {
  background: var(--gradient-accent);
}

.roadmap-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  background: rgba(0, 210, 255, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  transition: all 0.3s ease;
}

.roadmap-card:hover .roadmap-date {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--primary-color);
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.roadmap-tags span {
  background: var(--glass);
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.roadmap-tags span:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(0, 210, 255, 0.1);
  transform: translateY(-2px);
}

.blog-card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0;
  position: relative;
}

.blog-card-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.blog-card-link:hover::before {
  width: 100%;
}

.blog-card-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* ===== JOURNEY CONNECT SECTION - UPDATED STYLING ===== */
.journey-connect {
  text-align: center;
  margin: 3rem auto 2rem;
  padding: 1.2rem 2rem;
  background: var(--glass);
  border-radius: 60px;
  border: 1px solid var(--glass-border);
  max-width: 700px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.journey-connect:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 210, 255, 0.2);
}

.journey-connect p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-soft);
  font-size: 1rem;
  margin: 0;
}

.connect-icon {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 210, 255, 0.3));
}

.journey-connect:hover .connect-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Blog Toggle Button */
.blog-toggle-container {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-toggle-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 20px -5px rgba(0, 210, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-toggle-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.blog-toggle-btn:hover::before {
  width: 300px;
  height: 300px;
}

.blog-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 210, 255, 0.5);
}

.btn-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.blog-toggle-btn:hover .btn-icon {
  transform: translateY(3px);
}

/* Blog Content */
.blog-content {
  background: linear-gradient(135deg, var(--bg-card), rgba(21, 31, 47, 0.9));
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.5s ease;
  position: relative;
  overflow: hidden;
}

.blog-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.blog-content::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.blog-post {
  position: relative;
  z-index: 1;
}

.blog-post h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  position: relative;
  display: inline-block;
}

.blog-post h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.blog-post h3:first-of-type {
  margin-top: 0;
}

.blog-post p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.blog-post ul {
  list-style: none;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.blog-post ul li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 2rem;
  position: relative;
  background: rgba(0, 210, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.blog-post ul li:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.blog-post ul li::before {
  content: '▹';
  color: var(--primary-color);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

/* Blog Close Button */
.blog-close {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.blog-close-btn {
  background: var(--glass);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-close-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.blog-close-btn:hover::before {
  width: 300px;
  height: 300px;
}

.blog-close-btn:hover {
  background: var(--glass-border);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.close-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.blog-close-btn:hover .close-icon {
  transform: rotate(90deg);
}

/* Light theme adjustments for journey section */
body.light-theme .journey-connect {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .blog-content {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info, form {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-info:hover, form:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-header i {
  font-size: 1.8rem;
  color: var(--primary-color);
  background: rgba(0, 210, 255, 0.1);
  padding: 1rem;
  border-radius: 16px;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--glass);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(0, 210, 255, 0.05);
  transform: translateX(8px);
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 12px;
}

form input, form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-dark);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.social-links a:hover::before {
  width: 100px;
  height: 100px;
}

.social-links a:hover {
  color: white;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-post ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-image {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-greeting-wrapper {
    justify-content: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
  }
  
  .skills-mini-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .carousel-container {
    padding: 0 50px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .roadmap-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .skills-mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .carousel-arrow {
    display: none;
  }
  
  .card-navigation {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 1.5rem;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .snippet-header {
    padding-right: 0;
    flex-direction: column;
  }
  
  .github-card {
    padding: 2rem 1.5rem;
  }
  
  .blog-post ul {
    grid-template-columns: 1fr;
  }
  
  .journey-connect {
    padding: 1rem 1.5rem;
    margin: 2rem auto 1.5rem;
  }
  
  .journey-connect p {
    font-size: 0.95rem;
    gap: 0.6rem;
  }
  
  .connect-icon {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .skills-mini-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  
  .journey-connect p {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .skills-mini-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-toggle-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .github-card {
    padding: 1.8rem 1.2rem;
  }
  
  .github-icon {
    width: 60px;
    height: 60px;
  }
  
  .github-card h3 {
    font-size: 1.3rem;
  }
  
  .github-profile-btn {
    width: 100%;
  }
  
  .snippet-meta {
    flex-direction: column;
    width: 100%;
  }
  
  .snippet-language,
  .snippet-project-badge {
    width: 100%;
    justify-content: center;
  }
  
  .code-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
  
  .carousel-indicators {
    gap: 0.5rem;
  }
  
  .indicator.active {
    width: 24px;
  }
  
  .journey-connect {
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
  }
  
  .journey-connect p {
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
  }
  
  .connect-icon {
    font-size: 1.3rem;
  }
}

@media (max-width: 380px) {
  .skills-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-content,
.skill-mini-card,
.project-card,
.roadmap-card,
.contact-info,
form,
.blog-content,
.github-card {
  animation: fadeInUp 0.6s ease forwards;
}
/* ===== JOURNEY SUBTITLE STYLING - SMALL ===== */
.journey-subtitle {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  padding: 0 0.8rem;
}

/* Subtle gradient line at bottom */
.journey-subtitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  opacity: 0.3;
}

/* Light theme adjustment */
body.light-theme .journey-subtitle {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .journey-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 500px;
  }
  
  .journey-subtitle::after {
    width: 35px;
    bottom: -6px;
  }
}

@media (max-width: 480px) {
  .journey-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
    line-height: 1.5;
    margin-bottom: 1.8rem;
  }
  
  .journey-subtitle::after {
    width: 30px;
    bottom: -5px;
  }
}