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

:root {
  /* Light Mode Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --card-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

[data-theme="dark"] {
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --secondary: #a78bfa;
  --accent: #f472b6;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --card-bg: #1e293b;
  --nav-bg: rgba(30, 41, 59, 0.9);
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.3s,
    color 0.3s;
}

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

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: block;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s;
  background: transparent;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px var(--shadow-color);
}

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

.logo {
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.nav-menu {
  display: flex;
  gap: 3rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}

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

/* Mobile Menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  transition: all 0.3s;
}

.menu-btn span:first-child {
  top: 0;
}
.menu-btn span:nth-child(2) {
  top: 9px;
}
.menu-btn span:last-child {
  top: 18px;
}

.menu-btn.active span:first-child {
  transform: rotate(45deg);
  top: 9px;
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:last-child {
  transform: rotate(-45deg);
  top: 9px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.3s;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 600;
  transition: color 0.3s;
}

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

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -150px;
  left: -150px;
  animation: float 8s ease-in-out infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

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

.hero-greeting {
  font-size: 1.25rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.hero-role {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.role-item {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.role-dot {
  width: 4px;
  height: 4px;
  background: var(--text-secondary);
  border-radius: 50%;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-github {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.btn-github:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-video {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.btn-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 90%;
  background: var(--gradient);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  animation: morph 8s ease-in-out infinite;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fallback-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  33% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
  66% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

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

.section-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.card-image {
  height: 200px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.project-badge.fyp {
  background: var(--primary);
  color: white;
}

.project-badge.in-progress {
  background: #fbbf24;
  color: #92400e;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-tech span {
  padding: 0.25rem 0.75rem;
  background: var(--bg-primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-text {
  color: var(--text-secondary);
  margin: 1.5rem 0;
  line-height: 1.8;
}

.education-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
}

.education-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.edu-item {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child {
  border-bottom: none;
}

.edu-year {
  font-weight: 600;
  color: var(--primary);
  min-width: 100px;
}

.edu-desc {
  color: var(--text-secondary);
}

.achievement-card {
  background: var(--gradient);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.achievement-card i {
  font-size: 2rem;
}

.achievement-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.achievement-card p {
  opacity: 0.9;
  font-size: 0.875rem;
}

.skills-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
}

.skills-section h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-category h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tags span {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.skill-tags span:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-2px);
}

/* Gallery Modal Styles */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Main Gallery Display */
.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-primary);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1a1a1a;
}

.gallery-main-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1rem;
}

.gallery-main-caption h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-main-caption p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Gallery Navigation */
.gallery-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.gallery-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-nav-btn:hover {
  background: var(--gradient);
  color: white;
  transform: scale(1.1);
}

.gallery-counter {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--bg-primary);
  border-radius: 1rem;
}

.gallery-thumbnail {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Info */
.gallery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gallery-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Fullscreen Mode */
.gallery-fullscreen-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.gallery-fullscreen-btn:hover {
  background: var(--gradient);
  transform: scale(1.1);
}

/* Fullscreen Modal */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-content {
  width: 95%;
  height: 90vh;
  position: relative;
}

.fullscreen-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fullscreen-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.fullscreen-prev,
.fullscreen-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.fullscreen-prev {
  left: 1rem;
}

.fullscreen-next {
  right: 1rem;
}

.fullscreen-prev:hover,
.fullscreen-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.fullscreen-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.contact-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-text {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item:hover {
  color: var(--primary);
}

.contact-item i {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-3px);
}

/* Project Modal */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-container.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  border-radius: 2rem;
  position: relative;
  overflow-y: auto;
  animation: modalSlide 0.3s;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--gradient);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 3rem;
}

.modal-project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.modal-image {
  aspect-ratio: 16/9;
  background: var(--gradient);
  border-radius: 1rem;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-status {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: #fbbf24;
  color: #92400e;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  max-width: 900px;
  width: 90%;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: black;
  transition: all 0.3s;
}

.video-modal-close:hover {
  transform: rotate(90deg);
}

.video-container {
  width: 100%;
  background: black;
  border-radius: 1rem;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-image {
    grid-row: 1;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

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

  .contact-card {
    padding: 2rem;
  }

  .modal-body {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-role {
    flex-direction: column;
    gap: 0.5rem;
  }

  .role-dot {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .edu-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .edu-year {
    min-width: auto;
  }
}
