/* ===== Root Variables ===== */
:root {
    --primary-color: #4A90E2;
    --primary-dark: #2E5C8A;
    --accent-color: #FF6B35;
    --light-color: #FFFFFF;
    --bg-light: #F8FAFB;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Top Bar ===== */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 12px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a,
.top-bar-right a {
    color: white;
    margin-right: 25px;
    transition: var(--transition);
}

.top-bar-left a:hover,
.top-bar-right a:hover {
    color: var(--accent-color);
}

.top-bar-left i,
.top-bar-right i {
    margin-right: 8px;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: relative;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

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

.logo img {
    height: 80px;
    width: auto;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

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

/* ===== Navigation Submenu ===== */
.nav-item-with-submenu {
    position: relative;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 10px;
    z-index: 1001;
}

.nav-item-with-submenu:hover .nav-submenu {
    display: flex;
    flex-direction: column;
}

.nav-submenu li {
    list-style: none;
}

.nav-submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-submenu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-submenu li:first-child a {
    border-radius: 4px 4px 0 0;
}

.nav-submenu li:last-child a {
    border-radius: 0 0 4px 4px;
}

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* ===== Carousel Buttons ===== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    z-index: 20;
    font-size: 20px;
    transition: var(--transition);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

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

/* ===== Carousel Dots ===== */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.5);
}

.dot.active {
    background: var(--accent-color);
    width: 28px;
    border-radius: 10px;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: flex;
    }

    .logo img {
        height: 65px;
    }

    .navbar-content {
        min-height: 100px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-item-with-submenu > a::after {
        content: '';
        display: inline-block;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    .nav-item-with-submenu.active > a::after {
        transform: rotate(180deg);
    }

    .nav-submenu {
        position: static;
        display: none;
        background-color: var(--bg-light);
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        min-width: auto;
        flex-direction: column;
    }

    .nav-item-with-submenu:hover .nav-submenu {
        display: none;
    }

    .nav-item-with-submenu.active .nav-submenu {
        display: flex;
    }

    .nav-submenu li a {
        padding: 12px 20px 12px 40px;
        border-left: none;
        border-bottom: 1px solid #eee;
    }

    .nav-submenu li:first-child a {
        border-radius: 0;
    }

    .nav-submenu li:last-child a {
        border-radius: 0;
    }

    .hero {
        height: 520px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

/* ===== Small Phones ===== */
@media (max-width: 480px) {

    .hero {
        height: 380px;
    }

    .logo img {
        height: 55px;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 20px;
    }
}

/* ===== Featured Section ===== */
.featured-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.featured-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 50px;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadw: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    overflow: hidden;
}

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

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.product-specs {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.product-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.product-btn:hover {
    background-color: #FF5722;
}

/* ===== Filter Buttons ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.project-date {
    font-size: 13px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    color: var(--text-gray);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

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

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

/* ===== About Section ===== */
.about-content {
    padding: 60px 0;
}

.about-content h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
    margin-top: 40px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.feature-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card:hover i {
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ===== Contact Section ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px 0;
}

.contact-form h2,
.contact-info h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-item a,
.info-item p {
    font-size: 14px;
    color: var(--text-gray);
}

.info-item a:hover {
    color: var(--primary-color);
}

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

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

/* ===== Footer Submenu ===== */
.footer-submenu {
    display: none;
    list-style: none;
    margin-top: 10px;
    padding-left: 15px;
}

.footer-section li:has(.footer-submenu):hover .footer-submenu {
    display: block;
}

.footer-submenu li {
    margin-bottom: 8px;
}

.footer-submenu li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

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

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    border: none;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ===== Page Visibility ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 130px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background-color: var(--light-color);
        padding: 30px 20px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }

    .nav-menu.active {
        max-height: 100vh;
    }

    .nav-menu a {
        padding: 15px;
        font-size: 18px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        text-align: center;
    }

    .top-bar-left a,
    .top-bar-right a {
        margin-right: 15px;
    }

    .hero {
        height: 520px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .featured-section h2 {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 55px;
    }

    .nav-menu {
        top: 100px;
    }

    .hero {
        height: 380px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 20px;
    }

    .featured-section h2 {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header {
        padding: 40px 20px;
    }

    .products-grid,
    .projects-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}