/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg-1: #020617;
  --bg-2: #020617;
  --bg-3: #0f172a;

  --card: rgba(15, 23, 42, 0.82);
  --card-border: rgba(255, 255, 255, 0.06);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);

  --radius: 16px;
}

/* =========================
   GLOBAL STYLES
========================= */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-main);
  line-height: 1.7;

  background: linear-gradient(
    -45deg,
    var(--bg-1),
    var(--bg-3),
    var(--bg-1),
    var(--bg-2)
  );
  background-size: 400% 400%;
  animation: gradientFlow 20s ease infinite;
}

/* Background animation */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   SECTIONS (GLASS CARDS)
========================= */
section {
  max-width: 960px;
  margin: 80px auto;
  padding: 50px;

  background: var(--card);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);

  border-radius: var(--radius);
  border: 1px solid var(--card-border);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

section:hover {
  transform: translateY(-6px);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

p {
  color: var(--text-muted);
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;

  border: 3px solid var(--accent-soft);
  box-shadow:
    0 0 0 6px rgba(56, 189, 248, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.6);

  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 26px;
}

/* CTA BUTTON */
.cta {
  background: linear-gradient(
    135deg,
    var(--accent),
    #60a5fa
  );
  color: #020617;

  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.3px;

  box-shadow:
    0 10px 25px rgba(56, 189, 248, 0.35);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(56, 189, 248, 0.45);
}

/* =========================
   STATS
========================= */
.stats-list {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 22px;
  list-style: none;
  padding: 0;
}

.stats-list li {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stats-list strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* =========================
   SKILLS
========================= */
.skills ul {
  list-style: none;
  padding: 0;
}

.skills li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.skills li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* =========================
   PROJECTS
========================= */
.project {
  margin-bottom: 28px;
}

.project p {
  margin: 6px 0;
}

.project .tech {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project a:hover {
  text-decoration: underline;
}

/* =========================
   FAQ
========================= */
details {
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
}

/* =========================
   CONTACT / SOCIALS (UPDATED)
========================= */
.socials {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  font-size: 18px;
  text-decoration: none;

  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.socials a:hover {
  transform: translateY(-4px);
  background: var(--accent);
  color: #020617;

  box-shadow:
    0 16px 40px rgba(56, 189, 248, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 30px 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================
   FADE-IN
========================= */
.fade-in {
  animation: fade 1.2s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  section {
    padding: 32px;
    margin: 50px 14px;
  }

  .stats-list {
    flex-direction: column;
    gap: 16px;
  }

  .socials {
    gap: 14px;
  }

  .socials a {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}
