/* Projects Styles - Light Version with Mobile-First Design */
:root {
  --primary: #ffffff;
  --secondary: #6b7280;
  --accent: #3b82f6;
  --electric: #6366f1;
  --light: #f9fafb;
  --dark: #1f2937;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #4b5563;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
    url('https://www.transparenttextures.com/patterns/clean-textile.png');
  z-index: -1;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header & Navigation - Consistent with article details */
header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #e5e7eb !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1003;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--electric));
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* Mobile Menu Styles - Taken from media.css */
nav .mobile-menu-toggle {
  display: none !important;
  background: linear-gradient(90deg, var(--accent), var(--electric)) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  padding: 12px !important;
  z-index: 1002 !important;
  position: relative !important;
  width: 50px !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

nav .mobile-menu-toggle:hover {
  transform: scale(1.05) !important;
}



.mobile-nav {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 1001 !important;
  padding: 100px 20px 40px !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow-y: auto !important;
}

.mobile-nav.active {
  display: flex !important;
}

.mobile-nav-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  width: 100% !important;
  max-width: 400px !important;
}

.mobile-nav-links a {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  padding: 15px 25px !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  background: rgba(59, 130, 246, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.mobile-nav-links a:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--accent) !important;
  transform: translateX(5px) !important;
}

.mobile-nav .nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--electric)) !important;
  color: white !important;
  margin-top: 20px !important;
  width: 100% !important;
  max-width: 400px !important;
  text-align: center !important;
  padding: 16px !important;
  border-radius: 12px !important;
}

.mobile-menu-close {
  position: absolute !important;
  top: 30px !important;
  right: 30px !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  color: #1f2937 !important;
  cursor: pointer !important;
  z-index: 1003 !important;
  transition: all 0.3s ease !important;
}

.mobile-menu-close:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  transform: rotate(90deg) !important;
}

.mobile-menu-close {
  display: none !important;
}


.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1000 !important;
  display: none !important;
}

.mobile-menu-overlay.active {
  display: block !important;
}


/* Projects Hero Section */
.projects-hero {
  height: 28vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  text-align: center;
  margin-bottom: 60px;
}

.projects-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.projects-hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #1f2937, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-hero p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  color: #6b7280;
}

/* Projects Filters */
.projects-filters {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 25px 0;
  position: sticky;
  top: 80px;
  z-index: 999;
  margin-bottom: 40px;
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #6b7280;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

/* Projects Grid */
.projects-container {
  padding: 0 0 80px;
}

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

.project-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.project-img-container {
  height: 250px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1f2937;
}

.project-content p {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(5px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 15px;
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Enhanced Footer */
footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 70px 0 25px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1f2937;
}

.footer-text {
  color: #6b7280;
  margin-bottom: 25px;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  border-radius: 5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-links a i {
  color: var(--accent);
  width: 20px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: #6b7280;
}

.contact-info i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #6b7280;
  font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .projects-hero h1 {
    font-size: 3rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  nav .mobile-menu-toggle {
    display: flex !important;
  }
  
  .projects-hero h1 {
    font-size: 2.5rem;
  }
  
  .projects-hero p {
    font-size: 1.2rem;
  }
  
  .projects-filters {
    top: 70px;
    padding: 20px 0;
  }
  
  .filters-container {
    justify-content: center;
  }
  
  .filter-group {
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .projects-hero {
    height: 25vh;
    margin-bottom: 40px;
  }
  
  .projects-hero h1 {
    font-size: 2.2rem;
  }
  
  .projects-hero p {
    font-size: 1.1rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .project-img-container {
    height: 200px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-content h3 {
    font-size: 1.3rem;
  }
  
  .project-content p {
    font-size: 0.95rem;
  }
  
  .project-btn {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
  
  .project-meta {
    font-size: 0.85rem;
    margin-top: 15px;
    padding-top: 12px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
  
  nav {
    padding: 15px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  nav .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .projects-hero {
    height: 20vh;
    margin-bottom: 30px;
    padding-top: 20px;
  }
  
  .projects-hero h1 {
    font-size: 1.8rem;
  }
  
  .projects-hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .projects-filters {
    top: 60px;
    padding: 15px 0;
  }
  
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .project-card {
    border-radius: 15px;
  }
  
  .project-img-container {
    height: 180px;
  }
  
  .project-content {
    padding: 15px;
  }
  
  .project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .project-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .project-btn {
    padding: 5px 14px;
    font-size: 0.85rem;
  }
  
  .project-meta {
    font-size: 0.8rem;
    margin-top: 12px;
    padding-top: 10px;
  }
  
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .projects-hero {
    height: 18vh;
    margin-bottom: 25px;
  }
  
  .projects-hero h1 {
    font-size: 1.6rem;
  }
  
  .projects-hero p {
    font-size: 0.95rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .project-img-container {
    height: 160px;
  }
  
  .project-content {
    padding: 12px;
  }
  
  .project-content h3 {
    font-size: 1.1rem;
  }
  
  .project-content p {
    font-size: 0.85rem;
  }
  
  .project-btn {
    padding: 4px 12px;
    font-size: 0.8rem;
  }
  
  .project-meta {
    font-size: 0.75rem;
  }
  
  .filter-btn {
    padding: 5px 12px;
    font-size: 0.85rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 577px) and (max-width: 991px) {
  .projects-hero h1 {
    font-size: 2.8rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
  }
  
  .project-img-container {
    height: 220px;
  }
}

/* Large mobile specific adjustments */
@media (min-width: 481px) and (max-width: 576px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .project-img-container {
    height: 200px;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .projects-hero {
    height: 35vh;
  }
  
  .projects-filters {
    position: relative;
    top: 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .project-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
  .mobile-nav {
    background: rgba(31, 41, 55, 0.98);
  }
  
  .mobile-nav-links a {
    color: #f9fafb;
    background: rgba(59, 130, 246, 0.1);
  }
  
  .mobile-menu-close {
    background: rgba(59, 130, 246, 0.2);
    color: #f9fafb;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  nav .mobile-menu-toggle:focus,
  .mobile-menu-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  
  .mobile-nav-links a:focus,
  .filter-btn:focus,
  .project-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  nav .mobile-menu-toggle,
  .mobile-menu-close {
    min-height: 44px;
    min-width: 44px;
  }
  
  .mobile-nav-links a {
    min-height: 60px;
    padding: 20px 30px;
  }
  
  .filter-btn {
    min-height: 36px;
    padding: 8px 18px;
  }
  
  .project-card {
    cursor: pointer;
  }
  
  .project-btn {
    min-height: 36px;
    padding: 8px 20px;
  }
}

/* Print styles */
@media print {
  nav .mobile-menu-toggle,
  .mobile-nav,
  .mobile-menu-overlay,
  .projects-filters,
  .whatsapp-float {
    display: none !important;
  }
  
  .projects-hero h1 {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .project-card {
    background: white;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    break-inside: avoid;
  }
  
  .project-img-container {
    height: 150px;
  }
  
  .project-content {
    padding: 15px;
  }
}

/* MOBILE RESPONSIVE STYLES INHERITED FROM MEDIA.CSS */
@media (max-width: 1200px) {
  .container {
    padding: 0 25px;
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 15px;
  }
  
  nav {
    padding: 15px 0;
  }
  
  /* Show mobile toggle and hide desktop nav */
  nav .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-links,
  .nav-cta {
    display: none !important;
  }

  /* Container adjustments */
  .container {
    padding: 0 20px !important;
  }

  /* Mobile nav adjustments for smaller screens */
  .mobile-nav {
    padding: 100px 30px 40px !important;
  }

  .mobile-nav-links a {
    font-size: 1.3rem !important;
    padding: 18px 25px !important;
  }

  .mobile-nav .nav-cta {
    font-size: 1.2rem !important;
    padding: 18px 25px !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px !important;
  }

  .mobile-nav {
    padding: 80px 20px 30px !important;
  }

  .mobile-nav-links a {
    font-size: 1.2rem !important;
    padding: 16px 20px !important;
  }

  .mobile-nav .nav-cta {
    font-size: 1.1rem !important;
    padding: 16px 20px !important;
  }
}

/* Fix for form elements on iOS */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    -webkit-appearance: none !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .mobile-nav {
    border: 2px solid var(--accent) !important;
  }
  
  nav .mobile-menu-toggle {
    border: 2px solid white !important;
  }
  
  .nav-links a:after {
    height: 3px !important;
  }
}
