/* ===========================================
   PROJECTS PAGE - RESPONSIVE DESIGN
   =========================================== */

/* Navigation Fixes - REMOVED CONFLICTING STYLES */

/* ===========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =========================================== */

/* Mobile Navigation - REMOVED CONFLICTING STYLES */

/* Projects Hero Section - Responsive */
.projects-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* YouTube iframe specific styling for fullscreen mobile */
.hero-video[src*="youtube.com"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  object-fit: cover !important;
  z-index: 1 !important;
  opacity: 1 !important;
  filter: brightness(0.7) blur(3px) !important;
}

/* Mobile specific iframe styling */
@media (max-width: 768px) {
  .hero-video[src*="youtube.com"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    border: none !important;
    object-fit: cover !important;
    z-index: 1 !important;
    opacity: 1 !important;
    filter: brightness(0.7) blur(3px) !important;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 174, 202, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
  margin-top: 0;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Projects Grid - Responsive */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

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

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary-800);
}

.project-description {
  color: var(--secondary-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.project-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-600);
}

.project-features i {
  color: var(--primary-500);
  font-size: 0.8rem;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 174, 202, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .projects-hero {
    height: 100vh;
    min-height: 100vh;
    margin-top: 0;
    padding-top: 0;
  }
  
  body.projects-page .projects-hero {
    height: 100vh !important;
    min-height: 100vh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
  }
  
  .project-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-title {
    font-size: 1.25rem;
  }
}

/* Ensure projects hero stays below navigation */
body.projects-page .projects-hero {
  z-index: 1 !important;
  position: relative !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Fix header positioning - REMOVED CONFLICTING STYLES */

/* Base Styles */
body.projects-page {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--secondary-500);
  line-height: 1.6;
}

html.projects-page,
body.projects-page {
  scroll-snap-type: none !important;
  scroll-behavior: smooth !important;
  overflow-x: hidden;
}

/* Disable reveal animations */
body.projects-page section,
body.projects-page .reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Footer styling consistency */
body.projects-page footer {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  background: var(--secondary-500) !important;
  color: white !important;
  padding: 2rem 0 1.5rem 0 !important;
  text-align: center !important;
  margin-top: 0 !important;
  z-index: 10 !important;
}

body.projects-page .footer-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

body.projects-page .social-icons {
  display: flex !important;
  gap: 1rem !important;
}

body.projects-page .social-icons a {
  color: white !important;
  font-size: 1.2rem !important;
  transition: color 0.3s ease !important;
}

body.projects-page .social-icons a:hover {
  color: var(--primary-500) !important;
}

/* ===========================================
   MAIN LAYOUT
   =========================================== */
.projects-main {
  padding-top: 0;
  min-height: 100vh;
}

/* ===========================================
   HERO SECTION - VIDEO BACKGROUND
   =========================================== */
.projects-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 174, 202, 0.8), rgba(30, 41, 59, 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.projects-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 15;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 15;
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  z-index: 15;
  position: relative;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 300;
}

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

.hero-actions .btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-500);
  border: 2px solid var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-500);
  border-color: var(--white);
}

/* ===========================================
   PROJECT SECTIONS - DEDICATED LAYOUTS
   =========================================== */
.project-section {
  padding: 6rem 0;
  background: var(--white);
}

.project-section.alternate {
  background: var(--gray-50);
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.project-section.alternate .project-layout {
  grid-template-columns: 1fr 1fr;
}

.project-section.alternate .project-visual {
  order: 2 !important;
}

.project-section.alternate .project-info {
  order: 1 !important;
}

/* Project Information */
.project-info {
  padding: 2rem 0;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.project-info h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--secondary-500);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.meta-item i {
  color: var(--primary-500);
  width: 16px;
}

.project-description {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Project Highlights */
.project-highlights {
  margin-bottom: 2.5rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight-item {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-500);
}

.project-section.alternate .highlight-item {
  background: var(--white);
}

.highlight-item h4 {
  font-size: 1rem;
  color: var(--secondary-500);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 1rem;
}

.project-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  flex: 1;
}

.project-btn.primary {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: var(--white);
}

.project-btn.primary:hover {
  background: linear-gradient(135deg, var(--secondary-500), var(--primary-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 174, 202, 0.3);
}

.project-btn.outline {
  background: transparent;
  color: var(--gray-600);
  border: 2px solid var(--gray-200);
}

.project-btn.outline:hover {
  background: var(--gray-50);
  color: var(--secondary-500);
  border-color: var(--primary-500);
  transform: translateY(-1px);
}

/* ===========================================
   PROJECT VISUALS - IMAGE LAYOUTS
   =========================================== */
.project-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-video {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  background: var(--gray-100);
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-video:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* YouTube iframe styling */
.project-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease;
}

.project-video:hover iframe {
  transform: scale(1.02);
}

/* Legacy video and image styling for fallback */
.project-video video,
.project-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: none;
  outline: none;
  transition: transform 0.4s ease;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
}

.project-video:hover video,
.project-video:hover img {
  transform: scale(1.02);
}

/* Responsive YouTube video styling */
@media (max-width: 768px) {
  .project-video {
    height: 250px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
  
  .project-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  }
  
  .project-video iframe {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .project-video {
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  .project-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
  
  .project-video iframe {
    border-radius: 8px;
  }
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-image-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-image-grid img:hover {
  transform: scale(1.05);
}

/* ===========================================
   CALL TO ACTION SECTION
   =========================================== */
.projects-cta {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.cta-btn {
  padding: 1.25rem 2.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.cta-btn.primary {
  background: var(--white);
  color: var(--primary-500);
  border: 2px solid var(--white);
}

.cta-btn.primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.cta-btn.outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

/* ===========================================
   PROJECT GALLERY MODAL
   =========================================== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: #1e293b;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #6b7280;
}

.modal-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.modal-close:hover {
  background: #4b5563;
  color: #ffffff;
}

.modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

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

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 1024px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .project-section.alternate .project-layout {
    grid-template-columns: 1fr;
  }
  
  .project-section.alternate .project-visual {
    order: -1;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .projects-main {
    padding-top: 0;
  }
  
  .projects-hero {
    min-height: 80vh;
  }
  
  .hero-stats {
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .project-section {
    padding: 4rem 0;
  }
  
  .project-layout {
    gap: 2rem;
  }
  
  .project-info {
    padding: 1rem 0;
  }
  
  .project-image-main img {
    height: 250px;
  }
  
  .project-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-image-grid img {
    height: 100px;
  }
  
  .project-actions {
    flex-direction: column;
  }
  
  .projects-cta {
    padding: 4rem 0;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .projects-hero {
    min-height: 60vh;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-item {
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .project-section {
    padding: 2rem 0;
  }
  
  .project-layout {
    gap: 1.5rem;
  }
  
  .project-info h2 {
    font-size: var(--text-2xl);
    margin-bottom: 0.75rem;
  }
  
  .project-info p {
    font-size: var(--text-sm);
    margin-bottom: 1rem;
  }
  
  .project-specs {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .spec-item {
    padding: 0.5rem;
    font-size: var(--text-xs);
  }
  
  .project-actions {
    gap: 0.75rem;
  }
  
  .project-btn {
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
  }
  
  .project-image-main img {
    height: 200px;
  }
  
  .project-image-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .project-image-grid img {
    height: 80px;
  }
  
  .projects-cta {
    padding: 2rem 0;
  }
  
  .cta-content h2 {
    font-size: var(--text-2xl);
    margin-bottom: 0.75rem;
  }
  
  .cta-content p {
    font-size: var(--text-sm);
    margin-bottom: 1.5rem;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: var(--text-sm);
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 90vh;
    margin: 2.5vh auto;
  }
  
  .modal-header {
    padding: 0.75rem 1rem;
  }
  
  .modal-title {
    font-size: var(--text-lg);
  }
  
  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
  }
  
  .gallery-grid img {
    height: 120px;
  }
  
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn,
  .cta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .project-image-main img {
    height: 200px;
  }
  
  .project-image-grid {
    grid-template-columns: 1fr;
  }
  
  .project-image-grid img {
    height: 120px;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  
  .project-meta {
    gap: 0.5rem;
  }
  
  .meta-item {
    font-size: 0.85rem;
  }
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-section:nth-child(2) .project-info {
  animation: slideInLeft 0.8s ease-out;
}

.project-section:nth-child(2) .project-visual {
  animation: slideInRight 0.8s ease-out;
}

.project-section:nth-child(3) .project-info {
  animation: slideInRight 0.8s ease-out;
}

.project-section:nth-child(3) .project-visual {
  animation: slideInLeft 0.8s ease-out;
}

.project-section:nth-child(4) .project-info {
  animation: slideInLeft 0.8s ease-out;
}

.project-section:nth-child(4) .project-visual {
  animation: slideInRight 0.8s ease-out;
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */
.project-btn:focus,
.cta-btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.project-image-main:focus-within,
.project-image-grid img:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;