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

/* Light Theme (default) */
:root {
    --bg-body: #ffffff;
    --text-primary: #1e2a3a;
    --text-secondary: #2c4b57;
    --surface-card: #ffffff;
    --border-light: #e4edf0;
    --accent: #255ea1;
    --accent-light: #f18324;
    --accent-hover: #e0700f;
    --topbar-bg: #0b2b40;
    --topbar-text: #f0f9ff;
    --navbar-bg: #ffffff;
    --navbar-shadow: rgba(0,0,0,0.05);
    --section-bg-alt: #fafdff;
    --about-vm-bg: #f1f9fc;
    --footer-bg: #0a232e;
    --footer-text: #cfdfe6;
    --card-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Dark Theme */
body.dark {
    --bg-body: #121212;
    --text-primary: #eef2f5;
    --text-secondary: #cbd5e1;
    --surface-card: #1e2a2f;
    --border-light: #2d3e46;
    --accent: #255ea1;
    --accent-light: #f18324;
    --accent-hover: #e0700f;
    --topbar-bg: #071e26;
    --topbar-text: #e2e8f0;
    --navbar-bg: #1a2a2f;
    --navbar-shadow: rgba(0,0,0,0.3);
    --section-bg-alt: #16262c;
    --about-vm-bg: #1f3138;
    --footer-bg: #05161e;
    --footer-text: #b9cfda;
    --card-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.2s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* topbar */
.topbar {
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 10px 0;
    font-size: 0.85rem;
}
.topbar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-info a, .contact-info span {
    color: var(--topbar-text);
    text-decoration: none;
    transition: 0.2s;
}
.contact-info a:hover {
    color: var(--accent-light);
}
.social-icons {
    display: flex;
    gap: 18px;
}
.social-icons a {
    color: var(--topbar-text);
    transition: 0.2s;
}
.social-icons a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* navbar */
.navbar {
    /* background: var(--navbar-bg); */
    background: linear-gradient(180deg, rgba(42, 123, 155, 1) 0%, rgba(0, 50, 70, 0.253) 50%, rgba(252, 252, 252, 1) 100%);

    box-shadow: 0 8px 20px var(--navbar-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    /* padding: 14px 0; */
    transition: background 0.2s;
}
body.dark .navbar {
    /* background: linear-gradient(rgb(0, 40, 105), rgb(13, 110, 253)); */
    background: linear-gradient(rgb(0, 54, 141), rgb(46, 130, 255));
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}
.logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0b5e6b, #1d7a8c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
body.dark .logo h2 {
    background: linear-gradient(135deg, #6fc1ce, #ffc857);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.logo span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c7a4d;
}
body.dark .logo span {
    color: #f0b843;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}
.nav-links li a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-primary);
    transition: 0.3s;
}
.nav-links li a:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 4px;
}
.darkmode-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--surface-card);
    box-shadow: 0 2px 6px var(--navbar-shadow);
}
.darkmode-toggle:hover {
    color: var(--accent-light);
    transform: rotate(15deg);
}
.hamburger {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--accent);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: var(--section-bg-alt);
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
}

/* ========== ANIMATION SLIDER (FADE + ZOOM, 100vh) ========== */
.slider-section {
    background: var(--section-bg-alt);
    position: relative;
    overflow: hidden;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 550px;
    overflow: hidden;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s linear 1s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s linear 0s;
    z-index: 2;
}
.slide.active .slide-bg-zoom {
    animation: zoomScale 8s ease-out forwards;
}
@keyframes zoomScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.slide-bg-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
}
.slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    color: white;
    margin: 0 20px;
    padding: 0;
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.2s;
}
.slide-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 500;
}
.slide-btn {
    background: var(--accent-light);
    color: #1e2a3a;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-shadow: none;
}
.slide-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 20;
    transition: 0.2s;
    color: #0b5e6b;
}
.slider-btn:hover {
    background: var(--accent-light);
    color: #1f2f38;
}
.btn-prev { left: 20px; }
.btn-next { right: 20px; }
.dots {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: var(--accent-light);
    width: 28px;
    border-radius: 20px;
}

/* ========== SCROLL ANIMATIONS FOR ALL SECTIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Text Animation for Section Titles */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-text.revealed {
    opacity: 1;
    transform: translateY(0);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(37, 94, 161, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(240, 131, 38, 0.5), 0 0 40px rgba(37, 94, 161, 0.3);
    }
}

/* sections general */
.section {
    padding: 20px 0;
}
.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 48px;
    position: relative;
    color: var(--text-primary);
}
.section-title:after {
    content: '';
    width: 70px;
    height: 4px;
    background: var(--accent-light);
    display: block;
    margin: 12px auto 0;
    border-radius: 4px;
}

/* About section */
#about {
    background: linear-gradient(-45deg, var(--section-bg-alt), #e6f4f1, var(--section-bg-alt), #f0f7f4);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 94, 161, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(241, 131, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(37, 94, 161, 0.05) 0%, transparent 30%);
    animation: floatShapes 20s ease-in-out infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatShapes {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

#about .container {
    position: relative;
    z-index: 1;
}
.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}
.product-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}
.product-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.product-list li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Product list item animations */
.product-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease forwards;
}

.product-list li:nth-child(1) { animation-delay: 0.1s; }
.product-list li:nth-child(2) { animation-delay: 0.2s; }
.product-list li:nth-child(3) { animation-delay: 0.3s; }
.product-list li:nth-child(4) { animation-delay: 0.4s; }
.product-list li:nth-child(5) { animation-delay: 0.5s; }
.product-list li:nth-child(6) { animation-delay: 0.6s; }
.product-list li:nth-child(7) { animation-delay: 0.7s; }
.product-list li:nth-child(8) { animation-delay: 0.8s; }

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

.animated-img {
    margin-top: 30px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.6s ease;
}
.animated-img:hover img {
    transform: scale(1.03);
}
.animated-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.vision-mission {
    background: var(--about-vm-bg);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

.vision-mission img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}
.vm-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Video Section */
.video-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #063060, #f08326, #063060, #f08326);
    background-size: 400% 400%;
    animation: videoGradient 15s ease infinite;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(6, 48, 96, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(240, 131, 38, 0.2) 0%, transparent 50%);
    animation: videoShapes 20s ease-in-out infinite;
}

@keyframes videoGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes videoShapes {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 20px); }
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.video-text {
    color: #fff;
}

.video-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.video-caption {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
}

@media (max-width: 880px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .video-text {
        text-align: center;
    }
    .video-caption {
        justify-content: center;
    }
}

.video-thumbnail {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(37, 94, 161, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(37, 94, 161, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

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

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.video-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--card-shadow);
}
.video-wrapper video {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 32px;
}
.video-caption {
    text-align: center;
    margin-top: 28px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* GALLERY SECTION - 5 product cards with image and title, box shadow */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 20px;
}
.product-card {
    background: var(--surface-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s;
    text-align: center;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.15);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 0.9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.product-card:hover img {
    transform: scale(1.03);
}
.product-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 20px 16px 16px;
    color: var(--text-primary);
}
body.dark .product-card h3 {
    color: #000000;
}

.product-card a  {
    text-decoration: none !important;
}

.product-card p {
    color: var(--text-secondary);
    margin: 0 16px 24px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(110deg, #0b2b35 0%, #104f5e 100%);
    color: white;
    text-align: center;
}
.newsletter-container h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 20px;
    border-radius: 60px;
    border: none;
    font-size: 1rem;
}
.newsletter-form button {
    background: #ffc857;
    border: none;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    color: #1e2a3a;
}

/* Footer */
.footer {
    /* background: var(--footer-bg); */
    color: var(--footer-text);
    padding: 50px 0 30px;
    background-image: url(../img/slider/bg-slider.jpg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 5fr 2fr 5fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-light);
}

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

.footer-col p {
    margin-bottom: 12px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: 0.2s;
}
.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}
.copyright {
    text-align: center;
    border-top: 1px solid #2a4956;
    padding-top: 30px;
    font-size: 0.8rem;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

/* Product Detail Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(37, 94, 161, 0.3);
}

.product-info {
    padding: 24px;
    background: var(--surface-card);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.product-info h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.product-features,
.product-specs {
    margin-bottom: 24px;
}

.product-features h4,
.product-specs h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.product-features ul,
.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-features li,
.product-specs li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li i,
.product-specs li i {
    color: var(--accent);
}

.product-specs li strong {
    color: var(--text-primary);
    min-width: 120px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 94, 161, 0.3);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 94, 161, 0.4);
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 580px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h3 {
        font-size: 1.5rem;
    }
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: wave 2s ease-out infinite;
}

.back-to-top {
    right: 30px;
    background: var(--accent);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-hover);
}

.back-to-top::before {
    background: rgba(37, 94, 161, 0.4);
}

.whatsapp-btn {
    left: 30px;
    background: #25d366;
}

.whatsapp-btn:hover {
    background: #1ebe57;
}

.whatsapp-btn::before {
    background: rgba(37, 211, 102, 0.4);
}

.pdf-btn {
    left: 30px;
    background: #e74c3c;
    bottom: 90px;
}

.pdf-btn:hover {
    background: #c0392b;
}

.pdf-btn::before {
    background: rgba(231, 76, 60, 0.4);
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 20px;
    }
    .back-to-top {
        right: 20px;
    }
    .whatsapp-btn {
        left: 20px;
    }
    .pdf-btn {
        right: 80px;
    }
}

@media (max-width: 880px) {
    .about-grid { grid-template-columns: 1fr; }
    .navbar .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--navbar-bg);
        padding: 20px;
        gap: 20px;
        text-align: center;
        margin-top: 16px;
        border-radius: 20px;
    }
    .navbar .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .slider-container { height: 100vh; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 580px) {
    .topbar .container { flex-direction: column; text-align: center; }
    .section { padding: 50px 0; }
    .slide-content h2 { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Video Start */
/* ========== ROOT VARIABLES ========== */

/* Scroll Progress - Right Side Vertical */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 0%;
    background: linear-gradient(180deg, #063060, #f08326);
    z-index: 9999;
    transition: height 0.1s ease;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, background-color 0.15s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(37, 94, 161, 0.2);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* ========== VIDEO POPUP MODAL ========== */
.video-thumbnail {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 32px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.01);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(37, 94, 161, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.play-button:hover {
    background: var(--accent-light);
    transform: translate(-50%, -50%) scale(1.1);
    color: #1e2a3a;
}

/* Modal backdrop */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

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

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .close-modal {
        top: -30px;
        font-size: 2rem;
    }
}

.video-section .section-title{
    color: #fff;
}

/* Start Product */
/* SIMPLE CAROUSEL - no complex calculations */
.carousel-simple {
    position: relative;
    padding: 0 40px;
}

.carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-radius: 24px;
}

.carousel-viewport::-webkit-scrollbar {
    height: 6px;
}

.carousel-viewport::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.carousel-track-simple {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.carousel-track-simple .product-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: var(--surface-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

@media (max-width: 992px) {
    .carousel-track-simple .product-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .carousel-track-simple .product-card {
        flex: 0 0 85%;
    }
    .carousel-simple {
        padding: 0 20px;
    }
}

/* Buttons */
.carousel-btn-simple {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-card);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 5;
    color: var(--accent);
    font-size: 1.2rem;
    transition: all 0.2s;
}

.carousel-btn-simple:hover {
    background: var(--accent-light);
    color: #1e2a3a;
}

.prev-simple {
    left: 0;
}

.next-simple {
    right: 0;
}

.carousel-dots-simple {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dots-simple .dot {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.carousel-dots-simple .dot.active {
    width: 24px;
    border-radius: 12px;
    background: var(--accent-light);
}

/**//**/
/**Carousel Gallery**/
.carousel-gallery {
  margin: 50px 0;
  padding: 0 30px;
}

.carousel-gallery .swiper-slide a {
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  -webkit-box-shadow: 3px 2px 20px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 3px 2px 20px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 3px 2px 20px 0px rgba(0, 0, 0, 0.2);
}

.carousel-gallery .swiper-slide a:hover .image .overlay {
  opacity: 1;
}

.carousel-gallery .swiper-slide a .image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}

.carousel-gallery .swiper-slide a .image .overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.8);
  text-align: center;
  opacity: 0;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.carousel-gallery .swiper-slide a .image .overlay em {
  color: #fff;
  font-size: 26px;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  display: inline-block;
}

.carousel-gallery .swiper-pagination {
  position: relative;
  bottom: auto;
  text-align: center;
  margin-top: 25px;
}

.carousel-gallery .swiper-pagination .swiper-pagination-bullet {
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.carousel-gallery .swiper-pagination .swiper-pagination-bullet:hover {
  opacity: 0.7;
}

.carousel-gallery .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #ca8122;
  transform: scale(1.1, 1.1);
}

#hih:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 70px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-30deg);
  animation-name: slide;
  animation-duration: 7s;
  animation-timing-function: ease-in-out;
  animation-delay: .3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  background: linear-gradient(to right,
          rgba(255, 255, 255, 0.13) 0%,
          rgba(255, 255, 255, 0.13) 77%,
          rgba(255, 255, 255, 0.5) 92%,
          rgba(255, 255, 255, 0.0) 100%);
}

@keyframes slide {
  0% {
      left: -100;
      top: 0;
  }

  50% {
      left: 120px;
      top: 0px;
  }

  100% {
      left: 290px;
      top: 0;
  }
}

/* --- NEW PAGES STYLES --- */
/* Page Header */
.page-header {
    padding: 150px 0 50px;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}
.page-header p a {
    color: #ddd;
    text-decoration: none;
}
.page-header p a:hover {
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    text-align: center;
}
.products-grid .product-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.products-grid .product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}
.products-grid .product-card h3 {
    margin-top: 15px;
    font-size: 1.2rem;
}
.products-grid .product-card a {
    text-decoration: none;
    color: inherit;
}

/* Gallery Multi-column Grid */
.gallery-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.gallery-column-item {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
}
.gallery-column-item .image {
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.gallery-column-item:hover .image {
    transform: scale(1.05);
}
.gallery-column-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-column-item:hover .overlay {
    opacity: 1;
}
.gallery-column-item .overlay em {
    color: #fff;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.gallery-column-item:hover .overlay em {
    transform: scale(1);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.contact-info-card, .contact-form-card {
    padding: 30px;
    background: var(--surface-card, #fff);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
}
.contact-info-card h3, .contact-form-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.contact-info-card p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info-card i {
    color: var(--accent, #0b5e6b);
    font-size: 1.2rem;
}
.contact-info-card a {
    color: inherit;
    text-decoration: none;
}
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    margin: 0;
    background: none;
    padding: 0;
    box-shadow: none;
}
.contact-form-wrapper input, .contact-form-wrapper textarea {
    width: 100%;
    border-radius: 5px;
    padding: 12px 20px;
    border: 1px solid var(--border-light, #ddd);
    background: var(--section-bg-alt, #f9f9f9);
    color: var(--text-primary, #333);
}
.contact-form-wrapper textarea {
    height: 120px;
    font-family: inherit;
}
.contact-form-wrapper button {
    width: max-content;
    border-radius: 5px;
    padding: 12px 30px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Product Details Styles */
.product-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
}
.product-details-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.product-details-img img {
    width: 100%;
    height: auto;
    display: block;
}
.product-details-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent, #0b5e6b);
}
.product-details-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.product-details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.product-details-list li {
    margin-bottom: 10px;
}
.product-details-list i {
    color: #28a745;
    margin-right: 10px;
}
.btn-request {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent, #0b5e6b);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}
.product-subgallery-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light, #eee);
    padding-bottom: 10px;
}
.product-subgallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.product-subgallery-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
