
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #333333;
  /* --secondary-color: #5396e9; */
  --secondary-color: #e74c3c;
  --accent-color: #f8a100;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #555555;
  --white: #ffffff;
  --black: #111111;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  position: absolute;
  bottom: -10px;
  left: 0;
  transition: var(--transition);
}

h3 {
  font-size: 1.75rem;
}

p, ul, ol {
  margin-bottom: 20px;
}

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

a:hover {
  color: var(--secondary-color);
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
.services-container .btn{
  text-transform: capitalize;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary-color);
  /*color: var(--secondary-color);*/
  color: #ffffff;
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: var(--white);
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 20px;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark-gray);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
  opacity: 0;
}

.zoom-in {
  animation: zoomIn 1s ease forwards;
  opacity: 0;
}

/* Delay classes for staggered animations */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
}
.logo h1 span{
  color: var(--secondary-color);
}
/*.logo img{*/
/*width: 40px;*/
/*}*/

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: capitalize;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  color: #000;
}
.nav-links .contact-btn{
    background-color: var(--secondary-color);
    padding: 9px 14px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover:after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  z-index: 2000;
}
.hamburger i {
  font-size: 1.5rem;
  transition: opacity 0.3s ease;
}

.hamburger .close-icon {
  display: none;
}


/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /*margin-top: 70px;*/
  background-color: var(--light-gray);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero h1 {
  font-size: 2.9rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  transition: transform 1.2s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2:after {
  left: 0;
  transform: none;
}

.expertise-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
}

.expertise-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 15px;
  margin-top: 5px;
}

/* Services Section */
.services {
  background-color: var(--light-gray);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 15px;
}

.service-content p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

/* Projects Section */
.projects {
  background-color: var(--white);
}

.projects-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  margin: 0 5px 10px;
  background: none;
  border: 1px solid var(--medium-gray);
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

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

.project-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  height: 300px;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-item:hover img {
  transform: scale(1.1);
}

.project-overlay h3 {
  margin-bottom: 10px;
}

.project-overlay p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.project-btn {
  color: var(--white);
  font-size: 0.9rem;
  padding: 8px 15px;
  border: 2px solid var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

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

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.gallery-item {
  height: 300px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

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

.btn2 {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 50px;      /* smaller size */
  font-size: 16px;        /* smaller font */
  border: none;
  border-radius: 5px;
  margin-top: 30px;
  text-decoration: none;
  display: inline-block;  /* prevents full-width */
  max-width: fit-content; /* optional - for more control */
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  left: 50%;
}

.btn2:hover {
  background-color: #000;
  color: #fff;
}


/* Testimonials */
.testimonials {
  background-color: var(--light-gray);
  position: relative;
}

.testimonial-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.testimonial-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 5px solid var(--medium-gray);
}

.testimonial-slide p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-company {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--medium-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--secondary-color);
}

/* Contact Section */
.contact {
  background-color: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info h3 {
  margin-bottom: 25px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-details p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-details i {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.social-links {
  display: flex;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-gray);
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a i {
  font-size: 1rem;
  color: var(--primary-color);
}

.social-links a:hover {
  background: var(--secondary-color);
}

.social-links a:hover i {
  color: var(--white);
}

.contact-form {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
}

textarea.form-control {
  height: 150px;
  resize: none;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

.footer-links li {
  margin-bottom: 10px;
  list-style: none;
}

.footer-links a {
  color: #bbbbbb;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444444;
  color: #999999;
  font-size: 0.9rem;
}

/* Modal Gallery */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  overflow: auto;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
  z-index: 2001;
}

.modal-prev, .modal-next {
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-prev:hover, .modal-next:hover {
  color: var(--secondary-color);
}

/* Services Detail Page */
.service-hero {
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.service-hero h1 {
  position: relative;
  z-index: 2;
  font-size: 3.5rem;
}

.service-content-section {
  padding: 80px 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.service-detail:nth-child(odd) {
  grid-template-columns: 1fr 1fr;
}

.service-detail-image {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-detail-image img {
  transition: transform 1s ease;
}

.service-detail:hover .service-detail-image img {
  transform: scale(1.05);
}

.service-detail-content h3 {
  margin-bottom: 20px;
}

.service-detail-content p {
  margin-bottom: 20px;
}

.service-features {
  margin-top: 20px;
}

.service-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.service-features i {
  color: var(--secondary-color);
  margin-right: 10px;
  margin-top: 5px;
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/random/1920x1080/?glass,architecture') center/cover no-repeat;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Reveal Animations */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-left.active {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-right.active {
  transform: translateX(0);
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-up.active {
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-container, 
  .contact-container,
  .service-detail {
    grid-template-columns: 1fr;
  }
  .hero{
      margin-top: 70px;
  }
  
  .about-image {
    margin-bottom: 30px;
    order: -1;
  }
  
  section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
    z-index: 1500;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  
  .nav-links.active {
    transform: translateX(0);
    display: flex;
  }
  
  .nav-links li {
    margin: 0;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 15px 25px;
    text-align: left;
  }
  
  /*.hamburger {*/
  /*  display: block;*/
  /*}*/
  
  .hamburger {
    display: block;
    position: fixed;   /* was static -> z-index didn’t apply */
    top: 18px;
    right: 18px;
    z-index: 3000;     /* above .nav-links (1500) */
  }
  
  .expertise-items {
    grid-template-columns: 1fr;
  }
  .hero{
      margin-top: 90px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p{
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .projects-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    margin-bottom: 10px;
  }
}
@media (max-width: 350px) {
  .hero h1{
    font-size: 1.6rem;
  }
}
