/* ==========================================================================
   Ayush Shivam - Space Glass Portfolio CSS
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

/* --- Root Variables --- */
:root {
  /* Colors */
  --bg-deep: #06030d;
  --bg-space: #0b071a;
  --bg-card: rgba(15, 11, 30, 0.55);
  --bg-card-hover: rgba(25, 18, 48, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.3);
  
  --text-primary: #f3f1f6;
  --text-secondary: #a9a2c3;
  --text-muted: #746d88;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --grad-secondary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --grad-glow-p: rgba(255, 75, 43, 0.45);
  --grad-glow-s: rgba(168, 85, 247, 0.45);
  
  /* Fonts */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-accent: 'Orbitron', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Resets & Global Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--grad-secondary);
}

/* Canvas Starfield Styling */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Background Glowing Nebulas */
.nebula-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}
.nebula-1 {
  background: #ff416c;
  top: -10%;
  left: -10%;
  animation: pulse-nebula 20s infinite alternate;
}
.nebula-2 {
  background: #a855f7;
  bottom: -10%;
  right: -10%;
  animation: pulse-nebula 25s infinite alternate-reverse;
}

@keyframes pulse-nebula {
  0% { transform: scale(1) translate(0, 0); opacity: 0.08; }
  50% { transform: scale(1.2) translate(50px, -30px); opacity: 0.15; }
  100% { transform: scale(0.9) translate(-20px, 40px); opacity: 0.1; }
}

/* --- Typography & Heading Gradients --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

button, input, textarea {
  font-family: inherit;
}

/* --- Container Styles --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 3rem;
  font-family: var(--font-accent);
  text-transform: uppercase;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Glassmorphism Base Styles --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(168, 85, 247, 0.15);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--grad-glow-p);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--grad-glow-p);
}

.btn-secondary {
  background: var(--grad-secondary);
  color: #fff;
  box-shadow: 0 4px 15px var(--grad-glow-s);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--grad-glow-s);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
  color: #fff;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 3, 13, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(6, 3, 13, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--grad-secondary);
  border-radius: 50%;
  bottom: 8px;
  right: -8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-primary);
  transition: width 0.1s ease-out;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 750px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(8px) brightness(0.6);
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--grad-secondary);
}

.hero h1 {
  font-size: 4.5rem;
  font-family: var(--font-accent);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.typewriter-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #fff;
  min-height: 2.4rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  border-left: 3px solid #ff416c;
  padding-left: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.profile-glow {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  padding: 8px;
  background: linear-gradient(135deg, #ff416c, #a855f7);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  animation: float-image 6s ease-in-out infinite;
}

.profile-glow::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  animation: rotate-dashed 20s linear infinite;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-deep);
}

@keyframes float-image {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes rotate-dashed {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- About Me Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.about-text-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-text-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-info-card {
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.info-val {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Education Section --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--border-glass);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 4px solid #a855f7;
  position: absolute;
  top: 25px;
  z-index: 10;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  transition: var(--transition-smooth);
}

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

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

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: #ff416c;
  border-color: #ff4b2b;
  box-shadow: 0 0 15px rgba(255, 75, 43, 0.8);
}

.timeline-content {
  padding: 2rem;
  position: relative;
}

.timeline-date {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  background: var(--grad-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.timeline-institute {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-score {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  margin-top: 10px;
}

/* --- Experience Section --- */
.experience-container {
  max-width: 900px;
  margin: 0 auto;
}

.exp-card {
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-primary);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.exp-title-group h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.exp-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-company a {
  background: var(--grad-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.exp-company a:hover {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.exp-duration {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--text-secondary);
}

.exp-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-bullets li {
  position: relative;
  padding-left: 25px;
  color: var(--text-secondary);
}

.exp-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: #ff4b2b;
  font-size: 1.1rem;
}

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

.skill-category {
  padding: 2.5rem;
}

.skill-category h3 {
  font-size: 1.4rem;
  font-family: var(--font-accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.skill-category:nth-child(1) h3 { color: #ff4b2b; }
.skill-category:nth-child(2) h3 { color: #ec4899; }
.skill-category:nth-child(3) h3 { color: #a855f7; }
.skill-category:nth-child(4) h3 { color: #3b82f6; }

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-item {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: default;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-3px);
}

.skill-category:nth-child(1) .skill-item:hover { border-color: #ff4b2b; box-shadow: 0 0 12px rgba(255, 75, 43, 0.25); }
.skill-category:nth-child(2) .skill-item:hover { border-color: #ec4899; box-shadow: 0 0 12px rgba(236, 72, 153, 0.25); }
.skill-category:nth-child(3) .skill-item:hover { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }
.skill-category:nth-child(4) .skill-item:hover { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.25); }

/* --- Certifications Section --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.cert-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-img-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--border-glass);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.cert-card:hover .cert-img {
  transform: scale(1.05);
  opacity: 1;
}

.cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 3, 13, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.cert-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.cert-org {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cert-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cert-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.proj-img-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #0a0618;
  border-bottom: 1px solid var(--border-glass);
}

.proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .proj-img {
  transform: scale(1.05);
}

.proj-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 3, 13, 0) 0%, rgba(6, 3, 13, 0.8) 100%);
  pointer-events: none;
}

.proj-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(6, 3, 13, 0.75);
  border: 1px solid var(--border-glass);
}

.proj-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.proj-content h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.proj-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.proj-tag {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.proj-actions {
  display: flex;
  gap: 1rem;
}

.proj-btn {
  flex: 1;
  padding: 8px 16px;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.proj-btn-primary {
  background: var(--grad-secondary);
  border: none;
  color: #fff;
}

.proj-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.proj-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

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

.contact-details-card {
  padding: 3rem;
}

.contact-details-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-details-card p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4b2b;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.contact-link-item:hover .contact-icon-box {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--grad-glow-p);
  transform: scale(1.1) rotate(5deg);
}

.contact-link-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.contact-link-text a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-link-text a:hover {
  color: #ff4b2b;
}

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

.contact-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1.2rem;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: #a855f7;
  background: rgba(25, 18, 48, 0.3);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.form-label {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  pointer-events: none;
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: #a855f7;
  background: var(--bg-deep);
  padding: 0 8px;
  border-radius: 4px;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.error-msg {
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 5px;
  display: none;
}

.form-group.invalid .form-input {
  border-color: #ef4444;
}

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

/* Status Notifications */
.form-status {
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
  display: none;
  animation: slide-in-top 0.4s ease-out;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

@keyframes slide-in-top {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Footer --- */
footer {
  background: rgba(6, 3, 13, 0.9);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

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

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--grad-secondary);
  color: #fff;
  box-shadow: 0 0 15px var(--grad-glow-s);
  transform: translateY(-5px);
}

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

/* --- Certificate Preview Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 3, 13, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-glass);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2100;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
  transform: rotate(90deg);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- Responsive Media Queries --- */

/* Tablet & Smaller (< 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-subtitle {
    justify-content: center;
  }
  
  .hero-desc {
    margin: 0 auto 2.5rem auto;
    border-left: none;
    border-bottom: 2px solid #ff416c;
    padding-left: 0;
    padding-bottom: 1.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    order: -1; /* Image on top for tablet/mobile */
    margin-bottom: 1rem;
  }
  
  .profile-glow {
    width: 250px;
    height: 250px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text-card, .about-info-card {
    padding: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-details-card, .contact-form-card {
    padding: 2rem;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 50px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .typewriter-text {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Navigation Bar */
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(6, 3, 13, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  /* Timeline on Mobile */
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
  
  .exp-card {
    padding: 2rem;
  }
  
  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .about-info-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Very Small Mobile Screens (< 480px) */
@media (max-width: 480px) {
  .profile-glow {
    width: 200px;
    height: 200px;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
}

