
:root {
  /* Colors */
  --bg:       #0a0a12;   /* main dark background */
  --bg2:      #10101e;   /* slightly lighter dark (for cards) */
  --card:     #13132a;   /* card background */
  --purple:   #7c3aed;   /* primary brand purple */
  --violet:   #a855f7;   /* lighter purple for accents */
  --pink:     #ec4899;   /* pink accent */
  --cyan:     #06b6d4;   /* cyan/teal accent */
  --text:     #f0eeff;   /* main text color (off-white) */
  --muted:    #e2e2eb;   /* secondary/dim text */
  --border:   rgba(124, 58, 237, 0.25); /* subtle purple border */

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing (consistent gaps across the site) */
  --section-padding: 6rem 6%;
  --nav-height: 72px;

  /* Border radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-full: 999px;

  /* Shadows / Glows */
  --glow-purple: 0 0 30px rgba(124, 58, 237, 0.4);
  --glow-card:   0 20px 50px rgba(124, 58, 237, 0.2);
}



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

html {
  scroll-behavior: smooth; 
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden; 
}

img {
  max-width: 100%;  
  display: block;
}

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

ul {
  list-style: none; 
}



@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');



body::before {
  content: '';       
  position: fixed;   
  inset: 0;          
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; 
  z-index: 0;
}


.blob {
  position: fixed;
  border-radius: 50%;       /* makes it a circle */
  filter: blur(120px);      /* the blur creates the glow effect */
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -200px; left: -150px;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--pink);
  bottom: -150px; right: -100px;
}
.blob-3 {
  width: 400px; height: 400px;
  background: var(--cyan);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.07;
}

/* ── 5. NAVIGATION
   Fixed nav that stays at the top as you scroll.
   The HTML for this is injected by main.js into every page.
   ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;             /* sits above everything else */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  backdrop-filter: blur(20px);           /* frosted glass blur */
  -webkit-backdrop-filter: blur(20px);   /* Safari support */
  background: rgba(10, 10, 18, 0.75);    /* semi-transparent dark */
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-logo span {
  color: var(--violet); /* the "ze" part is purple */
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
/* underline effect on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--violet);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Highlight the current page link */
.nav-links a.active {
  color: var(--violet);
}
.nav-links a.active::after {
  width: 100%;
}

/* Mobile hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
/* Animate hamburger → X when open */
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ── 6. BUTTONS
   Reusable button styles used across every page.
   ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
}

/* Solid purple button */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
  box-shadow: var(--glow-purple);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.7);
  transform: translateY(-2px);
}

/* Outlined/ghost button */
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(124, 58, 237, 0.08);
}


/* ── 7. TYPOGRAPHY HELPERS
   Reusable text styles for section labels and headings.
   ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--violet);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -1px;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; }
/* clamp(min, preferred, max) — font scales with screen size */

h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }

h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.3px; }

.accent  { color: var(--violet); }
.accent2 { color: var(--cyan); }

.text-muted {
  color: var(--muted);
  line-height: 1.7;
}


/* ── 8. SECTION WRAPPER
   Every page section uses this for consistent spacing.
   ── */
.section {
  position: relative;
  z-index: 1;           /* sits above the fixed blobs */
  padding: var(--section-padding);
}

/* Push content below the fixed nav */
.page-top {
  padding-top: calc(var(--nav-height) + 4rem);
}

/* ── 9. CARDS (shared card style)
   Used in Projects, Services, etc.
   ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

/* glowing top border on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--violet), var(--pink));
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before  { opacity: 1; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-card);
  border-color: rgba(124, 58, 237, 0.5);
}

/* Icon box inside a card */
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Tag/chip inside a card */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.12);
  color: var(--violet);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

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


/* ── 10. SKILL CHIPS ── */
.skill-chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.08);
  font-size: 0.82rem;
  color: var(--text);
  transition: all 0.2s;
  cursor: default;
}
.skill-chip:hover {
  border-color: var(--violet);
  background: rgba(124, 58, 237, 0.2);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}


/* ── 11. BADGE (the "Available for work" pill) ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.1);
  font-size: 0.8rem;
  color: var(--violet);
  margin-bottom: 1.8rem;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
  animation: pulse 2s infinite;
}


/* ── 12. FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 6%;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}
footer span { color: var(--violet); }


/* ── 13. PAGE TRANSITION FADE
   Each page fades in when it loads — done in main.js
   ── */
.page-wrapper {
  animation: pageFadeIn 0.5s ease both;
}


/* ── 14. ANIMATIONS ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--violet); }
  50%       { opacity: 0.4; box-shadow: none; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* Staggered fade-up for child elements */
.anim-1 { animation: fadeUp 0.6s 0.1s ease both; }
.anim-2 { animation: fadeUp 0.6s 0.2s ease both; }
.anim-3 { animation: fadeUp 0.6s 0.3s ease both; }
.anim-4 { animation: fadeUp 0.6s 0.4s ease both; }
/* Add class anim-1 through anim-4 to stagger elements */


/* ── 15. RESPONSIVE (Mobile styles)
   These rules ONLY apply on screens narrower than 768px.
   ── */
@media (max-width: 768px) {
  /* Show hamburger, hide links */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;                  /* hidden by default on mobile */
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  /* main.js adds the 'open' class to show this */
  .nav-links.open { display: flex; }

  /* Smaller section padding on mobile */
  .section { padding: 4rem 5%; }

  h1 { letter-spacing: -0.5px; }
  h2 { letter-spacing: -0.3px; }
}

