/* ============================================================
   PUNITH SAI VUJJA — Premium Developer Portfolio
   Inspired by Developer X / Top-Tier Webflow Templates
   ============================================================ */

/* === RESET & VARIABLES === */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  /* Background */
  --bg:        #0a0a0f;
  --bg-card:   rgba(255,255,255,0.03);
  --bg-card-h: rgba(255,255,255,0.06);
  --border:    rgba(255,255,255,0.06);
  --border-h:  rgba(255,255,255,0.12);

  /* Text */
  --white:   #f5f5f7;
  --gray:    #8b8b9e;
  --dim:     #555568;

  /* Accents */
  --primary:   #4f6ef7;
  --primary-g: rgba(79,110,247,0.4);
  --accent:    #7c3aed;
  --green:     #22c55e;
  --green-g:   rgba(34,197,94,0.35);
  --pink:      #ec4899;

  /* Typography */
  --heading: 'Space Grotesk', sans-serif;
  --body:    'Inter', sans-serif;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;

  /* Animation */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }

/* === CURSOR GLOW === */
.cursor-glow {
  position: fixed; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-g) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 0; opacity: 0.12;
  transition: left 0.3s var(--ease), top 0.3s var(--ease);
}

/* === GLASS CARD === */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease);
}
.glass-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* === GRADIENT TEXT === */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 14px;
  font-family: var(--heading); font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 20px var(--primary-g);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-g);
}
.btn-glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--white);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-h);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.navbar.scrolled {
  background: rgba(10,10,15,0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-flex {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--heading); font-size: 1.4rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.5px;
}
.logo-bracket { color: var(--primary); }

.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--gray);
  transition: all 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-social {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); border: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-social:hover { color: var(--white); border-color: var(--border-h); background: rgba(255,255,255,0.05); }

.btn-hire {
  padding: 8px 20px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 12px var(--primary-g);
  transition: all 0.3s;
}
.btn-hire:hover { box-shadow: 0 4px 20px var(--primary-g); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative; overflow: hidden;
}

/* BG Elements */
.hero-bg-elements { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.15;
}
.orb-1 { width: 500px; height: 500px; top: -10%; right: 10%; background: var(--primary); }
.orb-2 { width: 400px; height: 400px; bottom: -10%; left: -5%; background: var(--accent); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; align-items: center;
}

/* Hero Left */
.hero-left { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 50px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--green); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s var(--ease) both;
}
.badge-dot {
  width: 8px; height: 8px; background: var(--green);
  border-radius: 50%; box-shadow: 0 0 8px var(--green-g);
  animation: pulse 2s infinite;
}

.hero-heading {
  font-family: var(--heading);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero-roles {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease) 0.15s both;
}
.role-tag {
  font-family: var(--heading); font-size: 1.1rem; font-weight: 600;
  color: var(--gray);
}
.role-sep {
  color: var(--primary); font-size: 1.2rem;
}

.hero-description {
  font-size: 1.15rem; color: var(--gray); max-width: 520px;
  margin-bottom: 40px; line-height: 1.75;
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}
.hero-description strong { color: var(--white); }

.hero-buttons {
  display: flex; gap: 16px; margin-bottom: 56px;
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero-metrics {
  display: flex; align-items: center; gap: 32px;
  animation: fadeInUp 0.6s var(--ease) 0.4s both;
}
.metric-value {
  font-family: var(--heading); font-size: 1.5rem; font-weight: 700;
  display: block; color: var(--white);
}
.metric-label {
  font-size: 0.8rem; color: var(--dim); text-transform: uppercase;
  letter-spacing: 1.5px; margin-top: 2px;
}
.metric-sep { width: 1px; height: 36px; background: var(--border); }

/* Hero Right */
.hero-right {
  position: relative; display: flex; justify-content: center;
  animation: fadeInRight 0.8s var(--ease) 0.3s both;
}

.hero-image-container { position: relative; width: 100%; max-width: 460px; }

.image-glow {
  position: absolute; inset: 10%;
  background: radial-gradient(circle, var(--primary-g) 0%, transparent 70%);
  filter: blur(60px); z-index: 0;
}

.image-frame {
  position: relative; z-index: 1;
  background: linear-gradient(145deg, rgba(79,110,247,0.15), rgba(124,58,237,0.1));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px; overflow: hidden;
  aspect-ratio: 4/5;
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease);
}
.image-frame:hover .hero-photo { transform: scale(1.04); }

/* Floating Cards */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.float-card i { font-size: 1.4rem; }
.float-card strong { font-size: 0.85rem; display: block; }
.float-card span { font-size: 0.75rem; color: var(--dim); }

.card-1 { top: 15%; left: -30px; }
.card-1 i { color: #f59e0b; }
.card-2 { bottom: 20%; right: -30px; animation-delay: 3s; }
.card-2 i { color: var(--pink); }

/* Experience Ring */
.experience-ring {
  position: absolute; bottom: 5%; left: -10px; z-index: 3;
  width: 90px; height: 90px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.experience-ring svg { position: absolute; inset: 4px; }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 4; }
.ring-fill {
  fill: none; stroke: var(--primary); stroke-width: 4;
  stroke-dasharray: 340; stroke-dashoffset: 85;
  stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
}
.ring-text { text-align: center; z-index: 1; }
.ring-number { font-family: var(--heading); font-size: 1.1rem; font-weight: 700; display: block; }
.ring-label { font-size: 0.6rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--dim); font-size: 0.75rem;
  animation: fadeInUp 0.6s var(--ease) 0.6s both;
}
.mouse {
  width: 24px; height: 38px; border: 2px solid var(--dim);
  border-radius: 12px; position: relative;
}
.mouse-wheel {
  width: 3px; height: 8px; background: var(--primary);
  border-radius: 3px; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: mouseScroll 2s infinite;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 120px 0; position: relative; }

.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 10px;
  background: rgba(79,110,247,0.08);
  border: 1px solid rgba(79,110,247,0.15);
  color: var(--primary); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 20px;
}
.section-tag i { font-size: 0.8rem; }

.section-heading {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 60px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px;
}
.about-card { padding: 40px; }
.about-text { color: var(--gray); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.8; }
.about-text strong { color: var(--white); }
.about-text:last-child { margin-bottom: 0; }

.about-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
}
.info-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,110,247,0.1); color: var(--primary);
  font-size: 1.1rem; flex-shrink: 0;
}
.info-card h4 { font-family: var(--heading); font-size: 1rem; font-weight: 600; }
.info-card p { font-size: 0.85rem; color: var(--gray); margin-top: 2px; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-showcase {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 50px;
}
.skill-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 500; color: var(--gray);
  transition: all 0.3s var(--ease);
}
.skill-pill:hover {
  color: var(--white); border-color: var(--primary);
  background: rgba(79,110,247,0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(79,110,247,0.15);
}
.skill-pill i { font-size: 1rem; color: var(--primary); }

.skill-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.skill-card { padding: 32px; }
.skill-card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.skill-card-icon.blue   { background: rgba(96,165,250,0.1); color: #60a5fa; }
.skill-card-icon.purple { background: rgba(192,132,252,0.1); color: #c084fc; }
.skill-card-icon.pink   { background: rgba(244,114,182,0.1); color: #f472b6; }
.skill-card h3 { font-family: var(--heading); font-size: 1.15rem; margin-bottom: 10px; }
.skill-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; line-height: 1.6; }

.skill-bar {
  height: 4px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden;
}
.skill-fill {
  height: 100%; width: var(--fill);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 1.5s var(--ease);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-card {
  padding: 32px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.project-card.featured {
  border-color: rgba(79,110,247,0.2);
  background: rgba(79,110,247,0.03);
}
.featured-label {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 12px; border-radius: 6px;
  background: rgba(79,110,247,0.15); color: var(--primary);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px;
}
.project-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.project-folder {
  font-size: 2rem; color: var(--primary); opacity: 0.7;
}
.project-ext-links a {
  font-size: 1.2rem; color: var(--dim); transition: all 0.3s;
}
.project-ext-links a:hover { color: var(--white); }
.project-title {
  font-family: var(--heading); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 12px;
}
.project-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.7; flex-grow: 1; margin-bottom: 24px; }
.project-tags {
  display: flex; flex-wrap: wrap; gap: 12px; list-style: none;
}
.project-tags li {
  font-size: 0.8rem; color: var(--dim); font-family: 'SF Mono', monospace;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-text p {
  font-size: 1.1rem; color: var(--gray); margin-bottom: 32px; line-height: 1.7;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
}
.contact-link > i {
  font-size: 1.3rem; color: var(--primary);
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(79,110,247,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-link strong { font-size: 0.95rem; display: block; }
.contact-link span { font-size: 0.85rem; color: var(--gray); }
.link-arrow { margin-left: auto; color: var(--dim); transition: all 0.3s; }
.contact-link:hover .link-arrow { color: var(--primary); transform: translateX(4px); }

.contact-form { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--gray); margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%; padding: 14px 18px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 12px; color: var(--white);
  font-family: var(--body); font-size: 0.95rem;
  transition: all 0.3s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--dim); }
.form-field textarea { resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0; border-top: 1px solid var(--border);
}
.footer-flex {
  display: flex; justify-content: space-between; align-items: center;
}
.footer p { font-size: 0.85rem; color: var(--dim); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  color: var(--dim); font-size: 1.1rem; transition: all 0.3s;
}
.footer-socials a:hover { color: var(--white); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s var(--ease);
}
.reveal.active {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 var(--green-g); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px transparent; }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes mouseScroll {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-right { order: -1; margin-bottom: 20px; }
  .hero-image-container { max-width: 340px; }
  .float-card { display: none; }
  .experience-ring { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .skill-cards-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column; padding: 24px; gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0;
    transition: all 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-heading { font-size: 2.4rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-metrics { gap: 20px; }
  .skill-cards-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 2rem; }
  .section { padding: 80px 0; }
  .section-heading { font-size: 1.8rem; }
}
