/* Global Styles */
:root {
    --primary-color: #1a237e;
    --secondary-color: #ffffff;
    --accent-color: #ffd700;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --header-height: 80px;
    --nav-height: 60px; /* Added nav-height variable */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-link {
    color: inherit;
    white-space: nowrap;
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    min-height: 48px;
    min-width: 120px;
}

.btn:hover {
    background-color: #0d1552;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--header-height);
    overflow: hidden;
}

.header-content {
    display: flex;
    flex-direction: column; /* Stack children vertically on mobile */
    justify-content: space-between;
    align-items: flex-start; /* Align items to the start */
    height: 100%;
    width: 100%;
}

/* For larger screens */
@media (min-width: 768px) {
    .header-content {
        flex-direction: row; /* Side by side on larger screens */
        align-items: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.logo-text p {
    margin: 4px 0 0;
    font-size: 0.7rem;
    color: var(--dark-gray);
    letter-spacing: 0.5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    margin: 10px 0 0 0;
    padding: 0;
    width: 100%;
}

/* For larger screens */
@media (min-width: 768px) {
    .contact-info {
        margin: 0;
        width: auto;
        text-align: right;
    }
}

.contact-info p {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.875rem;
    color: var(--text-color);
    white-space: nowrap;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

/* Navigation */
nav {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

/* For small screens */
@media (max-width: 767px) {
    nav {
        top: calc(var(--header-height) - 5px);
    }
}

nav.hide {
    transform: translateY(-100%);
}

body.scrolled-to-top nav {
    transform: translateY(0);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.admin-link a {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.admin-link a:hover {
    background-color: #ffc400;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/baground2.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--nav-height) + 40px) 20px 80px; /* Added 20px more to the top padding */
    margin-top: 20px; /* Added 20px margin at the top */
}

.hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 80px 20px 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(-280px);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        display: block;
        padding: 12px 15px;
    }

    .admin-link {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* Ensure content isn't hidden behind fixed header */
main {
    padding-top: calc(var(--header-height) + var(--nav-height) + 60px);
}

/* Products Section */
.products {
    min-height: auto;
    padding: 80px 0;
    background-color: var(--light-gray);
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.product-categories button {
    padding: 8px 15px;
    background-color: var(--secondary-color);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-categories button.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.product-categories button:hover:not(.active) {
    background-color: var(--medium-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Light gray background for better visibility */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' to show full image */
    padding: 10px;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #333;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-quantity {
    color: #666;
    font-size: 0.9rem;
}

.product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.buy-btn i {
    margin-right: 8px;
}

.buy-btn.desktop-only {
    background-color: #25D366; /* WhatsApp green */
    color: white;
}

.buy-btn.mobile-only {
    background-color: var(--primary-color);
    color: white;
}

.buy-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Product Image Responsive Styles */
@media (max-width: 768px) {
    .product-image {
        height: 180px;
    }
}

@media (min-width: 1200px) {
    .product-image {
        height: 220px;
    }
}

/* Product Image Hover Effect */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about > .container > h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.about > .container > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    padding: 20px 0;
}

.about-image {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Customers Section */
.customers {
    min-height: auto;
    padding: 80px 0;
    background-color: var(--light-gray);
}

.customer-tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    border: 1px solid var(--medium-gray);
    border-bottom: none;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.customer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.customer-column {
    flex: 1;
    min-width: 250px;
}

.customer-column h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.customer-column ul {
    list-style: none;
}

.customer-column li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.customer-column li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Contact Section */

/* Contact Section */
.contact {
    min-height: auto;
    padding: 80px 0;
}

.contact-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3, .contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    margin-top: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .admin-link {
        margin-left: 0;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        width: 100%;
        padding: 10px 0;
    }
    
    .customer-columns {
        flex-direction: column;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Why Us Section */
.why-us {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.why-us h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.why-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #303f9f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: auto;
}

.years-badge {
    background: linear-gradient(135deg, var(--primary-color), #303f9f);
    color: white;
    width: 200px;
    padding: 25px 20px;
    border-radius: 10px;
    margin: 40px auto 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.2);
}

.years-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10.1%);
    background-size: 20px 20px;
    transform: rotate(45deg);
    opacity: 0.5;
}

.years-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--accent-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.years-text {
    font-size: 1rem;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-us h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .years-badge {
        width: 180px;
        padding: 20px 15px;
    }
    
    .years-number {
        font-size: 3rem;
    }
}

/* View More Button Styles */
.view-more-container {
    text-align: center;
    margin: 30px 0;
    padding: 15px 0;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-view-more i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-view-more:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-view-more:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-view-more {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.footer-section i {
    margin-right: 10px;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}