
:root{
  /* Even lighter dark palette per user request */
  --bg: #111827; /* brighter slate navy for better contrast */
  --card: #16222b; /* lighter, more neutral card surface */
  --text: #f1f7fb; /* brighter primary text */
  --muted: #c8d4db; /* lighter muted tone for labels */
  --accent: #2fd6bf; /* more vivid teal accent */
  --accent-2: #9a7cff; /* brighter violet accent */
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.022);
  --radius: 12px;
}

/* smooth transitions for theme-aware properties */
html,body,header,main,footer,.card,.project,.modal .modal-panel,.success-panel{transition:background-color .28s ease,color .22s ease,box-shadow .28s ease,border-color .22s ease}

/* stronger focus outline for modal panel */
.success-panel:focus{outline:3px solid rgba(47,214,191,0.18);box-shadow:0 6px 30px rgba(47,214,191,0.06)}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;width:100%;overflow-x:hidden}
html{font-size:16px;scroll-behavior:smooth}
@media (min-width:768px){html{font-size:18px}}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Merriweather:wght@300;400;700&display=swap');

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background:linear-gradient(180deg,var(--bg),#071926);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
}

/* Container */
main{
  position:relative;
  min-height:100vh;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px 80px;
  width:100%;
}

/* Page layout: make each section a full-screen page and disable scroll */
.page{
  position:relative;
  padding:20px;
  display:none;
  background:transparent;
  min-height:calc(100vh - 80px);
}
.page:not(.active){display:none}
.page.active{display:block}
.page .content, .page .intro-text{max-width:920px;margin:0 auto}

@media (min-width:768px){
  main{padding:0 40px 80px}
  .page{padding:40px}
}

/* Header */
header{
  position:sticky;
  top:0;
  z-index:999;
  padding:12px 20px;
  background:linear-gradient(90deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
  backdrop-filter:blur(10px);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand{display:flex;align-items:center;justify-content:space-between;width:100%}
.logo{font-weight:700;color:#eaf6f5;text-decoration:none;font-size:1.2rem}

nav{display:none}
nav.active{display:block;position:absolute;top:100%;left:0;right:0;background:var(--card);border-bottom:1px solid rgba(255,255,255,0.03);padding:20px}
nav ul{display:flex;flex-direction:column;gap:10px;list-style:none}
nav a{color:var(--muted);text-decoration:none;padding:12px;border-radius:8px;display:block}
nav a:hover{color:var(--accent);background:rgba(79,209,197,0.05)}

.menu-toggle{display:flex;flex-direction:column;cursor:pointer;gap:4px;padding:8px}
.bar{display:block;width:24px;height:3px;background:#cdd6df;border-radius:2px;transition:all 0.3s ease}

@media (min-width:768px){
  header{padding:18px 28px}
  .brand{width:auto}
  .menu-toggle{display:none}
  nav{display:block!important;position:static;background:transparent;border:none;padding:0}
  nav ul{flex-direction:row;gap:14px}
  nav a{padding:8px 10px}
}

/* Hero */

#home{
  display:flex;
  flex-direction:column;
  gap:24px;
  align-items:center;
  justify-content:center;
  min-height:calc(100vh - 80px);
  padding:20px;
  background:linear-gradient(180deg,var(--card),rgba(11,26,32,0.56));
  border-radius:var(--radius);
  text-align:center;
}
.profile-picture{position:relative;display:inline-block;margin-bottom:20px}
.profile-picture img{
  width:150px;
  height:150px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  box-shadow:0 18px 50px rgba(2,6,23,0.55);
  border:4px solid rgba(255,255,255,0.04);
  transition:transform .6s cubic-bezier(.16,.84,.2,1),box-shadow .5s ease;
}

@media (min-width:768px){
  #home{flex-direction:row;text-align:left;padding:56px}
  .profile-picture img{width:200px;height:200px}
}

/* floating container and decorative frame */
.profile-picture::after{
  content:'';
  position:absolute;
  inset:-10px;
  border-radius:50%;
  background:linear-gradient(180deg, rgba(124,92,255,0.06), rgba(79,209,197,0.04));
  filter:blur(18px);
  z-index:-2;
  opacity:0.8;
  transition:transform .6s ease;
}
.profile-picture::before{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.03);
  z-index:-1;
}

/* sheen overlay */
.profile-picture .sheen{
  pointer-events:none;
  position:absolute;
  inset:0;
  border-radius:50%;
  background:linear-gradient(135deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.0) 100%);
  opacity:0;
  transition:opacity .6s ease;
}

/* hover/active states */
.profile-picture:hover img{
  transform:scale(1.05);
  box-shadow:0 30px 80px rgba(2,6,23,0.7);
}
.profile-picture:hover::after{
  transform:scale(1.1);
}
.profile-picture:hover .sheen{
  opacity:1;
}

/* accessible reduced-motion fallback */
@media (prefers-reduced-motion: reduce){
  *{
    transition:none!important;
    animation:none!important;
  }
}
.intro-text h1{margin:0;font-size:2rem;color:var(--text);line-height:1.2;font-weight:800;font-family:Merriweather,serif}
.intro-text p{margin:8px 0;color:var(--muted);font-weight:500}
.intro-text #job-title{color:var(--accent);font-weight:700;margin-top:12px;font-size:1.1rem}
.hero-ctas{margin-top:20px;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.hero-ctas .btn{padding:12px 18px;border-radius:12px;font-size:0.9rem}

@media (min-width:768px){
  .intro-text h1{font-size:3rem}
  .intro-text #job-title{font-size:1.2rem}
  .hero-ctas{justify-content:flex-start}
}

/* Hero subtle underline animation */
.intro-text h1{position:relative;padding-bottom:8px}
.intro-text h1::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  height:3px;
  width:0;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  border-radius:3px;
  transition:width .9s cubic-bezier(.2,.9,.2,1) .35s;
}
.page.active .intro-text h1::after{width:60px}

@media (min-width:768px){
  .intro-text h1::after{left:0;transform:none}
}

/* decorative blob background behind hero */
.hero-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:24px;
  position:relative;
  z-index:2;
  width:100%;
  max-width:920px;
  margin:0 auto;
}

@media (min-width:768px){
  .hero-inner{flex-direction:row;gap:40px}
}

.hero-accent{display:none}

/* page-dot navigator */
.page-dots{
  position:fixed;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  display:none;
  flex-direction:column;
  gap:12px;
  z-index:1000;
}

@media (min-width:768px){
  .page-dots{display:flex;right:20px}
}

.page-dots button{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  border:none;
  cursor:pointer;
  transition:transform .18s ease,background-color .18s ease;
  padding:0;
}
.page-dots button.active{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  transform:scale(1.35);
}

@media (min-width:768px){
  .page-dots button{width:12px;height:12px}
}

/* center hero on larger screens */
@media (min-width:920px){
  #home{display:flex;align-items:center;justify-content:center}
  .hero-inner{max-width:920px;display:flex;align-items:center;gap:40px}
  .profile-picture{order:2;flex:0 0 200px}
  .intro-text{order:1;max-width:640px}
  .profile-picture img{transition:transform .9s cubic-bezier(.2,.9,.2,1)}
  .profile-picture:hover img{transform:translateY(-6px) scale(1.05)}
  .profile-quote{display:none}
}

/* Scrollbar styling */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:rgba(255,255,255,0.02)}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.08);border-radius:10px}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.12)}
.hero-social{margin-top:20px;display:flex;gap:16px;justify-content:center}
.hero-social a{color:var(--muted);font-size:1.5rem;text-decoration:none;transition:all 0.3s ease}
.hero-social a:hover{color:var(--accent);transform:translateY(-3px)}

@media (min-width:768px){
  .hero-social{justify-content:flex-start}
}

/* Reveal stagger using CSS variable --delay */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .6s ease,transform .6s ease}
.reveal.reveal-visible{opacity:1;transform:none}
.reveal[style*="--delay"]{transition-delay:var(--delay)}

/* Sections */
section{margin-bottom:28px}
h2{font-size:1.8rem;color:#cfeaf0;margin-bottom:20px;font-weight:700}
h3{font-size:1.3rem;margin-bottom:12px}
h4{font-size:1.1rem}
p{color:var(--muted);line-height:1.6}
a{color:var(--accent);transition:color 0.3s ease}
a:hover{color:var(--accent-2)}

/* Contact panel */
.contact-panel{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  align-items:start;
  max-width:1100px;
  margin:24px auto;
}

@media (min-width:768px){
  .contact-panel{grid-template-columns:1fr 1fr}
}

.contact-info .lead{font-size:1.1rem;color:#e6eef6;margin-bottom:18px;line-height:1.6}
.contact-cards{display:flex;flex-direction:column;gap:12px;margin:12px 0}
.card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.014));
  padding:16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
  box-shadow:0 10px 28px rgba(2,6,23,0.28);
}
.card i{color:var(--accent);min-width:36px;font-size:1.3rem}
.card h4{margin:0 0 4px 0;font-size:1rem}
.card p, .card a{font-size:0.9rem;word-break:break-word}

.contact-form-panel{
  background:linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.014));
  padding:24px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.038);
  box-shadow:0 16px 44px rgba(2,6,23,0.32);
}
.contact-form-panel .form-row{display:flex;flex-direction:column;margin-bottom:16px}
.contact-form-panel label{font-weight:600;margin-bottom:8px;font-size:0.9rem}
.contact-form-panel input,.contact-form-panel textarea{
  background:rgba(255,255,255,0.035);
  border:1px solid rgba(255,255,255,0.045);
  padding:12px;
  border-radius:8px;
  color:var(--text);
  font-family:inherit;
  font-size:1rem;
  width:100%;
  transition:border-color 0.3s ease;
}
.contact-form-panel input:focus,.contact-form-panel textarea:focus{
  outline:none;
  border-color:var(--accent);
}
.contact-form-panel input::placeholder,.contact-form-panel textarea::placeholder{color:rgba(241,247,251,0.5)}
.contact-form-panel .form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.form-status{margin-top:12px;font-size:0.9rem}

/* About section responsiveness */
#about .content{
  display:flex;
  flex-direction:column;
  gap:24px;
  align-items:center;
  text-align:center;
}

@media (min-width:768px){
  #about .content{
    flex-direction:row;
    align-items:flex-start;
    text-align:left;
  }
  #about .profile-picture{flex:0 0 200px}
  #about #details{flex:1}
}

/* Success modal styles */
.success-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3000;
  pointer-events:none;
  padding:20px;
}
.success-modal[aria-hidden="false"]{pointer-events:auto}
.success-panel{
  background:linear-gradient(180deg,rgba(255,255,255,0.034),rgba(255,255,255,0.016));
  backdrop-filter:blur(10px);
  padding:30px;
  border-radius:14px;
  min-width:280px;
  max-width:480px;
  width:100%;
  text-align:center;
  box-shadow:0 30px 90px rgba(2,6,23,0.46);
  transform:translateY(18px);
  opacity:0;
  transition:transform .36s cubic-bezier(.2,.9,.2,1),opacity .28s ease;
}
.success-modal.show .success-panel{transform:none;opacity:1}
.success-illustration{margin:6px auto 12px auto}
.success-panel h3{margin:12px 0 8px 0;font-size:1.5rem}



/* Projects */
.projects-container{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  padding:0;
  margin:20px 0;
  list-style:none;
}

@media (min-width:640px){
  .projects-container{grid-template-columns:repeat(2, 1fr)}
}

@media (min-width:1024px){
  .projects-container{grid-template-columns:repeat(3, 1fr);gap:32px}
}

.project{
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.016));
  padding:20px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.045);
  box-shadow:0 20px 56px rgba(2,6,23,0.5);
  transition:transform .3s ease,box-shadow .3s ease;
}
.project img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:16px;
  display:block;
}
.project.selected{
  outline:2px solid rgba(124,92,255,0.3);
  transform:translateY(-6px);
}

/* Modal for viewing source code */
.modal{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,0.85);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:20px;
}
.modal .modal-panel{
  background:linear-gradient(180deg,#071927,#071820);
  border-radius:10px;
  padding:20px;
  max-width:900px;
  width:100%;
  max-height:90vh;
  overflow:auto;
  border:1px solid rgba(255,255,255,0.045);
  box-shadow:0 24px 72px rgba(2,6,23,0.44);
}
.modal pre{
  white-space:pre-wrap;
  word-wrap:break-word;
  background:rgba(255,255,255,0.02);
  padding:12px;
  border-radius:8px;
  color:#dbeefa;
  font-size:0.85rem;
  overflow-x:auto;
}
.modal .close{display:inline-block;margin-top:12px}
.project h4{margin:0 0 8px 0;font-size:1.2rem}
.project p{margin:0 0 16px;color:var(--muted);font-size:0.9rem;line-height:1.5}
.project:hover{transform:translateY(-8px);box-shadow:0 24px 60px rgba(2,6,23,0.75)}

.buttons{display:flex;flex-wrap:wrap;gap:8px}
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  font-size:0.9rem;
  transition:all 0.3s ease;
  cursor:pointer;
  border:none;
  text-align:center;
}
.btn.primary{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#061414;
  box-shadow:0 10px 28px rgba(79,209,197,0.08);
}
.btn.ghost{
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
  background:transparent;
}
.btn:hover:not(:disabled){
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(2,6,23,0.6);
}
.btn:disabled{opacity:0.5;cursor:not-allowed}



/* Download CV */
.download-cv-button{margin:20px 0}
.download-cv-button button{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#051014;
  padding:12px 20px;
  border:none;
  border-radius:10px;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  transition:all 0.3s ease;
}
.download-cv-button button:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(47,214,191,0.2);
}

/* Skills panel */
.skills{margin-top:24px;width:100%}
.skills-full{
  background:linear-gradient(180deg, rgba(255,255,255,0.016), rgba(255,255,255,0.01));
  padding:20px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.03);
}
.skills-full h3{margin:0 0 16px 0;font-size:1.2rem;color:var(--text)}
.skills-list{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:0}
.skill-pill{background:linear-gradient(90deg,rgba(124,92,255,0.08),rgba(47,214,191,0.04));padding:10px 14px;border-radius:999px;font-weight:700;color:var(--text);font-size:15px;cursor:default;transition:transform .28s cubic-bezier(.2,.9,.2,1),box-shadow .28s ease}
.skill-pill:hover{transform:translateY(-8px) scale(1.06);box-shadow:0 28px 80px rgba(2,6,23,0.66);background:linear-gradient(90deg,rgba(124,92,255,0.12),rgba(47,214,191,0.08));color:#f8ffff}
.skill-pill:focus{outline:none;transform:translateY(-8px) scale(1.06);box-shadow:0 28px 80px rgba(2,6,23,0.66);background:linear-gradient(90deg,rgba(124,92,255,0.12),rgba(47,214,191,0.08));color:#f8ffff}
.skill-pill:focus-visible{outline:3px solid rgba(124,92,255,0.14);border-radius:999px}
/* icon inside pill */
.skill-icon{margin-right:8px;font-size:16px;opacity:0.95;vertical-align:middle}
.skill-pill i.fab{color:#ffb86b}
.skill-pill i.fa-python{color:#7dc3ff}
.skill-pill i.fas{color:#b9a0ff}





/* Skills list responsive */
.skills-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  justify-content:center;
}

@media (min-width:768px){
  .skills-list{justify-content:flex-start;gap:10px}
}

.skill-pill{
  background:linear-gradient(90deg,rgba(124,92,255,0.08),rgba(47,214,191,0.04));
  padding:8px 12px;
  border-radius:999px;
  font-weight:600;
  color:var(--text);
  font-size:0.85rem;
  cursor:default;
  transition:transform .3s ease,box-shadow .3s ease;
}

@media (min-width:768px){
  .skill-pill{padding:10px 14px;font-size:0.9rem}
}

/* Fixed footer CTA */

/* Footer: make it part of document flow so user can scroll to it */
/* Persistent compact footer: fixed small bar on desktop, full-width on mobile */
.fixed-footer{
  position:fixed;
  left:10px;
  right:10px;
  bottom:10px;
  width:auto;
  background:linear-gradient(90deg,rgba(17,22,27,0.96),rgba(14,18,22,0.98));
  backdrop-filter:blur(8px);
  border-radius:12px;
  padding:12px 16px;
  z-index:2000;
  box-shadow:0 10px 40px rgba(2,6,23,0.6);
}

@media (min-width:768px){
  .fixed-footer{left:auto;right:20px;bottom:20px;border-radius:14px;padding:10px 14px}
}

.fixed-footer .footer-inner{display:flex;align-items:center;flex-wrap:wrap;gap:12px;justify-content:center}
.fixed-footer .footer-cta h3{margin:0;font-size:0.95rem}
.fixed-footer .footer-cta .muted{color:var(--muted);margin:4px 0;font-size:0.8rem;display:none}
.fixed-footer .footer-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.fixed-footer .footer-meta{color:var(--muted);font-size:0.8rem;width:100%;text-align:center}

@media (min-width:768px){
  .fixed-footer .footer-inner{justify-content:space-between;flex-wrap:nowrap}
  .fixed-footer .footer-cta .muted{display:block}
  .fixed-footer .footer-meta{display:none;width:auto}
  .fixed-footer .footer-actions{justify-content:flex-start}
}

/* subtle visual indicator */
.fixed-footer::before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  display:none;
  margin-right:8px;
  box-shadow:0 6px 20px rgba(124,92,255,0.12);
}

@media (min-width:768px){
  .fixed-footer::before{display:inline-block}
}

/* Collapsible footer behavior */
.fixed-footer{transition:transform .3s ease,opacity .3s ease}
.fixed-footer .footer-toggle{
  display:none;
  appearance:none;
  border:0;
  background:transparent;
  color:var(--muted);
  width:36px;
  height:36px;
  border-radius:10px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.fixed-footer .footer-toggle:focus{outline:2px solid rgba(124,92,255,0.18)}

/* hide footer on contact page */
body.no-footer .fixed-footer{
  opacity:0;
  transform:translateY(20px);
  visibility:hidden;
  pointer-events:none;
}
body.no-footer main{padding-bottom:20px}



/* Reveal on scroll animation */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s ease,transform .6s ease;
}
.reveal.reveal-visible{
  opacity:1;
  transform:none;
}

/* Utility classes */
.sr-only{
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border-width:0;
}

.muted{
  color:var(--muted)!important;
  opacity:0.9;
}

/* Ensure images never overflow */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* About footer quote - simplified */
.about-footer-quote{display:none}

