/* ================================================
   CSS VARIABLES
   Ek jagah colors define karo, poori site pe apply
   ================================================ */
:root {
  --bg:      #0d0f10;       /* Main dark background */
  --bg2:     #111416;       /* Sections ka slightly light background */
  --accent:  #00e5c0;       /* Cyan color - signature highlight */
  --accent2: #4facfe;       /* Blue accent */
  --text:    #e8eaed;       /* Main text - off white */
  --muted:   #6b7280;       /* Gray text - less important */
  --card:    #161b1d;       /* Card ka background */
  --border:  #1f2a2d;       /* Subtle border color */
  --font-head: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ================================================
   RESET - Browser ki default styles hatao
   ================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; } /* Smooth scrolling enable */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden; /* Side scroll band */
}

/* Custom scrollbar - browser wala ugly hota hai */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ================================================
   NAVBAR
   ================================================ */
nav {
  position: fixed;           /* Scroll pe bhi upar tikaa rahega */
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(13,15,16,0.85); /* Transparent dark background */
  backdrop-filter: blur(14px);     /* Glass blur effect */
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.logo span { color: var(--accent); } /* "/" cyan color mein */

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ================================================
   HERO SECTION
   ================================================ */
#hero {
  min-height: 100vh;   /* Puri screen height */
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  gap: 80px;
  position: relative;
  overflow: hidden;
}

/* Background glow circle - decorative */
#hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,192,0.06) 0%, transparent 70%);
  right: -100px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Animated box (left side) */
.avatar-box {
  width: 220px; height: 220px;
  border: 2px solid var(--accent);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  animation: floatBox 4s ease-in-out infinite; /* Upar neeche float karega */
}

@keyframes floatBox {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Corner decorations on avatar box */
.avatar-box::before,
.avatar-box::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--accent2);
  border-style: solid;
}
.avatar-box::before {
  top: -8px; left: -8px;
  border-width: 2px 0 0 2px; /* Top-left corner */
}
.avatar-box::after {
  bottom: -8px; right: -8px;
  border-width: 0 2px 2px 0; /* Bottom-right corner */
}

.code-tag {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

/* Hero text */
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem); /* Responsive font */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.dot { color: var(--accent); } /* "." cyan mein */

.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Tech icons */
.tech-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}
.tech-icons i {
  font-size: 1.6rem;
  transition: color 0.2s, transform 0.2s;
}
.tech-icons i:hover {
  color: var(--accent);
  transform: translateY(-4px); /* Jump up on hover */
}
/* Icon ke apne colors */
.fa-html5    { color: #e34f26; }
.fa-css3-alt { color: #264de4; }
.fa-js       { color: #f7df1e; }
.fa-git-alt  { color: #f05032; }
.fa-figma    { color: #a259ff; }

/* Buttons */
.hero-btns { display: flex; gap: 16px; }

.btn-primary {
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.btn-primary:hover {
  background: #00ffcf;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,229,192,0.3);
}

.btn-secondary {
  padding: 12px 28px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: rgba(0,229,192,0.08);
  transform: translateY(-2px);
}

/* ================================================
   MARQUEE
   ================================================ */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg2);
}

.marquee-track {
  display: flex;
  animation: marquee 25s linear infinite; /* Endless scroll */
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; } /* Hover pe ruk jao */

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Half tak jao, loop karo */
}

.marquee-item {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
}
.marquee-item.sep { color: var(--accent); opacity: 0.6; }

/* ================================================
   SECTIONS - Common styles
   ================================================ */
section { padding: 100px 60px; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.about-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0.7;
  position: relative;
}
.about-img::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.about-text .role {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-text p    { color: var(--muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); font-weight: 700; }

/* ================================================
   EXPERIENCE SECTION
   ================================================ */
#experience { background: var(--bg); }

.exp-list {
  max-width: 800px;
  margin: 0 auto;
}

.exp-item {
  display: grid;
  grid-template-columns: 170px 1fr; /* Date left, content right */
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding 0.2s;
}
.exp-item:hover {
  background: rgba(0,229,192,0.02);
  padding-left: 10px;
}

.exp-date {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  padding-top: 4px;
}

.exp-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.exp-title i { font-size: 0.8rem; color: var(--accent); opacity: 0.7; }

.exp-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.8; }

/* ================================================
   FORMATION SECTION
   ================================================ */
#formation { background: var(--bg2); }

.formation-list {
  max-width: 800px;
  margin: 0 auto;
}

.formation-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
}
.formation-item:hover {
  background: var(--card);
  transform: translateX(6px); /* Hover pe right slide */
}

.formation-icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
/* Icon background colors */
.icon-figma { background: #1e1b2e; color: #a259ff; }
.icon-html  { background: #1e1612; color: #e34f26; }
.icon-css   { background: #121b2e; color: #264de4; }
.icon-js    { background: #1f1d0e; color: #f7df1e; }

.formation-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; flex: 1; }

.formation-meta { text-align: right; }
.formation-platform { font-size: 0.75rem; color: var(--accent); font-weight: 700; display: block; }
.formation-hours    { font-size: 0.75rem; color: var(--muted); display: block; }

/* ================================================
   PROJECTS SECTION
   ================================================ */
#projects { background: var(--bg); }

.projects-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
/* Hover glow overlay */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,192,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,229,192,0.08);
}

.project-num {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  font-size: 0.68rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.project-links { display: flex; gap: 16px; }
.project-links a {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.project-links a:hover { opacity: 0.7; }

/* ================================================
   CONTACT SECTION
   ================================================ */
#contact { background: var(--bg2); text-align: center; }

.contact-sub { color: var(--muted); margin-bottom: 48px; font-size: 0.85rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  transition: all 0.25s ease;
}
.contact-item:hover {
  border-color: var(--accent);
  background: rgba(0,229,192,0.04);
  transform: translateY(-2px);
}

.contact-left { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.contact-left i { color: var(--accent); font-size: 1rem; }

.contact-arrow { color: var(--muted); font-size: 0.8rem; transition: transform 0.2s, color 0.2s; }
.contact-item:hover .contact-arrow {
  color: var(--accent);
  transform: translate(3px, -3px); /* Diagonal arrow movement */
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  text-align: center;
  padding: 28px 60px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
}
footer span { color: var(--accent); }

/* ================================================
   SCROLL REVEAL ANIMATION
   JS se .visible class add hogi, tab yeh animate karega
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays - elements ek ek karke aayenge */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ================================================
   MOBILE RESPONSIVE - Chhoti screen ke liye
   ================================================ */
@media (max-width: 768px) {
  nav          { padding: 16px 24px; }
  .nav-links   { display: none; }   /* Mobile mein links hide */
  
  #hero {
    flex-direction: column;         /* Vertical stack ho jao */
    padding: 100px 24px 60px;
    gap: 40px;
    text-align: center;
  }
  
  .about-grid  { grid-template-columns: 1fr; }
  .exp-item    { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  section      { padding: 70px 24px; }
}
.about-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.avatar-box{
  width: 320px;
  height: 320px;
  border-radius: 30px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-box img{
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
}