﻿:root {
  /* Base colors */
  --bg: #eef2ff;
  --bg-alt: #ffffff;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(148, 163, 184, 0.45);

  /* Accent gradients */
  --accent-1: #6366f1;   /* indigo */
  --accent-2: #ec4899;   /* pink */
  --accent-3: #06b6d4;   /* cyan */

  --text: #0f172a;
  --muted: #6b7280;
}

/* Global reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
    linear-gradient(180deg, #eef2ff 0%, #f9fafb 40%, #e5e7eb 100%);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px; /* base font size */
}

/* Links & inline elements */
a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.15s ease-out, opacity 0.15s ease-out;
}

a:hover {
  text-decoration: underline;
  color: var(--accent-2);
}

code {
  background: #e5e7eb;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Header / Nav */
header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #020617;
  letter-spacing: 0.02em;
}

.logo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-1), var(--accent-2));
  box-shadow:
    0 0 0 3px rgba(129, 140, 248, 0.25),
    0 0 18px rgba(129, 140, 248, 0.8);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
}

.nav-links a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.12rem;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  transition: width 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Full‑width container */
.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Each page = full-screen section */
section {
  position: relative;
  border-radius: 0;  /* edge-to-edge */
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.18), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 2.2rem 9vw 2.4rem;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  min-height: calc(100vh - 120px);  /* header + footer ≈120px */
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: floatIn 0.5s ease-out forwards;
}

/* soft halo */
section::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.5),
    rgba(236, 72, 153, 0.3),
    rgba(45, 212, 191, 0.4)
  );
  opacity: 0.25;
  z-index: -1;
}

/* Section headings */
.section-title {
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: #020617;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 1.3rem;
}

/* Hero (Home) */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: center;
  min-height: calc(100vh - 160px);
}

.hero-text {
  flex: 1 1 260px;
}

.hero-title {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #020617;
  line-height: 1.1;
}

.hero-title span {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 1.1rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--muted);
}

/* Hero image (profile) */
.hero-photo-wrap {
  flex: 0 0 auto;
}

.avatar {
  width: clamp(180px, 20vw, 260px);
  height: clamp(180px, 20vw, 260px);
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.85);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #e5f0ff;
  animation: avatarFloat 7s ease-in-out infinite alternate;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Cards / lists */
.card {
  background: var(--card);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 1rem 1.15rem;
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background 0.18s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 55px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(129, 140, 248, 0.3);
  border-color: rgba(129, 140, 248, 0.6);
  background: #ffffff;
}

.muted,
section p {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

ul {
  padding-left: 1.1rem;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  color: #111827;
}

ul li + li {
  margin-top: 0.35rem;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.78rem;
  padding: 0.20rem 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #1f2937;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.47rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease-out,
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    color 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.55);
}

.btn-ghost {
  background: #ffffff;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-ghost:hover {
  background: linear-gradient(to right, #e0f2fe, #fef9c3);
  border-color: rgba(79, 70, 229, 0.6);
  color: #1f2937;
}

/* Two-column grids */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.project-title,
.card h2 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: #111827;
}

.project-tech {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* Documents list */
.doc-list {
  list-style: none;
  padding-left: 0;
}

.doc-list li + li {
  margin-top: 0.45rem;
}

.doc-link {
  color: var(--accent-1);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.doc-link:hover {
  color: var(--accent-2);
}

/* Upload preview (Documents page) */
.upload-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.preview-list {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  list-style: disc;
  padding-left: 1.1rem;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-field label {
  display: block;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.08s ease-out;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* Footer */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  color: var(--muted);
}

footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: space-between;
  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
}

/* Animations */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avatarFloat {
  from {
    transform: translateY(0);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  }
  to {
    transform: translateY(-10px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
  }
}

/* Responsive */
@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .hero-photo-wrap {
    align-self: center;
  }

  header {
    position: static;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 1.6rem 1.3rem 1.9rem;
  }
}
/* Extra boost for Skills & Projects page */
#skills .section-title,
#projects .section-title {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
}

#skills .section-subtitle,
#projects .section-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

#skills .card h2,
#projects .card h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

#projects .muted,
#skills .muted {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

/* Make the two skills sections only as tall as their content
   (no big blank space between them) */
#skills-programming,
#skills-data {
  min-height: auto;   /* override the global full-screen min-height */
  margin: 0;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

/* Remove extra top margin browsers add to headings */
#skills-programming .section-title,
#skills-data .section-title {
  margin-top: 0;
}
/* Make Contact content full width (no unused second column) */
#contact .grid-2 {
  grid-template-columns: 1fr;   /* 1 column instead of 2 */
}

/* Ensure cards in Contact stretch to full available width */
#contact .card {
  max-width: 100%;
}
