:root{
  --bg:#0b0f1a;
  --card:#12182b;
  --accent:#4da3ff;
  --text:#e6e6e6;
  --muted:#a0a6b8;
}

/* ========== RESET ========== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* ========== TOP CONTACT BAR ========== */
.top-contact{
  position:fixed;
  top:0;
  width:100%;
  background:#0b0f1a;
  display:flex;
  justify-content:center;
  gap:18px;
  padding:6px 0;
  z-index:1100;
}

.top-contact img{
  width:22px;
  height:22px;
  filter:grayscale(100%);
  transition:.3s;
}

.top-contact img:hover{
  filter:none;
  transform:scale(1.15);
}

/* ========== NAVBAR ========== */
nav{
  position:fixed;
  top:36px;
  width:100%;
  background:rgba(11,15,26,.9);
  backdrop-filter:blur(10px);
  z-index:1000;
}

nav ul{
  display:flex;
  justify-content:center;
  gap:24px;
  padding:14px;
  list-style:none;
}

nav a{
  color:var(--muted);
  font-size:.9rem;
  text-decoration:none;
  transition:.3s;
}

nav a:hover{
  color:var(--accent);
}

/* ========== GLOBAL SECTIONS ========== */
section{
  padding:60px 20px;
}

.container{
  max-width:1100px;
  margin:auto;
}

.section-title{
  text-align:center;
  margin-bottom:35px;
}

.section-title h2{
  font-size:2rem;
}

.section-title span{
  color:var(--accent);
}

.section-divider{
  width:80px;
  height:3px;
  background:var(--accent);
  margin:15px auto 0;
  border-radius:10px;
}

/* ========== HERO ========== */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  text-align:center;
  background:linear-gradient(135deg,#0b0f1a,#12182b);
  padding-top:120px;
}

.hero .container{
  max-width:700px;
  animation:heroFade 1.2s ease forwards;
  opacity:0;
}

@keyframes heroFade{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

.profile-pic{
  width:160px;
  height:160px;
  margin:0 auto 20px;
  border-radius:50%;
  border:4px solid var(--accent);
  overflow:hidden;
  box-shadow:0 0 30px rgba(77,163,255,.6);
}

.profile-pic img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero h1{
  font-size:2.2rem;
}

.hero p{
  color:var(--muted);
}

.typing{
  color:var(--accent);
  margin-top:8px;
}

/* ========== STATS ========== */
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:20px;
}

.stat{
  background:var(--card);
  padding:20px;
  border-radius:14px;
  text-align:center;
}

.stat h3{
  color:var(--accent);
  font-size:1.8rem;
}

/* ========== ABOUT TEXT ========== */
.about{
  max-width:760px;
  margin:auto;
  text-align:justify;
  text-justify:inter-word;
  color:var(--muted);
  line-height:1.8;
}

/* ========== CARDS ========== */
.card{
  background:linear-gradient(145deg,#12182b,#0e1324);
  padding:25px;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.05);
  transition:.3s;
  text-decoration:none;
  color:var(--text);
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,.45);
}

/* ========== GRID ========== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

/* ========== SKILLS (for skills page later) ========== */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.skill span{
  font-size:.9rem;
}

.bar{
  width:100%;
  height:8px;
  background:#1f2540;
  border-radius:20px;
  margin-top:6px;
}

.fill{
  height:100%;
  width:0;
  background:var(--accent);
  border-radius:20px;
  transition:1.2s;
}

/* ========== CONTACT PAGE ========== */
.contact{
  text-align:center;
}

.contact a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:12px;
  padding:10px 16px;
  border-radius:30px;
  background:var(--card);
  color:var(--text);
  text-decoration:none;
  font-size:.95rem;
  transition:.3s;
}

.contact a:hover{
  background:var(--accent);
  color:#000;
  transform:translateY(-4px);
  box-shadow:0 10px 25px rgba(77,163,255,.4);
}

/* ========== FOOTER ========== */
footer{
  text-align:center;
  padding:20px;
  color:var(--muted);
  font-size:.85rem;
}

/* ========== REVEAL ANIMATION ========== */
.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:.8s;
}

.reveal.active{
  opacity:1;
  transform:none;
}

/* ========== RESPONSIVE ========== */
@media(max-width:600px){
  .hero h1{font-size:1.8rem;}
  .section-title h2{font-size:1.6rem;}
}
/* ========== NAVBAR ========== */
nav{
  position: fixed;       /* fixed at top */
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg); /* solid color */
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* subtle shadow */
}

nav ul{
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 10px;
  list-style: none;
  margin: 0;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

nav a{
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav a:hover{
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(77,163,255,0.3);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px){
  nav ul{
    gap: 10px;            /* reduce spacing on mobile */
    padding: 8px 5px;     /* smaller padding */
  }

  nav a{
    font-size: 0.85rem;   /* smaller text for mobile */
    padding: 5px 8px;     /* smaller clickable area */
  }
}

@media (max-width: 480px){
  nav ul{
    gap: 6px;             /* minimal gap for very small phones */
  }

  nav a{
    font-size: 0.8rem;    /* smaller text */
    padding: 4px 6px;     /* smaller buttons */
  }
}
