/* =============================================
   Aditya Gangurde — Portfolio Stylesheet
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050810;
  --bg2: #080d1a;
  --surface: #111827;
  --border: rgba(99,179,237,0.12);
  --accent: #63b3ed;
  --accent3: #38bdf8;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted2: #c4cdd8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR (desktop only) ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, background 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(99,179,237,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Touch cursor dot — mobile sliding pointer */
/* .touch-cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.2s, transform 0.08s linear;
  display: none;
}
.touch-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(99,179,237,0.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: opacity 0.2s, left 0.12s ease, top 0.12s ease;
  display: none;
} */
 
/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  transition: width 0.1s linear;
  pointer-events: none;
}
/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(5,8,16,0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  color: var(--muted2); text-decoration: none; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
/* ── HERO VISUAL (right side) ── */
  .hero-visual {
    position: absolute; right: 4rem; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.6rem;
    opacity: 0.6; pointer-events: none;
    animation: fadeUp 0.7s 0.4s ease both;
  }
  .hero-visual .code-line {
    font-family: 'DM Mono', monospace; font-size: 0.75rem;
    color: var(--muted); white-space: nowrap;
  }
  .hero-visual .code-line .kw  { color: #a78bfa; }
  .hero-visual .code-line .fn  { color: var(--accent); }
  .hero-visual .code-line .str { color: #34d399; }
  .hero-visual .code-line .cm  { color: #475569; }

  @media (max-width: 1100px) {
    .hero-visual { display: none; }
  }
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,179,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
  top: -100px; right: -100px; border-radius: 50%; pointer-events: none;
}
.hero-glow2 {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,179,237,0.05) 0%, transparent 70%);
  bottom: 0; left: -80px; border-radius: 50%; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(99,179,237,0.3);
  padding: 0.35rem 0.9rem; border-radius: 100px;
  background: rgba(99,179,237,0.06); margin-bottom: 2rem;
  animation: fadeUp 0.7s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.hero-name {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95; letter-spacing: -0.01em; color: #f1f5f9;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-name .accent-line {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tagline {
  font-size: 1.05rem; color: #b8c8d8; font-weight: 300;
  margin-top: 1.5rem; max-width: 540px; line-height: 1.75;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-cta {
  display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #050810;
  font-family: 'DM Mono', monospace; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; padding: 0.8rem 1.8rem; border-radius: 6px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(99,179,237,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 45px rgba(99,179,237,0.4); }
.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 0.8rem;
  letter-spacing: 0.06em; padding: 0.8rem 1.8rem; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 4rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
  animation: fadeUp 0.7s 0.5s ease both;
}
.scroll-line { width: 40px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; left: -100%; top: 0;
  width: 100%; height: 1px; background: var(--accent);
  animation: scrollSlide 2s ease infinite;
}

/* ── SECTIONS ── */
section { padding: 6rem 4rem; position: relative; }
.section-label {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em;
  color: #f1f5f9; margin-bottom: 1rem;
}
.section-divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 3rem;
}

/* ── ABOUT ── */
/* Profile Photo */
.about-right { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.profile-photo-wrap {
  position: relative; width: 260px; height: 260px; flex-shrink: 0;
}
.profile-photo-wrap::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a78bfa, var(--accent));
  animation: rotateBorder 4s linear infinite;
  z-index: 0;
}
.profile-photo-wrap::after {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(99,179,237,0.15);
  z-index: 0;
}
@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.profile-photo {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg2);
  display: block;
}
.profile-placeholder {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--bg2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; overflow: hidden;
}
.profile-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 40% 35%, rgba(99,179,237,0.12) 0%, transparent 65%);
}
.profile-placeholder-icon {
  font-size: 4rem; line-height: 1; position: relative; z-index: 1; opacity: 0.6;
}
.profile-placeholder-text {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; z-index: 1;
}
.profile-glow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 40px;
  background: radial-gradient(ellipse, rgba(99,179,237,0.25) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    display: flex;
    flex-direction: column;
  }
  .about-right {
    order: -1;  /* moves photo+stats above the text on mobile */
  }
}
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text p { color: var(--muted2); line-height: 1.85; font-size: 1rem; margin-bottom: 1.2rem; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: rgba(99,179,237,0.35); transform: translateY(-3px); }
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,179,237,0.04) 0%, transparent 60%); pointer-events: none;
}
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted2); margin-top: 0.3rem; font-family: 'DM Mono', monospace; }

/* ── SKILLS ── */
#skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.8rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.skill-group:hover { border-color: rgba(99,179,237,0.4); transform: translateY(-4px); }
.skill-group::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.skill-group:hover::after { transform: scaleX(1); }
.skill-group-icon { font-size: 1.4rem; margin-bottom: 0.8rem; display: block; }
.skill-group-title {
  font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700;
  color: #7dd3fc; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: 'DM Mono', monospace; font-size: 0.75rem; padding: 0.35rem 0.85rem;
  background: rgba(99,179,237,0.15); border: 1px solid rgba(99,179,237,0.35);
  color: #c8e6fa; border-radius: 4px; transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.skill-group:hover .tag { background: rgba(99,179,237,0.25); color: #fff; border-color: rgba(99,179,237,0.6); }

/* ── PROJECTS ── */
#projects { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 2rem; }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column; gap: 1rem;
}
.project-card:hover { border-color: rgba(99,179,237,0.45); transform: translateY(-6px); }
.project-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(99,179,237,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.project-number { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--muted2); letter-spacing: 0.12em; }
.project-title { font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 700; color: #f1f5f9; letter-spacing: -0.01em; line-height: 1.2; }
.project-desc { color: #b8c8d8; line-height: 1.75; font-size: 0.95rem; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tech-tag {
  font-family: 'DM Mono', monospace; font-size: 0.68rem; padding: 0.25rem 0.65rem;
  background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.2);
  color: var(--accent3); border-radius: 4px;
}
.project-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.project-link {
  font-family: 'DM Mono', monospace; font-size: 0.72rem; color: skyblue;
  text-decoration: none; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.35rem; transition: color 0.2s;
}
.project-link:hover { color: var(--accent); }
.project-arrow {
  width: 34px; height: 34px; border: 1px solid rgba(99,179,237,0.35);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.9rem; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}
.project-card:hover .project-arrow { border-color: var(--accent); color: #fff; background: rgba(99,179,237,0.2); transform: rotate(45deg); }

/* ── CONTACT ── */
#contact { background: var(--bg); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-text p { color: var(--muted2); line-height: 1.8; font-size: 1rem; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  padding: 1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  transition: border-color 0.3s, transform 0.2s;
}
.contact-link:hover { border-color: rgba(99,179,237,0.4); transform: translateX(6px); }
.contact-link-icon {
  width: 40px; height: 40px; background: rgba(99,179,237,0.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-link-info { display: flex; flex-direction: column; }
.contact-link-label { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--muted2); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-link-value { color: var(--text); font-size: 0.9rem; }

.contact-form-side { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--muted2); letter-spacing: 0.08em; text-transform: uppercase; }
.form-group input, .form-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.85rem 1rem;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; outline: none; transition: border-color 0.2s; resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(99,179,237,0.5); }
.form-group textarea { min-height: 130px; }
.form-submit {
  background: var(--accent); color: #050810;
  font-family: 'DM Mono', monospace; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; padding: 0.85rem 2rem; border-radius: 6px;
  border: none; cursor: pointer; align-self: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 25px rgba(99,179,237,0.2);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(99,179,237,0.4); }

/* ── FOOTER ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2rem 4rem; display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted2); letter-spacing: 0.06em; }
.footer-copy span { color: var(--accent); }
.footer-back { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted2); text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s; }
.footer-back:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scrollSlide { 0% { left: -100%; } 100% { left: 100%; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.68rem; }
  section { padding: 5rem 2rem; }
  #hero { padding: 8rem 2rem 4rem; }
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { padding: 1.5rem 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-scroll-hint { left: 2rem; }
  /* Hide desktop cursor on touch screens */
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  /* Show touch cursor elements */
  .touch-cursor, .touch-ring { display: block; }
}
