/* ======================================================= */
/* PORTFOLIO WEBSITE - MAIN STYLESHEET */
/* ======================================================= */

/* ======================================================= */
/* 1. CSS VARIABLES & GLOBAL STYLES */
/* ======================================================= */
:root {
  --dark-bg: #000000;
  --text-color: #ffffff;
  --tw-ring-color: transparent !important;
  --tw-ring-offset-color: transparent !important;
  --tw-border-color: #6b7280 !important;
  --professional-red: #dc2626;
  --professional-red-hover: #b91c1c;
  --professional-red-light: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --tw-ring-color: transparent !important;
  -webkit-text-size-adjust: 100%;
  --tw-ring-offset-color: transparent !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 800px 600px at 20% 30%, rgba(30, 30, 30, 0.8) 0%, transparent 50%),
    radial-gradient(ellipse 600px 800px at 80% 70%, rgba(20, 20, 20, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 1000px 400px at 50% 50%, rgba(25, 25, 25, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

/* ======================================================= */
/* 2. SCROLL SNAP CONFIGURATION - REMOVED (NOT USED) */
/* ======================================================= */

/* ======================================================= */
/* 3. HEADER & NAVIGATION */
/* ======================================================= */
.main-header.scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}

/* Professional Navbar Link Styling */
.navbar a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.navbar a:hover {
  color: var(--professional-red) !important;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}

/* Exclude logo from red hover effect */
.navbar a.no-hover-red:hover {
  color: white !important;
  text-shadow: none;
  transform: none;
}

/* Social Icons Professional Styling */
.navbar .social-icons a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .social-icons a:hover {
  color: var(--professional-red) !important;
  transform: translateY(-2px) scale(1.1);
  text-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

@media (max-width: 767px) {
  .main-header {
    background-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
  }
}

/* Mobile menu toggle styles handled by Tailwind */

/* ======================================================= */
/* 4. HERO SECTION */
/* ======================================================= */
.hero-section {
  position: relative;
  height: 100vh;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.05);
  will-change: background-position;
  transform: translateZ(0);
  transition: background-position 0.15s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
  scroll-margin-top: 100px;
}

/* Hero content positioning */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Desktop hero content alignment */
@media (min-width: 1280px) {
  .hero-content {
    align-items: center;
    text-align: center;
  }
}

/* Professional Hero Background */
.hero-section {
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Hero Content Enhancements */
.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Professional Hero Title Styling */
.hero-content .title-text {
  background: linear-gradient(135deg, var(--professional-red), var(--professional-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* Enhanced title prominence */
.hero-content h1 {
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  text-align: center;
  width: 100%;
}

/* Desktop title alignment */
@media (min-width: 1280px) {
  .hero-content h1 {
    text-align: center;
  }
}

/* Subtitle centering */
.hero-content h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 0.25rem;
}

@media (min-width: 1280px) {
  .hero-content h2 {
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

.hero-content p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Desktop description alignment */
@media (min-width: 1280px) {
  .hero-content p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1rem;
  }
}

/* Highlighted text styling */
.hero-content span.text-white {
  position: relative;
}

/* Hero Button Styles */
.hero-content a {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hero-content a:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Desktop Hero Styles */
@media (min-width: 1280px) {
  .hero-section {
    background: transparent;
  }

  .hero-content h1 {
    font-size: 35px !important;
    margin-bottom: 30px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    opacity: 0.95 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
  }

  .social-links a {
    font-size: 1.6em !important;
    margin-right: 20px !important;
    display: block !important;
    margin-top: 15px !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    backdrop-filter: blur(2px) !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
  }

  .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
  }
}

/* Ultra-wide Desktop */
@media (min-width: 1920px) {
  .hero-section {
    background: transparent;
  }
}

/* Tablet and Mobile */
@media (max-width: 1279px) {
  .hero-section {
    background: transparent;
  }
}

/* Tablet Specific */
@media (min-width: 768px) and (max-width: 1279px) {
  .hero-section {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 40px 280px 40px;
    min-height: 100vh;
    position: relative;
  }

  .hero-content h1 {
    font-size: 4rem !important;
    line-height: 0.9 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-content h2 {
    font-size: 1.25rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-content p {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    margin-bottom: 0.5rem !important;
  }
}

  .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    transform: translateY(-60px);
    margin-top: -40px;
  }

  .hero-content h1 {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    color: white !important;
  }

  .hero-content p {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
  }

  .hero-content .max-w-lg {
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero-content .max-w-lg p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
  }

  .hero-content .flex {
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-content a {
    flex: 1 !important;
    max-width: 200px !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
  }

  .social-links-mobile {
    bottom: 90px !important;
    z-index: 5 !important;
  }
}

/* Mobile Specific */
@media (max-width: 767px) {
  .hero-section {
    background: transparent;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 20px 250px 20px;
    min-height: 100vh;
    position: relative;
    scroll-margin-top: 80px;
  }

  .about-section,
  .work-section,
  .visual-art-section {
    scroll-margin-top: 80px;
  }
}

  .hero-content h1 {
    font-size: 3rem !important;
    line-height: 0.95 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-content h2 {
    font-size: 1rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-content p {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    margin-bottom: 0.5rem !important;
  }
}

  .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    transform: translateY(-50px);
    margin-top: -30px;
  }

  /* Hide desktop content on mobile */
  .hero-content .max-w-lg {
    display: none !important;
  }

  /* Show mobile-only content */
  .mobile-only-content {
    display: block !important;
    width: 100%;
    max-width: 100%;
  }
}

/* Desktop and Tablet - Show full content */
@media (min-width: 768px) {
  .hero-content .max-w-lg {
    display: block !important;
  }

  .mobile-only-content {
    display: none !important;
  }

  /* Mobile tagline spacing */
  .hero-content p {
    margin-bottom: 0 !important;
  }
}

/* Desktop Specific */
@media (min-width: 1280px) {
  .hero-section {
    padding: 20px 40px 300px 40px !important;
  }

  .hero-content {
    transform: translateY(-80px) !important;
    margin-top: -50px !important;
  }

  .hero-content h1 {
    font-size: 6rem !important;
    line-height: 0.9 !important;
  }

  .hero-content h2 {
    font-size: 1.5rem !important;
    margin-top: 1rem !important;
  }
}

/* XL Desktop Specific */
@media (min-width: 1920px) {
  .hero-section {
    padding: 30px 60px 350px 60px !important;
    scroll-margin-top: 140px !important;
  }

  .hero-content {
    transform: translateY(-100px) !important;
    margin-top: -60px !important;
  }

  .about-section,
  .work-section,
  .visual-art-section {
    scroll-margin-top: 140px !important;
  }
}

  .hero-content h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    color: white !important;
  }

  .hero-content p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
  }

  .hero-content .max-w-lg {
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero-content .max-w-lg p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .hero-content .flex {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .hero-content a {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }

  .social-links {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 20px !important;
  }

  .social-links-mobile {
    bottom: 80px !important;
    z-index: 5 !important;
  }

  .social-links a {
    background-color: rgba(0, 0, 0, 0.6) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
  }

  .hero-content h1 {
    text-align: center !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  @media (max-width: 480px) {
    .hero-content {
      padding: 350px 0 120px !important;
    }

    .hero-content h1 {
      font-size: 1.8rem !important;
      line-height: 1.3 !important;
    }

    .social-links {
      gap: 15px !important;
    }

    .social-links a {
      width: 45px !important;
      height: 45px !important;
    }
  }
}

/* ======================================================= */
/* 5. ABOUT & WORK SECTIONS */
/* ======================================================= */
.about-section,
.work-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: transparent;
  scroll-margin-top: 100px;
}

.about-section > *,
.work-section > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  .about-section,
  .work-section {
    min-height: 0;
    padding-bottom: 50px;
    scroll-margin-top: 90px;
  }

  .about-section {
    scroll-margin-top: 90px;
  }

  .work-section {
    scroll-margin-top: 90px;
  }

  .visual-art-section {
    scroll-margin-top: 90px;
  }

  .hero-section {
    scroll-margin-top: 90px;
  }
}

/* Desktop Overrides */
@media (min-width: 1280px) {
  .about-section,
  .work-section {
    padding: 80px 10% !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    scroll-margin-top: 120px !important;
  }

  .visual-art-section {
    scroll-margin-top: 120px !important;
  }

  .hero-section {
    scroll-margin-top: 120px !important;
  }
}

  .about-section h2,
  .work-section h2 {
    font-size: 2em !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    position: relative !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
  }

  .about-subtitle {
    font-size: 1.1em !important;
    font-weight: 400 !important;
    color: var(--text-color) !important;
    margin-bottom: 50px !important;
    font-family: 'Inter', sans-serif !important;
  }

  .work-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    margin: 10px auto 0;
  }

  .about-content {
    max-width: 800px !important;
    margin: 0 auto 40px !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 500px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .about-content p {
    margin-bottom: 30px !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
  }

  /* XL Desktop - Match image height of 550px */
  @media (min-width: 1440px) {
    .about-content {
      min-height: 550px !important;
    }
  }

  .about-content .text-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  .about-content .skills-list {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
  }

  .about-intro {
    letter-spacing: 0.5px !important;
  }

  .about-text {
    letter-spacing: 0.3px !important;
  }

  .skills-list {
    margin-top: 40px !important;
    text-align: center !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .skills-list span {
    display: block !important;
    padding: 1rem 1.5rem !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
  }

  .skills-list span:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 4px 10px -5px rgba(0, 0, 0, 0.1) !important;
  }

  .skills-list span {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 1em !important;
    color: #aaa !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
  }

  .project-card {
    padding: 20px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
  }

  .project-card:hover {
    border-color: #444444 !important;
    transform: translateY(-2px) !important;
  }

  .project-card * {
    background-color: inherit !important;
  }

  .coderhouse-overlay {
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)) !important;
  }

  .project-card img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    border-radius: 5px !important;
    margin-bottom: 15px !important;
    aspect-ratio: 16/10 !important;
  }

  .project-title {
    font-weight: 600 !important;
    font-size: 1.1em !important;
    font-family: 'Inter', sans-serif !important;
  }
}

/* ======================================================= */
/* 6. PROJECT CARDS - BLUE COLOR ELIMINATION */
/* ======================================================= */

/* Mobile and Tablet Project Cards - Unified Design */
@media (max-width: 1023px) {
  .project-card * {
    background-color: inherit !important;
  }

  .project-card.bg-white\/\[0\.03\],
  .project-card.bg-white\/\[0\.02\],
  .project-card.bg-white\/\[0\.05\],
  .project-card.bg-white\/\[0\.04\] {
    background-color: transparent !important;
    background: transparent !important;
  }

  /* Enhanced Shadow Effects */
  .projects-grid .project-card:hover,
  .projects-grid article.project-card:hover,
  .project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) scale(1.02) !important;
  }

  .projects-grid .project-card:active,
  .projects-grid article.project-card:active,
  .project-card:active {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) scale(1.01) !important;
  }

  .projects-grid .project-card:focus,
  .projects-grid article.project-card:focus,
  .project-card:focus {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) scale(1.02) !important;
    outline: none !important;
  }

  .projects-grid .project-card.active,
  .projects-grid article.project-card.active,
  .project-card.active {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) scale(1.01) !important;
  }

  .projects-grid .project-card.clicked,
  .projects-grid article.project-card.clicked,
  .project-card.clicked {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-3px) scale(1.03) !important;
  }

  /* Overlay Visibility */
  .projects-grid .project-card.hover .coderhouse-overlay,
  .projects-grid article.project-card.hover .coderhouse-overlay,
  .project-card.hover .coderhouse-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .projects-grid .project-card.active .coderhouse-overlay,
  .projects-grid article.project-card.active .coderhouse-overlay,
  .project-card.active .coderhouse-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Project Card Hover Effects - Simple and Clean */
  .project-card {
    transition: all 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-8px) scale(1.05);
  }

  /* Hover Overlay Effects */
  .coderhouse-overlay {
    transition: opacity 0.3s ease;
  }

  /* Mobile: No background layer by default */
  @media (max-width: 767px) {
    .background-layer {
      background-color: transparent !important;
      opacity: 0 !important;
    }

    /* Only show when clicked */
    .project-card.clicked .background-layer {
      background-color: rgba(0, 0, 0, 0.6) !important;
      opacity: 1 !important;
    }
  }

  /* Tablet: No background layer by default */
  @media (min-width: 768px) and (max-width: 1279px) {
    .background-layer {
      background-color: transparent !important;
      opacity: 0 !important;
    }

    /* Only show when clicked */
    .project-card.clicked .background-layer {
      background-color: rgba(0, 0, 0, 0.7) !important;
      opacity: 1 !important;
    }
  }

  /* Desktop: Keep background layer hidden by default */
  @media (min-width: 1280px) {
    .background-layer {
      opacity: 0 !important;
      pointer-events: none !important;
      background-color: rgba(0, 0, 0, 0.7) !important;
    }
  }

  /* Project card background layer positioning */
  .projects-grid .project-card .background-layer,
  .projects-grid article.project-card .background-layer,
  .project-card .background-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
    pointer-events: none !important;
  }

  /* Mobile & Tablet: Show overlay when clicked */
  @media (max-width: 1279px) {
    .project-card.clicked .coderhouse-overlay {
      opacity: 1 !important;
      pointer-events: auto !important;
    }
  }

  /* Desktop: Show background layer only on hover */
  @media (min-width: 1280px) {
    .project-card:hover .background-layer {
      opacity: 1 !important;
      background-color: rgba(0, 0, 0, 0.7) !important;
      z-index: 10 !important;
    }
  }

  /* Enhanced Border Visibility */
  .projects-grid .project-card,
  .projects-grid article.project-card,
  .project-card {
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  }

  .projects-grid .project-card:hover,
  .projects-grid article.project-card:hover,
  .project-card:hover {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  }

  /* Button Background Protection */
  .projects-grid .project-card a.bg-gray-700,
  .projects-grid .project-card div.bg-gray-700,
  .projects-grid article.project-card a.bg-gray-700,
  .projects-grid article.project-card div.bg-gray-700,
  .project-card a.bg-gray-700,
  .project-card div.bg-gray-700 {
    background-color: rgb(55, 65, 81) !important;
    background: rgb(55, 65, 81) !important;
  }

  .projects-grid .project-card a.bg-gray-700:hover,
  .projects-grid article.project-card a.bg-gray-700:hover,
  .project-card a.bg-gray-700:hover {
    background-color: rgb(75, 85, 99) !important;
    background: rgb(75, 85, 99) !important;
  }
}

/* ======================================================= */
/* 7. PROJECT OVERLAYS */
/* ======================================================= */
.coderhouse-overlay {
  z-index: 20;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Responsive Overlay Sizes */
@media (max-width: 767px) {
  .coderhouse-overlay a {
    font-size: 0.875rem;
    padding: 10px 18px;
    border-radius: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .coderhouse-overlay a {
    font-size: 1rem;
    padding: 12px 22px;
    border-radius: 10px;
  }
}

@media (min-width: 1280px) {
  .coderhouse-overlay a {
    font-size: 1.125rem;
    padding: 14px 26px;
    border-radius: 12px;
  }
}

/* ======================================================= */
/* 8. MOBILE MENU */
/* ======================================================= */
@media (max-width: 1279px) {
  .main-header.menu-open {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }

  .main-header.menu-open .mobile-menu-toggle {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: scale(1.1) !important;
  }

  .main-header.menu-open .logo {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1.05) !important;
  }

  /* ======================================== */
  /* PERFORMANCE-OPTIMIZED ANIMATIONS */
  /* ======================================== */

  /* GPU-accelerated animations for better performance */
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
  }

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

  /* Smooth loading animation for images */
  .image-loading {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .image-loaded {
    opacity: 1;
    transform: scale(1);
  }

  /* Optimized button animations */
  .btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .btn-animated:hover::before {
    left: 100%;
  }

  /* Enhanced mobile menu animation */
  .nav-links {
    left: -100% !important;
    transform: translateX(0) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }

  .nav-links.active {
    left: 0 !important;
    transform: translateX(0) !important;
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }

  @keyframes slideInFromLeft {
    0% {
      left: -100% !important;
      opacity: 0 !important;
    }
    50% {
      opacity: 0.5 !important;
    }
    100% {
      left: 0 !important;
      opacity: 1 !important;
    }
  }

  /* Enhanced mobile menu items with staggered animation */
  .nav-links li {
    opacity: 0 !important;
    transform: translateY(15px) !important;
    transition: all 0.3s ease-out !important;
  }

  .nav-links.active li {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: fadeInUp 0.4s ease-out forwards !important;
  }

  .nav-links.active li:nth-child(1) {
    animation-delay: 0.1s !important;
  }

  .nav-links.active li:nth-child(2) {
    animation-delay: 0.2s !important;
  }

  @keyframes fadeInUp {
    0% {
      opacity: 0 !important;
      transform: translateY(15px) !important;
    }
    100% {
      opacity: 1 !important;
      transform: translateY(0) !important;
    }
  }

  /* Enhanced menu button animation */
  .mobile-menu-toggle {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative !important;
  }

  .mobile-menu-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    z-index: -1 !important;
  }

  .mobile-menu-toggle:hover::before {
    width: 60px !important;
    height: 60px !important;
  }

  .mobile-menu-toggle i {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform-origin: center !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Hamburger to X transformation */
  .mobile-menu-toggle:hover i.fa-bars {
    transform: scale(1.1) !important;
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
  }

  .mobile-menu-toggle:hover i.fa-times {
    transform: scale(1.1) !important;
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
  }

  /* Enhanced mobile menu styling */
  .nav-links {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  }

  /* Ensure mobile menu text is visible */
  .nav-links li a {
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    text-align: center !important;
    width: 100% !important;
  }

  .nav-links li a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    transition: left 0.5s !important;
  }

  .nav-links li a:hover::before {
    left: 100% !important;
  }

  .nav-links li a:hover {
    color: var(--professional-red) !important;
    transform: translateX(10px) scale(1.02) !important;
    text-shadow: 0 0 15px rgba(220, 38, 38, 0.6) !important;
    background-color: transparent !important;
    border-radius: 0 !important;
  }

  /* Remove background from menu items - only show text */
  .nav-links li {
    margin: 0.5rem 1rem !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .nav-links li:hover {
    background-color: transparent !important;
    transform: translateY(-2px) !important;
  }

  /* Enhanced menu close animation */
  .nav-links:not(.active) {
    animation: slideOutToLeft 0.4s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards !important;
  }

  @keyframes slideOutToLeft {
    0% {
      left: 0 !important;
      opacity: 1 !important;
      transform: translateX(0) scale(1) !important;
    }
    100% {
      left: -100% !important;
      opacity: 0 !important;
      transform: translateX(-100%) scale(0.95) !important;
    }
  }

  /* Menu items fade out animation */
  .nav-links:not(.active) li {
    animation: fadeOutDown 0.3s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards !important;
  }

  @keyframes fadeOutDown {
    0% {
      opacity: 1 !important;
      transform: translateY(0) scale(1) !important;
    }
    100% {
      opacity: 0 !important;
      transform: translateY(20px) scale(0.9) !important;
    }
  }

  /* Force icon visibility and proper switching */
  .mobile-menu-toggle i {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Force hamburger icon to be horizontal */
  .mobile-menu-toggle i.fa-bars:before {
    content: '\f0c9' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
  }

  /* Force X icon */
  .mobile-menu-toggle i.fa-times:before {
    content: '\f00d' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
  }

  /* Ensure proper display of hamburger and X icons */
  .mobile-menu-toggle i.fa-bars,
  .mobile-menu-toggle i.fa-times {
    display: block !important;
  }

  /* Hover effects */
  .mobile-menu-toggle:hover i {
    transform: scale(1.1) !important;
  }

  .mobile-menu-toggle:hover .fa-bars {
    transform: scale(1.1) !important;
  }

  .mobile-menu-toggle:hover .fa-times {
    transform: scale(1.3) !important;
    color: white !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
  }
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block !important;
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.5em !important;
    cursor: pointer !important;
  }

  .logo {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    z-index: 1001 !important;
    position: relative !important;
  }

  /* Desktop: Move logo further to the left - ONLY DESKTOP */
  @media (min-width: 1280px) {
    .logo {
      margin-left: -2rem !important;
      transform: translateX(-1rem) !important;
    }
  }

  @media (min-width: 1440px) {
    .logo {
      margin-left: -3rem !important;
      transform: translateX(-1.5rem) !important;
    }
  }
}

/* ======================================================= */
/* 9. FOOTER */
/* ======================================================= */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 150px;
}

@media (max-width: 1023px) {
  footer {
    padding: 120px 0;
    margin-top: 80px;
  }
}

@media (max-width: 767px) {
  footer {
    padding: 100px 20px;
    margin-top: 80px;
  }

  footer p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
  }
}

footer p {
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
}

/* ======================================================= */
/* TYPOGRAPHY CLASSES */
/* ======================================================= */
.font-space-grotesk {
  font-family: 'Space Grotesk', sans-serif;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

/* Professional Typography System */
.title-font {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.body-font {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* ======================================================= */
/* SMOOTH SCROLLING ENHANCEMENTS */
/* ======================================================= */
html {
  scroll-behavior: smooth;
}

/* ======================================================= */
/* PROFESSIONAL HERO STYLING */
/* ======================================================= */

/* ======================================================= */
/* SOCIAL MEDIA BUTTONS ANIMATIONS */
/* ======================================================= */

/* Mobile Social Icons - Smaller size to avoid overlapping with hero text */
@media (max-width: 768px) {
  .social-links-mobile a {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
    padding: 8px !important;
  }

  .social-links-mobile {
    gap: 14px !important;
    bottom: 100px !important;
  }
}

/* Small Mobile Specific (320px and below) */
@media (max-width: 320px) {
  .hero-section {
    padding: 15px 15px 220px 15px !important;
  }

  .hero-content {
    gap: 15px !important;
    transform: translateY(-30px) !important;
    margin-top: -20px !important;
  }

  .hero-content h1 {
    font-size: 1.8rem !important;
  }

  .hero-content p {
    font-size: 0.9rem !important;
  }

  .hero-content .max-w-lg p {
    font-size: 0.8rem !important;
    margin-bottom: 15px !important;
  }

  .hero-content a {
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
  }

  .social-links-mobile a {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
    padding: 6px !important;
  }

  .social-links-mobile {
    gap: 10px !important;
    bottom: 90px !important;
  }
}

@media (min-width: 1280px) {
  .social-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .social-btn:hover::before {
    left: 100%;
  }

  .social-btn:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
  }

  .social-btn i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    z-index: 2;
  }

  .social-btn:hover i {
    transform: scale(1.1) rotate(5deg) !important;
    color: #ffffff !important;
  }

  /* LinkedIn specific animation */
  .social-btn.linkedin:hover {
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3), 0 0 20px rgba(0, 119, 181, 0.2) !important;
  }

  /* Email specific animation */
  .social-btn.email:hover {
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3), 0 0 20px rgba(255, 193, 7, 0.2) !important;
  }

  /* Instagram specific animation */
  .social-btn.instagram:hover {
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.3), 0 0 20px rgba(225, 48, 108, 0.2) !important;
  }
}

/* ======================================================= */
/* VISUAL ART SECTION STYLES */
/* ======================================================= */
.visual-art-section {
  scroll-margin-top: 100px;
}

/* Hide Brochures section temporarily */
.brochures-section {
  display: none !important;
}

/* Hide third project card temporarily */
.third-project-card {
  display: none !important;
}

/* ======================================================= */
/* UNIFIED CARD DESIGN - ALL SECTIONS */
/* ======================================================= */

/* Base card styles - All devices */
.project-card,
.visual-art-card {
  background-color: #111111 !important;
  border: 1px solid #333333 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Hover effects - All devices */
.project-card:hover,
.visual-art-card:hover {
  background-color: #1a1a1a !important;
  border-color: #444444 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 4px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

/* Overlay styles - All devices */
.coderhouse-overlay,
.visual-art-overlay {
  opacity: 0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
}

.project-card:hover .coderhouse-overlay,
.visual-art-card:hover .visual-art-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Force overlays to be hidden by default */
.project-card .coderhouse-overlay,
.visual-art-card .visual-art-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Button styles - All devices */
.coderhouse-overlay a,
.visual-art-overlay a {
  background-color: #111111 !important;
  border: 1px solid #333333 !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.coderhouse-overlay a:hover,
.visual-art-overlay a:hover {
  background-color: #1a1a1a !important;
  border-color: #444444 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}
@media (min-width: 1280px) {
  .visual-art-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }

  .visual-art-card {
    padding: 1.5rem !important;
  }

  /* Work section specific - 2 columns centered */
  .work-section .visual-art-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    justify-items: center !important;
  }

  .visual-art-card img {
    object-fit: cover !important;
    object-position: center top !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    aspect-ratio: 4/3 !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  }

  .visual-art-card:hover img {
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
    filter: brightness(1.1) contrast(1.05) !important;
  }

  .visual-art-card .visual-art-title {
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .visual-art-card .visual-art-description {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }

  /* Work section specific - larger cards */
  .work-section .visual-art-card {
    padding: 2.5rem !important;
  }
}

@media (min-width: 1440px) {
  .visual-art-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
  }

  .visual-art-card {
    padding: 2rem !important;
  }

  /* Work section specific - 2 columns centered */
  .work-section .visual-art-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    justify-items: center !important;
  }

  .visual-art-card img {
    object-fit: cover !important;
    object-position: center top !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    aspect-ratio: 4/3 !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  }

  .visual-art-card:hover img {
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
    filter: brightness(1.1) contrast(1.05) !important;
  }

  .visual-art-card .visual-art-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .visual-art-card .visual-art-description {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }

  /* Work section specific - larger cards */
  .work-section .visual-art-card {
    padding: 3rem !important;
  }
}

/* ======================================================= */
/* WORK SECTION SPECIFIC FIXES */
/* ======================================================= */
@media (min-width: 1280px) {
  #work {
    padding-top: 40px !important;
  }

  .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }

  .project-card {
    padding: 2.5rem !important;
  }

  .project-card img {
    object-fit: cover !important;
    object-position: center top !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    aspect-ratio: 4/3 !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  }

  .project-card:hover img {
    transform: scale(1.08) translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
    filter: brightness(1.1) contrast(1.05) !important;
  }

  .project-card .project-title {
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .project-card .project-description {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }
}

@media (min-width: 1440px) {
  #work {
    padding-top: 140px !important;
  }

  .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
  }

  .project-card {
    padding: 3rem !important;
  }

  .project-card img {
    object-fit: cover !important;
    object-position: center top !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    aspect-ratio: 4/3 !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  }

  .project-card:hover img {
    transform: scale(1.08) translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
    filter: brightness(1.1) contrast(1.05) !important;
  }

  .project-card .project-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .project-card .project-description {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }
}

/* ======================================================= */
/* IMAGE MODAL */
/* ======================================================= */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

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

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  animation: zoomIn 0.3s ease-out;
}

.image-modal img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .image-modal-content {
    max-width: 95%;
    max-height: 95%;
  }

  .image-modal img {
    max-height: 85vh;
  }

  .image-modal-close {
    top: -35px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
}

/* ======================================================= */
/* END OF STYLESHEET */
/* ======================================================= */
