
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #ff9500;
  --text:  #eaeaea;
  --muted: #bbbbbb;
  --bg:    #0e0e10;
  --card:  #17171a;
  --edge:  #232328;
  --btn:   #1f1c1c;
}
html, body { height: 100%; }
body {
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}  

/* Background layers */
#particles { position: fixed; inset:0; z-index:-2; }
.aurora-layer {
  position: fixed; inset:-20% -10% -10% -10%;
  z-index:-1; pointer-events:none;
  background:
    radial-gradient(40% 35% at 20% 20%, rgba(255,79,129,.12), transparent 60%),
    radial-gradient(35% 30% at 80% 30%, rgba(79,157,255,.10), transparent 60%),
    radial-gradient(45% 40% at 50% 80%, rgba(166,79,255,.10), transparent 60%);
  filter: blur(40px) saturate(120%);
  animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4%) scale(1.05); }
}

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,16,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge);
}
nav {
  max-width: 1200px; margin: 0 auto; padding: 17px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: "Figtree", sans-serif;
  font-weight: normal;
  font-size: 2.4rem;
  letter-spacing: 1px;
  user-select: none;
}
.ashish {
  color: var(--brand);
  display: inline-block;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), text-shadow .35s, filter .35s;
}
.ashish:hover {
  transform: translateY(-3px) rotate(-1deg) scale(1.05);
  text-shadow: 0 0 18px rgba(255,79,129,.6);
  filter: drop-shadow(0 6px 12px rgba(255,79,129,.2));
}
.gupta { color: #fff; opacity: .95; }

.nav-links { list-style:none; display:flex; gap:28px; align-items:center; }
.nav-links a { text-decoration:none; color:var(--text); font-weight:normal; letter-spacing: .5px; transition: color .25s ease; }
.nav-links a:hover { color:var(--brand); }

.resume-btn {
  background: var(--btn); color:#fff; padding:10px 16px; border-radius:8px; font-weight:normal; text-decoration:none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.1);
}
.resume-btn:hover {
  background: var(--brand); color:#0b0b0c;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,79,129,.3);
}

/* Mobile nav */
.nav-toggle { display:none; background:none; border:none; }
.nav-toggle span { display:block; width:24px; height:2px; background:#ddd; margin:5px 0; }

/*  Hero  */
.hero {
  min-height: 100vh; /* full screen hero */
  width: 100%;       /* take full width of screen */
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 16px 40px;

  background: url("photo.png") center center / cover no-repeat;
  position: relative;
  color: white; 
}

@media (max-width: 768px) {
  .hero {
    background-size: contain;   /* make sure whole image fits */
    background-repeat: no-repeat;
    background-position: top center;
    background-color: #000;     /* fallback color */
  }
}


.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55); /* adjustable darkness */
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.wavy-text {
  font-family: "Figtree", sans-serif;
  font-weight: normal;
  font-size: clamp(2.7rem, 10vw, 6rem);
  background: linear-gradient(90deg, var(--brand), #ff8fb0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gentleWave 2.5s ease-in-out infinite;
  position: relative;
}

.wavy-text::after {
  content: "Ashish Gupta"; /* same as text */
  position: absolute;
  left: 0; top: 0;
  color: rgba(0,0,0,0.5); /* shadow behind */
  z-index: -1;
}
@keyframes gentleWave {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-3px) rotate(-.5deg); }
}
.slide-in { margin-top:6px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.iam { color:var(--muted); font-weight:normal; letter-spacing:.3px; }
.dropping-texts { position:relative; height:42px; display:grid; place-items:center; font-weight:normal; font-size:clamp(1.2rem,3.2vw,2rem); }
.dropping-texts > div { position:absolute; opacity: 0.3;; transform:translateY(20px); will-change:transform,opacity; }

/* Rotating text colors */
.dropping-texts > div:nth-child(1){ color: rgb(160, 80, 80); }
.dropping-texts > div:nth-child(2){ color: #ff9500; }
.dropping-texts > div:nth-child(3){ color: rgb(160, 80, 80); }
.dropping-texts > div:nth-child(4){ color: #ff9500; }

/* Sections */
section { max-width:1100px; margin:0 auto; padding:60px 18px; }
section h2 {
  color:var(--brand); font-family:"Figtree",sans-serif; font-weight:normal; font-size:clamp(1.6rem,3.2vw,2.2rem); letter-spacing:.3px; margin-bottom:20px;
}

/* Aurora text for About */
.aurora-text {
  text-align:center; font-size:clamp(1.05rem,2.5vw,1.25rem);
  background: linear-gradient(270deg, var(--brand), #4f9dff, #a64fff);
  background-size:600% 600%; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  animation: auroraText 3s ease infinite;
}
@keyframes auroraText { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }

/* Experience */
#experience {
  display: flex;
  flex-direction: column;
  gap: 20px;  
  margin-bottom: 10px; 
}

.exp-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(31, 28, 28, 0.35);
}

.exp-card img.circular-logo {
  border-radius: 50%;
  width: 110px;
  height: 110px;
  object-fit: cover;
}


/* Grid - Skills & Learning with 3D hover */
.grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,110px)); justify-content:center; gap:24px; padding-top: 8px;
}
.grid img {
  width:100%; height:100%; border-radius:12px; padding:12px; border:1px solid var(--edge);
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.35));
  transform:translateZ(0); transition: transform .35s cubic-bezier(.22,.61,.36,1), filter .35s;
}
.grid img:hover {
  transform: rotateY(15deg) rotateX(8deg) scale(1.06);
  filter: drop-shadow(0 12px 28px rgba(255,79,129,.2));
}

/* Projects 3D hover */
.projects-grid { display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.project-card {
  background:var(--card); border:1px solid var(--edge); border-radius:14px; padding:14px; display:flex; flex-direction:column; align-items:center; text-align:center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.project-card:hover {
  transform: rotateY(6deg) rotateX(3deg) translateY(-6px);
  box-shadow:0 18px 50px rgba(0,0,0,.35);
}
.project-card img { width:auto; max-height:110px; margin-bottom:10px; }
.project-card p { color:var(--muted); text-decoration:none; margin-bottom:8px; }
.btn {
  display:inline-block; padding:10px 14px; border-radius:10px; background:var(--btn); color:#fff; text-decoration:none; font-weight:normal;
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.08);
}
.btn:hover { background:var(--brand); color:#0b0b0c; transform:translateY(-1px); box-shadow:0 10px 26px rgba(255,79,129,.28); }

/* Contact Form */
.contact-form { width:min(560px,92%); margin:0 auto; display:grid; gap:12px; }
.contact-form input, .contact-form textarea {
  background:#111216; color:var(--text); border:1px solid var(--edge); border-radius:10px; padding:12px 14px; outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color:var(--brand); box-shadow:0 0 0 4px rgba(255,79,129,.08);
}

/* Footer */
footer {
  border-top:1px solid var(--edge); background:rgba(14,14,16,.7); backdrop-filter:blur(8px); margin-top:40px; padding:30px 16px; text-align:center;
}
.social-footer { margin:10px 0 6px; display:flex; justify-content:center; gap:16px; }
.social-footer a img {
  width:34px; height:34px; transition: transform .35s ease, filter .35s ease; filter:grayscale(.1) brightness(1.1);
}
.social-footer a:hover img { transform:translateY(-4px) scale(1.1); filter:none drop-shadow(0 12px 24px rgba(255,79,129,.25)); }
.copy { color:#8a8a8a; margin-top:8px; }

/* Reveal animation */
.reveal { opacity:0; transform:translateY(24px); }

@media(max-width:880px){
  .nav-toggle{display:block;}
  .nav-links{
    position:absolute; right:16px; top:64px; background:#121215; border:1px solid var(--edge); border-radius:12px; padding:12px;
    display:none; flex-direction:column; gap:12px;
  }
  .nav-links.show{display:flex;}
  .exp-card{grid-template-columns:1fr; text-align:left;}
  .grid{grid-template-columns:repeat(2,minmax(70px,120px));}
}
