/* Index Page Specific Styles */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 100px;
    text-align: center;
    overflow: hidden;
  background-attachment: fixed;

}
.use-before::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/backgrounds/back.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    z-index: -1;
  }
.hero-background{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/images/backgrounds/back.jpg');
  background-size: cover;
  background-position: center;
  transform: translateZ(0); /* triggers hardware acceleration */
  z-index: -1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.hero-content.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-title.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    font-weight: inherit;
    color: var(--white);
}

/* h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
} */

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 100px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.2s;
    color: var(--accent-color);

}

.hero-subtitle.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

.hero-buttons-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 16px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.4s;
}

.hero-buttons-container.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--white);
    min-width: 180px;
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
}

.btn-secondary.aos-animate {
    transform: scale(1);
    opacity: 1;
}

.btn-secondary:hover {
    background-color: var(--white);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px) scale(1.05);
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease 0.8s;
}

.hero-scroll-indicator.aos-animate {
    opacity: 1;
}

.hero-scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* About Preview Section */
.about-preview {
    background-color: white;
    padding: 100px 0;
}

.about-preview-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-preview-text {
    flex: 1;
}

.animate-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-text.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.about-preview-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.zoom-effect {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-preview-image:hover .zoom-effect {
    transform: scale(1.05);
}

.about-preview-image:hover .image-overlay {
    opacity: 1;
}

/* Products Preview Section */
.products-preview {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    transform: scale(0.95);
    opacity: 0;
}

.product-card.aos-animate {
    transform: scale(1);
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.old-price {
    color: red;
    text-decoration: line-through;
}

.new-price {
    color: green;
    font-weight: bold;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .btn-view {
    transform: translateY(0);
    opacity: 1;
}

.btn-view:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) !important;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

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

/* Works Preview Section */
.works-preview {
    background-color: white;
    padding: 100px 0;
    position: relative;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s ease;
    background: white;
}

.work-card.aos-animate {
    transform: scale(1);
    opacity: 1;
}

.work-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-color-rgb), 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.work-card:hover .work-image {
    transform: scale(1.1);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-card:hover .work-overlay-content {
    transform: translateY(0);
}

.btn-view {
    padding: 12px 25px;
    background-color: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-view:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.work-info {
    padding: 20px;
    background: white;
}

.work-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.work-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.work-info h3 a:hover {
    color: var(--accent-color);
}

.work-description {
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .works-preview {
        padding: 60px 0;
    }
    
    .work-image-container {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}


/* CTA Section */
.cta {
    position: relative;
    color: white;
    text-align: center;
    padding: 120px 20px;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--green);
    background: rgba(0, 0, 0, 0.7);
    background-size: cover;
    background-position: center;
    transform: translateZ(0); /* triggers hardware acceleration */
  }

.cta .cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cta .cta-content.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta .btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta .btn-secondary:hover {
    background-color: var(--light-gray);
}

/* Footer */
.footer {
    background-color: #212529;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .about-preview-content {
        flex-direction: column;
        gap: 40px;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    max-width: 200px;
    margin: 20px auto;
}

.footer-wrapper {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-modern i {
    transition: transform 0.3s ease;
}

.btn-modern:hover i.fa-arrow-right {
    transform: translateX(5px);
}

.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* Responsive Styles */
@media (max-width: 992px) {
    .about-preview-content {
        flex-direction: column;
    }
    
    .about-preview-image {
        order: -1;
        margin-bottom: 40px;
    }
    
    .products-grid,
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        min-height: 700px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .work-card {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .footer-wrapper {
        margin-top: 40px;
    }
}

.video-carousel-section {
    background: var(--black);
    padding: 60px 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
  }
  
  .carousel-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
  }
  
  .carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel-slide {
    display: none;
    width: 100%;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .carousel-slide.active {
    display: flex;
  }
  
  .preview-video {
    width: 20%;
    max-width: 200px;
    filter: blur(8px) brightness(0.5);
    transform: scale(0.95);
    overflow: hidden;
    border-radius: 12px;
    transition: filter 0.3s ease;
  }
  
  .preview-video video {
    width: 100%;
    border-radius: 12px;
  }
  
  .preview-video.left {
    margin-right: 20px;
  }
  
  .preview-video.right {
    margin-left: 20px;
  }
  
  .main-video {
    max-height: 500px;
    flex: 1;
    text-align: center;
  }
  
  .main-video video {
    width: 100%;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .video-details {
    margin-top: 20px;
    text-align: center;
  }
  
  .video-details h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .video-details p {
    font-size: 1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .meta {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #aaa;
  }
  
  .meta .tag {
    background: #ff6363;
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    margin-right: 10px;
    text-transform: capitalize;
  }
  
  .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }
  
  .carousel-nav:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .nav-left {
    left: 10px;
  }
  
  .nav-right {
    right: 10px;
  }
  
  .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
  
  .arrow.left {
    border-right: 12px solid white;
  }
  
  .arrow.right {
    border-left: 12px solid white;
  }
  
  .carousel-dots {
    text-align: center;
    margin-top: 20px;
  }
  
  .carousel-dots .dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .carousel-dots .dot.active {
    background-color: #fff;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .carousel-slide {
      flex-direction: column;
    }
  
    .preview-video {
      display: none;
    }
  
    .main-video video {
      max-width: 100%;
    }
  
    .video-details p {
      padding: 0 10px;
    }
  }




.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    flex-shrink: 0;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.preview-video {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

.preview-video.left {
    left: 2%;
}

.preview-video.right {
    right: 2%;
}

.preview-video video {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.main-video video {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.video-details {
    padding: 1rem;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carousel-nav:hover {
    background: rgba(0,0,0,0.6);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #444;
}

.video-link {
    max-height: 500px;
    flex: 1;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
}


/* Clients Section */
.clients {
    padding: var(--section-spacing, 4rem) 0;
    background: linear-gradient(135deg, #f9fafb, #eef2f5);
}

/* Grid Layout */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Client Logo Container */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    aspect-ratio: 1 / 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effects */
.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.client-logo:hover .zoom-effect {
    transform: scale(1.05);
}

/* Section Title */


.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary, #00b894);
    border-radius: 999px;
    margin: 0.5rem auto 0;
}


/* Image Wrapper with Zoom */
.zoom-effect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Image Style */
.zoom-effect img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .section-header .section-title {
        font-size: 1.75rem;
    }

    .clients-grid {
        gap: 1.25rem;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .client-logo {
        padding: 1rem;
    }

    .zoom-effect img {
        max-width: 70%;
        max-height: 70%;
    }
}

@media (max-width: 576px) {
    .section-header .section-title {
        font-size: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .client-logo {
        padding: 0.75rem;
    }

    .zoom-effect img {
        max-width: 60%;
        max-height: 60%;
    }
}

/* Button Styles */
.btn-primary, .btn-passive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 8px;
    cursor: pointer;
}

/* Active/Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

/* Passive Button */
.btn-passive {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-passive:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);

}

/* Button Icon */
.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.btn-primary .btn-icon {
    stroke: var(--text-on-dark);
}

.btn-passive .btn-icon {
    stroke: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, .btn-passive {
        width: 100%;
        margin: 4px 0;
    }
}
