.project-btn {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  transition: all 0.3s ease;
  margin: 0;
}

.project-btn:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5);
  transform: scale(1.05);
  text-decoration: none !important;
}
.samonline-link {
  color: #8e44ad;
  font-weight: 600;
  text-decoration: none;
}

.samonline-link:hover {
  color: #22bb50;
  text-decoration: underline;
}
.itbd-link {
  color: #1abc9c;
  font-weight: 600;
  text-decoration: none;
}

.itbd-link:hover {
  color: #148f77;
  text-decoration: underline;
}
.highlight-link {
  color: #e67e22;
  font-weight: 600;
  text-decoration: none;
}

.highlight-link:hover {
  color: #ca6510;
  text-decoration: underline;
}
.intro-text p {
  text-align: justify;
}
/* Intro section flex layout */
.intro-flex {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 2rem;
  flex-direction: row;
  justify-content: space-between;
}

.intro-flex .profile-pic {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
  border: 2px solid rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}

.intro-text p {
  text-align: justify;
  color: #cbd5e1;
  line-height: 1.8;
}

/* About Me Section */
.about-section {
  padding: 20px 0;
  max-width: 900px;
}

.about-section .section-title {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 30px;
  font-weight: 600;
}

.about-description {
  font-size: 1.2rem; /* Increased font size for better readability */
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.timeline-item {
  flex: 1 1 calc(50% - 20px); /* Adjusted for two-column layout */
  background: transparent;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timeline-year {
  font-size: 1.8rem; /* Increased font size for emphasis */
  font-weight: bold;
  color: #22d3ee;
  margin-bottom: 10px;
}

.about-content p {
  color: #cbd5e1;
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-content a.highlight {
  color: #22d3ee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-content a.highlight:hover {
  color: #38bdf8;
  text-decoration: underline;
}
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 10px;
}

.about-side {
  background: transparent;
  padding: 20px;
  border-radius: 8px;
}

.about-side h3 {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-side ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.about-side ul li {
  color: #cbd5e1;
  padding: 6px 0;
}

.about-main .about-content {
  padding: 0;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-side {
    order: 2;
  }
  .about-main {
    order: 1;
  }
}

/* Projects grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 0;
  padding: 20px 0;
}

.project-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.project-card-image {
  width: 65px;
  height: 65px;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.project-card p {
  margin-bottom: 25px;
  color: #94a3b8;
  line-height: 1.7;
  flex-grow: 1;
}

.project-card a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  transition: color 0.3s ease;
}

.project-card a:hover {
  color: #0ea5e9;
}

/* Technology badges */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin-bottom: 25px;
}

.tech-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #7dd3fc;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

/* Project Button Styling */
.project-btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px 24px;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  border: none;
}

.project-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
}

/* ===== NEW SKILLS SHOWCASE DESIGN ===== */
.skills-showcase {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  max-width: 900px;
  position: relative;
}

/* Vertical timeline line */
.skills-showcase::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #38bdf8, #a855f7, #10b981, #f59e0b, #ec4899, #6366f1);
  opacity: 0.3;
  border-radius: 2px;
}

.skill-category {
  position: relative;
  padding: 28px 30px 28px 72px;
  border-radius: 16px;
  transition: all 0.35s ease;
  margin-bottom: 6px;
}

.skill-category:hover {
  background: rgba(30, 41, 59, 0.4);
}

/* Glowing dot on the timeline */
.skill-category::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 38px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent, #38bdf8);
  box-shadow: 0 0 12px var(--accent, #38bdf8), 0 0 24px rgba(56, 189, 248, 0.15);
  z-index: 2;
  transition: all 0.3s ease;
}

.skill-category:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 20px var(--accent, #38bdf8), 0 0 40px rgba(56, 189, 248, 0.3);
}

/* Per-category accent colors via data attribute */
.skill-category[data-accent="#38bdf8"] { --accent: #38bdf8; }
.skill-category[data-accent="#a855f7"] { --accent: #a855f7; }
.skill-category[data-accent="#10b981"] { --accent: #10b981; }
.skill-category[data-accent="#f59e0b"] { --accent: #f59e0b; }
.skill-category[data-accent="#ec4899"] { --accent: #ec4899; }
.skill-category[data-accent="#ef4444"] { --accent: #ef4444; }
.skill-category[data-accent="#14b8a6"] { --accent: #14b8a6; }
.skill-category[data-accent="#6366f1"] { --accent: #6366f1; }

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.skill-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.skill-category:hover .skill-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  transform: rotate(-5deg) scale(1.05);
}

.skill-category-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: 0.3px;
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
  cursor: default;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.skill-tag:hover {
  color: #ffffff;
  background: rgba(var(--accent-rgb, 56, 189, 248), 0.15);
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* Inherit accent from parent category */
.skill-category[data-accent="#38bdf8"] .skill-tag:hover { border-color: #38bdf8; box-shadow: 0 0 12px rgba(56, 189, 248, 0.25); background: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
.skill-category[data-accent="#a855f7"] .skill-tag:hover { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); background: rgba(168, 85, 247, 0.12); color: #c4b5fd; }
.skill-category[data-accent="#10b981"] .skill-tag:hover { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.skill-category[data-accent="#f59e0b"] .skill-tag:hover { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.12); color: #fcd34d; }
.skill-category[data-accent="#ec4899"] .skill-tag:hover { border-color: #ec4899; box-shadow: 0 0 12px rgba(236, 72, 153, 0.25); background: rgba(236, 72, 153, 0.12); color: #f9a8d4; }
.skill-category[data-accent="#ef4444"] .skill-tag:hover { border-color: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.skill-category[data-accent="#14b8a6"] .skill-tag:hover { border-color: #14b8a6; box-shadow: 0 0 12px rgba(20, 184, 166, 0.25); background: rgba(20, 184, 166, 0.12); color: #5eead4; }
.skill-category[data-accent="#6366f1"] .skill-tag:hover { border-color: #6366f1; box-shadow: 0 0 12px rgba(99, 102, 241, 0.25); background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }

/* Responsive for skills showcase */
@media (max-width: 600px) {
  .skills-showcase::before {
    left: 18px;
  }
  .skill-category {
    padding: 20px 15px 20px 52px;
  }
  .skill-category::before {
    left: 11px;
    width: 14px;
    height: 14px;
  }
  .skill-icon {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  .skill-tag {
    padding: 5px 14px;
    font-size: 0.82rem;
  }
}

/* About Section Heading - match global hero-title */
.about-section .hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: #e2e8f0;
}

/* Experience Section Styling */
.experience-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.experience-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.experience-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.15);
}

.experience-card h2 {
  color: #f1f5f9;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.experience-card p {
  color: #cbd5e1;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.experience-card p strong {
  color: #94a3b8;
}

.experience-card ul {
  list-style: none;
  padding: 0;
  margin-top: 25px;
}

.experience-card li {
  padding: 10px 0 10px 28px;
  color: #94a3b8;
  font-size: 1.05rem;
  position: relative;
  line-height: 1.6;
  transition: color 0.3s;
}

.experience-card li:hover {
  color: #e2e8f0;
}

.experience-card li:before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #8b5cf6;
  font-size: 1.2rem;
  top: 8px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .intro-flex {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .intro-flex .profile-pic {
    width: 200px;
    height: 200px;
  }
  .intro-text {
    max-width: 100%;
  }
  header h1 {
    font-size: 1.5rem;
  }
  header p {
    font-size: 1rem;
  }
}

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

@media (max-width: 600px) {
  body {
    padding: 0 8px;
  }
  .intro-flex {
    flex-direction: column;
    gap: 1rem;
  }
  .intro-flex .profile-pic {
    width: 110px;
    height: 110px;
  }
  .intro-text {
    font-size: 0.98rem;
  }
  nav#main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
  }
  nav#main-nav ul li {
    margin: 0.5rem 0;
  }
  

  header h1 {
    font-size: 1.1rem;
  }
  header p {
    font-size: 0.95rem;
  }
}

.project-card a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  transition: color 0.3s ease;
}

.project-card a:hover {
  color: #0ea5e9;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  line-height: 1.6;
  background: #0a0e27;
  color: #e2e8f0;
  scroll-behavior: smooth;
  min-height: 100vh;
  scroll-padding-top: 120px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1f3a;
}

::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}

/* Header styles */
header {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: #f8fafc;
  padding: 20px 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.header-brand .logo {
  transition: transform 0.3s ease;
}

.header-brand:hover .logo {
  transform: rotate(360deg);
}

.header-brand::before {
  display: none;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  display: none;
}

header p {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 400;
  display: none;
}

header a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

header a:hover {
  color: #0ea5e9;
}

/* Navigation styles */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  gap: 5px;
  padding: 0;
}

nav a {
  color: #cbd5e1;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  background-color: transparent;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover {
  background-color: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

/* Active navigation link */
nav a.active {
  background-color: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* Header Social Icons */
.header-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-social a {
  color: #cbd5e1;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  padding: 5px;
}

.header-social a:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Main content styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 1rem;
}

/* Section spacing for scroll navigation */
section[id] {
  scroll-margin-top: 100px;
}

/* Hero Section */
.hero-section {
  text-align: left;
  padding: 20px 0;
  margin-bottom: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 900px;
}

/* ===== Hero Split Layout - Text Left, Image Right ===== */
.hero-split {
  max-width: 1200px;
}

.hero-split-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-split-text {
  flex: 1;
  min-width: 0;
}

.hero-split-image {
  flex-shrink: 0;
  position: relative;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
  .hero-split-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

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

  .hero-split-text .hero-title {
    text-align: center;
  }

  .hero-split-text .hero-description {
    text-align: center;
  }
}

/* ===== Hero Photo Card ===== */
.hero-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  max-width: 100%;
  background: transparent;
}

.hero-photo-card {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0e27;
  border: 3px solid transparent;
  background-image: linear-gradient(#0a0e27, #0a0e27), linear-gradient(135deg, #38bdf8, #a855f7, #ec4899, #38bdf8);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(56, 189, 248, 0.08),
    0 0 80px rgba(168, 85, 247, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
  animation: photoCardFloat 6s ease-in-out infinite;
}

.hero-photo-card:hover {
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(56, 189, 248, 0.12),
    0 0 100px rgba(168, 85, 247, 0.08);
  transform: translateY(-6px);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-photo-card:hover .hero-photo {
  transform: scale(1.03);
}

.hero-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 35px 30px;
  background: linear-gradient(
    0deg,
    rgba(10, 14, 39, 0.85) 0%,
    rgba(10, 14, 39, 0.5) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-photo-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

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

/* Hero photo responsive */
@media (max-width: 900px) {
  .hero-photo-card {
    width: 280px;
    height: 330px;
    border-radius: 20px;
  }

  .hero-photo-name {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }

  .hero-photo-overlay {
    padding: 25px 20px;
  }
}

@media (max-width: 500px) {
  .hero-photo-card {
    width: 240px;
    height: 280px;
    border-radius: 16px;
  }

  .hero-photo-name {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
}

.hero-section:hover {
  transform: none;
  box-shadow: none;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 40px;
  line-height: 1.1;
  letter-spacing: -2.5px;
}

.typing-text {
  color: #ffffff; /* Slightly brighter for emphasis */
}

.typing-cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.8em;
  background-color: #cbd5e1;
  margin-left: 2px;
  vertical-align: baseline;
  animation: blink 1s step-end infinite;
}

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

.hero-description {
  font-size: 1.4rem;
  color: #94a3b8;
  max-width: 100%;
  margin: 0;
  line-height: 1.9;
}

.hero-description .highlight {
  color: #22d3ee;
  font-weight: 500;
}

section {
  background: transparent;
  backdrop-filter: none;
  padding: 15px 0;
  margin-bottom: 15px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

section:hover {
  transform: none;
  box-shadow: none;
}

section h2 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

section p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: #cbd5e1;
  line-height: 1.8;
}

section p strong {
  color: #ffffff;
  font-weight: 600;
}
/* Hamburger icon styles */
.hamburger-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}
.hamburger-icon .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.4s;
}

/* Hamburger icon animation when active */
.hamburger-icon.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(-45deg);
}
.hamburger-icon.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(45deg);
}

@media (max-width: 768px) {
  .hamburger-icon {
    display: block;
  }
  
  header {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .header-brand {
    order: 1;
    flex: 1;
  }
  
  .header-social {
    order: 2;
    gap: 10px;
  }
  
  .header-social a {
    font-size: 1.2rem;
  }
  
  .hamburger-icon {
    order: 3;
    position: static;
  }
  
  nav#main-nav {
    order: 4;
    width: 100%;
    flex: none;
  }
  
  nav#main-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: #1e293b;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 0;
  }
  
  nav#main-nav ul.active {
    display: flex;
  }
}

@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    /* Layout content in a row */
    justify-content: space-between;
    /* Space out items */
    align-items: center;
  }

  /* Hide the hamburger icon on larger screens */
  .hamburger-icon {
    display: none;
  }

  /* Show the navigation links in a row on larger screens */
  nav ul {
    position: static;
    /* Remove absolute positioning */
    max-height: none;
    /* Remove height constraint */
    flex-direction: row;
    /* Display links in a row */
    background-color: transparent;
    /* Transparent background */
    padding: 0;
    gap: 20px;
    /* Restore original gap */
  }

  nav li {
    display: inline;
    /* Display list items inline */
    margin-bottom: 0;
    /* Remove margin */
  }
}
/* List styles */
ul {
  padding-left: 25px;
  margin-top: 10px;
}

ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #cbd5e1;
}

ul li a {
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul li a:hover {
  color: #0ea5e9;
  padding-left: 6px;
}

li i {
  margin-right: 8px;
}

/* Footer styles */
footer {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: #94a3b8;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Anchor styling */
a {
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
  header h1 {
    font-size: 1.3rem;
  }

  header p {
    font-size: 0.85rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  section {
    padding: 25px 20px;
  }

  section h2 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  main {
    padding: 30px 20px;
  }
  
  .about-section {
    margin: 0 auto;
  }
}
form {
  max-width: 600px;
  margin-top: 20px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(26, 31, 58, 0.6);
  color: #e2e8f0;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

button {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

button:hover {
  background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
  transform: translateY(-3px);
}
/* Thank You Page Styles */
.thankyou-page {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

.thankyou-page h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0f172a;
}

.thankyou-page p {
  font-size: 1.1rem;
  color: #334155;
}

.thankyou-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 20px;
  background-color: #0ea5e9;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.thankyou-btn:hover {
  background-color: #0284c7;
}

just{
  text-align: justify;
  text-justify: inter-word;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding-left: 0;
  margin-top: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.social-links li {
  display: inline-block;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 500;
}

.social-links a:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

@media (max-width: 600px) {
  .social-links {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .social-links li {
    width: 100%;
    margin: 0;
  }
  .social-links a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

.profile-pic {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(56, 189, 248, 0.5);
  margin-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
  display: block;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.header-text {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 700px) {
  .header-flex {
    flex-direction: column;
    gap: 10px;
  }
  .header-text {
    text-align: center;
  }
}

/* Four cards side by side */
.four-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.four-cards .card {
  background: transparent;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid;
}

.four-cards .card:nth-child(1) {
  border-color: rgba(236, 72, 153, 0.5);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.four-cards .card:nth-child(1):hover {
  border-color: rgba(236, 72, 153, 0.8);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.3);
}

.four-cards .card:nth-child(2) {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.four-cards .card:nth-child(2):hover {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
}

.four-cards .card:nth-child(3) {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
}

.four-cards .card:nth-child(3):hover {
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
}

.four-cards .card:nth-child(4) {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(22, 163, 74, 0.05) 100%);
}

.four-cards .card:nth-child(4):hover {
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

.four-cards .card:hover {
  transform: translateY(-5px);
}

.four-cards .card h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.four-cards .card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive for four cards */
@media (max-width: 768px) {
  .four-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }
  
  .four-cards .card {
    padding: 15px;
  }
  
  .four-cards .card h3 {
    font-size: 1.1rem;
  }
  
  .four-cards .card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .four-cards {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }
  
  .four-cards .card {
    padding: 15px;
    text-align: left;
  }
  
  .four-cards .card h3 {
    font-size: 1.1rem;
  }
  
  .four-cards .card p {
    font-size: 0.9rem;
  }
}

/* ===== Theme Toggle Button ===== */
.theme-toggle-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  margin-right: 10px;
}

.theme-toggle-btn:hover {
  color: #f59e0b;
  transform: translateY(-2px);
}

/* ===== Light Mode Theme ===== */
body.light-mode {
  background: #f8fafc;
  color: #1e293b;
}

body.light-mode header,
body.light-mode footer {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #334155;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .header-brand {
  color: #0f172a;
}

body.light-mode nav a,
body.light-mode .header-social a,
body.light-mode .theme-toggle-btn {
  color: #475569;
}

body.light-mode nav a:hover,
body.light-mode .header-social a:hover,
body.light-mode nav a.active {
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.1);
}

body.light-mode .theme-toggle-btn:hover {
  color: #0ea5e9;
}

body.light-mode .hero-title,
body.light-mode section h2,
body.light-mode .four-cards .card h3 {
  color: #0f172a;
}

body.light-mode .hero-description,
body.light-mode section p,
body.light-mode ul li,
body.light-mode .experience-card p,
body.light-mode .project-card p,
body.light-mode .four-cards .card p,
body.light-mode .typing-text {
  color: #334155;
}

body.light-mode section p strong,
body.light-mode .experience-card p strong,
body.light-mode .about-content strong {
  color: #0f172a;
}

body.light-mode .skills-showcase::before {
  opacity: 0.8;
  background: linear-gradient(180deg, #0284c7, #7c3aed, #10b981, #d97706, #db2777, #4f46e5);
}

body.light-mode .skill-category::before {
  box-shadow: 0 0 8px var(--accent, #38bdf8);
}

body.light-mode .hero-description .highlight,
body.light-mode a {
  color: #0284c7;
}

body.light-mode .typing-cursor {
  background-color: #0f172a;
}

body.light-mode .hero-photo-card {
  background: #ffffff;
  border: 3px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #38bdf8, #a855f7, #ec4899, #38bdf8);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .hero-photo-overlay {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 40%, transparent 100%);
}

body.light-mode .hero-photo-name {
  color: #0f172a;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

body.light-mode .experience-card,
body.light-mode .project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .experience-card h2 {
  background: linear-gradient(135deg, #7c3aed, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .skill-category {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

body.light-mode .skill-category:hover {
  background: #f8fafc;
}

body.light-mode .skill-icon {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #334155;
}

body.light-mode .skill-category:hover .skill-icon {
  background: #ffffff;
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .skill-category-header h2 {
  color: #0f172a;
}

body.light-mode .skill-tag {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.light-mode .skill-tag:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .project-card h2 {
  color: #0f172a;
}

body.light-mode .four-cards .card {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .four-cards .card h3 {
  color: #0f172a;
}

body.light-mode input,
body.light-mode textarea {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .hamburger-icon .bar {
  background-color: #0f172a;
}

@media (max-width: 768px) {
  body.light-mode nav#main-nav ul {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
}

/* ===== Footer Styles ===== */
footer {
  text-align: center;
  padding: 40px 1rem 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.95) 30%);
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  margin-top: 60px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, transparent);
  border-radius: 2px;
}

footer p {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 20px;
  letter-spacing: 0.3px;
}

/* Visitor Counter */
.footer-views {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 50px;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.footer-views::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.footer-views:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.12), 0 0 20px rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
}

.views-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.views-icon i {
  font-size: 1.1rem;
  color: #38bdf8;
  transition: all 0.3s ease;
}

.views-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.footer-views:hover .views-icon::after {
  opacity: 0.4;
}

.footer-views:hover .views-icon i {
  color: #7dd3fc;
  transform: scale(1.15);
}

.views-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.views-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.views-number {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Counter number animation */
@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.views-number.counting {
  animation: countPulse 0.3s ease;
}

/* Light Mode Footer */
body.light-mode footer {
  background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.98) 30%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode footer::before {
  background: linear-gradient(90deg, transparent, #0ea5e9, #7c3aed, transparent);
}

body.light-mode footer p {
  color: #94a3b8;
}

body.light-mode .footer-views {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .footer-views:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.1);
}

body.light-mode .views-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(168, 85, 247, 0.1));
}

body.light-mode .views-icon i {
  color: #0284c7;
}

body.light-mode .views-label {
  color: #94a3b8;
}

body.light-mode .views-number {
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive footer */
@media (max-width: 600px) {
  footer {
    padding: 30px 1rem 20px;
  }

  .footer-views {
    padding: 12px 22px;
    gap: 12px;
  }

  .views-icon {
    width: 34px;
    height: 34px;
  }

  .views-icon i {
    font-size: 0.95rem;
  }

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

/* ===== Floating Scroll Buttons ===== */
.floating-scroll-btns {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

.scroll-btn {
  height: 48px;
  min-width: 48px;
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(10, 14, 39, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #38bdf8;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(56, 189, 248, 0.1);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

.scroll-btn-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #e2e8f0;
  transition: max-width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s ease 0.05s,
              margin 0.4s ease;
  margin-right: 0;
  display: inline-block;
}

.scroll-btn:hover .scroll-btn-label {
  max-width: 100px;
  opacity: 1;
  margin-right: 10px;
}

.scroll-btn .fa-chevron-down,
.scroll-btn .fa-chevron-up {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.scroll-btn:hover .fa-chevron-down {
  transform: translateY(3px);
}

.scroll-btn:hover .fa-chevron-up {
  transform: translateY(-3px);
}

.scroll-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px) scale(1.05);
}

.scroll-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* Subtle pulse animation on idle */
@keyframes scrollBtnPulse {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.4),
      0 0 15px rgba(56, 189, 248, 0.1);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.4),
      0 0 25px rgba(56, 189, 248, 0.2);
  }
}

.scroll-btn.visible {
  animation: scrollBtnPulse 3s ease-in-out infinite;
}

.scroll-btn.visible:hover {
  animation: none;
}

/* Light mode overrides */
body.light-mode .scroll-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0284c7;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 15px rgba(14, 165, 233, 0.08);
}

body.light-mode .scroll-btn:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.5);
  color: #0369a1;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(14, 165, 233, 0.2);
}

body.light-mode .scroll-btn-label {
  color: #1e293b;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .floating-scroll-btns {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }

  .scroll-btn {
    height: 42px;
    min-width: 42px;
    font-size: 1rem;
    padding: 0 12px;
  }

  .scroll-btn-label {
    font-size: 0.75rem;
  }
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 40px 0 60px;
  max-width: 1100px;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 50px;
  margin-top: -20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

/* Contact Info Cards */
.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8, #a855f7);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.08);
}

.contact-info-card:hover::before {
  opacity: 1;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.15);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-info-icon i {
  font-size: 1.2rem;
  color: #38bdf8;
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  border-color: rgba(56, 189, 248, 0.3);
  transform: scale(1.08);
}

.contact-info-card:hover .contact-info-icon i {
  color: #7dd3fc;
  transform: scale(1.1);
}

.contact-info-content h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-info-content a,
.contact-info-content p {
  display: block;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0;
}

.contact-info-content a:hover {
  color: #38bdf8;
  text-decoration: none;
}

/* Contact Form Card */
.contact-form-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #ec4899);
  border-radius: 20px 20px 0 0;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: #475569;
  font-size: 1rem;
  transition: color 0.3s ease;
  z-index: 2;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 18px 14px 48px;
  background: rgba(10, 14, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 120px;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper i {
  top: 16px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.08);
  background: rgba(10, 14, 39, 0.9);
}

.input-wrapper:focus-within i {
  color: #38bdf8;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: #475569;
}

/* Submit Button */
.contact-submit-btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #a855f7 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.25);
  margin-top: 8px;
}

.contact-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #9333ea 100%);
}

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

.contact-submit-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-loader {
  display: none;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover .btn-icon {
  transform: translateX(4px) translateY(-2px);
}

/* Loading state */
.contact-submit-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.contact-submit-btn.loading .btn-text,
.contact-submit-btn.loading .btn-icon {
  display: none;
}

.contact-submit-btn.loading .btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.contact-submit-btn.loading .btn-loader::after {
  content: "Sending...";
}

/* Toast Notification */
.contact-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.contact-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-toast.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.contact-toast.success .toast-icon i {
  color: #10b981;
}

.contact-toast.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.contact-toast.error .toast-icon i {
  color: #ef4444;
}

.toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ===== Contact Section Light Mode ===== */
body.light-mode .contact-subtitle {
  color: #64748b;
}

body.light-mode .contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .contact-info-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

body.light-mode .contact-info-icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.12);
}

body.light-mode .contact-info-icon i {
  color: #0284c7;
}

body.light-mode .contact-info-content h3 {
  color: #94a3b8;
}

body.light-mode .contact-info-content a,
body.light-mode .contact-info-content p {
  color: #334155;
}

body.light-mode .contact-info-content a:hover {
  color: #0284c7;
}

body.light-mode .contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

body.light-mode .form-group label {
  color: #64748b;
}

body.light-mode .input-wrapper i {
  color: #94a3b8;
}

body.light-mode .input-wrapper:focus-within i {
  color: #0284c7;
}

body.light-mode .input-wrapper input,
body.light-mode .input-wrapper textarea {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.light-mode .input-wrapper input:focus,
body.light-mode .input-wrapper textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.08);
  background: #ffffff;
}

body.light-mode .input-wrapper input::placeholder,
body.light-mode .input-wrapper textarea::placeholder {
  color: #94a3b8;
}

body.light-mode .contact-submit-btn {
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.2);
}

body.light-mode .contact-submit-btn:hover {
  box-shadow: 0 10px 35px rgba(2, 132, 199, 0.3);
}

body.light-mode .contact-toast.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

body.light-mode .contact-toast.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

/* Contact Section Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 30px 0 40px;
  }

  .contact-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .contact-form-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .input-wrapper input,
  .input-wrapper textarea {
    padding: 12px 14px 12px 42px;
    font-size: 0.95rem;
  }

  .contact-submit-btn {
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 12px;
  }
}
