@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #0F0F23;
  --secondary: #1E1B4B;
  --cta: #E11D48;
  --cta-hover: #BE123C;
  --bg: #000000;
  --bg-elevated: #0A0A0A;
  --bg-card: #111111;
  --text: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(225, 29, 72, 0.4);
  --gradient-hero: linear-gradient(180deg, rgba(15, 15, 35, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Archivo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

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

::selection {
  background: var(--cta);
  color: white;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: transparent;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--cta);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cta);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 27, 75, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(225, 29, 72, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-text {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--cta);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--cta);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.08em;
  background: var(--cta);
  opacity: 0.3;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
  max-width: 600px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--cta);
  color: white;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15) 0%, rgba(30, 27, 75, 0.2) 50%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0.8;
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.image-wrapper:hover img {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.3),
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========== SECTIONS ========== */
section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

/* ========== HERO SUBTITLE ========== */
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-style: italic;
  opacity: 0.9;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 500px;
}

/* ========== EXPERIENCE ========== */
.experience-section {
  background: var(--bg-elevated);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cta), var(--secondary));
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 2px solid var(--cta);
  border-radius: 50%;
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  background: var(--cta);
  box-shadow: 0 0 20px var(--glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(225, 29, 72, 0.3);
}

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

.timeline-company h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-role {
  color: var(--cta);
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-details li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.timeline-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cta);
}

.timeline-details li:last-child {
  margin-bottom: 0;
}

.timeline-details li strong {
  color: var(--text);
}

/* ========== PROJECTS ========== */
.projects-section {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.project-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.project-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.project-overview {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.project-details {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-detail-item {
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.detail-label {
  display: block;
  color: var(--cta);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-detail-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.project-results {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.result-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.result-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cta);
  margin-bottom: 0.25rem;
}

.result-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== SKILLS ========== */
.skills-section {
  background: var(--bg-elevated);
}

.skills-content {
  max-width: 800px;
  margin: 0 auto;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.skill-tag {
  background: var(--cta);
  border: 1px solid var(--cta);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow);
}

.certificates {
  text-align: center;
}

.certificates-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.certificates-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cert-tag {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: var(--transition);
}

/* ========== BOUNCING INTERESTS ========== */
.interests-section {
  background: var(--bg);
  overflow: hidden;
}

.bouncing-container {
  width: 100%;
  height: 600px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
  border: 1px solid var(--border);
}

#bouncing-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== ARTICLES ========== */
.articles-section {
  background: var(--bg-elevated);
}

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

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.article-card:hover {
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.5;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.article-card:hover .article-title {
  color: var(--cta);
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== INTERESTS ========== */
.interest-category {
  margin-bottom: 4rem;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-title::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: var(--cta);
  border-radius: 2px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.interest-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.interest-item:hover {
  border-color: var(--cta);
  transform: scale(1.02);
}

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

.interest-item:hover img {
  transform: scale(1.05);
}

.interest-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.interest-item:hover::after {
  opacity: 1;
}

.interest-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 1;
  transform: translateY(100%);
  transition: var(--transition);
}

.interest-item:hover .interest-overlay {
  transform: translateY(0);
}

.interest-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ========== EDUCATION ========== */
.education-section {
  background: var(--bg-elevated);
}

.education-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  transition: var(--transition);
}

.education-card:hover {
  border-color: rgba(225, 29, 72, 0.3);
}

.school-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.school-info .degree {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.school-info .year {
  color: var(--cta);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact-section {
  text-align: center;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--cta);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(225, 29, 72, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cta);
  font-size: 1.25rem;
}

.contact-info {
  text-align: left;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.footer-slogan {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.7;
}

.footer-text a {
  color: var(--cta);
  text-decoration: none;
}

/* ========== SCROLL ANIMATIONS ========== */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animations */
.interest-item:nth-child(1) { transition-delay: 0s; }
.interest-item:nth-child(2) { transition-delay: 0.1s; }
.interest-item:nth-child(3) { transition-delay: 0.2s; }
.interest-item:nth-child(4) { transition-delay: 0.3s; }
.interest-item:nth-child(5) { transition-delay: 0.4s; }
.interest-item:nth-child(6) { transition-delay: 0.5s; }

.article-card:nth-child(1) { transition-delay: 0s; }
.article-card:nth-child(2) { transition-delay: 0.15s; }
.article-card:nth-child(3) { transition-delay: 0.3s; }

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--cta);
  border-color: var(--cta);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .theme-toggle {
    width: 50px;
    height: 26px;
  }
  
  .theme-slider::before {
    width: 18px;
    height: 18px;
  }
  
  .theme-toggle input:checked + .theme-slider::before {
    transform: translateX(-24px);
  }
  
  .theme-icon {
    width: 14px;
    height: 14px;
  }

  section {
    padding: 5rem 0;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .education-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .bouncing-container {
    height: 400px;
  }

  .project-results {
    flex-direction: column;
    gap: 1rem;
  }

  .result-item {
    padding: 0.75rem;
    background: rgba(225, 29, 72, 0.05);
    border-radius: 8px;
  }

  .skills-tags {
    gap: 0.5rem;
  }

  .skill-tag {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: 0;
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .timeline-date {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ========== FOCUS STATES ========== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animate,
  .scroll-animate-left,
  .scroll-animate-right,
  .scroll-animate-scale {
    opacity: 1;
    transform: none;
  }
}

/* ========== THEME TOGGLE ========== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  cursor: pointer;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  right: 3px;
  background: var(--cta);
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle input:checked + .theme-slider::before {
  transform: translateX(-30px);
}

.theme-icon {
  width: 16px;
  height: 16px;
  z-index: 1;
}

.theme-icon.moon {
  color: var(--cta);
}

.theme-icon.sun {
  color: var(--text-muted);
}

/* ========== LIGHT MODE ========== */
body.light-mode {
  --primary: #F8FAFC;
  --secondary: #E2E8F0;
  --bg: #FFFFFF;
  --bg-elevated: #F1F5F9;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: rgba(0, 0, 0, 0.1);
  --glow: rgba(225, 29, 72, 0.2);
  --gradient-hero: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
}

body.light-mode .nav {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

body.light-mode .hero::before {
  background: radial-gradient(ellipse at 30% 20%, rgba(225, 29, 72, 0.08) 0%, transparent 50%);
}

body.light-mode .image-wrapper::before {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, rgba(30, 27, 75, 0.08) 50%, rgba(0, 0, 0, 0.05) 100%);
}

body.light-mode .image-wrapper img {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-mode .timeline::before {
  background: linear-gradient(to bottom, var(--cta), var(--secondary));
}

body.light-mode .bouncing-container {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
}

body.light-mode .project-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-icon.sun {
  color: #F59E0B;
}

body.light-mode .theme-icon.moon {
  color: var(--text-muted);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cta);
}
