/* --- Glassmorphism Design --- */
:root {
  --primary-color: #e8491d;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --blur-effect: blur(12px);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--light-color);
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(28, 40, 51, 0.6) 0%, rgba(65, 90, 119, 0.6) 100%), url('https://pohcdn.com/sites/default/files/styles/paragraph__live_banner__lb_image__1660bp/public/live_banner/Scottish-Highlands.jpg') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

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

.container {
  max-width: 1400px; /* Increased width for a fuller look */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
header {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-effect);
  -webkit-backdrop-filter: var(--blur-effect);
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

@media (min-width: 992px) {
  header {
    position: sticky;
    top: 0;
  }
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
}

header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  transition: color 0.3s ease;
  font-weight: 600;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* --- Hero Section --- */
#hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

#hero .hero-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-effect);
  -webkit-backdrop-filter: var(--blur-effect);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  z-index: 2;
  max-width: 800px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

#hero h1 {
  font-size: 48px;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#hero p {
  font-size: 20px;
  margin-top: 20px;
  color: var(--light-color);
}

/* --- General Section Styling --- */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  color: #fff;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto;
  border-radius: 2px;
}

/* --- Glass Card Styling --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Content on non-home pages --- */
.page-wrapper {
    padding: 80px 0;
}

.page-content {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.page-content h1, .page-content h2, .page-content h3 {
    color: #fff;
}

.page-content p {
    color: var(--light-color);
    margin-bottom: 1.5em;
}

/* --- About Section --- */
#about .container, .about-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
#about .about-content, #about .about-image {
  flex: 1;
  min-width: 300px;
}
#about .about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* --- Services Section --- */
#services .service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
#services .service, .service-item {
  text-align: center;
  display: flex;
  flex-direction: column;
}
#services .service h3, .service-item h3 {
  color: var(--primary-color);
  margin-top: 0;
}
#services .service p, .service-item p {
  flex-grow: 1;
  margin-bottom: 20px;
}
#services .service-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--primary-color);
}

/* --- Projects Section --- */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
/* New rule for 4 columns on large screens */
@media (min-width: 1200px) {
  #projects .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
#projects .project-card, .project-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#projects .project-card img, .project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
}
#projects .project-card-content, .project-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
#projects .project-card h3, .project-item h3 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  font-size: 18px;
}
#projects .project-card p, .project-item p {
  color: var(--light-color);
  line-height: 1.6;
  font-size: 14px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* --- Testimonials Section --- */
#testimonials .testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
#testimonials .testimonial {
    text-align: left;
}
#testimonials .testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--light-color);
}
#testimonials .testimonial-author {
  font-weight: 600;
  color: #fff;
}

/* --- CTA Section --- */
#cta {
  background-color: rgba(0,0,0,0.2);
  border-radius: 16px;
}
#cta .container {
  max-width: 800px;
  text-align: center;
}
#cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #fff;
}

/* --- Contact Form --- */
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.contact-form .form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}
.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* --- Footer --- */
footer {
  padding: 60px 20px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
footer .footer-section {
  flex: 1;
  min-width: 220px;
  text-align: left;
}
footer h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary-color);
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 10px;
}
footer ul li a {
  color: var(--light-color);
  transition: color 0.3s ease;
}
footer ul li a:hover {
  color: var(--primary-color);
}
footer .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
footer .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
}
footer .social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}
footer .copyright {
  width: 100%;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

/* --- Buttons --- */
.btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(232, 73, 29, 0.4);
}
.btn:hover {
  background-color: #cf3e14;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(232, 73, 29, 0.5);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  header .container {
    flex-wrap: wrap;
  }
  header nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }
  header nav.show {
    max-height: 300px;
  }
  header nav ul {
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }
  header nav ul li {
    margin: 10px 0;
    text-align: center;
  }
  #hero h1 {
    font-size: 36px;
  }
  #hero p {
    font-size: 18px;
  }
  #about .container {
    flex-direction: column;
  }
  .section-title, #cta h2 {
    font-size: 28px;
  }
  .page-content {
      padding: 25px;
  }
}
