: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;
}

body {
  font-family: 'Inter', sans-serif;
  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;
}

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 */
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: 1001;
  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;
}

/* Fix for visited links in navigation */
.nav-links a:visited {
  color: #4b5563; /* Same as unvisited links */
  text-decoration: none; /* Remove underline */
}

.nav-links a:not(.logo):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);
}

/* Fix for visited state in CTA button */
.nav-cta:visited {
  color: white;
  text-decoration: none;
}

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

.nav-links a:not(.logo):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;
}

.logo:after {
    display: none !important;
}

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

.news-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;
}

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

/* News Filter Section */
.news-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);
}

/* News Grid */
.news-container {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cards per row */
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Fix for visited article links */
.news-card:visited,
.featured-article:visited {
  color: inherit;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--electric);
}

.news-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.news-category {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.news-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #1f2937;
}



.news-excerpt {
  color: #6b7280;
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 0.95rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  margin-top: auto;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #4b5563;
}

.read-time {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Featured Article */
.featured-article {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 60px;
  display: flex;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.featured-image {
  flex: 1;
  min-height: 400px;
  background: no-repeat center center/cover;
}

.featured-content {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-category {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 6px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.featured-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #1f2937;
}

.featured-excerpt {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 35px;
  line-height: 1.8;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.featured-author-name {
  font-weight: 600;
  color: #4b5563;
}

.featured-date {
  color: #9ca3af;
}

.cta-button {
  background: linear-gradient(90deg, var(--accent), var(--electric));
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  align-self: flex-start;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

/* Fix for visited state in CTA button */
.cta-button:visited {
  color: white;
  text-decoration: none;
}

/* Article Detail */
.article-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 2000;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 4vh 2vw;
}

.article-container {
  max-width: 1200px;
  width: 100%;
  margin: 5vh auto;
  padding: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.close-article {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #6b7280;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-article:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  transform: rotate(90deg);
}

.article-header {
  margin-bottom: 40px;
}

.article-category {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 6px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #1f2937;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.article-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info h4 {
  margin-bottom: 5px;
  color: #4b5563;
}

.article-date {
  color: #9ca3af;
  font-size: 0.95rem;
}

.article-image {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
}

.article-content p {
  margin-bottom: 25px;
}

.article-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  color: #1f2937;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 30px;
  margin: 30px 0;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 15px 0 0 15px;
  font-style: italic;
  color: #6b7280;
}

.article-content ul {
  margin-left: 20px;
  margin-bottom: 25px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.social-share {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #6b7280;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-btn:hover {
  transform: translateY(-5px);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

/* 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);
}

/* 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-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

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

.footer-column h3 {
  color: #1f2937;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
}

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

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

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

.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;
}

/* Fix for visited footer links */
.footer-links a:visited {
  color: #6b7280;
  text-decoration: none;
}

.footer-links a i {
  color: var(--accent);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  gap: 15px;
}

.footer-links a:hover i {
  color: var(--electric);
}

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

/* Loading indicator */
.loading-indicator {
  text-align: center;
  padding: 50px 0;
  display: none;
}

.loader {
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* Modal loader */
.modal-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  display: none;
}

.modal-loader .loader {
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .news-hero h1 {
    font-size: 3rem;
  }
  
  .featured-article {
    flex-direction: column;
  }
  
  .featured-image {
    height: 300px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .filters-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-hero h1 {
    font-size: 2.5rem;
  }
  
  .article-header h1 {
    font-size: 2.2rem;
  }
  
  .article-container {
    padding: 30px 20px;
    margin: 50px auto;
  }
  
  .article-image {
    height: 300px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .featured-content {
    padding: 30px;
  }
  
  .featured-content h2 {
    font-size: 2rem;
  }
  
  .nav-cta {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Additional fix for all visited links */
a:visited {
  color: inherit;
  text-decoration: none;
}

.logo:after {
    display: none !important;
}

/* Mobile Menu Styles */
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;
}

/* Gallery Mobile Responsiveness */
@media (max-width: 768px) {
  nav .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-links {
    display: none !important;
  }
  
  
  .nav-cta {
    display: none !important;
  }
  
  .gallery-hero {
    height: auto !important;
    padding: 100px 0 60px !important;
  }
  
  .gallery-hero h1 {
    font-size: 2.2rem !important;
  }
  
  .gallery-hero p {
    font-size: 1.1rem !important;
  }
  
  .gallery-filters {
    position: static !important;
    padding: 20px 0 !important;
  }
  
  .filter-group {
    justify-content: center !important;
  }
  
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .project-card {
    height: 280px !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 80px 15px 15px !important;
  }
  
  .gallery-item {
    height: 180px !important;
  }
  
  .modal-header {
    top: 15px !important;
    left: 15px !important;
    padding: 10px 15px !important;
  }
  
  .modal-header h2 {
    font-size: 1.5rem !important;
  }
  
  .lightbox-nav {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.5rem !important;
  }
  
  .prev-btn {
    left: 10px !important;
  }
  
  .next-btn {
    right: 10px !important;
  }
  
  .lightbox-close {
    top: 15px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  .image-counter {
    font-size: 1rem !important;
    padding: 6px 12px !important;
  }
  
  footer {
    padding: 50px 0 20px !important;
  }
}

@media (max-width: 480px) {
  .gallery-hero h1 {
    font-size: 1.8rem !important;
  }
  
  .filter-btn {
    padding: 6px 12px !important;
    font-size: 0.9rem !important;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
  
  .gallery-item {
    height: 200px !important;
  }
}


/* MOBILE RESPONSIVE STYLES INHERITED FROM HOMEPAGE */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .container {
    padding: 0 25px;
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 100px;
    height: auto;
    min-height: 100vh;
  }

  .hero-visual {
    margin-top: 40px;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
}

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

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

  /* Hero section mobile */
  .hero {
    padding-top: 120px !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center !important;
  }

  .hero-content {
    order: 1 !important;
  }

  .hero-visual {
    order: 2 !important;
    margin-top: 0 !important;
  }

  .hero h1 {
    font-size: 2.4rem !important;
    margin-bottom: 20px !important;
  }

  .hero p {
    font-size: 1.1rem !important;
    margin-bottom: 30px !important;
  }

  .hero-features {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
  }

  .hero-buttons {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
  }

  /* Section adjustments */
  section {
    padding: 80px 0 !important;
  }

  .section-header {
    margin-bottom: 50px !important;
  }

  .section-header h2 {
    font-size: 2.2rem !important;
  }

  .section-header p {
    font-size: 1rem !important;
    margin-top: 20px !important;
  }

  /* Single column layouts */
  .service-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .project-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .stats-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .service-card {
    padding: 30px 25px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }

  /* Improved touch targets */
  .cta-button,
  .nav-cta,
  .submit-btn {
    min-height: 48px !important;
    padding: 14px 24px !important;
  }

  .form-group input,
  .form-group textarea {
    padding: 16px 20px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  .service-link {
    padding: 10px 0 !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    bottom: 20px !important;
    right: 20px !important;
    font-size: 24px !important;
  }

  .contact-info {
    padding: 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;
  }

  /* Profile buttons mobile */
  .profile-actions {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .profile-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

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

  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

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

  .section-header h2 {
    font-size: 1.9rem !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .cta-button {
    width: 100% !important;
    text-align: center !important;
    padding: 16px 20px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .stats-content {
    grid-template-columns: 1fr !important;
    gap: 20px !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;
  }

  .hero-image {
    height: 300px !important;
  }

  .elevator-status {
    bottom: 15px !important;
    left: 15px !important;
    padding: 8px 16px !important;
  }

  .status-number {
    font-size: 1.5rem !important;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding-top: 100px !important;
    min-height: auto !important;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    align-items: center !important;
  }

  .hero-content {
    order: 1 !important;
  }

  .hero-visual {
    order: 2 !important;
  }

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

  .hero-features {
    grid-template-columns: 1fr !important;
    gap: 10px !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;
  }
  
  .mobile-menu-toggle {
    border: 2px solid white !important;
  }
  
  .nav-links a:after {
    height: 3px !important;
  }
}



