/* ================================================
   TEJAS KHANNA — PORTFOLIO STYLESHEET
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #080810;
  --bg2: #0d0d1a;
  --surface: #13131f;
  --surface2: #1a1a2e;
  --accent: #6c63ff;
  --accent2: #00d4ff;
  --accent3: #ff6584;
  --gold: #f5c842;
  --text: #f0f0ff;
  --text-muted: #8888aa;
  --border: rgba(108,99,255,0.15);
  --glow: rgba(108,99,255,0.4);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.4s cubic-bezier(0.23,1,0.32,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}



/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9998; opacity: 0.4;
}

/* ── Navbar ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(8,8,16,0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; align-items: center;
  cursor: pointer;
}
.logo img {
  width: 42px; height: 42px; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo img:hover {
  filter: drop-shadow(0 0 16px rgba(0,212,255,0.7));
  transform: scale(1.08) rotate(-3deg);
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px;
  transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; background: var(--accent); color: #fff;
  border: none; border-radius: 50px; font-weight: 600;
  font-size: 0.85rem; cursor: pointer; font-family: 'Outfit', sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}

/* ── Hero Section ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: visible;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25; animation: blobFloat 8s ease-in-out infinite;
}
.blob1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; }
.blob2 { width: 500px; height: 500px; background: var(--accent2); bottom: -150px; right: -100px; animation-delay: -4s; }
.blob3 { width: 400px; height: 400px; background: var(--accent3); top: 40%; left: 40%; animation-delay: -2s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.95); }
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3); border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent2);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge span { width: 8px; height: 8px; background: var(--accent2); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.hero-title {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -3px; margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.hero-title .word { display: inline-block; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.2rem; color: var(--text-muted); max-width: 560px;
  margin: 0 auto 48px; line-height: 1.7; font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 16px 40px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: 'Outfit', sans-serif; text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 60px rgba(108,99,255,0.5);
}
.btn-secondary {
  padding: 16px 40px; background: transparent;
  color: var(--text); border: 2px solid var(--border);
  border-radius: 50px; font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  text-decoration: none; transition: all 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-4px);
}
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 80px; padding-top: 48px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem; z-index: 2; animation: bounce 2s infinite;
}
.scroll-indicator .line { width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, var(--accent)); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }

/* ── Portfolio Section ── */
#portfolio {
  padding: 120px 48px;
  position: relative;
}
.section-header {
  text-align: center; margin-bottom: 80px;
}
.section-tag {
  display: inline-block; padding: 6px 18px;
  background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2);
  border-radius: 50px; font-size: 0.75rem; font-weight: 700;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -2px; margin-bottom: 16px;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1400px; margin: 0 auto;
}

/* ── Portfolio Card ── */
.portfolio-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none; display: flex; flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-2deg) scale(1.03);
  z-index: 10;
}
.card-preview {
  height: 220px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
/* Mini navbar inside preview */
.mini-nav {
  height: 22px; background: rgba(0,0,0,0.3);
  display: flex; align-items: center; padding: 0 8px; gap: 4px;
  flex-shrink: 0;
}
.mini-dot { width: 5px; height: 5px; border-radius: 50%; }
.mini-logo { height: 8px; width: 28px; border-radius: 3px; margin-left: 6px; opacity: 0.7; }
.mini-links { display: flex; gap: 4px; margin-left: auto; }
.mini-link { height: 5px; border-radius: 2px; opacity: 0.5; }
/* Mini hero */
.mini-hero {
  flex: 1; display: flex; align-items: center; padding: 10px;
  position: relative; overflow: hidden;
}
.mini-hero-text { z-index: 1; }
.mini-h1 { height: 10px; border-radius: 4px; margin-bottom: 5px; }
.mini-h2 { height: 6px; border-radius: 3px; width: 70%; margin-bottom: 8px; opacity: 0.6; }
.mini-btn { height: 14px; width: 50px; border-radius: 20px; }
/* Mini cards row */
.mini-cards {
  display: flex; gap: 4px; padding: 6px 8px;
  background: rgba(0,0,0,0.2); flex-shrink: 0;
}
.mini-card { flex: 1; height: 36px; border-radius: 6px; opacity: 0.8; }

.card-info {
  padding: 16px; background: var(--surface);
  display: flex; flex-direction: column; flex: 1;
}
.card-style-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 50px; margin-bottom: 8px; display: inline-block;
}
.card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.card-industry { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; opacity: 0.85; flex: 1; }
.card-btn {
  width: 100%; padding: 10px; border: none; border-radius: 10px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  font-family: 'Outfit', sans-serif; letter-spacing: 0.5px;
  transition: all 0.3s ease; position: relative; overflow: hidden; margin-top: auto;
}
.card-btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%); transition: transform 0.4s ease;
}
.card-btn:hover::before { transform: translateX(0); }
.card-btn:hover { transform: translateY(-2px); }

/* Card glow on hover */
.portfolio-card::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius); opacity: 0;
  transition: opacity 0.4s ease; pointer-events: none;
  border: 2px solid;
}
.portfolio-card:hover::after { opacity: 1; }

/* ── About / CTA Section ── */
#about {
  padding: 100px 48px;
  background: linear-gradient(135deg, rgba(108,99,255,0.05) 0%, rgba(0,212,255,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text h2 { font-size: 2.8rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); line-height: 1.8; font-size: 1rem; margin-bottom: 16px; }
.skills-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.skill-tag {
  padding: 8px 16px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; text-align: center;
}
.about-card .big-num { font-size: 5rem; font-weight: 900; color: var(--accent); display: block; }
.about-card p { color: var(--text-muted); margin-top: 8px; }
.about-cta { margin-top: 32px; }

/* ── Footer ── */
footer {
  padding: 60px 48px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  display: flex; justify-content: center;
  margin-bottom: 16px;
}
.footer-logo img {
  width: 52px; height: 52px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0,212,255,0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.footer-logo img:hover {
  filter: drop-shadow(0 0 18px rgba(0,212,255,0.7));
  transform: scale(1.08);
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; opacity: 0.6; }
.social-links { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
  transition: all 0.3s ease;
}
.social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }

/* ── Floating particles canvas ── */
#particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.4; }

/* ── Loading Screen ── */
#loader {
  position: fixed; inset: 0; background: var(--bg); 
  z-index: 99999; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
}
.loader-logo {
  width: 110px; height: 110px; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.5));
  animation: logoPulse 1.5s ease-in-out infinite alternate;
}
@keyframes logoPulse {
  from { filter: drop-shadow(0 0 12px rgba(0,212,255,0.4)); transform: scale(1); }
  to   { filter: drop-shadow(0 0 32px rgba(0,212,255,0.8)); transform: scale(1.06); }
}
.loader-bar { width: 200px; height: 3px; background: var(--surface); border-radius: 10px; overflow: hidden; }
.loader-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); animation: loadFill 2s ease forwards; }
@keyframes loadFill { from{width:0} to{width:100%} }
.loader-sub { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }

/* ── Responsive ── */
@media (max-width: 1200px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { 
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  #portfolio { padding: 80px 24px; }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stats { gap: 24px; }
  .hero-title { letter-spacing: -1px; }
  #about { padding: 60px 24px; }
  footer { padding: 40px 24px; }
}
@media (max-width: 400px) { .portfolio-grid { grid-template-columns: 1fr; } }
