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

.icon-group {
  display: none;
}

/* --- Color Variables --- */
:root {
  /* HEX values */
  --background: #0f172a;
  --background-2: #1e293b4d;
  --background-header: #0f172ab3;
  --nav-item-bg: rgba(26, 35, 54, 0.6);
  --nav-border: rgba(51, 65, 85, 0.3);
  --nav-bg-gradient: linear-gradient(
    90deg,
    rgba(62, 166, 255, 0.1) 0%,
    rgba(162, 89, 255, 0.1) 100%
  );
  --hero-section-bg: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.8) 30%,
    rgba(15, 23, 42, 0.6) 70%,
    transparent 100%
  );
  --hero-section-before-bg: linear-gradient(
    180deg,
    rgba(62, 166, 255, 0.03) 0%,
    rgba(162, 89, 255, 0.03) 50%,
    transparent 100%
  );
  --card: #1e293b80;
  --tag-bg: rgba(30, 41, 59, 0.5);
  --primary: #3ea6ff;
  --primary-gradient-left: #2563eb;
  --primary-gradient-right: #14b8a6;
  --primary-gradient: linear-gradient(90deg, #3ea6ff 0%, #2edecb 100%);
  --primary-gradient-2: linear-gradient(90deg, #3ea6ff 0%, #a259ff 100%);
  --secondary: #a259ff;
  --button-disabled: #232b3a;
  --text-main: #fff;
  --text-secondary: #cbd5e1;
  --tag-text: #94a3b8;

  --ring: 212.7 26.8% 83.9%;

  /* Font */
  --font-main: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--background);
  color: var(--text-main);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* Success Modal Styles */
/* .modal-success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-success .modal-content {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  min-width: 280px;
  max-width: 90vw;
}
.modal-success h3 {
  margin-top: 0;
  color: #6c63ff;
  font-size: 1.6rem;
}
.modal-success p {
  margin: 1rem 0 0 0;
  font-size: 1.1rem;
  color: #333;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal:hover {
  color: #6c63ff;
} */

/* ------------Light mode-------------*/
body.light {
  background: var(--bg-light, #f7f7fa);
  color: var(--text-dark, #131c2b);
}
body.light .navbar,
body.light .card,
body.light .project-card,
body.light .exp-card,
body.light .skills-col,
body.light .contact-form,
body.light .contact-info {
  background: var(--card, #fff);
  color: var(--text-dark, #131c2b);
  box-shadow: var(--shadow);
}
body.light .btn.primary {
  background: var(--primary);
  color: var(--text-main);
}
body.light .btn.secondary {
  background: var(--secondary);
  color: var(--text-main);
}
body.light .btn,
body.light .tag {
  color: var(--text-dark, #131c2b);
}
body.light .bar {
  background: hsl(var(--card-hsl));
}
body.light .fill {
  background: var(--primary);
}

/* Light mode toggle icon */
body.light .toggle-mode .icon-moon::before {
  content: "\2600";
  transform: rotate(180deg);
}

/* Light mode for social links */
body.light .nav-social-links a {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(203, 213, 225, 0.5);
  color: var(--text-dark, #131c2b);
}
body.light .nav-social-links a:hover {
  color: var(--primary);
  background: linear-gradient(
    90deg,
    rgba(62, 166, 255, 0.13) 0%,
    rgba(162, 89, 255, 0.13) 100%
  );
  border-color: var(--primary);
}

/* Light mode hero section */
body.light .hero-section {
  background: linear-gradient(
    180deg,
    rgba(247, 247, 250, 0.95) 0%,
    rgba(247, 247, 250, 0.8) 30%,
    rgba(247, 247, 250, 0.6) 70%,
    transparent 100%
  );
}

body.light .hero-section::before {
  background: linear-gradient(
    180deg,
    rgba(62, 166, 255, 0.02) 0%,
    rgba(162, 89, 255, 0.02) 50%,
    transparent 100%
  );
}

/* Light mode for navbar */
body.light .navbar {
  background: rgba(247, 247, 250, 0.9);
  border-bottom-color: rgba(203, 213, 225, 0.5);
}

body.light .nav-links {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(203, 213, 225, 0.5);
}

body.light .nav-links li a.active-link {
  background: var(--nav-bg-gradient);
  border-color: rgba(62, 166, 255, 0.2);
}

body.light .toggle-mode {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(203, 213, 225, 0.5);
}

body.light .nav-mobile {
  background: rgba(247, 247, 250, 0.95);
  border-top-color: rgba(203, 213, 225, 0.5);
}

body.light .nav-toggle {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(203, 213, 225, 0.5);
}

/* ---- Light Mode for project, skill, experience, and contact section  */
body.light .projects-section,
body.light .skills-section,
body.light .experience-section,
body.light .contact-section {
  background: #f7f8fa;
}
body.light .project-card,
body.light .skills-col,
body.light .exp-card,
body.light .contact-form,
body.light .contact-info {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(62, 166, 255, 0.08);
}
body.light .project-tags span,
body.light .exp-tags span,
body.light .skills-stats > div,
body.light .contact-stats > div {
  background: #f0f4fa;
  color: var(--secondary);
}
body.light .project-info h3,
body.light .skills-col h4,
body.light .exp-title,
body.light .contact-info h4 {
  color: var(--secondary);
}
body.light .project-actions .btn.secondary,
body.light .projects-viewall .btn.secondary {
  background: var(--primary);
  color: #fff;
}
body.light .project-actions .btn.secondary:hover,
body.light .projects-viewall .btn.secondary:hover {
  background: var(--secondary);
}
body.light .fill {
  background: var(--secondary);
}

/* Light mode for modal */
body.light .modal-success {
  background: rgba(247, 247, 250, 0.7);
}

body.light .modal-success .modal-content {
  background: #fff;
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 24px rgba(62, 166, 255, 0.1);
}

body.light .modal-success h3 {
  color: var(--secondary);
}

body.light .modal-success p {
  color: #475569;
}

body.light .close-modal {
  color: #64748b;
}

body.light .close-modal:hover {
  color: var(--secondary);
}

/* --------------------------------------------------- */

section {
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Smooth \ing adjustments for new navbar height */
.hero-section,
.projects-section,
.skills-section,
.experience-section,
.contact-section {
  scroll-margin-top: 20px;
}

/* Navbar */
.navbar {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid var(--nav-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(62, 166, 255, 0.03) 0%,
    rgba(162, 89, 255, 0.03) 100%
  );
  pointer-events: none;
}

.nav-left .nav-name {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #3ea6ff 0%, #a259ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--nav-item-bg);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 8px 12px;
  border: 1px solid var(--nav-border);
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-bg-gradient);
  border-radius: 25px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-links li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-links li a.active-link {
  color: var(--text-main);
  background: linear-gradient(
    90deg,
    rgba(62, 166, 255, 0.15) 0%,
    rgba(162, 89, 255, 0.15) 100%
  );
  border: 1px solid rgba(62, 166, 255, 0.3);
  box-shadow: 0 4px 20px rgba(62, 166, 255, 0.1);
  font-weight: 600;
}

.nav-links li a.active-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #3ea6ff 0%, #a259ff 100%);
  border-radius: 2px;
}

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

.toggle-mode {
  background: var(--nav-item-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--nav-border);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.toggle-mode::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-bg-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.toggle-mode:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(62, 166, 255, 0.2);
  border-color: rgba(62, 166, 255, 0.4);
}

.toggle-mode:hover::before {
  opacity: 1;
}

.toggle-mode .icon-moon {
  position: relative;
  z-index: 1;
}

.toggle-mode .icon-moon::before {
  content: "\1F319";
  font-size: 1.2em;
  transition: transform 0.3s;
}

.hire-me-btn {
  background: linear-gradient(90deg, #a259ff 0%, #6a5acd 100%);
  color: var(--text-main);
  font-weight: 600;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(162, 89, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

.hire-me-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(162, 89, 255, 0.4);
  background: linear-gradient(90deg, #6a5acd 0%, #a259ff 100%);
}

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

/* Mobile Navigation Updates */
.nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--nav-border);
  padding: 20px 0;
  z-index: 110;
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-mobile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(62, 166, 255, 0.05) 0%,
    rgba(162, 89, 255, 0.05) 100%
  );
  pointer-events: none;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
  margin-top: 20px;
}

.nav-mobile ul li {
  padding: 0;
}

.nav-mobile ul a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 16px 20px;
  border-radius: 12px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-mobile ul a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-bg-gradient);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile ul a:hover {
  color: var(--text-main);
  transform: translateX(8px);
}

.nav-mobile ul a:hover::before {
  transform: translateX(0);
}

.nav-mobile ul a.active-link {
  color: var(--text-main);
  background: linear-gradient(
    90deg,
    rgba(62, 166, 255, 0.15) 0%,
    rgba(162, 89, 255, 0.15) 100%
  );
  border: 1px solid rgba(62, 166, 255, 0.3);
  font-weight: 600;
}

.nav-mobile ul a.active-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #3ea6ff 0%, #a259ff 100%);
  border-radius: 0 2px 2px 0;
}

.nav-mobile.nav-mobile-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Enhanced hamburger menu */
.nav-toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 120;
  width: 44px;
  height: 44px;
  background: var(--nav-item-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--nav-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-socials {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding: 0 20px;
}

.nav-social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-social-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--nav-item-bg);
  border: 1px solid var(--nav-border);
  color: var(--text-secondary);
  font-size: 1.4rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(62, 166, 255, 0.2);
}

.nav-social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-bg-gradient);
  opacity: 0;
  border-radius: 50%;
  transition: opacity 0.3s;
  z-index: 0;
}

.nav-social-links a:hover {
  color: var(--primary);
  background: linear-gradient(
    90deg,
    rgba(62, 166, 255, 0.18) 0%,
    rgba(162, 89, 255, 0.18) 100%
  );
  border-color: var(--primary);
  box-shadow: 0 2px 12px 0 rgba(62, 166, 255, 0.13);
  transform: translateY(-2px) scale(1.07);
}

.nav-social-links a:hover::before {
  opacity: 1;
}

/*------------------ Hero Section ----------------------*/
.hero-section {
  padding-top: 70px;
  background: var(--hero-section-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-section-before-bg);
  pointer-events: none;
  z-index: 0;
}

.hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 0 auto;
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  padding-top: 50px;
}
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(0px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 1.2rem;
  line-height: 1.08;
  color: var(--text-main);
  text-shadow: 0 4px 32px rgba(62, 166, 255, 0.1);
  animation: headlinePop 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes headlinePop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
  }
  80% {
    opacity: 1;
    transform: scale(1.03) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.hero-title-gradient,
.hero h1 span {
  background: var(--primary-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  letter-spacing: -1px;
  animation: gradientText 2.5s ease-in-out;
}
.hero h1 span {
  font-weight: inherit;
  font-size: inherit;
}
@keyframes gradientText {
  from {
    filter: blur(8px);
    opacity: 0;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  letter-spacing: 0.01em;
  animation: subtitleFadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  animation: ctaFadeIn 1.7s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes ctaFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  outline: none;
  height: 2.75rem;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 16px 0 rgba(62, 166, 255, 0.1);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, border 0.25s,
    transform 0.18s;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.hero-cta .btn.primary {
  background: var(--primary-gradient);
  color: var(--text-main);
  border: 2px solid var(--primary-gradient-left);
  background-size: 200% 100%;
  background-position: left;
  box-shadow: 0 2px 16px 0 rgba(62, 166, 255, 0.13);
}
.hero-cta .btn.primary:hover {
  background-position: right;
  border-color: #fff;
  box-shadow: 0 4px 18px 0 rgba(34, 4, 72, 0.28);
  transform: translateY(-2px) scale(1.04);
}
.hero-cta .btn.secondary {
  background: linear-gradient(90deg, #6a5acd 0%, #a259ff 100%);
  color: var(--text-main);
  border: 2px solid var(--secondary);
  opacity: 1;
  box-shadow: 0 2px 12px 0 rgba(162, 89, 255, 0.18);
  font-weight: 600;
}
.hero-cta .btn.secondary:hover {
  background: linear-gradient(90deg, #a259ff 0%, #6a5acd 100%);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 18px 0 rgba(162, 89, 255, 0.28);
  transform: translateY(-2px) scale(1.04);
}
.hero-cta .btn.small {
  padding: 6px 18px;
  font-size: 0.95rem;
}

.hero-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 16px;
  margin-top: 4rem;
  /* Center the grid container itself within the page */
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Ensures it doesn't overflow */
  animation: tagsFadeIn 2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}
@keyframes tagsFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-tags .tag {
  background: var(--tag-bg);
  backdrop-filter: blur(4px);
  color: var(--text-main);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  max-width: 250px;

  letter-spacing: 0.01em;
  transition: transform 0.18s, box-shadow 0.18s;
}
.hero-tags .tag span {
  color: var(--tag-text);
  font-size: 0.92em;
  font-weight: 400;
  margin-top: 4px;
}

/*------- Services Section ------- */
/* --- Layout Structure --- */
.services-section {
  /* Match: Uses your secondary background (like Skills/Contact sections) */
  background-color: var(--background-2);
  padding: 5rem 1.5rem;
  font-family: var(--font-main);
  color: var(--text-main);
  /* Add smooth transition for theme toggling */
  transition: background 0.3s, color 0.3s;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title {
  /* Match: Consistent with other section headers */
  color: var(--primary);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  /* Match: Standard muted text color */
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Grid Layout --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* --- Card Design --- */
.service-card {
  /* Match: Standard card background and standard border color */
  background: var(--card);
  border: 1px solid #334155;
  border-radius: 0.5rem; /* Matches your existing border-radius */
  padding: 2.5rem;

  /* Match: Your standard card shadow */
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-5px);
  /* Match: Your primary blue glow on hover */
  box-shadow: 0 8px 32px 0 rgba(62, 166, 255, 0.18);
  border-color: var(--primary);
}

/* Specific styling for Maintenance to differentiate it */
.maintenance-card {
  /* Dark Mode adaptation: Darker bg with dashed border */
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed #475569;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  /* Added: Gradient text effect to match your Hero text */
  background: var(--primary-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* --- Pricing Block --- */
.price-tag {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  /* Match: Your nav-border color for subtle separation */
  border-bottom: 1px solid var(--nav-border);
}

.price-tag .currency {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.price-tag .amount {
  font-size: 1.75rem;
  font-weight: 800;
  /* Match: Use the purple secondary for pricing to make it pop */
  color: var(--secondary);
  letter-spacing: -0.025em;
}

/* --- Features List --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  /* Match: Primary Blue checkmarks */
  color: var(--primary);
  font-weight: bold;
}

.feature-list li strong {
  color: var(--text-main);
}

/* --- Buttons --- */
.card-action {
  margin-top: auto;
}

.service-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Prepare for border changes */
}

/* Matches .btn.primary gradient style */
.service-btn-primary {
  background: var(--primary-gradient);
  background-size: 200% 100%;
  background-position: left;
  color: var(--text-main);
  border: 2px solid var(--primary-gradient-left);
  box-shadow: 0 2px 12px 0 rgba(30, 41, 59, 0.18);
}

.service-btn-primary:hover {
  background-position: right;
  border-color: #fff;
  box-shadow: 0 4px 18px 0 rgba(62, 166, 255, 0.18);
  transform: translateY(-2px);
}

/* Matches your secondary/outline buttons */
.service-btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--text-secondary);
}

.service-btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 4px 18px 0 rgba(62, 166, 255, 0.18);
  transform: translateY(-2px);
}

/*------- Projects Section ------- */
.projects-section {
  animation: heroFadeIn 1s;
}

.projects {
  max-width: 80rem;
  margin: 0 auto;
}

.projects .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  animation: headlinePop 0.7s;
  line-height: 2.5rem;
  text-align: center;
}

.projects-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.25rem;
  line-height: 1.75rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.project-card {
  background: var(--card);
  border-radius: 0.5rem;
  border-width: 1px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--transition),
    box-shadow 0.25s var(--transition);
  animation: fadeInUp 1s;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-color: #334155;
}
.project-card-inner {
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
  flex-grow: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.project-header h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.perfect-for {
  font-size: 0.75rem;
  background: rgba(162, 89, 255, 0.1);
  color: var(--secondary);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 8px;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.project-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
}

.project-features li i {
  color: var(--primary); /* Checkmark color */
  margin-right: 8px;
  font-size: 0.8rem;
}

.project-meta {
  background: rgba(15, 23, 42, 0.5); /* Darker background */
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-label {
  color: #94a3b8;
}

.meta-value {
  color: var(--text-main);
  font-weight: 600;
}

.project-thumb {
  aspect-ratio: 16 / 9;
  background-color: #334155;
  border-radius: 0.5rem;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
}
.project-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  outline: none;
  border-width: 1px;
  border-color: #475569;
  border-radius: 0.375rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  height: 2.25rem;
  background-color: var(--background);
  color: var(--text-secondary);
  flex: 1;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s,
    transform 0.18s;
}

.project-actions .btn.primary {
  background: linear-gradient(90deg, #23272f 0%, #1e293b 100%);
  border: 2px solid #23272f;
  box-shadow: 0 2px 12px 0 rgba(30, 41, 59, 0.18);
}
.project-actions .btn.primary:hover {
  background: var(--primary-gradient-2);
  color: var(--text-main);
  border-color: var(--primary);
  box-shadow: 0 4px 18px 0 rgba(62, 166, 255, 0.18);
  transform: translateY(-2px) scale(1.04);
}

.project-actions .btn.secondary {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: 0 2px 12px 0 rgba(162, 89, 255, 0.18);
}
.project-actions .btn.secondary:hover {
  background: var(--primary-gradient);
  color: var(--text-main);
  border-color: var(--primary);
  box-shadow: 0 4px 18px 0 rgba(62, 166, 255, 0.18);
  transform: translateY(-2px) scale(1.04);
}

/* View All Projects Button */
/* .projects-viewall {
  text-align: center;
  margin-top: 12px;
}
.projects-viewall .btn.secondary {
  font-size: 1.05rem;
  padding: 10px 32px;
  border-radius: 24px;
  font-weight: 700;
  background: var(--secondary);
  color: #fff;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.projects-viewall .btn.secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
} */

/*--------- Skills Section ----------*/
.skills-section {
  animation: heroFadeIn 1.1s;
  background: var(--background-2);
}

.skills {
  max-width: 80rem;
  margin: 0 auto;
}

.skills .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  animation: headlinePop 0.7s;
}

.skills-desc {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.75rem;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.skills-col h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.015em;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
}

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

.skills-col {
  background: var(--tag-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  animation: fadeInUp 1.1s;
}
.skills-col p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.skills-col:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.skill-tag {
  background: rgba(62, 166, 255, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(62, 166, 255, 0.2);
}

/*-------------- Experience Section -----------*/
.experience-section {
  animation: heroFadeIn 1.2s;
}

.experience {
  max-width: 56rem;
  margin: 0 auto;
}

.experience .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  animation: headlinePop 0.7s;
}

.experience-desc {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.75rem;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exp-card {
  background: var(--card);
  padding: 2rem;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  animation: fadeInUp 1.3s;
  transition: transform 0.25s var(--transition),
    box-shadow 0.25s var(--transition);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.exp-card:focus,
.exp-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(62, 166, 255, 0.18);
  outline: 2px solid var(--primary);
}

.exp-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.exp-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.exp-company {
  font-weight: 600;
  color: #c084fc;
}
.exp-duration {
  color: var(--tag-text);
  margin-top: 0.5rem;
}

.exp-body p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.625;
}

.exp-achievements {
  margin-bottom: 1.5rem;
}
.exp-achievements h4 {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.exp-body ul > * + * {
  margin-top: 0.5rem;
}
.exp-body li {
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
}
.exp-body li span {
  color: #c084fc;
  margin-right: 0.5rem;
}

.exp-tech h4 {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.exp-tags span {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 16px;
  margin-right: 8px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  background-color: #334155;
  outline: none;
}

/*--------------- Contact Section -----------------*/
.contact-section {
  background: var(--background-2);
  animation: heroFadeIn 1.3s;
}

.contact {
  max-width: 72rem;
  margin: 0 auto;
}

.contact .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  animation: headlinePop 0.7s;
}

.contact-desc {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.25rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-form {
  background: var(--card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 1.4s;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  max-height: fit-content;
}
.contact-form > * + * {
  margin-top: 1.5rem;
}

.contact-form h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01562em;
  line-height: 2rem;
}

.form-group {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form-group-full {
  width: 100%;
  margin-top: 1.5rem;
}
.form-group-full p {
  margin-bottom: 1rem;
}

.contact-input-info {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #475569;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background-color: #334155;
  color: var(--text-main);
}

.contact-input-info::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-input-info:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
  outline: none;
  border: 1.5px solid var(--primary);
}

.contact-form select {
  width: 100%;
  padding: 0.75rem;
  background-color: #334155;
  border: 1px solid #475569;
  color: var(--text-main);
  border-radius: 0.375rem;
}

.contact-form textarea {
  display: flex;
  width: 100%;
  min-height: 120px;
  border-radius: 0.375rem;
  border: 1px solid #475569;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background-color: #334155;
  color: var(--text-main);
}

.contact-form .btn.primary {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, #7e22ce, #db2777);
  background-size: 200% 100%;
  background-position: left;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 600;
  height: 2.5rem;
  padding: 0.5rem 1.5rem;
  width: 100%;
  box-shadow: 0 2px 12px 0 rgba(162, 89, 255, 0.1);
  cursor: pointer;
  transition: background-position 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    border 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-form .btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.contact-form .btn.primary:hover {
  background-position: right;
  box-shadow: 0 6px 24px 0 rgba(162, 89, 255, 0.22),
    0 1.5px 8px 0 rgba(62, 166, 255, 0.13);
  transform: translateY(-2px) scale(1.045);
  border: 2px solid var(--secondary);
  outline: none;
}
.contact-form .btn.primary:hover::before {
  left: 120%;
}
.contact-form .btn.primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring, #3b82f6);
  outline-offset: 2px;
}

/* Success Modal Styles */
.modal-success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-success[style*="display: flex"] {
  opacity: 1;
  visibility: visible;
}

.modal-success .modal-content {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #334155;
  box-shadow: 0 4px 24px rgba(62, 166, 255, 0.2);
  text-align: center;
  position: relative;
  min-width: 280px;
  max-width: 400px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-success[style*="display: flex"] .modal-content {
  transform: translateY(0);
}

.modal-success h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-success p {
  margin: 1rem 0 0 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: var(--primary);
}

.contact-info > * + * {
  margin-top: 1.5rem;
}

.contact-info .ct-info {
  border-radius: 0.5rem;
  border: 1px solid #334155;
  color: var(--text-main);
  background-color: rgba(30, 41, 59, 0.5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.contact-details h4 {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-details .contact-items > * + * {
  margin-top: 1rem;
}

.contact-details .contact-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  animation: fadeInUp 1.5s;
}
.contact-details .contact-item svg {
  margin-right: 0.75rem;
  width: 1.25rem;
  color: #c084fc;
}

.contact-cta h4 {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-social {
  display: flex;
  animation: fadeInUp 1.5s;
}
.contact-social > * + * {
  margin-left: 1rem;
}
.contact-social a {
  color: var(--text-secondary);
  padding: 0.75rem;
  background-color: #334155;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}
.contact-social a:hover {
  color: var(--secondary);
  transform: translateY(-2px) scale(1.1);
}
.contact-social a i {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
  display: inline-block;
  text-align: center;
}

.contact-stats h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  animation: fadeInUp 1.6s;
}
.stats-grid > div {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.stats-grid .stats-grid-up {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c084fc;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Footer -------------- */
.site-footer {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  border-top: 1px solid #334155;
}

.footer-wrapper {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.footer-col.about h3 {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-col.about p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.footer-socials {
  display: flex;
}
.footer-socials > * + * {
  margin-left: 1rem;
}

.footer-socials a {
  color: #94a3b8;
  transition: color 0.2s ease;
}
.footer-socials a:hover {
  color: var(--text-main);
}

.footer-socials i {
  font-size: 24px;
  width: 24px;
  height: 24px;
  display: inline-block;
  text-align: center;
}

.footer-col.footer-links h4,
.footer-col.footer-contact h4 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col.footer-links ul,
.footer-col.footer-contact ul {
  list-style: none;
}

.footer-col.footer-links ul li,
.footer-col.footer-contact ul li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.footer-col.footer-links ul li a,
.footer-col.footer-contact ul li {
  color: #94a3b8;
  transition: color 0.2s ease-in-out;
  text-decoration: none;
}
.footer-col.footer-links ul li a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 2rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-made {
  margin-top: 1rem;
}

/* WhatsApp Floating Button */
/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 990; /* High z-index, but below your modal */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: floatPulse 3s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/*Pulse Animation to catch attention */
@keyframes floatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* === Responsive Design === */
@media (min-width: 640px) {
  .footer-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .projects-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects .section-title,
  .skills .section-title,
  .experience .section-title,
  .contact .section-title {
    font-size: 3rem;
    line-height: 1;
  }

  .project-card:focus,
  .project-card:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 8px 32px 0 rgba(62, 166, 255, 0.18);
    outline: 2px solid var(--primary);
  }

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

  .exp-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .exp-duration {
    margin-top: 0rem;
  }

  .form-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-input-info::placeholder {
    font-size: 0.9rem;
  }

  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-col.about {
    grid-column: span 2 / span 2;
  }

  .footer-bottom {
    flex-direction: row;
  }
  .footer-made {
    margin-top: 0px;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media(max-width: 930px) {
  .nav-right {
    display: none;
  }
}

@media (max-width: 830px) {
  .navbar {
    padding: 0 20px;
    height: 70px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-left .nav-name {
    font-size: 1.5rem;
  }

  .hero-tags {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    gap: 12px;
  }
}

@media (min-width: 831px) {
  /* HERO SECTION */
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding-left: 20px;
    padding-right: 20px;
  }

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

@media (max-width: 700px) {
  .hero {
    padding-top: 60px;
  }
}

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

  /* Mobile Adjustment to not block content */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 390px) {
  .contact-form {
    padding: 1rem;
  }

  .contact-form h4 {
    font-size: 1.25rem;
  }

  .contact-form .btn.primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .contact-details .contact-item svg {
    width: 1rem;
    height: 1rem;
  }

  .contact-details .contact-item {
    font-size: 0.9rem;
  }

  .contact-social a {
    padding: 0.5rem;
  }

  .contact-social a i {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  .nav-social-links a{
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 350px) {
  section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-card-inner {
    padding: 1rem;
  }

  .project-actions {
    gap: 0.5rem;
  }

  .contact-info .ct-info {
    padding: 0.9rem;
  }
}
