/* =========================
   FINAL CLEAN style.css
   ========================= */

:root{
  --bg:#070a0f;
  --panel:#0c1220;
  --text:#eaf0ff;
  --muted:#a8b3cf;
  --line:rgba(255,255,255,.08);

  --accent:#ff3b30;
  --accent2:#ff6b3d;

  --radius:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  background: radial-gradient(1200px 800px at 15% 10%, rgba(255,59,48,.12), transparent 55%),
              radial-gradient(1100px 800px at 85% 15%, rgba(255,107,61,.10), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
  overflow-x:hidden;

  /* header fixed height offset */
  padding-top: 78px;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.95}

.container{
  width:min(1120px, calc(100% - 40px));
  margin-inline:auto;
}

/* =========================
   Buttons (global)
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,59,48,.35);
  background: linear-gradient(180deg, rgba(255,59,48,.95), rgba(255,107,61,.9));
  color:#0b0f17;
  font-weight:800;
  box-shadow: 0 12px 36px rgba(255,59,48,.18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.btn:active{transform: translateY(0) scale(.98)}

.btn-ghost{
  background: rgba(255,255,255,.02);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}

.btn-sm{
  padding:9px 12px;
  border-radius:12px;
  font-weight:700;
  font-size:13px;
}

.btn-block{width:100%}

/* =========================
   Header (fixed)
========================= */
.site-header{
  position: fixed;
  top:0;
  left:0;
  right:0;
  z-index:99999;
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header.is-scrolled{
  background: rgba(7, 10, 15, 0.92);
  box-shadow: 0 10px 35px rgba(0,0,0,0.45);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  width:34px;
  height:34px;
  object-fit:contain;
  filter: drop-shadow(0 10px 30px rgba(255,59,48,.25));
}
.brand-text{
  font-weight:700;
  letter-spacing:.2px;
  font-size:14px;
  opacity:.95;
}

.nav{display:flex; align-items:center}

/* toggle button */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(15, 23, 42, 0.35);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--text);
  margin:4px auto;
  border-radius:2px;
}

/* nav list desktop */
.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap:26px;
  margin:0;
  padding:0;
}

.nav-list a{
  position: relative;
  font-size:18px;
  color:rgba(255,255,255,.78);
  font-weight:700;
  transition: color .2s ease;
}

/* underline */
.nav-list a::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -10px;
  width: 0%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,72,35,1), rgba(255,140,90,1));
  box-shadow: 0 0 18px rgba(255,72,35,.55);
  transition: width .25s ease;
}

.nav-list a:hover{ color:#fff; }
.nav-list a:hover::after{ width:100%; }

.nav-list a.active{ color:#fff; }
.nav-list a.active::after{ width:100%; }

/* Contact button special hover */
.nav-list .btn-ghost{
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
}
.nav-list .btn-ghost:hover{
  color: #fff;
  border-color: rgba(255,72,35,.9);
  background: rgba(255,72,35,.10);
  box-shadow:
    0 0 0 1px rgba(255,72,35,.6),
    0 10px 30px rgba(255,72,35,.45);
}
.nav-list .btn-ghost.active{
  border-color: rgba(255,72,35,1);
  background: rgba(255,72,35,.14);
  box-shadow:
    0 0 0 1px rgba(255,72,35,.9),
    0 12px 36px rgba(255,72,35,.55);
}

/* anchor offset */
section[id]{ scroll-margin-top: 95px; }
#top{ scroll-margin-top: 95px; }

/* =========================
   Hero
========================= */
.hero{
  position:relative;
  padding:56px 0 22px;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:stretch;
}
.kicker{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:1.6px;
  color:var(--muted);
}
h1{
  margin:0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height:1.08;
  letter-spacing:-.5px;
}
.accent{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.subhead{
  margin:0 0 16px;
  font-size:16px;
  color:var(--muted);
  max-width: 60ch;
}
.hero-bullets{
  margin:0 0 18px;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 16px;
}
.hero-bullets li{
  font-size:14px;
  color:rgba(234,240,255,.92);
}
.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 10px 0 14px;
}
.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.hero-photo{ aspect-ratio:16/10; border-bottom:1px solid var(--line); }
.hero-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-meta{ padding:16px 16px 18px; }
.name{ margin:0 0 6px; font-size:18px; }
.role{ margin:0 0 14px; color:var(--muted); font-size:13.5px; }
.mini-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.stat{
  background: rgba(0,0,0,.22);
  border:1px solid var(--line);
  border-radius: 14px;
  padding:10px;
  text-align:center;
}
.stat-num{ font-weight:900; font-size:16px; }
.stat-label{ color:var(--muted); font-size:12px; margin-top:2px; }

.hero-glow{
  position:absolute;
  inset:-200px -100px auto -100px;
  height:520px;
  background: radial-gradient(closest-side at 30% 40%, rgba(255,59,48,.22), transparent 60%),
              radial-gradient(closest-side at 70% 30%, rgba(255,107,61,.16), transparent 65%);
  filter: blur(24px);
  pointer-events:none;
}

/* =========================
   About / Skills / Projects / Contact glow wrappers
========================= */
.about-section,
.skills-section,
.projects-section,
.contact-section{
  position: relative;
  overflow: hidden;
}

.about-section::before,
.skills-section::before,
.projects-section::before,
.contact-section::before{
  content:"";
  position:absolute;
  inset:-140px -120px auto -120px;
  height:100%;
  background: radial-gradient(closest-side,
    rgba(255, 72, 35, 0.18),
    rgba(255, 72, 35, 0.08),
    transparent 72%
  );
  filter: blur(14px);
  pointer-events:none;
  z-index:0;
}

.about-section .container,
.skills-section .container,
.projects-section .container,
.contact-section .container{
  position:relative;
  z-index:1;
}

.section-label{
  color: #ff5a3c;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
}

.section-head{
  max-width: 720px;
  margin-bottom: 60px;
}
.section-head h2{
  font-size: 40px;
  margin: 15px 0;
  line-height: 1.2;
}
.section-head h2 span{ color:#ff5a3c; }
.section-head p{
  color:#cbd5e1;
  font-size:16px;
  line-height:1.7;
}

/* =========================
   About
========================= */
.about-section{ padding:100px 0; background: rgba(0,0,0,.35); }
.about-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:60px;
  align-items:center;
}
.about-content h2{ font-size:40px; margin:15px 0 20px; line-height:1.2; }
.about-content h2 span{ color:#ff5a3c; }
.about-content p{ color:#cbd5e1; font-size:16px; line-height:1.7; margin-bottom:15px; }
.about-points{ margin:25px 0; padding:0; list-style:none; }
.about-points li{ color:#e5e7eb; margin-bottom:10px; font-size:15px; }
.about-stats{ display:grid; gap:20px; }
.stat-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 14px;
  text-align:center;
  backdrop-filter: blur(10px);
}
.stat-card h3{ font-size:32px; color:#ff5a3c; margin:0 0 5px; }
.stat-card p{ color:#cbd5e1; font-size:14px; margin:0; }

/* =========================
   Skills
========================= */
.skills-section{ padding:100px 0; background: rgba(0,0,0,.35); }
.skills-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:25px;
}
.skill-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding:30px;
  border-radius:16px;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
}
.skill-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255, 90, 60, 0.6);
}
.skill-icon{ font-size:32px; margin-bottom:15px; }
.skill-card h3{ font-size:20px; margin:0 0 10px; color:#fff; }
.skill-card p{ font-size:14px; line-height:1.6; color:#cbd5e1; margin:0; }

/* =========================
   Projects (final polished)
========================= */
.projects-section{ padding:90px 0; background: rgba(0,0,0,.35); }

.projects-grid{
  margin-top: 28px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.project-card{
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.project-card:hover{
  transform: translateY(-10px);
  border-color: rgba(255,72,35,0.45);
  box-shadow: 0 28px 70px rgba(255,72,35,0.22);
}

.project-media{
  position:relative;
  height:220px;
  overflow:hidden;
}
.project-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
  transition: transform 300ms ease;
  filter: saturate(1.08) contrast(1.03);
}
.project-card:hover .project-media img{
  transform: scale(1.08);
}

.project-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding: 16px;
  opacity:0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.20), rgba(0,0,0,0.00));
}
.project-card:hover .project-overlay{
  opacity:1;
  transform: translateY(0);
}
.overlay-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.project-badges{
  position:absolute;
  top:12px;
  right:12px;
  display:flex;
  gap:8px;
  z-index:2;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease;
}
.badge:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.30); }
.badge-live{ border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.16); }
.badge-github{ border-color: rgba(148,163,184,0.35); background: rgba(148,163,184,0.14); }

.project-body{ padding:16px 16px 18px; }
.project-body h3{ margin:4px 0 8px; font-size:18px; line-height:1.25; }
.project-body p{ margin:0 0 12px; color: rgba(255,255,255,0.70); font-size:13.5px; line-height:1.55; }

.project-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.project-tags span{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.project-bottom{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
}
.project-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  color: #0b0f19;
  background: linear-gradient(135deg, rgba(255,72,35,1), rgba(255,151,80,1));
  box-shadow: 0 14px 40px rgba(255,72,35,0.22);
}
.project-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

/* =========================
   Contact
========================= */
.contact-section{ padding:110px 0; background: rgba(0,0,0,.35); }

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-top: 40px;
}

.info-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
}

.info-card h3{ font-size:18px; margin:0 0 15px; }
.contact-info p{ margin:10px 0; color:#cbd5e1; }
.contact-info a{ color:#ff5a3c; }

.contact-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:15px;
}

.link-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,90,60,0.35);
  color:#fff;
  font-size:13px;
  transition: all .25s ease;
  background: rgba(255,255,255,0.03);
}
.link-btn:hover{
  background: rgba(255, 90, 60, 0.15);
  border-color: rgba(255, 90, 60, 0.8);
}

.mini-note{
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 90, 60, 0.08);
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.6;
}

/* WhatsApp chip */
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color:#fff;
  font-weight:700;
  font-size:13px;
  transition:.2s ease;
}
.chip:hover{ transform: translateY(-1px); }
.chip-wa{
  border-color: rgba(37, 211, 102, 0.55);
  color: #25d366;
  background: rgba(37, 211, 102, 0.08);
}
.chip-wa:hover{
  background: #25d366;
  color: #0f172a;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
}

/* Contact form layout */
.contact-form{ width:100%; }
.contact-form .form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}
.contact-form .field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.contact-form label{
  font-size:13px;
  color: rgba(255,255,255,.85);
  font-weight:700;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color:#fff;
  border-radius:12px;
  padding:12px 14px;
  outline:none;
  font-size:14px;
}
.contact-form textarea{ resize:vertical; min-height:120px; }

.contact-form input::placeholder,
.contact-form textarea::placeholder{ color: rgba(255,255,255,.45); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: rgba(255, 72, 35, .55);
  box-shadow: 0 0 0 4px rgba(255, 72, 35, .12);
}

/* select options readable */
.contact-form select{
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(255, 72, 35, 0.35);
  appearance:none;
}
.contact-form select option{
  background:#0b1220;
  color:#fff;
}

/* Send button hover */
.contact-form button{
  background: linear-gradient(135deg, #ff4b2b, #ff7a45);
  color:#000;
  font-weight:800;
  border-radius:14px;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  border:none;
  padding: 14px 16px;
}
.contact-form button:hover{
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 30px rgba(255, 90, 50, 0.45),
              0 0 20px rgba(255, 90, 50, 0.35);
  cursor:pointer;
  filter: brightness(1.02);
}
.contact-form button:active{ transform: translateY(0) scale(.98); }
.contact-form button::after{ content:"→"; margin-left:8px; transition: transform .25s ease; }
.contact-form button:hover::after{ transform: translateX(4px); }

.form-note{
  margin-top:10px;
  font-size:18px;
  color: rgba(255,255,255,.55);
  text-align:center;
}

/* =========================
   Success message (GUARANTEED)
========================= */
[hidden]{ display:none !important; }

.form-success{
  display:none;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(34,197,94,.28);
  color: #b9ffd2;
  font-weight: 800;
  position: relative;
  z-index: 10;
}

/* =========================
   Footer
========================= */
.site-footer{
  position: relative;
  overflow: hidden;
  padding: 56px 0 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(8,10,14,.65), rgba(6,7,10,.92));
}
.site-footer::before{
  content:"";
  position:absolute;
  inset:-140px -120px auto -120px;
  height: 520px;
  background: radial-gradient(closest-side,
    rgba(255,72,35,.20),
    rgba(255,72,35,.08),
    transparent 70%
  );
  filter: blur(18px);
  pointer-events:none;
  z-index:0;
}
.site-footer .container{ position:relative; z-index:1; }

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
  align-items:start;
  margin-bottom: 26px;
}
.footer-brand img{ width:42px; margin-bottom:12px; }
.footer-brand p{
  color: rgba(226,232,240,.8);
  line-height: 1.7;
  max-width: 360px;
  margin-top: 14px;
  font-size:18px;
}

.site-footer h4{
  color:#fff;
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer a{
  color: rgba(226,232,240,.78);
  transition: .2s ease;
}
.site-footer a:hover{
  color:#fff;
  text-shadow: 0 0 12px rgba(255,72,35,.35);
}

.footer-links ul{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom:8px; }
.footer-links a{ font-size:18px; }

.social-links{ display:flex; flex-direction:column; gap:8px; }
.social-links a{ font-size:18px; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}
.footer-bottom p{ font-size:13px; color:#94a3b8; }
.back-top{ font-size:23px; color:#ff5a3c; }

/* =========================
   Responsive (final)
========================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-bullets{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .brand-text{ display:none; }

  .nav-toggle{ display:block; }

  /* mobile menu dropdown */
  .nav-list{
    display:none;
    position:absolute;
    top:64px;
    right:16px;
    left:16px;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius:14px;
    background: rgba(10, 14, 20, 0.92);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    z-index: 9999;
  }
  .nav-list.open{ display:flex; }
  .nav-list a{ padding:10px 10px; border-radius:12px; background: rgba(255,255,255,.02) }

  .projects-grid{ grid-template-columns: 1fr; }

  .contact-form .form-row{ grid-template-columns: 1fr; }
}
