@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&display=swap');
:root{--sage-50:#f4f7ec;--sage-100:#e8eedd;--sage-200:#d4dfc0;--sage-300:#b8cc8e;--sage-400:#8fad5a;--sage-500:#6b8c3e;--sage-600:#4a6b2a;--sage-700:#3a5520;--sage-800:#2a3d18;--sage-900:#1a2810;--bg:#e8eedd;--white:#fff;--text:#1a1a1a;--text-m:#5a5a5a;--text-l:#8a8a7a;}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);overflow-x:hidden;}

/* NAV */
.navbar{position:fixed;top:0;left:0;width:100%;z-index:1000;padding:20px 48px;display:flex;align-items:center;justify-content:space-between;transition:.4s;}
.navbar.scrolled{background:rgba(232,238,221,.92);backdrop-filter:blur(16px);box-shadow:0 2px 20px rgba(0,0,0,.05);padding:14px 48px;}
.nav-logo{font-family:'Dancing Script',cursive;font-size:1.5rem;font-weight:700;color:var(--sage-800);text-decoration:none;}
.nav-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:8px;padding:6px 16px;background:var(--white);border-radius:20px;font-size:.72rem;color:var(--text-m);font-weight:500;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.nav-center svg{width:14px;height:14px;}
.nav-hamburger{display:none;width:40px;height:40px;border-radius:50%;border:1px solid rgba(0,0,0,.1);align-items:center;justify-content:center;cursor:pointer;background:var(--white);}
.nav-hamburger span{display:block;width:16px;height:2px;background:var(--text);position:relative;}
.nav-hamburger span::before,.nav-hamburger span::after{content:'';position:absolute;width:16px;height:2px;background:var(--text);}
.nav-hamburger span::before{top:-5px;}
.nav-hamburger span::after{top:5px;}
.nav-menu{display:flex;gap:24px;align-items:center;}
.nav-menu a{text-decoration:none;color:var(--text);font-size:.88rem;font-weight:500;transition:.3s;position:relative;padding:4px 0;}
.nav-menu a::after{content:'';position:absolute;bottom:0;left:0;width:0;height:2px;background:var(--sage-500);transition:width .3s ease;}
.nav-menu a:hover::after{width:100%;}
.nav-menu a:hover{color:var(--sage-600);}

/* HERO */
.hero{min-height:100vh;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:100px 48px 40px;}
#hero-canvas{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none;}
.hero-title{position:relative;z-index:3;}
.hero-title h1{font-family:'Playfair Display',serif;font-size:5.5rem;font-weight:900;line-height:1;color:var(--sage-900);}
.hero-title h1 em{font-style:italic;font-weight:400;display:block;font-size:5.5rem;color:var(--sage-700);}
.hero-photo-center{position:relative;z-index:4;margin-top:-60px;margin-bottom:-30px;}
.hero-photo-center img{width:340px;height:420px;object-fit:cover;object-position:top;filter:grayscale(90%) contrast(1.05);}
.hero-badge{position:absolute;left:-180px;top:50%;transform:translateY(-50%);z-index:5;display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:rgba(143,173,90,.15);border:1px solid rgba(143,173,90,.25);border-radius:50px;font-size:.78rem;color:var(--sage-600);font-weight:500;white-space:nowrap;}
.hero-badge .dot{width:8px;height:8px;background:var(--sage-500);border-radius:50%;animation:pulse 2s infinite;}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero-desc{position:absolute;right:-220px;top:40%;transform:translateY(-50%);z-index:5;font-size:.88rem;color:var(--text-m);line-height:1.65;max-width:240px;text-align:left;}
.hero-cta-wrap{position:absolute;right:-200px;bottom:20px;z-index:5;}
.hero-cta{display:inline-flex;align-items:center;gap:10px;padding:14px 32px;background:var(--sage-800);color:var(--white);border:none;border-radius:50px;font-size:.85rem;font-weight:600;cursor:pointer;text-decoration:none;transition:.3s;}
.hero-cta:hover{background:var(--sage-700);transform:translateY(-2px);box-shadow:0 8px 24px rgba(42,61,24,.2);}
.hero-avatars{position:absolute;left:-160px;bottom:40px;z-index:5;display:flex;align-items:center;}
.hero-avatars img{width:32px;height:32px;border-radius:50%;border:2px solid var(--white);margin-left:-8px;}
.hero-avatars img:first-child{margin-left:0;}
.hero-avatars-info{margin-left:8px;font-size:.68rem;color:var(--text-m);line-height:1.3;}
.hero-avatars-info strong{display:block;font-size:.75rem;color:var(--text);}

/* TRUSTED */
.trusted{padding:28px 48px;display:flex;align-items:center;justify-content:center;gap:40px;border-top:1px solid rgba(0,0,0,.06);position:relative;z-index:2;}
.trusted-label{font-size:.78rem;color:var(--text-l);font-weight:500;}
.trusted-logos{display:flex;gap:32px;align-items:center;flex-wrap:wrap;}
.trusted-logos span{display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:600;color:var(--text-m);opacity:.5;transition:.3s;}
.trusted-logos span:hover{opacity:1;}
.trusted-logos .tdot{width:6px;height:6px;background:var(--text-m);border-radius:50%;}

/* SECTION CENTER */
.section-center{text-align:center;margin-bottom:48px;}

/* ABOUT ME */
.aboutme{padding:100px 48px;background:var(--white);}
.aboutme-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start;max-width:1100px;margin:0 auto;}
.aboutme-lbl{font-family:'Dancing Script',cursive;font-size:1rem;color:var(--sage-500);margin-bottom:4px;display:block;}
.aboutme-title{font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:700;color:var(--sage-900);line-height:1.1;margin-bottom:20px;}
.aboutme-desc{font-size:.9rem;color:var(--text-m);line-height:1.7;margin-bottom:24px;}
.aboutme-stats{display:flex;gap:20px;margin-top:12px;}
.aboutme-stat{padding:20px 24px;background:var(--sage-50);border-radius:16px;text-align:center;border:1px solid var(--sage-200);flex:1;transition:.3s;}
.aboutme-stat:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.06);}
.aboutme-stat-num{font-family:'Playfair Display',serif;font-size:2rem;font-weight:700;color:var(--sage-600);display:block;}
.aboutme-stat-lbl{font-size:.72rem;color:var(--text-l);margin-top:2px;}
.aboutme-skills h3{font-family:'Playfair Display',serif;font-size:1.4rem;font-weight:700;color:var(--sage-800);margin-bottom:24px;}
.aboutme-skill-group{margin-bottom:20px;}
.aboutme-skill-label{font-size:.75rem;font-weight:600;color:var(--text-l);text-transform:uppercase;letter-spacing:.5px;display:block;margin-bottom:8px;}
.aboutme-skill-tags{display:flex;flex-wrap:wrap;gap:8px;}
.aboutme-skill{padding:7px 16px;background:var(--sage-100);border:1px solid var(--sage-200);border-radius:50px;font-size:.8rem;font-weight:500;color:var(--sage-700);transition:.3s;}
.aboutme-skill:hover{background:var(--sage-400);color:var(--white);transform:translateY(-2px);}

/* EDUCATION */
.education{padding:100px 48px;background:var(--bg);}
.edu-lbl{font-family:'Dancing Script',cursive;font-size:1rem;color:var(--sage-500);}
.edu-title{font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:700;color:var(--sage-900);}
.edu-timeline{position:relative;max-width:700px;margin:0 auto;padding:20px 0;}
.edu-line{position:absolute;left:50%;top:0;bottom:0;width:3px;background:linear-gradient(to bottom,var(--sage-300),var(--sage-200));transform:translateX(-50%);border-radius:2px;}
.edu-item{position:relative;padding:20px 0;display:flex;justify-content:center;}
.edu-item::before{content:attr(data-year);position:absolute;left:50%;transform:translateX(-50%);top:-6px;background:var(--sage-400);color:var(--white);padding:4px 16px;border-radius:50px;font-size:.7rem;font-weight:600;z-index:2;white-space:nowrap;}
.edu-card{background:var(--white);border-radius:20px;padding:28px 24px;width:calc(50% - 30px);max-width:320px;box-shadow:0 8px 30px rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.04);position:relative;transition:.3s;}
.edu-card:hover{transform:translateY(-4px);box-shadow:0 12px 36px rgba(0,0,0,.1);}
.edu-item:nth-child(odd) .edu-card{margin-right:calc(50% + 30px);margin-left:0;}
.edu-item:nth-child(even) .edu-card{margin-left:calc(50% + 30px);margin-right:0;}
.edu-icon{width:40px;height:40px;background:var(--sage-100);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;margin-bottom:12px;}
.edu-card h3{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:700;color:var(--sage-800);margin-bottom:4px;}
.edu-school{font-size:.82rem;color:var(--text-m);margin-bottom:4px;}
.edu-detail{font-size:.85rem;font-weight:600;color:var(--sage-600);margin-bottom:12px;}
.edu-tags{display:flex;flex-wrap:wrap;gap:6px;}
.edu-tags span{padding:4px 12px;background:var(--sage-100);border-radius:50px;font-size:.7rem;color:var(--sage-600);font-weight:500;}

/* PROJECTS */
.projects-section{padding:100px 48px;background:var(--white);}
.proj-lbl{font-family:'Dancing Script',cursive;font-size:1rem;color:var(--sage-500);}
.proj-title{font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:700;color:var(--sage-900);}
.proj-grid{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:48px;}
.proj-card{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;background:var(--sage-50);border-radius:24px;padding:32px;border:1px solid var(--sage-200);transition:.3s;}
.proj-card:hover{box-shadow:0 16px 40px rgba(0,0,0,.06);transform:translateY(-4px);}
.proj-card.reverse .proj-img{order:2;}
.proj-card.reverse .proj-info{order:1;}
.proj-img{border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.08);}
.proj-img img{width:100%;display:block;border-radius:16px;}
.proj-type{font-size:.7rem;text-transform:uppercase;letter-spacing:1px;color:var(--sage-500);font-weight:600;margin-bottom:8px;display:block;}
.proj-info h3{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:700;color:var(--sage-800);margin-bottom:12px;}
.proj-info p{font-size:.85rem;color:var(--text-m);line-height:1.7;margin-bottom:16px;}
.proj-tech{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
.proj-tech span{padding:5px 14px;background:var(--sage-200);border-radius:50px;font-size:.72rem;color:var(--sage-700);font-weight:500;}
.proj-links{display:flex;gap:12px;flex-wrap:wrap;}
.proj-link-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 24px;background:var(--sage-800);color:var(--white);border-radius:50px;font-size:.82rem;font-weight:600;text-decoration:none;transition:.3s;border:none;cursor:pointer;}
.proj-link-btn:hover{background:var(--sage-700);transform:translateY(-2px);}
.proj-live-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 24px;background:transparent;color:var(--sage-800);border:2px solid var(--sage-300);border-radius:50px;font-size:.82rem;font-weight:600;cursor:pointer;transition:.3s;}
.proj-live-btn:hover{background:var(--sage-100);transform:translateY(-2px);}

/* PROJECT POPUP */
.proj-popup{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:2000;}
.proj-popup.active{display:flex;align-items:center;justify-content:center;}
.proj-popup-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);backdrop-filter:blur(8px);}
.proj-popup-content{position:relative;background:var(--white);border-radius:24px;padding:32px;max-width:700px;width:90%;max-height:85vh;overflow-y:auto;box-shadow:0 24px 60px rgba(0,0,0,.2);animation:popupIn .3s ease;}
@keyframes popupIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
.proj-popup-close{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;border:none;background:var(--sage-100);font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.3s;}
.proj-popup-close:hover{background:var(--sage-200);}
.proj-popup-content h3{font-family:'Playfair Display',serif;font-size:1.4rem;color:var(--sage-800);margin-bottom:16px;}
.proj-popup-frame{border-radius:12px;overflow:hidden;margin-bottom:20px;border:1px solid var(--sage-200);}
.proj-popup-frame img{width:100%;display:block;}
.proj-popup-actions{display:flex;gap:12px;justify-content:center;}

/* PROCESS */
.process{padding:100px 48px;text-align:center;position:relative;}
.ps-lbl{font-family:'Dancing Script',cursive;font-size:1rem;color:var(--sage-500);}
.ps-title{font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:700;color:var(--sage-900);margin-bottom:60px;}
.p-cards{display:flex;justify-content:center;gap:40px;position:relative;align-items:flex-end;max-width:960px;margin:0 auto;overflow:visible;}
.p-card{background:var(--white);border-radius:24px;padding:36px 28px 32px;width:270px;text-align:left;position:relative;box-shadow:0 8px 30px rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.04);transition:.4s;transform:rotate(-2deg);flex-shrink:0;}
.p-card:nth-of-type(2){transform:rotate(0deg);margin-bottom:40px;}
.p-card:nth-of-type(3){transform:rotate(2deg);}
.p-card:hover{transform:translateY(-8px) rotate(0deg) !important;box-shadow:0 16px 40px rgba(0,0,0,.1);}
.p-icon{position:absolute;top:-16px;right:24px;width:36px;height:36px;background:var(--sage-400);border-radius:50%;border:3px solid var(--white);box-shadow:0 2px 8px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;font-size:.9rem;}
.p-num{font-family:'Playfair Display',serif;font-size:2.4rem;font-weight:900;color:var(--sage-300);margin-bottom:8px;}
.p-card h3{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:700;color:var(--sage-800);margin-bottom:8px;}
.p-card p{font-size:.82rem;color:var(--text-m);line-height:1.6;}
.p-arrows{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1;}
.p-arrows svg{position:absolute;}
.p-arrows .arrow-1{width:80px;height:60px;top:30%;left:28%;}
.p-arrows .arrow-2{width:80px;height:60px;top:55%;right:28%;}

/* CERTS */
.certs{padding:80px 48px;text-align:center;}
.certs-title{font-family:'Playfair Display',serif;font-size:2rem;font-weight:700;color:var(--sage-900);margin-bottom:36px;}
.cert-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.cert-card{background:var(--white);border-radius:20px;padding:32px;box-shadow:0 4px 16px rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.04);transition:.3s;}
.cert-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,.08);}
.cert-q{font-size:2rem;color:var(--sage-300);font-family:serif;line-height:1;margin-bottom:12px;}
.cert-txt{font-size:.86rem;color:var(--text-m);line-height:1.7;margin-bottom:20px;}
.cert-author{display:flex;align-items:center;gap:10px;}
.cert-icon{width:40px;height:40px;border-radius:50%;background:var(--sage-200);display:flex;align-items:center;justify-content:center;font-size:1.1rem;}
.cert-author-txt span{display:block;font-size:.72rem;color:var(--text-l);}
.cert-author-txt strong{font-size:.85rem;color:var(--text);}

/* CONTACT */
.contact{padding:120px 48px;position:relative;overflow:hidden;text-align:center;background:var(--sage-800);}
.contact-content{position:relative;z-index:2;}
.contact h2{font-family:'Playfair Display',serif;font-size:3.8rem;font-weight:700;color:var(--white);margin-bottom:20px;line-height:1.1;}
.contact p{font-size:.95rem;color:rgba(255,255,255,.55);max-width:500px;margin:0 auto 28px;line-height:1.7;}
.contact-links-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:32px;}
.contact-chip{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:50px;color:rgba(255,255,255,.75);font-size:.82rem;text-decoration:none;transition:.3s;}
.contact-chip:hover{background:rgba(255,255,255,.15);color:var(--white);transform:translateY(-2px);}
.contact-btn{display:inline-flex;align-items:center;gap:10px;padding:16px 40px;background:transparent;color:var(--white);border:2px solid rgba(255,255,255,.3);border-radius:50px;font-size:.95rem;font-weight:600;cursor:pointer;text-decoration:none;transition:.3s;}
.contact-btn:hover{background:var(--white);color:var(--sage-800);}
.waves{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:hidden;}
.waves svg{position:absolute;bottom:0;left:-5%;width:110%;}

/* FOOTER */
.footer{padding:28px 48px;background:var(--sage-900);display:flex;align-items:center;justify-content:space-between;color:rgba(255,255,255,.35);font-size:.78rem;}
.footer a{color:rgba(255,255,255,.45);text-decoration:none;transition:.3s;margin-left:20px;}
.footer a:hover{color:var(--sage-300);}

/* ANIMATIONS */
.reveal{opacity:0;transform:translateY(30px);transition:all .7s cubic-bezier(.16,1,.3,1);}
.reveal.active{opacity:1;transform:translateY(0);}
.rd1{transition-delay:.1s;}.rd2{transition-delay:.2s;}.rd3{transition-delay:.3s;}

/* CURSOR */
.custom-cursor{width:20px;height:20px;border:2px solid var(--sage-500);border-radius:50%;position:fixed;top:0;left:0;pointer-events:none;z-index:9999;transition:width .2s,height .2s,background .2s,border-color .2s;will-change:transform;}
.custom-cursor.hover{width:48px;height:48px;background:rgba(143,173,90,.1);border-color:var(--sage-400);}

/* RESPONSIVE */
@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

@media(min-width:1025px) and (max-width:1366px){
  .hero-badge{left:clamp(-140px,-10vw,-20px);}
  .hero-desc{right:clamp(-160px,-11vw,-30px);max-width:200px;}
  .hero-cta-wrap{right:clamp(-140px,-10vw,-20px);}
  .hero-avatars{left:clamp(-130px,-9vw,-20px);}
}

@media(max-width:1024px){
  .hero-title h1,.hero-title h1 em{font-size:3.8rem;}
  .hero-badge,.hero-desc,.hero-cta-wrap,.hero-avatars{position:relative;left:auto;right:auto;top:auto;bottom:auto;transform:none;margin:12px auto;display:flex;justify-content:center;}
  .hero-badge{display:inline-flex;}
  .hero-desc{text-align:center;max-width:400px;display:block;}
  .hero-cta-wrap{display:inline-block;}
  .aboutme-grid{grid-template-columns:1fr;}
  .proj-card{grid-template-columns:1fr;gap:24px;}
  .proj-card.reverse .proj-img{order:0;}
  .proj-card.reverse .proj-info{order:0;}
  .cert-grid{grid-template-columns:1fr;}
  .edu-item:nth-child(odd) .edu-card,.edu-item:nth-child(even) .edu-card{margin:0 auto;}
  .edu-line{display:none;}
  .p-arrows{display:none;}
}

@media(max-width:768px){
  .hero-title h1,.hero-title h1 em{font-size:2.8rem;}
  .hero-photo-center img{width:260px;height:320px;max-width:100%;}
  .p-cards{flex-direction:column;align-items:center;}
  .p-card{transform:none !important;margin-bottom:20px;width:100%;max-width:320px;}
  .p-card:nth-of-type(2){margin-bottom:20px;}
  .p-card:last-child{margin-bottom:0;}
  .contact h2{font-size:2.6rem;}
  .footer{flex-direction:column;gap:12px;text-align:center;}
  .navbar{padding:16px 24px;}
  .navbar.scrolled{padding:12px 24px;}
  .nav-center{display:none;}
  .nav-hamburger{display:flex;}
  .nav-menu{display:none;position:absolute;top:100%;right:24px;background:rgba(232,238,221,.98);backdrop-filter:blur(16px);border-radius:16px;padding:20px 24px;box-shadow:0 8px 30px rgba(0,0,0,.12);flex-direction:column;gap:16px;border:1px solid rgba(0,0,0,.04);width:auto;min-width:200px;}
  .nav-menu.active{display:flex;}
  .nav-menu a::after{display:none;}
  section,.aboutme,.projects-section,.education,.process,.certs,.contact{padding-left:24px;padding-right:24px;}
  .aboutme-stats{flex-direction:column;gap:12px;}
  .edu-item{padding:12px 0;}
  .edu-card{width:100%;margin-top:16px;}
  .edu-item::before{top:0;}
  .cert-card,.aboutme-stat,.proj-card,.edu-card{padding:20px;}
  .contact-links-row{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:10px;}
  .contact-chip{width:100%;max-width:280px;justify-content:center;}
  .trusted{padding:20px 24px;flex-direction:column;gap:16px;}
  .trusted-logos{justify-content:center;gap:16px;}
}

@media(max-width:480px){
  .hero-title h1,.hero-title h1 em{font-size:2.2rem;}
  .hero{padding:90px 20px 30px;}
  .hero-photo-center img{width:220px;height:270px;}
  .contact h2{font-size:2rem;}
}
