/* --- Variables --- */
:root {
    --primary-color: #1D1D1F; /* Dark Charcoal */
    --accent-color: #0071E3;  /* Apple blue (optional accent) */
    --bg-white: #ffffff;
    --nav-height: 80px;
    --font-outfit: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    font-family: var(--font-outfit);
    color: var(--primary-color);
    overflow-x: hidden;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 5%;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

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

.nav-links li a {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

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

/* --- Burger (Mobile Menu Icon) --- */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: var(--nav-height);
        background-color: var(--bg-white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav-links li {
        opacity: 0;
        margin-bottom: 30px;
    }

    .burger {
        display: block;
    }
}

/* --- Toggle Styles for Navbar (Triggered via JS) --- */
.nav-active {
    transform: translateX(0%) !important;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Carousel Section --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 85vh; /* Increased height for better visibility */
    margin-top: var(--nav-height); /* Move below the fixed header */
    overflow: hidden;
    background: #f8f9fa; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    pointer-events: none; /* Prevent image drag from interfering with swipe */
    user-select: none;
}

/* --- Control Buttons --- */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff; /* Solid white */
    color: #000;
    border: 1px solid #ddd;
    width: 55px;
    height: 55px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    opacity: 1; /* Fully visible */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.prev-btn:hover, .next-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

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

.dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
}

.dot.active {
    background: #2b74a1; /* Using brand highlight blue */
    width: 30px;
    border-radius: 6px;
}

/* --- Mobile Responsiveness for Carousel --- */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 50vh; /* More height on mobile */
        margin-top: var(--nav-height);
    }
    
    .prev-btn, .next-btn {
        display: flex; /* Show arrows on mobile */
        width: 35px;
        height: 35px;
        left: 10px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .next-btn { right: 10px; }
}

/* --- Global Container --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Product Tabs Section --- */
.products-section {
    padding: 60px 0;
    background: #fff;
    scroll-margin-top: 100px;
}

.tabs-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.sort-label {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

.tabs-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    cursor: grab;
    user-select: none; /* Prevent text selection while dragging */
    scroll-behavior: auto; /* Required for JS-based smooth dragging */
}

.tabs-wrapper.dragging {
    cursor: grabbing;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.tab-btn {
    padding: 12px 25px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 50px;
    font-family: var(--font-outfit);
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #333;
}

.tab-btn.active {
    background: #A6E3F5; /* Light blue from the reference image */
    border-color: #A6E3F5;
}

/* --- Mobile Responsiveness for Tabs --- */
@media screen and (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tabs-wrapper {
        width: 100vw;
        margin-left: -5%; /* Pull back from container padding */
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-img-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #888;
}

/* --- Mobile Responsiveness for Grid --- */
@media screen and (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-img-container {
        height: 250px;
    }
}

/* --- About Us Section --- */
.about-section {
    padding: 100px 0;
    background: #fff;
    scroll-margin-top: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sub-heading {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bfa15f; /* Gold accent for premium feel */
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Decorative element for image */
.about-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: #bfa15f10;
    border-radius: 50%;
    z-index: -1;
}

/* --- Mobile Responsiveness for About --- */
@media screen and (max-width: 992px) {
    .about-section {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-text h2 {
        font-size: 32px;
    }
    
    .about-visual {
        order: -1; /* Image on top for mobile */
    }
}
/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background: #fdfdfd;
    scroll-margin-top: 80px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.service-card {
    background: #fff;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 32px;
    color: #bfa15f;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
}

.feature-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
}

.pricing-badge {
    width: 100%;
    height: 180px;
    background: #1d1d1f;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfa15f;
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

/* --- Projects Section --- */
.projects-section {
    padding: 100px 0;
    background: #fff;
}

.text-center { text-align: center; }

.section-desc {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 20px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.title-row h3 {
    font-size: 22px;
    font-weight: 600;
}

.title-row i {
    font-size: 18px;
    color: #000;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .title-row i {
    opacity: 1;
    transform: translateX(0);
}

.project-info p {
    font-size: 16px;
    color: #666;
}

/* --- Mobile Responsiveness for New Sections --- */
@media screen and (max-width: 992px) {
    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-img {
        height: 300px;
    }
}

@media screen and (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: #fff;
    scroll-margin-top: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info-side h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info-side p {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 400px;
}

.contact-bottom-visual {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
}

.contact-bottom-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Styling */
.contact-form-side {
    padding: 40px;
    background: #fff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #d1d8e0;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    width: auto;
    padding: 16px 40px;
    background: #2b74a1; /* Match the screenshot color */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1d5a7d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 116, 161, 0.3);
}

/* --- Footer --- */
.main-footer {
    background: #1d1d1f;
    padding: 80px 0 40px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #888;
    font-size: 16px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

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

.footer-links ul li a {
    color: #888;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    color: #888;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact i {
    color: #fff;
    margin-right: 15px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* Response for Mobile Contact & Footer */
@media screen and (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media screen and (max-width: 576px) {
    .contact-info-side h2 {
        font-size: 36px;
    }
    
    .contact-form-side {
        padding: 0;
    }
    
    .submit-btn {
        width: 100%;
    }
}
