/* SELİM Tesisat - Main Styles */
/* Using logo colors: Blue (#0ea5e9) and Purple (#7c3aed) */

:root {
    --primary-color: #0ea5e9; /* Blue from logo */
    --secondary-color: #7c3aed; /* Purple from logo */
    --accent-color: #0284c7; /* Darker blue */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header Styles */
  .header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .logo {
    height: 120px;
    width: auto;
    background: var(--white);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-color);
  }
  
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
  }
  
  .nav-toggle,
  .header .nav-toggle,
  .navbar .nav-toggle,
  nav .nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
  }
  
  .nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
  }

  /* =============================================================
     COMMON HEADER STYLES - Used by all pages consistently
     ============================================================= */
  
  .site-header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-section {
    display: flex;
    align-items: center;
  }
  
  .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  
  .site-logo {
    height: 120px;
    width: auto;
    background: var(--white);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }
  
  .main-navigation .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
  }
  
  .main-navigation .nav-link:hover,
  .main-navigation .nav-link.active {
    color: var(--primary-color);
  }
  
  .main-navigation .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
  }
  
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
  }
  
  .hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
  }
  
  /* Mobile menu active states */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Mobile Styles */
  @media (max-width: 768px) {
    .header-container {
      padding: 0.75rem 20px;
    }
    
    .site-logo {
      height: 100px;
    }
    
    .mobile-menu-toggle {
      display: flex;
    }
    
    .main-navigation .nav-menu {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background: var(--white);
      flex-direction: column;
      gap: 0;
      padding: 2rem 0;
      box-shadow: 0 4px 20px var(--shadow);
      transition: left 0.3s ease;
      z-index: 999;
    }
    
    .main-navigation .nav-menu.active {
      left: 0;
    }
    
    .main-navigation .nav-menu li {
      width: 100%;
      text-align: center;
    }
    
    .main-navigation .nav-link {
      display: block;
      padding: 1rem 2rem;
      font-size: 1.1rem;
      border-bottom: 1px solid var(--border);
    }
    
    .main-navigation .nav-link.active::after {
      display: none;
    }
    
    .main-navigation .nav-link.active {
      background: var(--bg-light);
    }
  }
  
  /* =============================================================
     END COMMON HEADER STYLES
     ============================================================= */
  
  /* Hero Section */
  .hero {
    background: var(--bg-light);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
  }
  
  .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-description {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.7;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  }
  
  .btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
  }
  
  .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px var(--shadow);
  }
  
  /* Services Section */
  .services {
    padding: 80px 0;
    background: var(--white);
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
  }
  
  .section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
  }

  .service-icon .emoji-icon {
    font-size: 2.5rem;
    line-height: 1;
    display: block;
  }
  
  .service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
  }
  
  .service-card p {
    color: var(--text-light);
    line-height: 1.6;
  }
  
  /* Why Choose Us Section */
  .why-choose {
    padding: 80px 0;
    background: var(--bg-light);
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .feature-item {
    text-align: center;
    padding: 2rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
  }
  
  .feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
  }
  
  .feature-item p {
    color: var(--text-light);
  }
  
  /* CTA Section */
  .cta {
    padding: 80px 0;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
  }
  
  .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Footer */
  .footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
  }
  
  .footer-logo {
    height: 90px;
    width: auto;
    background: var(--white);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .footer-brand p {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: var(--primary-color);
  }
  
  .contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: var(--text-light);
  }
  
  /* Icons */
  .icon-phone::before { content: '📞'; }
  .icon-drop::before { content: '💧'; }
  .icon-wrench::before { content: '🔧'; }
  .icon-fire::before { content: '🔥'; }
  .icon-home::before { content: '🏠'; }
  .icon-clock::before { content: '⏰'; }
  .icon-star::before { content: '⭐'; }
  .icon-shield::before { content: '🛡️'; }
  .icon-money::before { content: '💰'; }
  .icon-mail::before { content: '📧'; }
  .icon-location::before { content: '📍'; }
  
  /* Responsive Design */
  /* Mobile menu styles with higher specificity */
  @media (max-width: 768px) {
    .header .nav-menu,
    .navbar .nav-menu,
    nav .nav-menu {
      position: fixed !important;
      left: -100% !important;
      top: 70px !important;
      flex-direction: column !important;
      background-color: var(--white) !important;
      width: 100% !important;
      text-align: center !important;
      transition: 0.3s !important;
      box-shadow: 0 10px 27px var(--shadow) !important;
      padding: 2rem 0 !important;
      z-index: 1000 !important;
    }
  
    .header .nav-menu.active,
    .navbar .nav-menu.active,
    nav .nav-menu.active {
      left: 0 !important;
    }
  
    .header .nav-toggle,
    .navbar .nav-toggle,
    nav .nav-toggle {
      display: flex !important;
    }
    
    .nav-toggle.active span:nth-child(1) {
      transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
      transform: rotate(45deg) translate(-5px, -6px);
    }
  
    .hero .container {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
  
    .hero-title {
      font-size: 2.2rem;
    }
  
    .section-title {
      font-size: 2rem;
    }
  
    .cta-content h2 {
      font-size: 2rem;
    }
  
    .hero-buttons,
    .cta-buttons {
      justify-content: center;
    }
  
    .services-grid {
      grid-template-columns: 1fr;
    }
  
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .hero-title {
      font-size: 1.8rem;
    }
  
    .section-title {
      font-size: 1.8rem;
    }
  
    .hero-buttons,
    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    .features-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
  }
  
  /* Loading and Animation */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* SEO and Performance */
  img {
    max-width: 100%;
    height: auto;
  }
  
  .lazy {
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .lazy.loaded {
    opacity: 1;
  }

  /* Additional styles for services page */
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .services-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
  }

  .services-logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #0EA5E9;
    box-shadow: 0 2px 10px 0 rgba(14,165,233,0.10);
    padding: 4px 10px;
    transition: box-shadow 0.2s, background 0.2s;
  }

  .services-logo img:hover {
    background: #e0f2fe;
    box-shadow: 0 6px 18px 0 rgba(14,165,233,0.18);
  }

  .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
  }

  .nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
  }

  .process-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
  }

  .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }

  .process-step {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    position: relative;
  }

  .step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0EA5E9 0%, #4C1D95 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
  }

  .coverage-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
  }

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

  .coverage-item {
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
  }

  .coverage-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #0EA5E9 0%, #4C1D95 100%);
    color: white;
  }

  .warranty-section {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 3rem;
  }

  .warranty-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }

  .warranty-item {
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    text-align: center;
  }

  .warranty-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .mobile-menu {
    display: none;
  }

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

    .mobile-menu {
      display: block;
      background: none;
      border: none;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
    }

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

    .container {
      padding: 1rem;
    }

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

    .coverage-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .services-logo img {
      height: 28px;
      padding: 2px 5px;
      border-radius: 6px;
      background: var(--white);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
  }

  /* Portfolio/References Page Styles */
  .page-hero {
    background: linear-gradient(135deg, 
      var(--primary-color) 0%, 
      var(--secondary-color) 50%, 
      #1e40af 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
  }

  .page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
  }

  .page-hero .container {
    position: relative;
    z-index: 2;
  }

  @keyframes gradientShift {
    0%, 100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
  }

  .page-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  .page-hero .highlight {
    display: block;
    color: #fbbf24;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
    text-shadow: none;
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  .page-hero .hero-description {
    font-size: 1.2rem;
    margin: 1.5rem auto 0;
    max-width: 600px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    line-height: 1.6;
  }

  /* Portfolio Categories */
  .portfolio-categories {
    padding: 4rem 0;
    background: var(--light-gray);
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }

  .category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
  }

  .category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
  }

  .category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
  }

  .category-card p {
    color: var(--text-light);
    line-height: 1.6;
  }

  /* Portfolio Grid */
  .portfolio-grid {
    padding: 4rem 0;
  }

  .filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .filter-btn:hover,
  .filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
  }

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

  .project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }

  .project-card.fade-in {
    opacity: 1;
  }

  .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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .project-card:hover .project-overlay {
    opacity: 1;
  }

  .project-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .project-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
  }

  .project-date {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .view-project-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .view-project-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
  }

  .project-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .project-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
  }

  .project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .project-meta i {
    color: var(--primary-color);
  }

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

  /* Responsive Design for Portfolio */
  @media (max-width: 768px) {
    .page-hero {
      padding: 6rem 0 3rem;
    }

    .page-hero .hero-title {
      font-size: 2.2rem;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    }

    .page-hero .highlight {
      font-weight: 800;
      letter-spacing: 0.3px;
    }

    .page-hero .hero-description {
      font-size: 1.1rem;
      margin: 1rem auto 0;
      padding: 0 1rem;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    }

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

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

    .filter-buttons {
      gap: 0.8rem;
    }

    .filter-btn {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
    }

    .project-meta {
      flex-direction: column;
      gap: 0.8rem;
    }
  }

  /* Gallery Page Styles */
  .gallery-section {
    padding: 4rem 0;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }

  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
  }

  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  }

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

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

  .gallery-item:hover .gallery-image img {
    transform: scale(1.1);
  }

  .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through to image */
  }

  .gallery-item:hover .gallery-overlay {
    opacity: 1;
    pointer-events: auto; /* Enable overlay interactions on hover */
  }

  .gallery-info {
    color: var(--white);
  }

  .gallery-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
  }

  /* Gallery responsive */
  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .gallery-image {
      height: 200px;
    }
  }

  /* Lightbox Styles */
  .lightbox {
    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(5px);
    animation: fadeIn 0.3s ease-in-out;
  }

  .lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
  }

  .lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }

  .lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
  }

  #lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
  }

  .lightbox-info {
    padding: 20px;
    background: var(--white);
    text-align: center;
  }

  .lightbox-info h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .lightbox-info p {
    color: var(--text-light);
    font-size: 1rem;
  }

  /* Gallery item hover effect */
  .gallery-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
  }

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

  /* Lightbox animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

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

  /* Lightbox responsive */
  @media (max-width: 768px) {
    .lightbox-content {
      max-width: 95%;
      max-height: 95%;
    }

    #lightbox-image {
      max-height: 60vh;
    }

    .lightbox-info {
      padding: 15px;
    }

    .lightbox-info h3 {
      font-size: 1.2rem;
    }

    .lightbox-close {
      top: 10px;
      right: 15px;
      width: 35px;
      height: 35px;
      font-size: 1.5rem;
    }
  }