@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0b0d;
  color: #e4e4e7;
  overflow-x: hidden;
  position: relative;
}

/* Interactive Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure all content is above canvas */
.navbar,
.hero-section,
.about-section,
.projects-section,
.contact-section,
.footer,
.modal-overlay {
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 228, 231, 0.1);
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #7dd3fc;
}

.brand-icon {
  color: #7dd3fc;
  font-size: 1.5rem;
}

.brand-text {
  background: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #a1a1aa;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #7dd3fc;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #7dd3fc;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7dd3fc 0%, #3b82f6 100%);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(125, 211, 252, 0.3);
}

.btn-secondary {
  background: rgba(228, 228, 231, 0.05);
  border: 1px solid rgba(228, 228, 231, 0.2);
  color: #e4e4e7;
}

.btn-secondary:hover {
  background: rgba(228, 228, 231, 0.1);
  border-color: rgba(228, 228, 231, 0.3);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 50px;
  color: #7dd3fc;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #f4f4f5;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-gradient {
  background: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #a1a1aa;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.about-section,
.projects-section,
.contact-section {
  padding: 6rem 2rem;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f4f4f5;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
}

/* About Section */
.about-content {
  display: grid;
  gap: 3rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #d4d4d8;
}

.about-description-secondary {
  font-size: 1rem;
  line-height: 1.8;
  color: #a1a1aa;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(228, 228, 231, 0.03);
  border: 1px solid rgba(228, 228, 231, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(228, 228, 231, 0.05);
}

.stat-icon {
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(125, 211, 252, 0.1);
  border-radius: 12px;
  font-size: 1.5rem;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f4f4f5;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #a1a1aa;
  font-weight: 500;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(228, 228, 231, 0.03);
  border: 1px solid rgba(228, 228, 231, 0.1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.play-icon {
  color: #7dd3fc;
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f4f4f5;
}

.project-description {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-content {
  padding: 0 1.5rem 1.5rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(228, 228, 231, 0.1);
}

.meta-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.meta-label {
  color: #a1a1aa;
  font-weight: 500;
}

.meta-value {
  color: #d4d4d8;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: #7dd3fc;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #18181b;
  border: 1px solid rgba(228, 228, 231, 0.1);
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(228, 228, 231, 0.1);
  border: none;
  color: #e4e4e7;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(228, 228, 231, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  gap: 1rem;
}

.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f4f4f5;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-details {
  padding: 2rem;
}

.modal-details p {
  color: #d4d4d8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.separator {
  height: 1px;
  background: rgba(228, 228, 231, 0.1);
  margin: 1.5rem 0;
}

.modal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.875rem;
  color: #a1a1aa;
  font-weight: 500;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-label {
  font-weight: 600;
  color: #e4e4e7;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Contact Section */
.contact-content {
  max-width: 900px;
  margin: 0 auto;
}

.contact-text {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #a1a1aa;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(228, 228, 231, 0.03);
  border: 1px solid rgba(228, 228, 231, 0.1);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(228, 228, 231, 0.05);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 211, 252, 0.1);
  border-radius: 12px;
  color: #7dd3fc;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.875rem;
  color: #a1a1aa;
  font-weight: 500;
}

.contact-value {
  font-size: 1rem;
  color: #e4e4e7;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(228, 228, 231, 0.1);
  color: #71717a;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .hero-section {
    padding: 6rem 1.5rem 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    grid-template-columns: 1fr;
  }
  
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-header,
  .modal-details {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 2rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .project-image-container {
    height: 200px;
  }
}