/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0a0a;
  color: #fafafa;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(250, 250, 250, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: #fafafa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #e8e8e8;
}

.nav-cta {
  background: #f5f5f5;
  color: #0a0a0a;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(250, 250, 250, 0.3);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fafafa;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fafafa;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #6c6b6c;
  margin-bottom: 3rem;
  font-weight: 400;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  background: #6c6b6c;
  color: #0a0a0a;
  border: none;
  padding: 18px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.cta-primary:hover {
  background: #8a8989;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 107, 108, 0.3);
}

.cta-secondary {
  background: transparent;
  color: #fafafa;
  border: 2px solid #6c6b6c;
  padding: 16px 34px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.cta-secondary:hover {
  background: rgba(108, 107, 108, 0.1);
  border-color: #8a8989;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(250, 250, 250, 0.6);
  border-bottom: 2px solid rgba(250, 250, 250, 0.6);
  transform: rotate(45deg);
}

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

/* Projects Section */
.projects-section {
  padding: 120px 0;
  background: #0a0a0a;
}

.projects-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fafafa;
}

.section-description {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.category-section {
  margin-bottom: 5rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.category-icon {
  font-size: 2.5rem;
}

.category-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: #6c6b6c;
}

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

.project-card {
  background: #1a1a1a;
  border: 1px solid rgba(108, 107, 108, 0.2);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}
.project-card:nth-child(2) {
  animation-delay: 0.2s;
}
.project-card:nth-child(3) {
  animation-delay: 0.3s;
}
.project-card:nth-child(4) {
  animation-delay: 0.4s;
}
.project-card:nth-child(5) {
  animation-delay: 0.5s;
}
.project-card:nth-child(6) {
  animation-delay: 0.6s;
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(108, 107, 108, 0.15);
  border-color: rgba(108, 107, 108, 0.4);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fafafa;
}

.project-description {
  color: #cccccc;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.tech-badge {
  background: rgba(108, 107, 108, 0.2);
  color: #6c6b6c;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Media Showcase Section */
.showcase-section {
  padding: 120px 0;
  background: #1a1a1a;
}

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

.showcase-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: #6c6b6c;
  border: 1px solid rgba(108, 107, 108, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #6c6b6c;
  color: #0a0a0a;
  border-color: #6c6b6c;
}

.view-btn {
  background: rgba(108, 107, 108, 0.1);
  color: #6c6b6c;
  border: 1px solid rgba(108, 107, 108, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  background: #6c6b6c;
  color: #0a0a0a;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  transition: all 0.5s ease;
}

.showcase-grid.masonry {
  columns: 4;
  column-gap: 1.5rem;
}

.media-item {
  background: #111111;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(108, 107, 108, 0.1);
}

.media-preview {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-grid.masonry .media-preview {
  height: auto;
}

.media-item:hover .media-preview {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.media-item:hover .media-overlay {
  opacity: 1;
}

.media-info-preview {
  color: #fafafa;
}

.media-info-preview h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.media-info-preview p {
  font-size: 0.8rem;
  opacity: 0.8;
}

.media-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(108, 107, 108, 0.9);
  color: #fafafa;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fafafa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* Media Modal */
.media-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.media-modal-content {
  position: relative;
  margin: 2% auto;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 1rem;
}

.media-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fafafa;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.media-modal-close:hover {
  color: #6c6b6c;
}

.media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  border-radius: 8px;
  overflow: hidden;
}

.modal-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-info {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.media-info h3 {
  color: #fafafa;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.media-info p {
  color: #cccccc;
  margin-bottom: 1rem;
}

.media-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: #6c6b6c;
}

.media-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-btn {
  background: #6c6b6c;
  color: #0a0a0a;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-btn:hover {
  background: #8a8989;
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Final CTA */
.final-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  text-align: center;
}

.final-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #fafafa;
}

.final-text {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.final-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: #1a1a1a;
  margin: 2% auto;
  border: 1px solid rgba(108, 107, 108, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.modal-close {
  color: #cccccc;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  z-index: 1001;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #fafafa;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.modal-left {
  background: #0a0a0a;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-preview {
  width: 100%;
  max-width: 400px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(108, 107, 108, 0.2);
}

.code-header {
  background: #2a2a2a;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6c6b6c;
}

.code-dots span:nth-child(1) {
  background: #ff5f56;
}
.code-dots span:nth-child(2) {
  background: #ffbd2e;
}
.code-dots span:nth-child(3) {
  background: #27ca3f;
}

.code-title {
  color: #cccccc;
  font-size: 0.9rem;
  font-weight: 500;
}

.code-content {
  padding: 1.5rem;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cccccc;
  background: #0a0a0a;
  min-height: 200px;
  overflow-x: auto;
}

.modal-right {
  padding: 3rem;
  overflow-y: auto;
}

.modal-right h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fafafa;
}

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

.modal-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #6c6b6c;
}

.modal-section p {
  color: #cccccc;
  line-height: 1.7;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-stack .tech-badge {
  background: rgba(108, 107, 108, 0.3);
  color: #fafafa;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

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

  .category-title {
    font-size: 1.8rem;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
  }

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

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-left {
    display: none;
  }

  .modal-right {
    padding: 2rem;
  }

  .final-title {
    font-size: 2.2rem;
  }

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

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

  .showcase-grid.masonry {
    columns: 2;
  }

  .media-modal-content {
    width: 95%;
    height: 95vh;
    margin: 2.5% auto;
  }

  .media-navigation {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .modal-right {
    padding: 1.5rem;
  }

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

  .category-title {
    font-size: 1.5rem;
  }

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

  .showcase-grid.masonry {
    columns: 1;
  }

  .showcase-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
}
