/* =====================================================
   PORTFOLIO — style.css
   Author: Akash Laxman Ullagaddi
   Design: Glassmorphism Dark Theme Premium Portfolio
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --primary-dark: #4C44CC;
  --secondary: #06b6d4;
  --accent: #a855f7;
  --bg-main: #070b14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(108, 99, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --gradient: linear-gradient(135deg, #6C63FF, #a855f7);
  --gradient2: linear-gradient(135deg, #06b6d4, #6C63FF);
  --glow: 0 0 30px rgba(108, 99, 255, 0.4);
  --glow-hover: 0 0 60px rgba(108, 99, 255, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'Fira Code', monospace;
  --navbar-h: 72px;
  --cursor-color: var(--secondary);
}

/* ──────────────────────────────────────────────────
   BASE CURSOR STYLES
   ────────────────────────────────────────────────── */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--cursor-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--cursor-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
  background-color: transparent;
}

.custom-cursor.hover {
  width: 12px;
  height: 12px;
  background-color: var(--primary);
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
  background-color: rgba(108, 99, 255, 0.1);
}

/* Hide default cursor on desktop */
body, a, button, .btn, .social-link, .nav-link, .skill-card, .project-card, .work-exp-item {
  cursor: none;
}

/* Hide custom cursor ONLY on true touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor, .cursor-follower {
    display: none;
  }
  body, a, button, .btn, .social-link, .nav-link, .skill-card, .project-card, .work-exp-item {
    cursor: auto;
  }
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* =====================================================
   PARTICLE CANVAS
   ===================================================== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin 1.2s linear infinite;
}

.loader-ring:nth-child(1) {
  width: 80px;
  height: 80px;
  border-top-color: var(--primary);
}

.loader-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  border-right-color: var(--accent);
  animation-delay: -0.4s;
}

.loader-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  border-bottom-color: var(--secondary);
  animation-delay: -0.8s;
}

.loader-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-code);
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-bracket {
  color: var(--primary);
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.55rem 1.1rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link.active {
  color: var(--primary);
  background: rgba(108, 99, 255, 0.09);
}

.nav-link.active::after {
  width: 70%;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   SECTIONS — Common
   ===================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 2px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--glow), var(--glass-shadow);
  transform: translateY(-4px);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.55);
  color: white;
}

.btn-outline {
  border: 1.5px solid rgba(108, 99, 255, 0.5);
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.06);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.15);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

/* Profile Photo */
.profile-photo-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 2.2rem;
}

.profile-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient);
  animation: rotateRing 4s linear infinite;
  z-index: 0;
}

.profile-photo-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-main);
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-main);
  box-shadow: var(--glow);
  transition: transform 0.4s ease;
}

.profile-photo:hover {
  transform: scale(1.04);
}

/* Hero Text */
.hero-name {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-typed-wrapper {
  font-family: var(--font-code);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.typed-prefix {
  color: var(--primary);
  opacity: 0.7;
}

.typed-cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--primary);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Social Links */
.hero-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

/* Scroll Indicator */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-down span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: scrollBounce 1.5s infinite;
  opacity: 0.6;
}

.scroll-down span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* =====================================================
   EDUCATION SECTION
   ===================================================== */
.education-section {
  background: transparent;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--accent), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 3rem 0;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  padding: 0 0 3rem 3rem;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.6);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
}

.timeline-card {
  padding: 1.8rem 1.8rem;
  position: relative;
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-institution {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 20px;
  color: var(--primary-light);
}

/* =====================================================
   SKILLS SECTION
   ===================================================== */
.skills-section {
  background: linear-gradient(180deg, transparent 0%, rgba(108, 99, 255, 0.03) 50%, transparent 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.skills-category {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.skills-category:hover {
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.12);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.skills-category-header i {
  font-size: 1.3rem;
  color: var(--primary);
}

.skills-category-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skills-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: default;
}

.skill-card:hover {
  transform: translateX(4px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.15);
}

.skill-icon {
  font-size: 2.2rem;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.3));
  transition: filter 0.3s ease;
}

.skill-card:hover .skill-icon {
  filter: drop-shadow(0 0 14px rgba(108, 99, 255, 0.7));
}

.skill-info {
  flex: 1;
}

.skill-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.3rem;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.skill-percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  font-family: var(--font-code);
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.project-card {
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3), var(--glow);
  border-color: rgba(108, 99, 255, 0.4);
}

/* Project Image */
.project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-image {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.8), rgba(168, 85, 247, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-icons {
  display: flex;
  gap: 1.5rem;
  font-size: 2rem;
  color: white;
}

.project-overlay-icons i {
  transition: transform 0.3s ease;
}

.project-overlay-icons i:hover {
  transform: scale(1.2);
}

.project-body {
  padding: 1.75rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* =====================================================
   RESUME SECTION
   ===================================================== */
.resume-section {
  background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.04), transparent);
}

.resume-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

/* Resume Mockup */
.resume-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-mockup {
  width: 100%;
  max-width: 320px;
  background: rgba(15, 20, 35, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.resume-mockup::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent);
  border-radius: 50%;
}

.resume-mockup-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.resume-mockup-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.resume-mockup-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-mockup-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  animation: pulse 2s infinite;
}

.resume-mockup-line.wide {
  width: 100%;
}

.resume-mockup-line.medium {
  width: 70%;
}

.resume-mockup-line.short {
  width: 40%;
}

.resume-mockup-line.accent {
  background: rgba(108, 99, 255, 0.4);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.resume-mockup-section {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-mockup-skill {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(to right, rgba(108, 99, 255, 0.3), rgba(168, 85, 247, 0.3));
  animation: pulse 2s infinite;
}

/* Resume Info */
.resume-info {
  text-align: center;
}

.resume-icon-big {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.resume-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.resume-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.resume-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.resume-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.resume-highlights span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-highlights .fa-check-circle {
  color: var(--primary);
}

.resume-download-btn {
  width: 100%;
  justify-content: center;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.contact-icon-phone {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--secondary);
}

.contact-info-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.contact-info-card a,
.contact-info-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.contact-info-card a:hover {
  color: var(--primary);
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

/* Contact Form */
.contact-form {
  padding: 2.5rem;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
  pointer-events: none;
}

.textarea-icon {
  top: 1.1rem;
  transform: none;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.form-group input:focus~.input-icon,
.form-group textarea:focus~.input-icon {
  color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.4rem;
  padding-left: 0.25rem;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #f87171;
}

.form-group.invalid .form-error {
  display: block;
}

.form-toast {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.form-toast.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-toast.error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* Mailto info note */
.form-mailto-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.5;
}

.form-mailto-note .fa-info-circle {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-code);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.heart {
  color: #ff6b9d;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

/* =====================================================
   SCROLL REVEAL (AOS-like via JS)
   ===================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

[data-aos="zoom-in"] {
  transform: scale(0.85);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .resume-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .resume-preview {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {

  /* Tablet — tighten section spacing slightly */
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-h: 64px;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Navbar mobile — full-screen overlay, polished */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    letter-spacing: 0.02em;
    border-radius: 12px;
  }

  .hamburger {
    display: flex;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 2rem 3.5rem;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
    top: 1.2rem;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-name {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-section {
    padding: 5rem 1.25rem 3rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 320px) {
  .section {
    padding: 2.25rem 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* =====================================================
   ABOUT ME SECTION
   ===================================================== */
.about-me-section {
  background: linear-gradient(180deg, transparent 0%, rgba(108, 99, 255, 0.03) 50%, transparent 100%);
}

.about-me-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.about-me-card {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.about-me-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.about-me-card:hover {
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: var(--glow), var(--glass-shadow);
  transform: translateY(-6px);
}

.about-me-icon {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.45));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.about-me-card:hover .about-me-icon {
  filter: drop-shadow(0 0 18px rgba(108, 99, 255, 0.75));
  transform: scale(1.12);
}

.about-me-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.about-me-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
  .about-me-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   PROFILE ORBIT SHELL & TECH TAG ANIMATIONS
   ===================================================== */

/* Outer container — 12% larger than original 170px = 190.4px ≈ 191px
   It must also provide the circular orbit track for the tags.
   We give it enough padding so the tags don't clip. */
.profile-orbit-shell {
  position: relative;
  width: 310px;
  /* orbit diameter: 191px photo + clearance for tags */
  height: 310px;
  margin: 0 auto 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override the photo wrapper size to 12% larger (170 * 1.12 ≈ 191px) */
.profile-orbit-shell .profile-photo-wrapper {
  width: 191px;
  height: 191px;
  margin: 0;
  /* outer shell handles the margin */
}

.profile-orbit-shell .profile-photo {
  width: 191px;
  height: 191px;
}

/* Orbit track — invisible circle that the tags travel along */
/* Each tag is absolutely positioned at the centre of the shell,
   then pushed outward by the orbit radius using translateX,
   then the whole element rotates. A counter-rotate on the inner
   span keeps the text upright at all times. */
.orbit-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  /* pill styling */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: rgba(108, 99, 255, 0.14);
  border: 1px solid rgba(108, 99, 255, 0.38);
  color: var(--primary-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.25);
  /* centre the tag on the start point before orbiting */
  transform-origin: 0 0;
  /* animation applied per tag below */
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* The keyframe: rotate the tag around the shell centre.
   We translate it outward (orbit radius = 138px) THEN rotate the
   whole assembly. A second rotate on the tag itself counter-rotates
   so the text stays level. Both rotations share the same angle. */
@keyframes orbitCW {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(138px) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(138px) rotate(-360deg);
  }
}

/* Stagger start angle by offsetting animation-delay so tags spread evenly (360/4 = 90°):
   Python  0°  →  delay 0s
   Django  90° →  delay -8s   (8s = 25% of 32s period)
   JS     180° →  delay -16s
   SQL    270° →  delay -24s  */
.orbit-tag--python {
  animation: orbitCW 36s linear infinite;
  animation-delay: 0s;
}

.orbit-tag--genai {
  animation: orbitCW 36s linear infinite;
  animation-delay: -6s;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.38);
  color: var(--secondary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.orbit-tag--openai {
  animation: orbitCW 36s linear infinite;
  animation-delay: -12s;
  background: rgba(16, 163, 127, 0.12);
  border-color: rgba(16, 163, 127, 0.38);
  color: #10a37f;
  box-shadow: 0 0 12px rgba(16, 163, 127, 0.2);
}

.orbit-tag--gemini {
  animation: orbitCW 36s linear infinite;
  animation-delay: -18s;
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.38);
  color: #4285f4;
  box-shadow: 0 0 12px rgba(66, 133, 244, 0.2);
}

.orbit-tag--js {
  animation: orbitCW 36s linear infinite;
  animation-delay: -24s;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.38);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.orbit-tag--tailwind {
  animation: orbitCW 36s linear infinite;
  animation-delay: -33s;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.38);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.orbit-tag--sql {
  animation: orbitCW 36s linear infinite;
  animation-delay: -30s;
  background: rgba(108, 99, 255, 0.14);
  border-color: rgba(108, 99, 255, 0.38);
  color: var(--primary-light);
}

/* Reduce orbit motion on small screens */
@media (max-width: 640px) {
  .profile-orbit-shell {
    width: 260px;
    height: 260px;
  }

  .profile-orbit-shell .profile-photo-wrapper,
  .profile-orbit-shell .profile-photo {
    width: 170px;
    height: 170px;
  }

  @keyframes orbitCW {
    from {
      transform: translate(-50%, -50%) rotate(0deg) translateX(112px) rotate(0deg);
    }

    to {
      transform: translate(-50%, -50%) rotate(360deg) translateX(112px) rotate(-360deg);
    }
  }

  .orbit-tag {
    font-size: 0.65rem;
    padding: 0.22rem 0.6rem;
  }
}

/* =====================================================
   WORK EXPERIENCE SECTION
   ===================================================== */
.work-exp-section {
  background: linear-gradient(180deg, transparent 0%, rgba(108, 99, 255, 0.03) 50%, transparent 100%);
}

.work-exp-timeline {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card */
.work-exp-card {
  display: flex;
  overflow: hidden;
  position: relative;
  padding: 0;
  transition: var(--transition);
}

.work-exp-card:hover {
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: var(--glow), var(--glass-shadow);
  transform: translateY(-5px);
}

/* Left gradient accent bar */
.work-exp-accent {
  width: 5px;
  flex-shrink: 0;
  background: var(--gradient);
  border-radius: var(--radius) 0 0 var(--radius);
}

/* Card body */
.work-exp-body {
  padding: 2rem 2.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Header row */
.work-exp-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.work-exp-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.2);
  transition: var(--transition);
}

.work-exp-card:hover .work-exp-icon {
  background: rgba(108, 99, 255, 0.2);
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.4);
}

.work-exp-meta {
  flex: 1;
  min-width: 180px;
}

.work-exp-role {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.work-exp-company {
  font-size: 0.88rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.work-exp-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0.15rem;
  letter-spacing: 0.3px;
}

/* Bullet list */
.work-exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-exp-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1.4rem;
  position: relative;
}

.work-exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* Tech pill tags row */
.work-exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--glass-border);
}

.work-exp-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  border-radius: 20px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: var(--primary-light);
  letter-spacing: 0.4px;
  transition: var(--transition);
}

.work-exp-tag:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.5);
  color: white;
}

/* Responsive */
@media (max-width: 640px) {
  .work-exp-body {
    padding: 1.5rem 1.3rem;
    gap: 1.1rem;
  }

  .work-exp-header {
    gap: 0.85rem;
  }

  .work-exp-date {
    width: 100%;
    justify-content: center;
  }

  .work-exp-role {
    font-size: 1rem;
  }
}