/* =========================================
   GLOBAL VARIABLES
========================================= */
:root{
  --bg:#07080a;
  --panel:#0f1316;
  --muted:#9aa6b2;
  --accent:#6a5cff;
  --accent-2:#00e6a8;
  --text:#e6eef3;
  --radius:12px;
  --transition:0.25s ease;
  font-family: "Inter", system-ui, sans-serif;
}

/* =========================================
   RESET
========================================= */
*{box-sizing:border-box; margin:0; padding:0;}
body{
  background: linear-gradient(180deg,#060709,#0b0f14);
  color:var(--text);
  overflow-x:hidden;
}
img{max-width:100%; display:block;}

/* =========================================
   LAYOUT
========================================= */
.site{
  display:flex;
  min-height:100vh;
}

/* =========================================
   SIDEBAR
========================================= */
.sidebar{
  width:300px;
  min-width:300px;
  padding:30px 24px;
  border-right:1px solid rgba(255,255,255,0.05);
  background:rgba(255,255,255,0.01);
  display:flex;
  flex-direction:column;
  gap:22px;
  position:relative;
}

.profile-photo img{
  width:110px;
  height:110px;
  border-radius:12px;
  object-fit:cover;
  margin-bottom:12px;
  box-shadow:0 12px 24px rgba(0,0,0,0.45);
}

.top-contact p{
  margin:4px 0;
  font-size:13px;
  color:var(--muted);
}

.top-contact a{
  color:var(--accent-2);
  text-decoration:none;
}

.full-name{
  font-size:22px;
  margin-bottom:2px;
}

.tag{
  font-size:13px;
  color:var(--muted);
}

/* DOWNLOAD BUTTON (TOP) */
.btn-download{
  display:block;
  width:100%;
  text-align:center;
  padding:12px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  background:linear-gradient(90deg,var(--accent-2),var(--accent));
  color:#021;
  margin:10px 0;
  box-shadow:0 12px 28px rgba(106,92,255,0.15);
  transition:var(--transition);
}
.btn-download:hover{
  transform:translateY(-3px);
}

/* NAVIGATION */
.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

.sidebar-nav .nav-link{
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none;
  color:var(--muted);
  transition:var(--transition);
  font-weight:500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active{
  background:rgba(106,92,255,0.1);
  color:var(--accent-2);
}

.socials{
  margin-top:auto;
}
.socials a{
  margin-right:8px;
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
}

/* MOBILE MENU BUTTON */
.menu-btn{
  display:none;
  position:absolute;
  top:20px;
  right:-50px;
  width:42px;
  height:42px;
  background:#0b0f14;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  cursor:pointer;
}
.menu-btn span{
  width:18px;
  height:2px;
  background:var(--muted);
  margin:3px 0;
  transition:0.3s;
}
.menu-btn.open span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.menu-btn.open span:nth-child(2){
  opacity:0;
}
.menu-btn.open span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

@media(max-width:980px){
  .sidebar{
    position:fixed;
    left:-320px;
    top:0;
    height:100vh;
    background:#060709;
    z-index:1000;
    transition:left 0.3s ease;
  }
  .sidebar.open{
    left:0;
  }

  .menu-btn{
    display:flex;
  }

  .site{
    flex-direction:column;
  }
}

/* =========================================
   MAIN CONTENT
========================================= */
.main{
  flex:1;
  padding:40px;
  overflow-y:auto;
}

.section{
  margin-bottom:48px;
}

.section-title{
  font-size:20px;
  color:var(--muted);
  text-transform:uppercase;
  margin-bottom:12px;
  letter-spacing:1px;
}

.lead{
  color:var(--muted);
  line-height:1.6;
  max-width:780px;
  font-size:16px;
}

/* =========================================
   HERO
========================================= */
.hero-inner{
  display:grid;
  grid-template-columns:1fr 330px;
  gap:30px;
  align-items:start;
}

@media(max-width:900px){
  .hero-inner{
    grid-template-columns:1fr;
  }
}

.hello{
  color:var(--muted);
  font-size:16px;
}

.name{
  font-size:40px;
  margin:6px 0;
}

.role{
  font-size:15px;
  color:var(--muted);
  margin-bottom:20px;
}

.btn{
  padding:10px 14px;
  text-decoration:none;
  border-radius:10px;
  font-weight:700;
  display:inline-block;
  transition:var(--transition);
}

.btn.primary{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#021;
}

.btn.ghost{
  border:1px solid rgba(255,255,255,0.1);
  color:var(--muted);
}

.hero-actions{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.quick-contact{
  list-style:none;
  display:flex;
  gap:18px;
  color:var(--muted);
  font-size:14px;
}

/* Tech Code Card */
.sketch-card{
  background:var(--panel);
  border-radius:12px;
  padding:16px;
  border:1px solid rgba(255,255,255,0.05);
  box-shadow:0 8px 20px rgba(0,0,0,0.5);
}

.sketch-title{
  color:var(--accent-2);
  font-weight:700;
  margin-bottom:8px;
  font-size:14px;
}

.sketch-code{
  font-family:monospace;
  font-size:13px;
  white-space:pre-wrap;
  color:#c4e8e0;
  line-height:1.5;
}

/* =========================================
   SKILLS SECTION
========================================= */
.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.card{
  background:var(--panel);
  padding:18px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
}

.card h4{
  color:var(--accent);
  margin-bottom:10px;
}

/* =========================================
   LARAVEL EXPERTISE
========================================= */
.expertise-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.expertise-card{
  background:rgba(255,255,255,0.02);
  border-radius:12px;
  padding:18px;
  border:1px solid rgba(255,255,255,0.04);
}

.expertise-card h4{
  color:var(--accent-2);
  margin-bottom:8px;
}

.expertise-card p{
  color:var(--muted);
  margin-bottom:10px;
}

/* =========================================
   TIMELINE (EXPERIENCE)
========================================= */
.timeline{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.timeline-item{
  background:var(--panel);
  padding:16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.04);
}

.timeline-item .time{
  color:var(--muted);
  font-size:13px;
  margin-bottom:4px;
}

/* =========================================
   PROJECTS
========================================= */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}

.project{
  background:var(--panel);
  padding:16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.04);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.project a{
  color:var(--accent-2);
  font-weight:700;
  text-decoration:none;
}

/* =========================================
   CONTACT
========================================= */
.contact-actions{
  display:flex;
  gap:12px;
  margin-top:10px;
}

/* =========================================
   FOOTER
========================================= */
.footer{
  margin-top:30px;
  padding-top:16px;
  color:var(--muted);
  border-top:1px solid rgba(255,255,255,0.05);
  font-size:14px;
  text-align:center;
}

/* =========================================
   ANIMATIONS (Reveal)
========================================= */
section, .card, .expertise-card, .project, .timeline-item{
  opacity:0;
  transform:translateY(20px);
  transition:0.6s ease;
}

.reveal{
  opacity:1;
  transform:translateY(0);
}
