:root {
  --primary: #0d1b2a;
  --secondary: #1b263b;
  --accent: #e0aa3e;
  --light: #f8f9fa;
  --dark: #212529;
  --text: #415a77;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--primary);
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(13, 27, 42, 0.95);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.7rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

.logo-text {
  color: var(--light);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-left: 10px;
}

.logo-text span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin: 0 1rem;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--light);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(13, 27, 42, 0.8),
    rgba(27, 38, 59, 0.7)
  );
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 1.5rem;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--light);
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeIn 1.5s ease;
}

/* About Section */
.about {
  background-color: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1rem;
  color: var(--text);
}

/* Services Section */
.services {
  background-color: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-content p {
  margin-bottom: 1.5rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--light);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-category {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Testimonials Section */
.testimonials {
  background-color: #f8f9fa;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 1rem;
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 4px solid var(--accent);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-role {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: var(--light);
}

.contact .section-title h2 {
  color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-text h3 {
  color: var(--light);
  margin-bottom: 0.3rem;
}

.contact-form {
  background-color: var(--light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 170, 62, 0.3);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.map-container {
  margin-top: 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-col h3 {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-col p {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content,
  .services-grid,
  .contact-container,
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 101;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--primary);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    padding-top: 80px;
    z-index: 100;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1.5rem 0;
  }

  .about-content,
  .services-grid,
  .contact-container,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card,
  .blog-card {
    height: 250px;
  }
}

/* Responsive Project Cards for Mobile */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  width: 340px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-details {
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .projects-grid {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .project-card {
    width: 98vw;
    max-width: 99vw;
    margin: 0 auto;
    border-radius: 12px;
  }
  .project-img {
    height: 180px;
    border-radius: 12px 12px 0 0;
  }
  .project-details {
    padding: 1.1rem 0.8rem 1rem 0.8rem;
    font-size: 1rem;
  }
  .project-details h3 {
    font-size: 1.1rem;
  }
  .project-details ul {
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.97rem;
  }
  .project-details p {
    font-size: 0.97rem;
  }
  .project-details .btn,
  .project-details .btn-outline {
    width: 100%;
    margin-top: 0.7rem;
    font-size: 1rem;
    padding: 0.7rem 0;
  }
  .project-card span[style*="position: absolute"] {
    top: 10px !important;
    left: 10px !important;
    font-size: 0.95rem !important;
    padding: 4px 12px !important;
    border-radius: 14px !important;
  }
}

/* Portrait service card style */
.portrait-service-card {
  min-width: 260px;
  max-width: 340px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  background: #fff;
  position: relative;
  transition: transform 0.2s;
}
.portrait-service-card .service-img {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}
.portrait-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.portrait-service-card .service-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    0deg,
    rgba(34, 34, 34, 0.85) 80%,
    rgba(34, 34, 34, 0.1) 100%
  );
  color: #fff;
  padding: 1.2rem 1rem 1rem 1rem;
  opacity: 0.95;
  transition: background 0.3s;
}
.portrait-service-card .service-img-overlay h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.portrait-service-card .service-img-overlay p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}
.portrait-service-card:hover img {
  transform: scale(1.06);
}
.portrait-service-card:hover .service-img-overlay {
  background: linear-gradient(
    0deg,
    rgba(212, 175, 55, 0.95) 80%,
    rgba(34, 34, 34, 0.1) 100%
  );
  color: #222;
}
@media (max-width: 600px) {
  .portrait-service-card .service-img {
    height: 260px;
  }
  .portrait-service-card {
    min-width: 90vw;
    max-width: 99vw;
  }
}
