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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #e8ecff;
    padding-top: 56px;
}

/* Animated background particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

/* Logo/Brand */
.logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: glow 3s ease-in-out infinite alternate;
    letter-spacing: -0.02em;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3)); }
    to { filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6)); }
}

/* Tagline */
.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Status message */
.status {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 1rem 2rem;
    margin-bottom: 3rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Progress bar */
.progress-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    animation: progressLoad 3s ease-out forwards;
}

@keyframes progressLoad {
    to { width: 75%; }
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

/* Menubar */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    z-index: 1000;
}
.site-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
}
.site-nav a:hover {
    background: rgba(255,255,255,0.12);
}

/* ===== Portfolio layout ===== */
.project-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.project-header .project-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 8px 0;
}

.project-header .project-subtitle {
  margin: 0 0 24px 0;
  opacity: 0.85;
}

.project-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Copy area */
.project-copy p {
  margin: 0 0 14px 0;
  line-height: 1.6;
}
.project-highlights {
  margin: 10px 0 0 0;
  padding-left: 18px;
  opacity: 0.9;
}

/* Media area */
.project-media {
  margin: 0;
}
.project-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* Optional subtle glow to fit your vibe; remove if you prefer flat */
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.project-media figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Responsiveness */
@media (max-width: 900px) {
  .project-body {
    grid-template-columns: 1fr;
  }
  .project-hero {
    padding-top: 28px;
  }
}

/* ---- Polished portfolio look & feel ---- */
:root{
  --accent-1:#7c8cff;
  --accent-2:#b794f4;
  --surface:rgba(255,255,255,0.06);
  --surface-border:rgba(255,255,255,0.14);
}

/* Elevate the project surface slightly */
.project-hero{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.project-header .project-title{
  font-weight: 800;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.project-header .project-subtitle{
  color: rgba(232,236,255,0.85);
  font-weight: 400;
}

/* Refined layout */
.project-body{
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 40px;
  align-items: center;
}

/* Improved image presentation */
.project-media{
  margin: 0;
}
.project-media img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07) inset;
  transition: transform .28s ease, box-shadow .28s ease;
}
.project-media img:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.09) inset;
}

/* Nicer highlights list */
.project-highlights{
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}
.project-highlights li{
  position: relative;
  padding-left: 20px;
  margin: 6px 0;
  text-align: left;
}
.project-highlights li::before{
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 12px rgba(124,140,255,0.55);
}

/* Nav polish */
.site-nav{
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.site-nav a{
  font-weight: 500;
  letter-spacing: 0.2px;
}
.site-nav a:hover{
  background: rgba(255,255,255,0.16);
}

/* Responsive tweaks */
@media (max-width: 900px){
  .project-body{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-hero{
    padding-top: 28px;
  }
}

/* ===== Project Gallery (slider + lightbox) ===== */
.project-gallery{ margin-top: 28px; }
.visually-hidden{
  position:absolute !important;
  width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0;
}
.project-gallery .slider{
  --slide-max-h: clamp(240px, 50vh, 560px);
  position: relative;
  overflow: hidden;
  width: min(1100px, 92vw);
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.project-gallery .slides{
  display: flex;
  width: 100%;
  transition: transform .35s ease;
  align-items: center; /* vertically center images of different aspect ratios */
}
.project-gallery .slide{
  flex: 0 0 100%;
  padding: 12px;
  min-height: var(--slide-max-h);
  display: grid;
  place-items: center;
}
.project-gallery .slide img{
  max-height: var(--slide-max-h);
  max-width: min(100%, 1000px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
  cursor: zoom-in;
}
.project-gallery .slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: grid; place-items: center;
  font-size: 28px; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  z-index: 5;
}
.project-gallery .slider-btn:hover{ background: rgba(0,0,0,0.6); box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.project-gallery .slider-btn.prev{ left: 12px; }
.project-gallery .slider-btn.next{ right: 12px; }
.project-gallery .slider-dots{
  display: flex; gap: 10px; justify-content: center;
  margin-top: 14px;
}
.project-gallery .slider-dots .dot{
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer;
}
.project-gallery .slider-dots .dot.is-active{
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 10px rgba(124,140,255,0.6);
}
/* Lightbox */
.lightbox[hidden]{ display: none !important; }
.lightbox{
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  z-index: 2000;
  padding: 24px;
}
.lightbox-img{
  max-width: 92vw; max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close{
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.lightbox-caption{
  margin-top: 10px; text-align: center; opacity: .85;
}

/* ===== Gallery Title ===== */
.project-gallery .gallery-title{
  margin: 0 auto 12px;
  max-width: min(1100px, 92vw);
  padding: 0 4px;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #e8ecff; /* matches base text colour */
}

/* Optional: gradient accent variant — add class "accent" to the <h2> to enable */
@supports (-webkit-background-clip: text) or (background-clip: text){
  .project-gallery .gallery-title.accent{
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ===== About page ===== */
.about-hero{
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 72px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.about-title{
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 8px 0;
  background: linear-gradient(45deg, var(--accent-1, #7c8cff), var(--accent-2, #b794f4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.about-intro{
  margin: 0 0 24px 0;
  opacity: 0.9;
  max-width: 70ch;
}

.about-body{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.about-copy p{
  margin: 0 0 14px 0;
  line-height: 1.6;
}

.about-photo{
  margin: 0;
}
.about-photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07) inset;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px){
  .about-body{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-hero{
    padding-top: 32px;
  }
}

/* Nav brand — bulletproof visibility */
.site-nav{ display:flex; align-items:center; z-index:1000; position:fixed; top:0; left:0; right:0; }
.site-nav .nav-spacer{ flex:1; }

.site-nav .brand{
  font-weight:800; letter-spacing:0.14em; text-transform:uppercase;
  padding:6px 8px; border-radius:8px; text-decoration:none;
  color:#fff; /* fallback so it's always visible */
}

/* Use gradient when supported */
@supports (-webkit-background-clip: text) or (background-clip: text){
  .site-nav .brand{
    background:linear-gradient(45deg, var(--accent-1,#7c8cff), var(--accent-2,#b794f4));
    -webkit-background-clip:text; background-clip:text;
    -webkit-text-fill-color:transparent; color:transparent;
  }
}

/* Make sure particles don’t cover the nav */
.particles{ position:fixed; inset:0; z-index:0; }
.container, main, .project-hero{ position:relative; z-index:1; }

/* Keep hover pill on normal links */
.site-nav a:not(.brand):hover{ background:rgba(255,255,255,0.16); }

/* ===== Nav brand ===== */
.site-nav { display: flex; align-items: center; }
.site-nav .nav-spacer { flex: 1; }
.site-nav .brand{
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--accent-1, #7c8cff), var(--accent-2, #b794f4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Keep hover pills for regular links; brand stays clean */
.site-nav a:not(.brand):hover { background: rgba(255,255,255,0.16); }
.site-nav .brand:hover { filter: brightness(1.1); }

.site-nav{ display:flex; align-items:center; gap:16px; }
.site-nav .nav-spacer{ flex:1 1 auto; }
.site-nav .brand{
  display:inline-block !important;
  font-weight:800; letter-spacing:0.14em; text-transform:uppercase;
  text-decoration:none; padding:6px 8px; border-radius:8px;
  color:#fff !important; -webkit-text-fill-color:#fff;
}
@supports (-webkit-background-clip: text) or (background-clip: text){
  .site-nav .brand{
    background: linear-gradient(45deg, var(--accent-1,#7c8cff), var(--accent-2,#b794f4));
    -webkit-background-clip:text; background-clip:text;
    -webkit-text-fill-color:transparent; color:transparent;
  }
}
/* Brand hover — subtle glow on text */
.site-nav .brand:hover{
  background: transparent !important; /* no pill */
  text-shadow:
    0 0 6px rgba(124,140,255,0.65),
    0 0 14px rgba(183,148,244,0.6);
  transform: translateY(-1px);
}

/* ===== Homepage layout ===== */
.home-hero{
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.home-intro{
  max-width: 52rem;
}

.home-eyebrow{
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.home-title{
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 10px 0;
}
.home-title span{
  background: linear-gradient(45deg, var(--accent-1, #7c8cff), var(--accent-2, #b794f4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.home-tagline{
  font-size: 1.02rem;
  opacity: 0.9;
  margin: 0 0 10px 0;
}

.home-body{
  margin: 0 0 20px 0;
  line-height: 1.6;
  opacity: 0.9;
}

.home-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(232,236,255,0.5);
  color: #e8ecff;
  background: transparent;
  cursor: pointer;
}
.btn.primary{
  border: none;
  background: linear-gradient(45deg, var(--accent-1, #7c8cff), var(--accent-2, #b794f4));
  color: #050612;
  font-weight: 600;
}
.btn.ghost{
  background: rgba(0,0,0,0.3);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Featured block */
.home-highlight{
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at 0 0, rgba(124,140,255,0.25), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(183,148,244,0.22), transparent 55%),
              rgba(10,10,20,0.7);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}

.home-highlight-title{
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 4px 0;
}

.home-highlight-name{
  margin: 0 0 10px 0;
  font-size: 1.4rem;
}

.home-highlight-copy{
  margin: 0 0 12px 0;
  line-height: 1.5;
  opacity: 0.9;
}

.home-highlight-meta{
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.home-highlight-meta li{
  margin: 4px 0;
}

.home-highlight-link{
  font-size: 0.92rem;
  text-decoration: none;
  color: #e8ecff;
  opacity: 0.9;
}
.home-highlight-link:hover{
  text-decoration: underline;
}

/* Homepage responsive tweaks */
@media (max-width: 900px){
  .home-hero{
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 56px;
  }
}

.about-hero{
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(0,0,0,0.35);
}


.about-contact{
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.about-contact-title{
  font-size: 1.2rem;
  margin: 0 0 6px 0;
}

.about-contact-copy{
  margin: 0 0 14px 0;
  opacity: 0.9;
  max-width: 42rem;
}

.about-contact-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.about-contact-link{
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  color: #e8ecff;
  opacity: 0.95;
  font-weight: 500;
}
.about-contact-link:visited{
  color: #e8ecff;
}

.about-contact-link::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: linear-gradient(45deg, var(--accent-1, #7c8cff), var(--accent-2, #b794f4));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.about-contact-link:hover::after{
  transform: scaleX(1);
}
/* ===== Buttons – improved contrast & aesthetics ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(232,236,255,0.28);
  color: #f5f6ff;
  background: rgba(8,10,30,0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, #a9b4ff 0%, #e3c7ff 100%);
  color: #050612;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.btn.ghost{
  background: rgba(8,10,30,0.4);
  border-color: rgba(232,236,255,0.45);
  color: #f5f6ff;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  border-color: rgba(232,236,255,0.55);
}

.btn.primary:hover{
  background: linear-gradient(135deg, #b7c0ff 0%, #efd6ff 100%);
}

.btn.ghost:hover{
  background: rgba(232,236,255,0.08);
}