/* Base Styles & Variables */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #ff7e5f;
    --accent-color: #6c5ce7;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --dark-gray: #2d3436;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

video {
    display: block;
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #3a5a80;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #ff6b4a;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-gray);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1400;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

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

.logo p {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), url('../images/new-bg.jpeg') no-repeat center center/cover;
    background-position: center 30%;
    min-height: 108vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

/* Featured Products */
.featured-products {
    text-align: center;
}

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
    text-align: left;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 10px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-card-featured {
    max-width: 820px;
    margin: 0 auto;
}

.gallery-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.gallery-copy {
    padding: 20px;
}

.gallery-copy h3 {
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Testimonials */
.testimonials {
    background-color: var(--light-gray);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
}

.cta h2, .cta p {
    color: var(--white);
}

.cta h2::after {
    background-color: var(--white);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 80px 0 20px;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    display: inline-block;
    font-size: 1.5rem;
    color: #bdc3c7;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 64px 0;
    }

    header .container {
        padding: 12px 16px;
        gap: 12px;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: min(86vw, 360px);
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        transform: translateX(-110%);
        transition: transform 0.35s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1200;
    }
    
    nav.active {
        transform: translateX(0);
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        margin: 0;
        text-align: left;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 14px 0;
    }
    
    .mobile-menu {
        display: block;
        z-index: 1300;
    }

    .mobile-menu i {
        transition: transform 0.25s ease;
    }

    .mobile-menu.active i {
        transform: rotate(90deg);
    }
    
    .hero {
        min-height: 92vh;
        height: auto;
        padding: 110px 0;
        background-position: center 28%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 80%;
        margin-bottom: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-info {
        padding: 18px;
    }

    .product-info .btn {
        width: 100%;
        text-align: center;
    }

    .gallery-image {
        min-height: 240px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .logo {
        gap: 8px;
        max-width: calc(100% - 56px);
    }

    .logo-image {
        width: 42px;
        height: 42px;
    }

    .logo h1 {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .logo p {
        font-size: 0.72rem;
        line-height: 1.3;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .gallery-video-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .service-card,
    .product-info,
    .gallery-copy {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gallery-card {
        border-radius: 12px;
    }

    .gallery-image {
        min-height: 200px;
    }

    .footer-section {
        padding: 0 4px;
    }

    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

.nav-backdrop {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1300;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

.toast-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    min-width: 220px;
    max-width: min(90vw, 360px);
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    transform: translateY(12px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #2f9e44;
}

.toast-error {
    background: #d9480f;
}
