/* Base Styles */
:root {
    --primary-color: #DC143C; /* Crimson red */
    --secondary-color: #000814; /* Navy blue (darker) */
    --navy-blue: #001D3D; /* Navy blue (medium) */
    --navy-light: #003566; /* Navy blue (lighter) */
    --accent-color: #B22222; /* Darker red */
    --dark-color: #121212; /* Near black */
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --gray-dark: #34495e;
    --gray-medium: #7f8c8d;
    --gray-light: #bdc3c7;
    --transition: all 0.3s ease;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-medium);
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto;
}

.underline {
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 1.5rem;
}

section {
    padding: clamp(2rem, 8vw, 5rem) 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation */
nav {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.5rem, 2vw, 1rem) 1rem;
}

.logo h1 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 0;
    color: var(--dark-color);
}

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

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: clamp(0.5rem, 2vw, 1.5rem);
}

.nav-links a {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

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

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

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

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("images/banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
    line-height: 1.2;
}

.hero h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: fadeInDown 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    flex-wrap: wrap;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about-text h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.about-text p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.about-highlights {
    margin-top: 1.5rem;
}

.about-highlights li {
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.about-highlights i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

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

/* Products Section */
.products {
    background-color: var(--light-color);
}

.product-categories {
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.tab-btn {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid var(--gray-light);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.product-category {
    display: none;
}

.product-category.active {
    display: block;
}

.product-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: clamp(1rem, 3vw, 2rem);
}

.product-text h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.product-text p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.product-highlights {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-highlights li {
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.product-highlights i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.product-gallery {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    align-items: center;
}

.product-gallery img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.view-all-products {
    text-align: center;
    margin-top: 2rem;
}

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

.services .section-header h2,
.services .section-header p {
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--navy-blue);
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    color: white;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.service-features {
    margin-top: 1rem;
    text-align: left;
}

.service-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
}

.service-features li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Why Choose Us Section */
.why-us {
    background-color: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.why-us-card {
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: white;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.why-us-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.why-us-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.why-us-card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--navy-blue);
}

.info-item p {
    margin-bottom: 0.5rem;
    color: var(--gray-medium);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.contact-form {
    background-color: white;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--navy-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
}

.map-container {
    margin-top: 3rem;
}

.map-container h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--navy-blue);
    text-align: center;
}

.map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: clamp(300px, 50vw, 400px);
}

.map iframe {
    border: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 2vw, 2rem);
}

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

.footer-logo h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.footer-column h3 {
    color: white;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--gray-light);
    transition: var(--transition);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social h3 {
    color: white;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: var(--gray-light);
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: clamp(15px, 4vw, 30px);
    right: clamp(15px, 4vw, 30px);
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .nav-links .btn-primary {
        margin: 1rem auto;
        display: inline-block;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 100px 0 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 80%;
        max-width: 300px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .map {
        height: 250px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .product-content {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media screen and (min-width: 1025px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1.5fr 1fr 1.5fr;
    }

    .footer-bottom {
        justify-content: space-between;
    }
}