/* css/style.css */

/* --- Variables --- */
:root {
  --primary-color: #0A2540; /* Deep Blue */
  --secondary-color: #2C3E50; /* Charcoal Grey */
  --accent-color: #F1C40F; /* Golden Accent */
  --light-bg: #F8F9FA;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #777777;
  --transition: all 0.3s ease;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

.section {
  padding: 60px 0;
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

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

/* --- Header & Navbar --- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--accent-color);
}

.nav-logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links li a {
  font-weight: 600;
  color: var(--secondary-color);
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.7); /* Deep blue overlay */
  z-index: -1;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* --- Services Preview / Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom: 4px solid var(--accent-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay span {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
}

/* --- About & Text Sections --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2rem;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

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

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: #ddd;
  padding: 60px 0 20px;
}

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col p {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Floating Social Buttons --- */
.social-floats {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-floats.fab-hidden {
  transform: translateY(150px);
  opacity: 0;
  pointer-events: none;
}

.fab-icon {
  width: 55px;
  height: 55px;
  border-radius: 50px;
  text-align: center;
  font-size: 26px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #FFF;
}

.fab-whatsapp { background-color: #25d366; }
.fab-whatsapp:hover { background-color: #1ebe57; transform: scale(1.1); color: #FFF; }

.fab-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fab-instagram:hover { transform: scale(1.1); color: #FFF; }

.fab-x { background-color: #000; }
.fab-x:hover { background-color: #333; transform: scale(1.1); color: #FFF; }

.fab-email { background-color: #ea4335; }
.fab-email:hover { background-color: #c5221f; transform: scale(1.1); color: #FFF; }

/* --- Service Card Clickable --- */
.service-card {
  cursor: pointer;
}

/* --- Carousel --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    background: transparent;
}
.carousel-track {
    display: flex;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-track img, .carousel-track video {
    width: 600px;
    flex-shrink: 0;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 10px; /* even margin on both sides */
    opacity: 0.5;
    filter: blur(4px);
    transform: scale(0.9);
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.carousel-track img.active, .carousel-track video.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.8rem;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 5%; }
.carousel-next { right: 5%; }
.carousel-track.no-transition,
.carousel-track.no-transition img {
    transition: none !important;
}
.gallery-section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.5rem;
}
.gallery-section {
    padding: 60px 0;
    border-bottom: 1px solid #ddd;
}
.gallery-section:nth-child(even) {
    background-color: var(--white);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .about-content, .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .carousel-track img, .carousel-track video {
    width: 280px;
    height: 300px;
    margin: 0 5px;
    border-radius: 15px;
    object-fit: cover;
  }

  .carousel-track-contain img, .carousel-track-contain video {
    width: 90vw;
    height: 350px;
    object-fit: contain;
    background-color: var(--light-bg, #f4f4f4);
  }

  .carousel-prev {
    left: 5px;
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }

  .carousel-next {
    right: 5px;
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
}
   font-size: 1.4rem;
  }
}

/* --- Masonry Grid Gallery --- */
.masonry-grid {
    column-count: 1;
    column-gap: 15px;
    padding: 15px;
}

@media (min-width: 600px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    background-color: var(--white);
}

.masonry-item img, .masonry-item video {
    width: 100%;
    display: block;
    object-fit: cover; /* Fallback, but width 100% naturally scales height */
    height: auto;
    border-radius: 12px;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.masonry-item:hover img, .masonry-item:hover video {
    transform: scale(1.03);
}

/* --- Lightbox Modal --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}

.lightbox-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-height: 85vh;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox-prev, .lightbox-next {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 2001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .lightbox-prev, .lightbox-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .lightbox-content-wrapper {
        padding: 0;
    }
}

/* --- Masonry Progressive Reveal --- */
.masonry-wrapper {
    position: relative;
    padding-bottom: 120px; /* Space for the overlay and button */
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom, rgba(244, 244, 244, 0) 0%, var(--light-bg, #f4f4f4) 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    z-index: 10;
    pointer-events: none;
    transition: all 0.5s ease;
}

.masonry-overlay .masonry-load-more {
    pointer-events: auto;
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.masonry-overlay .masonry-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    background-color: #e68a00; /* slightly darker accent */
}

.masonry-overlay.all-revealed {
    position: relative;
    height: auto;
    background: transparent;
    padding-top: 40px;
    padding-bottom: 20px;
    align-items: center;
}

.masonry-item.hidden-item {
    display: none !important;
}

.masonry-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
