:root {
  --primary: #1a365d;
  --primary-dark: #15305a;
  --secondary: #f6ad55;
  --secondary-dark: #dd8e2d;
  --dark: #2d3748;
  --light: #f7fafc;
  --gray: #a0aec0;
  --gray-dark: #718096;
  --danger: #e53e3e;
  --success: #38a169;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --rounded-sm: 0.125rem;
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--rounded-lg);
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta-button:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), 
              url('http://static.photos/construction/1200x630/1') center/cover;
  color: white;
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: white;
}

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

.expertise-card {
  background: white;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.expertise-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.expertise-card h3 {
  color: var(--primary);
  margin-top: 1rem;
}

.expertise-card-content {
  padding: 1.5rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--primary);
  color: white;
  padding: 5rem 0;
}

.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.testimonial {
  min-width: 100%;
  scroll-snap-align: start;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--rounded-lg);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-weight: 500;
}

/* Services Page */
.services-hero {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), 
              url('http://static.photos/construction/1200x630/2') center/cover;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.services-grid {
  padding: 4rem 0;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-card.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.service-card.reverse > * {
  direction: ltr;
}

.service-card img {
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
  height: 350px;
  object-fit: cover;
}

.service-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-content ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
}

/* Realisations Page */
.projects-hero {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), 
              url('http://static.photos/construction/1200x630/3') center/cover;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.projects-gallery {
  padding: 4rem 0;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid var(--gray);
  border-radius: var(--rounded);
  cursor: pointer;
  transition: all 0.3s;
}

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

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

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

.gallery-item {
  position: relative;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  height: 250px;
}

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

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

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  margin-bottom: 0.5rem;
}

/* Forms */
.form-hero {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), 
              url('http://static.photos/construction/1200x630/4') center/cover;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.estimation-form, .contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--rounded);
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hidden {
  position: absolute;
  left: -9999px;
}

/* Contact Page */
.contact-hero {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), 
              url('http://static.photos/construction/1200x630/5') center/cover;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.contact-info {
  background-color: white;
  padding: 2rem;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow);
}

.business-hours {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray);
}

/* AI Expertise Page */
.ai-hero {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), 
              url('http://static.photos/technology/1200x630/1') center/cover;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.ai-expertise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.ai-info ul {
  list-style-position: inside;
  margin: 1.5rem 0;
}

.ai-info li {
  margin-bottom: 0.5rem;
}

.disclaimer {
  background-color: rgba(255, 237, 213, 0.3);
  padding: 1rem;
  border-radius: var(--rounded);
  margin-top: 2rem;
}

.chat-container {
  background-color: white;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
  height: 500px;
  display: flex;
  flex-direction: column;
}

.chat-history {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.chat-input {
  padding: 1rem;
  border-top: 1px solid var(--gray);
}

.chat-input textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--rounded);
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.5rem;
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-btn {
  background-color: var(--light);
  padding: 0.5rem 1rem;
  border-radius: var(--rounded);
  cursor: pointer;
}

.upload-btn:hover {
  background-color: var(--gray);
}

.ai-message {
  background-color: var(--light);
  padding: 1rem;
  border-radius: var(--rounded);
  margin-bottom: 1rem;
}