/* =========================
   THEME VARIABLES
========================= */

:root {
  --bg: #020617;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --border: rgba(255,255,255,0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
  --normal: 250ms;
}

body.light {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --border: rgba(0,0,0,0.08);
}

/* =========================
   RESET
========================= */

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity var(--fast) var(--ease);
}

/* =========================
   NAV ACTIONS (RIGHT SIDE)
========================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--normal) var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* =========================
   THEME TOGGLE
========================= */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
  transition: stroke var(--fast) var(--ease);
}

#icon-sun {
  display: none;
}

body.light #icon-sun {
  display: block;
}

body.light #icon-moon {
  display: none;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: calc(100vh - 120px);
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-tag {
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin: 1rem 0;
}

.hero-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================
   BUTTONS
========================= */

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: box-shadow var(--normal) var(--ease);
  max-width: fit-content;
}

.btn:hover {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.primary {
  background: var(--accent);
  color: #fff;
}

.secondary {
  border: 1px solid var(--accent);
}

/* =========================
   SOCIALS
========================= */

.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.socials a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  color: var(--accent);
  border-color: var(--accent);
  transition:
    color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.socials a:hover {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);

}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 3.5rem 8%;
  max-width: 1200px;
  margin: auto;
}

.section + .section {
  padding-top: 2.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-text {
  max-width: 800px;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================
   SKILLS & GRIDS
========================= */

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.skill-card,
.project-card,
.contact-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.skill-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  font-size: 0.85rem;
}

/* =========================
   EXPERIENCE
========================= */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.timeline-card h3 {
  margin-bottom: 0.5rem;
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.gap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* =========================
   PROJECTS
========================= */

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--normal) var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.03);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.project-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.25rem;
}

.project-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity var(--fast) var(--ease);
}

.project-links a:hover {
  opacity: 0.8;
}

/* =========================
   CONTACT
========================= */

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
   word-break: break-word;
  overflow-wrap: anywhere;
  transition:
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);

}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.contact-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

/* =========================
   MOBILE NAV HOOKS
========================= */

.desktop-nav {
  display: block;
}

.menu-toggle {
  display: none;
}

/* =========================
   MOBILE NAV
========================= */

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 1rem 6%;
  z-index: 9;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.mobile-nav.active {
  display: flex;
  align-items: center;
}

/* =========================
   MENU TOGGLE
========================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
