/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--light-bg);
  color: var(--primary-color);
  line-height: 1.6;
}

/* CSS Variables for a Modern Palette & Spacing */
:root {
  --primary-color: #2c3e50;      /* sophisticated dark blue-gray */
  --secondary-color: #18bc9c;    /* fresh, modern teal */
  --accent-color: #e74c3c;       /* subtle accent red */
  --light-bg: #f4f7f9;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  /* Spacing variables */
  --spacing-small: 10px;
  --spacing-medium: 20px;
  --spacing-large: 40px;
}

/* Focus Styles for Accessibility */
a:focus,
.btn:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Container (Centers inner content) */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-medium);
}

/* Full Width Header */
.full-width-header {
  width: 100%;
}

/* Navigation Background */
.nav-full {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 4px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-medium) 0;
}

.nav-logo a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -2px;
}

.nav-contact {
  display: flex;
  gap: var(--spacing-medium);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  background: url('images/1.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(44, 62, 80, 0.7), rgba(24, 188, 156, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: var(--spacing-medium);
  max-width: 800px;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  width: 100%;
  margin: var(--spacing-medium) auto;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-large);
}

/* Buttons */
.btn {
  background: var(--secondary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background: var(--primary-color);
}

/* Section Styling */
.section {
  padding: var(--spacing-large) 0;
  text-align: center;
  background: var(--light-bg);
}

.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-medium);
  color: #555;
}

/* White Section for Our Services */
.white-section {
  background: var(--white);
}

/* Common Boxes */
.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-medium);
  margin-top: var(--spacing-medium);
}

.box {
  background: var(--white);
  padding: var(--spacing-medium);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px var(--shadow-light);
}

.box h3 {
  margin: var(--spacing-medium) 0 var(--spacing-small);
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
}

.box p {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

/* Combined Experience & Contact Section */
.contact-section {
  background: var(--light-bg);
  padding: calc(var(--spacing-large) * 1.5) var(--spacing-medium);
  text-align: center;
}

.contact-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.contact-section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-medium);
  color: #555;
}

/* Modern Form Styling */
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  /* Removed the green border */
  /* border: 2px solid var(--secondary-color); */
  border-radius: 10px;
  padding: 30px;  /* Increased padding for a more spacious look */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-section form:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-section label {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-section input,
.contact-section textarea {
  padding: var(--spacing-small);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.contact-section input[type="email"]:focus,
.contact-section input[type="tel"]:focus,
.contact-section textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 5px var(--secondary-color);
}

.contact-section button[type="submit"] {
  align-self: center;
  background: var(--secondary-color);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background 0.3s ease;
  font-weight: 600;
  cursor: pointer;
}

.contact-section button[type="submit"]:hover {
  background: var(--primary-color);
}

/* Footer (As It Was) */
.footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: var(--spacing-medium) 0;
  text-align: center;
}

.footer p {
  /* margin-bottom: 10px; */
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-medium);
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nav-container {
    padding: var(--spacing-small) var(--spacing-medium);
  }
  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  .nav-logo a {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    height: 75vh;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #f4f7f9;
    --secondary-color: #18bc9c;
    --accent-color: #e74c3c;
    --light-bg: #333;
    --white: #2c3e50;
    --shadow-light: rgba(255, 255, 255, 0.1);
  }

  body {
    background-color: var(--light-bg);
    color: var(--primary-color);
  }

  .nav-full {
    background: var(--white);
    box-shadow: 0 2px 4px var(--shadow-light);
  }

  .hero-overlay {
    background: linear-gradient(to bottom right, rgba(244, 247, 249, 0.7), rgba(24, 188, 156, 0.7));
  }

  .btn {
    background: var(--secondary-color);
    color: var(--white);
  }

  .btn:hover {
    background: var(--primary-color);
  }

  .footer {
    background: var(--secondary-color);
    color: var(--white);
  }
}
