/* ---------- THEME ---------- */
:root{
  --bg:#0f0f0f;
  --surface:#0f0f17;
  --card:#131327;
  --card-2:#16162d;
  --text:#e9e9f4;
  --muted:#a6a6c7;
  --accent:#7c5cff;   /* purple */
  --accent-2:#c978ff; /* cyan */
  --ok:#30d158;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(124,92,255,.18), transparent 50%),
    radial-gradient(1000px 500px at -20% 10%, rgba(0,225,255,.12), transparent 60%),
    var(--bg);
  line-height:1.6;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: center; /* centers the group */
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.transparent {
  background: transparent;
  box-shadow: none;
}

.navbar.scrolled {
  background: rgba(10, 10, 16, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.navbar .brand {
  margin-right: 40px;
  animation: brandSlideIn 0.9s ease forwards;
  animation-delay: 0.1s; /* start slightly before the first link */
}

@keyframes brandSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  70% {
    opacity: 1;
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

/* Animation for navbar items */
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: fallIn 0.6s ease forwards;
}

/* Animate each link with a delay for left-to-right cascade */
.nav-links li:nth-child(1) a { animation-delay: 0.1s; }
.nav-links li:nth-child(2) a { animation-delay: 0.2s; }
.nav-links li:nth-child(3) a { animation-delay: 0.3s; }
.nav-links li:nth-child(4) a { animation-delay: 0.4s; }
.nav-links li:nth-child(5) a { animation-delay: 0.5s; }
.nav-links li:nth-child(6) a { animation-delay: 0.6s; }

/* Keyframes for "fall from above" effect */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  60% {
    opacity: 1;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.nav-links a:hover {
  opacity: 1;
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.5);
  color: var(--accent);
}

/* Mobile view remains the same */
@media (max-width: 900px) {
  .navbar {
    justify-content: space-between;
    padding: 0 16px;
  }
}

.brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none; }
.brand-dot{ width:10px; height:10px; border-radius:999px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 0 12px rgba(124,92,255,.6); }
.brand-text{ color:var(--text); font-weight:700; letter-spacing:.3px; }

.hamburger{
  display:none; position:fixed; right:12px; top:14px;
  z-index:9999; font-size:2rem; border:0; background:transparent;
  color:var(--accent); cursor:pointer; transition:transform .2s ease;
}
.hamburger:hover{ transform:scale(1.06); }

@media (max-width: 900px){
  .hamburger{ display:block; }
  .nav-links{
    position:fixed; right:-100%; top:0; height:100dvh; width:270px;
    flex-direction:column; align-items:flex-start; padding:90px 22px;
    background:rgba(12,12,18,.82); backdrop-filter: blur(16px); transition:right .25s ease;
  }
  .nav-links.open{ right:0; }
}

/* ---------- HERO ---------- */
.hero-section{ padding:120px 20px 60px; position:relative; overflow:hidden; }
.noise{
  position:absolute; inset:0; pointer-events:none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="0.06"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}
.hero-container{
  max-width:1200px; margin:0 auto; display:grid; gap:40px;
  grid-template-columns: 1.15fr .85fr; align-items:center;
}
.eyebrow{ color:var(--muted); text-transform:uppercase; letter-spacing:.18em; font-size: 16px; }
.hero-text h1{ font-size: clamp(32px, 4vw, 54px); line-height:1.12; margin:.3rem 0 1rem;   animation: slideInLeft 1s ease forwards;
  animation-delay: 0.1s; }
.grad{ background: linear-gradient(90deg,var(--accent),var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lead{ color:#cfd0ea; max-width:60ch; }
.hero-cta{ margin:22px 0 10px; display:flex; gap:12px; flex-wrap:wrap; }

.btn{
  --pad: 12px 18px;
  display:inline-flex; gap:8px; align-items:center; justify-content:center;
  padding:var(--pad); border-radius:12px; border:1px solid transparent;
  text-decoration:none; color:var(--text); cursor:pointer; font-weight:600;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn.primary{ background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#0b0b12; }
.btn.primary:hover{ transform:translateY(-2px); }
.btn.ghost{ border-color:#2c2c44; background:#151525; }
.btn.ghost:hover{ border-color:var(--accent); }

.socials{ display:flex; gap:14px; margin-top:16px; }
.socials a{ font-size:1.2rem; color:var(--muted); }
.socials a:hover{ color:var(--text); }

.hero-image{
  position:relative; justify-self:end; width:min(420px, 85%);
  aspect-ratio: 4/5; border-radius:26px; background:linear-gradient(145deg,#0f0f19,#16162a);
  display:grid; place-items:center; box-shadow: var(--shadow);
  border:1px solid #252545; overflow:hidden;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.1s;
}
.hero-image img{
  width:100%; height:100%; object-fit:cover;
  border-radius:24px; filter:saturate(1.05) contrast(1.02);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  80% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.ring{ position:absolute; inset:-16%; border-radius:999px; pointer-events:none; }
.ring-1{ border:2px solid rgba(124,92,255,.28); }
.ring-2{ border:2px dashed rgba(0,225,255,.25); transform: rotate(8deg); }

@media (max-width: 900px){
  .hero-container{ grid-template-columns: 1fr; }
  .hero-image{ justify-self:center; order:-1; }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  70% {
    opacity: 1;
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- SECTIONS ---------- */
section{ padding:80px 20px; }
.section-header{ text-align:center; margin:0 auto 28px; max-width:850px; }
.section-header h2{ font-size: clamp(26px, 3.2vw, 36px); margin:0 0 6px; }
.section-header p{ color:var(--muted); }

/* --- Companies Bar --- */
.companies-bar {
  text-align: center;
  padding: 1rem 1rem 2rem;
  background: transparent;
  background-color: #4b3895;
}

.companies-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 1.8rem;
  letter-spacing: 0.5px;
}

.companies-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.company-logo {
  height: 50px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.8;
  animation: fallIn 0.6s ease forwards;
}

.company-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .company-logo {
    height: 40px;
  }
}


/* About */
.about-container{ max-width:1000px; margin:0 auto; }

.side-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
  flex-wrap: wrap;
}

/* --- Images Section --- */
.about-images {
  position: relative;
  flex: 1 1 350px;
  min-width: 280px;
}

.about-images img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px #7d5cff3f;
  transition: transform 0.4s ease;
}

.about-images img:hover {
  transform: scale(1.03);
}

.img-large img {
  height: 420px;
  width: 100%;
}

.img-small {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 160px;

}

.img-small img {
  height: 160px;
}

/* --- Text Card --- */
.about-card {
  flex: 1 1 450px;
  background: #1e1e1e;
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  line-height: 1.7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.about-card p + p {
  margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .side-layout {
    flex-direction: column;
  }

  .about-images {
    order: 1;
    margin-bottom: 2rem;
  }

  .img-small {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 120px;
  }
}
s
.about-card{
  background:linear-gradient(180deg,#131327,#121222);
  border:1px solid #27274a; box-shadow: var(--shadow);
  padding:28px; border-radius:16px; color:#dfe0fb;
}

/* Skills */
.skills-grid{
  max-width:1100px; margin:28px auto 0;
  display:grid; gap:14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.skill{
  background:var(--card); border:1px solid #2a2a4a; border-radius:14px;
  padding:16px 18px; display:flex; align-items:center; gap:10px; font-weight:600;
}
.skill i{ font-size:1.2rem; color:var(--accent); }
.skills-paragraph{ color: var(--muted); margin-top: 35px; text-align: center; }

/* Projects */
/* Projects Grid Layout */
.projects-grid {
  max-width: 1100px;
  margin: 28px auto 0;
  display: grid;
  gap: 24px; /* Increased gap for better breathing room */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly wider cards */
}

/* Card Styling */
.project-card {
  background: #1a1a2e; /* Slightly lighter than pure black for visibility */
  border: 1px solid #2f2f4a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensures footer stays at bottom */
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Hover Effects - Makes it "Pop" */
.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(124, 92, 255, 0.5); /* Purple glow border */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Thumbnail Area */
.p-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #2f2f4a;
}

.p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .p-thumb img {
  transform: scale(1.08); /* Subtle zoom on hover */
}

/* Card Body Content */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Fills remaining space */
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #fff;
}

.project-card p {
  color: #b0b0d0; /* Better contrast text */
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* NEW: Tech Stack Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto; /* Pushes this section to the bottom of the text area */
  margin-bottom: 20px;
}

.tech-stack span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a5a5ff; /* Light purple text */
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Actions Buttons */
.actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid #2f2f4a; /* Visual separation */
  padding-top: 16px;
}

.btn.tiny {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
  background: #7c5cff;
  color: white;
}

.btn.tiny:hover {
  background: #6b4ce6;
}

.btn.tiny.ghost {
  background: transparent;
  border: 1px solid #4a4a6a;
  color: #d0d0e6;
}

.btn.tiny.ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* "In Progress" Badge Style */
.project-card .badge.progress {
  background: rgba(255, 179, 0, 0.15); /* Amber/Yellow tint */
  border-radius: 20px;
  border-color: rgba(255, 179, 0, 0.4);
  color: #ffb300; /* Amber text */
  font-weight: 600;
  display: flex;
  width: 110px;
  align-items: center;
  gap: 6px;
}

/* Optional: Add a tiny loading animation dot before the text */
.project-card .badge.progress::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ffb300;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Experience */
.timeline{ max-width:900px; margin: 14px auto 0; position:relative; }
.timeline::before{
  content:""; position:absolute; left: 16px; top: 0; bottom: 0; width:2px; background:#2a2a49;
}
.t-item{ display:flex; gap:16px; padding-left: 32px; margin: 18px 0; position:relative; }
.t-dot{
  width:14px; height:14px; border-radius:999px; background:linear-gradient(135deg,var(--accent),var(--accent-2));
  position:absolute; left:9px; top: 8px; box-shadow:0 0 14px rgba(124,92,255,.6);
}
.t-content h4{ margin:0 0 4px; }
.t-content .muted{ color:var(--muted); font-size:.9rem; }
.t-content p{ margin:.3rem 0 0; color:#cfd0ea; }

/* Contact */
.contact-wrap{
  max-width:1100px; margin:28px auto 0; display:grid; gap:20px; grid-template-columns: 1.1fr .9fr;
}
.contact-form{
  background:var(--card); border:1px solid #2a2a4a; border-radius:16px; padding:20px;
  display:grid; gap:12px;
}
.contact-form input, .contact-form textarea{
  width:100%; background:#0f0f19; border:1px solid #2a2a4a; color:var(--text);
  border-radius:10px; padding:12px 14px; font:inherit;
}
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color: var(--accent); }
.contact-form .status{ min-height: 22px; color:var(--muted); }

.contact-cards{ display:grid; gap:12px; }
.contact-card{
  display:flex; gap:12px; align-items:center; padding:14px;
  background:var(--card-2); border:1px solid #2a2a4a; border-radius:14px; text-decoration:none; color:var(--text);
}
.contact-card i{ color:var(--accent); }
.contact-card:hover{ border-color: var(--accent); }

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

/* Footer */
/* --- Pro Footer --- */
.footer.pro{
  background:#0f0f19;
  color:var(--muted);
  padding:40px 20px 18px;
  border-top:1px solid #242442;
  font-size:0.95rem;
}

.f-wrap{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  gap:34px;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.f-logo{
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  font-size:1.3rem;
  margin-bottom:6px;
}
.f-logo span{ color:var(--text); }
.f-logo .dot{
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.f-brand p{ margin:6px 0 12px; color:#c9c9e3; max-width:32ch; }
.f-socials{ display:flex; gap:12px; }
.f-socials a{ color:var(--text); font-size:1.2rem; opacity:.9; }
.f-socials a:hover{ color:var(--accent); transform:translateY(-2px); transition:.2s; }

.f-col h4{
  margin:0 0 10px;
  color:var(--text);
  font-weight:700;
}
.f-col ul{ list-style:none; padding:0; margin:0; }
.f-col li{ margin:8px 0; }
.f-col a{
  color:var(--text);
  text-decoration:none;
  opacity:.85;
}
.f-col a:hover{
  opacity:1;
  text-shadow:0 0 8px rgba(124,92,255,.55);
}

.f-divider{
  max-width:1100px;
  margin:24px auto 12px;
  height:1px;
  background:#242442;
}

.f-bottom{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:.9rem;
}
.built .heart{
  color:var(--accent);
  filter: drop-shadow(0 0 6px rgba(124,92,255,.6));
}

/* Responsive */
@media (max-width:1000px){
  .f-wrap{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:600px){
  .f-wrap{ grid-template-columns: 1fr; }
  .f-bottom{ flex-direction:column; text-align:center; }
}


/* Scroll fade */
.scroll-fade{ opacity:0; transform: translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.scroll-fade.visible{ opacity:1; transform: translateY(0); }
