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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background-color: navy;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 2px;
}

.logo img {
    height: 100px;
    width: 100px;
    margin-right: 1px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.company-name .main-name {
    font-size: 25px; 
    margin: 0; 
}

.company-name .sub-name {
    font-size: 12px; 
    margin: 0;
}

.company-name {
    font-weight: bold;
    color: rgb(9, 65, 204);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.contact-info {
    display: flex;
    flex-direction: row;
    margin-right: 20px;
    text-align: right;
}

.contact-info p {
    margin: 0 15px;
    font-size: 14px;
    color: white;
}
.contact-info p a {
    color: white;
}

.social-links a {
    display: inline-block;
    margin-left: 10px;
}

.social-links a:hover {
    text-decoration-color: darkblue;
}

.social-links img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Navigation */
nav {
    background-color: whitesmoke;
    padding: 5px;
    margin-top: 15px;
    width: 100%;
    position: fixed;
    z-index: 99;
}

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

nav a {
    color: black;
    text-decoration: none;
    margin-right: 30px;
    font-size: 16px;
}

nav a:hover {
    color: blue; 
    transition: color 0.3s ease;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Dropdown Button */
.dropbtn {
    color: black;
    padding: 14px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-color: transparent;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    width: 100%;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    width: 100%; 
    box-sizing: border-box; 
    border-bottom: 1px solid grey; 
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: lightgreen;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    width: 180%;
}

/* Main Content Section */
main {
    flex: 1;
    padding-top: 60px; 
}

/* Hero Section with Image Slider */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px navy;
    animation: fadeInUp 1s ease-out;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 300;
}

.slide-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* CTA Section with Background Image */
.cta-section {
    position: relative;
    padding: 10px 10px;
    text-align: center;
    color: white;
    background-image: url('https://images.unsplash.com/photo-1449844908441-8829872d2607?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 120, 238, 0.95) 0%, rgba(37, 199, 205, 0.95) 100%);
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px navy;
}

.cta-section p {
    font-size: 1.2rem;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.98;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* Products Section */
.products-section {
    padding: 20px 20px;
    background: whitesmoke;
}

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

.products-container h2 {
    font-size: 1.8rem;
    color: navy;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.product-card {
    background: rgb(241, 235, 235);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.btn-read-more,
.btn-order {
    flex: 1;
    padding: 10px 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-read-more {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-read-more:hover {
    background: #667eea;
    color: white;
}

.btn-order {
    background: #667eea;
    color: white;
}

.btn-order:hover {
    background: #5568d3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 2.5rem;
    font-weight: bold;
    color: maroon;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: red;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.modal-content h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #667eea;
}

.modal-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #666;
}

.modal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-content li {
    margin-bottom: 8px;
    color: #666;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    } 
}

/* Footer */
footer {
    background-color: navy;
    color: black;
    padding: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 0.85em;
}
footer p {
    color: white;
}

/* Hamburger Menu (Initially Hidden) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 2px 0;
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
    /* Hide nav-links and show hamburger menu */
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: whitesmoke;
        width: 100%;
        z-index: 1000;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }
    nav {
        margin-top: 25px;
    }

    .hamburger {
        display: flex;
        margin-right: 20px; /* Adjust as needed */
    }

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

    /* Dropdown Content*/
    .dropbtn {
        color: black;
        padding: 14px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        background-color: transparent;
        width: 100%;
    }

    .dropdown-content {
        display: none; 
        position: relative; 
        left: 0; 
        top: 100%; 
        width: 100%; 
        z-index: 1;
    }

    .dropdown-content a {
        padding: 2px 2px;
        font-size: 14px;
        text-align: center;
        border: none;
        width: 100%; 
        display: block;
        font-size: 14px;
        box-sizing: border-box; 
    }

    .dropdown:hover .dropdown-content {
        display: block;
        position: static; 
        background-color: whitesmoke;
        width: 100%; 
        margin-top: 2px;
        box-shadow: none; 
        padding: 0;
    }
    /* Adjust header logo size */
    .logo img {
        height: 80px;
        width: 80px;
    }

    .company-name .main-name {
        font-size: 20px;
        margin-top: 10px;
    }
    header {
        height: 50px;
    }

    .social-links{
        display: inline-flex;
    }

    .contact-info {
        margin-top: 1px;
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 30px 20px;
        background-attachment: scroll;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        color: white;
    }

    .cta-section p {
        font-size: 1rem;
        text-align: justify;
    }

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

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-section {
        padding: 20px 30px;
    }

    .products-container {
        margin-top: 10px;
    }

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

    .product-buttons {
        flex-direction: column;
    }

    .modal-content {
        padding: 20px 20px;
    }
}