:root {
  --bg-dark: #020617;
  --bg-light: #f8fafc;
  --glass-dark: rgba(255,255,255,0.08);
  --glass-light: rgba(255,255,255,0.7);
  --primary: #38bdf8;
  --secondary: #0ea5e9;
  --text-dark: #020617;
  --text-light: #e5e7eb;
  --text-muted: #9ca3af;
}

/* GLOBAL */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  color: var(--text-light);
  padding-top: 70px;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  letter-spacing: 0.03em;
}

section {
  scroll-margin-top: 90px;
}

/* NAVBAR */
.glass-nav {
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary) !important;
}

.nav-underline .nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-light) !important;
  transition:
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.nav-underline .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-underline .nav-link:hover {
  color: var(--primary) !important;
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.5),
    0 0 15px rgba(56,189,248,0.5);
}

.nav-underline .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* THEME TOGGLE (unused now) */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle i {
  color: var(--primary);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image:
    linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.85),
      rgba(2, 6, 23, 1)
    ),
    url("images/image8.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hero-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
}

.highlight {
  color: var(--primary);
}

.hero-role {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  margin-top: 10px;
  color: #e5e7eb;
  opacity: 0.9;
}

.hero-summary {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--text-muted);
}

.hero-org {
  margin-top: 18px;
}

.hero-org a {
  color: var(--primary);
}

.hero-org a:hover {
  text-decoration: underline;
}

/* Hero Buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-btn {
  position: relative;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 500;
  overflow: hidden;
}

.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-btn:hover::before {
  opacity: 1;
}

/* Resume call-to-action */
.resume-btn {
  position: relative;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.4px;

  color: #020617;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;

  box-shadow:
    0 10px 30px rgba(56,189,248,0.45),
    inset 0 0 0 rgba(255,255,255,0.2);

  transition: all 0.35s ease;
  animation: resumePulse 2.5s infinite;
}

.resume-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 45px rgba(56,191,248,0.75);
}

@keyframes resumePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(56,189,248,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0);
  }
}

/* Resume icon animation */
.resume-icon {
  font-size: 1rem;
  animation: floatIcon 2.5s ease-in-out infinite;
}

.resume-btn:hover .resume-icon {
  animation: bounceIcon 0.6s ease;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes bounceIcon {
  0% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* Resume progress bar */
.resume-progress {
  width: 180px;
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
  margin: 16px auto 0;
  display: none;
}

.resume-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width 0.4s ease;
}

/* Hero orbit decorative */
.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(56,189,248,0.8);
  box-shadow: 0 0 15px rgba(56,189,248,0.8);
}

.dot-1 {
  top: 20%;
  left: 15%;
  animation: orbit1 12s linear infinite;
}

.dot-2 {
  top: 70%;
  right: 18%;
  animation: orbit2 14s linear infinite;
}

.dot-3 {
  top: 40%;
  left: 65%;
  animation: orbit3 10s linear infinite;
}

@keyframes orbit1 {
  0% { transform: translate(0,0); }
  50% { transform: translate(30px, -20px); }
  100% { transform: translate(0,0); }
}

@keyframes orbit2 {
  0% { transform: translate(0,0); }
  50% { transform: translate(-25px, 25px); }
  100% { transform: translate(0,0); }
}

@keyframes orbit3 {
  0% { transform: translate(0,0); }
  50% { transform: translate(20px, 20px); }
  100% { transform: translate(0,0); }
}

/* SECTIONS */
.section-padding {
  padding: 90px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 24px;
}

.section-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* TECH STACK */
.tech-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 0%, rgba(56,189,248,0.05), transparent 55%);
}

.tech-title {
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.tech-subtitle {
  color: var(--text-muted);
}

.tech-card {
  position: relative;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 20px;
  padding: 32px 24px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.tech-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(15,23,42,0.8);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  background: rgba(56,189,248,0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tech-items span {
  display: inline-block;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.6);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-items span {
  border-color: rgba(56,189,248,0.7);
  color: #fff;
  transform: translateY(-2px);
}

/* Learning card */
.learning-card {
  border: 1px solid rgba(34,197,94,0.4);
  background: linear-gradient(145deg, rgba(22,163,74,0.08), rgba(15,23,42,0.9));
}

.status-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #22c55e;
  background: rgba(34,197,94,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* SERVICES */
.service-card {
  background: rgba(15,23,42,0.85);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  color: inherit;
  backdrop-filter: blur(10px);
  padding: 28px 22px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.4), transparent);
  color: var(--primary);
  font-size: 1.3rem;
}

/* HOVER LIFT & GLOW */
.hover-lift {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 55px rgba(15,23,42,0.85);
  border-color: rgba(56,189,248,0.45);
}

.hover-glow {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hover-glow:hover {
  transform: translateY(-10px);
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 22px 50px rgba(15,23,42,0.9);
}

/* PROJECTS */
.project-card {
  background: rgba(15,23,42,0.95);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.4);
  color: inherit;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
}

.project-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,23,42,0.9),
    transparent
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.35s ease;
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-tech span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(56,189,248,0.15);
  color: var(--primary);
}

/* CONTACT */
.contact-section {
  background: linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.95));
}

.contact-text {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--text-muted);
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-info i {
  color: var(--primary);
  margin-right: 8px;
}

.contact-info a {
  color: var(--text-light);
}

.contact-info a:hover {
  color: var(--primary);
}

/* FOOTER */
.footer {
  background: #020617e2;
  color: var(--text-muted);
  padding: 3.5rem 0 1.5rem;
}

.footer-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-subtitle {
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-desc {
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social a {
  font-size: 22px;
  margin-right: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 25px 0 15px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(37,211,102,0.45);
  transition: all 0.3s ease;
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(37,211,102,0.6);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37,211,102,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0);
  }
}

@keyframes whatsappShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.whatsapp-float.shake {
  animation: whatsappShake 0.6s ease;
}

/* GOOGLE.ORG SUMMIT */
.summit-glass {
  max-width: 1000px;
  margin: 80px auto;
  padding: 40px 36px;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.45),
    0 0 0 1px rgba(56,189,248,0.15);
  position: relative;
}

.summit-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(
    120deg,
    rgba(56,189,248,0.35),
    rgba(14,165,233,0.15),
    transparent
  );
  opacity: 0.25;
  pointer-events: none;
}

.summit-header {
  text-align: center;
  margin-bottom: 26px;
}

.summit-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56,189,248,0.15);
  border-radius: 999px;
}

.summit-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #ffffff;
  margin-bottom: 8px;
}

.summit-location {
  font-size: 0.95rem;
  color: #93c5fd;
}

.summit-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e5e7eb;
  margin-bottom: 16px;
}

/* HIRE ME MODAL */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal-backdrop-custom.active {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-dialog-custom {
  position: relative;
  width: min(420px, 92vw);
  background: rgba(15,23,42,0.97);
  border-radius: 18px;
  padding: 24px 22px;
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.modal-dialog-custom h3 {
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.9);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(248,250,252,0.08);
  color: var(--primary);
  transform: rotate(6deg);
}

.modal-field {
  margin-bottom: 12px;
  text-align: left;
}

.modal-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: var(--text-light);
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
}

.modal-submit-btn {
  border-radius: 999px;
  margin-top: 6px;
}

.modal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* SCROLL REVEAL */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-active {
  opacity: 1;
  transform: translate(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    background-size: cover;
  }

  .section-padding {
    padding: 70px 0;
  }

  .service-card,
  .tech-card {
    padding: 24px 20px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 24px;
    bottom: 18px;
    right: 18px;
  }

  .footer-title,
  .footer-desc {
    text-align: center;
  }
}



/* formfree css custom styles (for contact form in modal)  */

/* Standalone animated contact form */
.fs-contact-form {
  max-width: 420px;
  margin: 24px auto 0;
  padding: 22px 20px;
  border-radius: 20px;

  background: radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 55%),
              rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.55);
  backdrop-filter: blur(14px);

  box-shadow:
    0 22px 45px rgba(15,23,42,0.85),
    0 0 0 1px rgba(15,23,42,0.9);

  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* soft animated glow */
.fs-contact-form::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(
    from 210deg,
    rgba(56,189,248,0.18),
    transparent,
    transparent,
    rgba(56,189,248,0.22),
    transparent
  );
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: fsGlow 18s linear infinite;
  pointer-events: none;
}

@keyframes fsGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* content above glow */
.fs-contact-form > * {
  position: relative;
  z-index: 1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fs-field label {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.fs-field input,
.fs-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.96);
  color: var(--text-light);
  padding: 9px 12px;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.12s ease;
}

.fs-field input::placeholder,
.fs-field textarea::placeholder {
  color: #6b7280;
  font-size: 0.84rem;
}

.fs-field input:focus,
.fs-field textarea:focus {
  border-color: var(--primary);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.7),
    0 0 25px rgba(56,189,248,0.35);
  background: rgba(15,23,42,1);
  transform: translateY(-1px);
}

.fs-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* Send button with shine */
.fs-submit-btn {
  margin-top: 6px;
  border-radius: 999px;
  align-self: flex-start;
  padding-inline: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.fs-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              rgba(255,255,255,0.4),
              transparent 45%,
              transparent 55%,
              rgba(255,255,255,0.4));
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fs-submit-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 576px) {
  .fs-contact-form {
    margin-top: 18px;
    padding: 18px 16px;
  }
}