/* ====================================
   GAT Builders & Developers - Main CSS
   Royal Blue & Gold Theme
   ==================================== */

:root {
  /* Primary Colors */
  --primary-blue: #003366;
  --primary-blue-light: #004080;
  --primary-gold: #D4AF37;
  --accent-orange: #FF9500;
  
  /* Secondary Colors */
  --dark-charcoal: #2C2C2C;
  --light-gray: #F5F5F5;
  --text-dark: #333333;
  --text-light: #666666;
  --border-light: #EEEEEE;
  --white: #FFFFFF;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Typography */
  --font-primary: 'Montserrat', 'Segoe UI', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================
   GLOBAL STYLES
   ==================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-gold);
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--primary-gold);
  color: var(--primary-blue);
}

.btn-secondary:hover {
  background-color: #E8C240;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-block {
  width: 100%;
  display: block;
}

/* ====================================
   NAVBAR
   ==================================== */

.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue) !important;
  letter-spacing: 1px;
}

.navbar-brand span {
  color: var(--primary-gold);
}

.nav-link {
  color: var(--text-dark) !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue) !important;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
  padding: 2rem;
  color: white;
}

.hero-content h1 {
  color: white;
}

.hero-content .subtitle {
  color: white;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 3rem;
  font-weight: 700;
}

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
  margin: 0 var(--spacing-sm);
}

/* ====================================
   HERO SLIDER
   ==================================== */

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.7) 0%, rgba(0, 64, 128, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 100;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--primary-gold);
  width: 30px;
  border-radius: 6px;
}

/* ====================================
   SECTIONS & CONTAINERS
   ==================================== */

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-gold) 100%);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: var(--spacing-md) auto;
}

/* ====================================
   SERVICE CARDS
   ==================================== */

.service-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary-gold);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-orange) 100%);
  transform: scale(1.1);
}

.service-card h4 {
  margin-bottom: var(--spacing-sm);
}

/* ====================================
   PROJECT GALLERY
   ==================================== */

.project-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--primary-blue);
  background-color: transparent;
  color: var(--primary-blue);
  border-radius: 25px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-blue);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  animation: fadeIn 0.5s ease-out;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(212, 175, 55, 0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  text-align: center;
  font-size: 1.4rem;
}

.project-overlay .badge {
  background-color: var(--primary-gold);
  color: var(--primary-blue);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--spacing-sm);
}

.project-hidden {
  display: none;
}

/* ====================================
   STATS SECTION
   ==================================== */

.stats-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
  padding: var(--spacing-xl) 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h3 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.advantage-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.advantage-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.advantage-text h5 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
}

/* ====================================
   TESTIMONIALS
   ==================================== */

.testimonials-slider {
  position: relative;
}

.testimonial-card {
  background-color: var(--light-gray);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border-left: 4px solid var(--primary-gold);
  margin: var(--spacing-md);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.testimonial-author {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1rem;
}

.testimonial-author::before {
  content: '— ';
}

/* ====================================
   CONTACT FORM
   ==================================== */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.contact-info h3 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-lg);
}

.info-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.info-text h5 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-xs);
}

.info-text p {
  margin: 0;
}

.contact-form {
  background-color: var(--light-gray);
  padding: var(--spacing-lg);
  border-radius: 8px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
}

.form-message {
  display: none;
  padding: var(--spacing-md);
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-primary);
  font-weight: 600;
}

.form-message.success {
  background-color: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
  display: block;
}

.form-message.error {
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
  display: block;
}

/* ====================================
   FOOTER
   ==================================== */

footer {
  background-color: var(--dark-charcoal);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h5 {
  color: var(--primary-gold);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-links li {
  list-style: none;
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: var(--primary-gold);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* ====================================
   MAPS & IFRAME
   ==================================== */

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 66.66%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-blue);
}

.text-gold {
  color: var(--primary-gold);
}

.text-light {
  color: var(--text-light);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--white);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.py-5 {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .nav-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    color: var(--primary-gold) !important;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: 16 / 9;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .service-card {
    padding: var(--spacing-md);
  }

  .project-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    height: 300px;
    padding: var(--spacing-md);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }

  .section {
    padding: var(--spacing-md) 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .about-image {
    margin-bottom: var(--spacing-lg);
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .info-item {
    gap: var(--spacing-sm);
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ====================================
   SCROLL TO TOP BUTTON
   ==================================== */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
  font-size: 1.5rem;
}

.scroll-to-top:hover {
  background-color: var(--primary-gold);
  color: var(--primary-blue);
  transform: translateY(-5px);
}

.scroll-to-top.show {
  display: flex;
}

/* ====================================
   LOADING STATE
   ==================================== */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 51, 102, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
