/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3a6ea5;
    --primary-hover: #2c5282;
    --secondary-color: #f0b429;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-light: #f8fafc;
    --bg-dark: #2d3748;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

h1, h2, h3 {
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

header .logo {
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

header .logo img {
    max-height: 75px;
    width: auto;
}

header ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

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

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

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

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

header ul li a:hover,
header ul li a.active {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    background: url('images/background.jpg') no-repeat center bottom/contain;
    color: var(--white);
    text-align: center;
    padding: 450px 0 350px;
    margin-top: 0;
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    padding-top: 100px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.3s;
    max-width: 100%;
    word-break: break-word;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

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

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.9s;
    margin-top: 30px;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0,0,0,0.3);
}

/* Section General Styling */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: var(--white);
}

/* About Us Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    top: 15px;
    left: 15px;
    z-index: -1;
    border-radius: var(--border-radius);
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.product-item img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-item .product-content {
    padding: 25px;
}

.product-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-item p {
    color: var(--text-light);
}

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

.contact-section p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 50px;
}

.contact-info h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 1.5rem;
}

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

.contact-info .address-block {
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-info .address-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-info p {
    text-align: left;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-info p strong {
    color: var(--text-color);
}

.contact-info a {
    color: var(--primary-color);
}

.contact-info a:hover {
    color: var(--primary-hover);
}

#contact-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

#contact-form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#contact-form button[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .hero-section {
        padding: 160px 0 100px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .about-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }
    
    header nav {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    header .logo {
        margin-bottom: 15px;
    }
    
    header ul {
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        padding: 15px 0;
        display: none;
    }
    
    header ul.active {
        display: flex;
    }
    
    header ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 140px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.3rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-info {
        padding: 30px 25px;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
    }
    
    #contact-form {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .product-grid {
        gap: 20px;
    }
    
    #contact-form {
        padding: 25px 20px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Brands Section */
.brands-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: center;
    margin-top: 30px;
}

.brand-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 24px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    height: 120px;
    width: 100%;
    max-width: 220px;
    cursor: pointer;
}

.brand-item img {
    max-height: 70px;
    width: auto;
    margin: 0 auto;
    transition: transform 0.3s;
}

.brand-item:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12), 0 4px 8px -2px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 24px;
    }
    .brand-item {
        padding: 16px 8px;
        height: 90px;
        max-width: 140px;
    }
    .brand-item img {
        max-height: 45px;
    }
}

/* Brand Modal Styles */
.brand-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(44, 62, 80, 0.35);
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.brand-modal[style*="display: block"] {
    display: flex !important;
}

.brand-modal-content {
    background: #fff;
    margin: auto;
    padding: 32px 24px 24px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 600px;
    width: 90vw;
    position: relative;
    text-align: center;
    animation: fadeInUp 0.4s;
}

.brand-modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.brand-modal-close:hover {
    color: var(--primary-color);
}

.brand-modal-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.brand-modal-images img {
    max-width: 450px !important;
    width: 100% !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    background: #f8fafc;
}

@media (max-width: 600px) {
    .brand-modal-content {
        padding: 18px 6px 12px 6px;
    }
    .brand-modal-images img {
        max-width: 280px !important;
    }
}

.brand-modal-nav button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.brand-modal-nav button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.brand-modal-nav button:hover:not(:disabled) {
    background-color: var(--primary-hover);
} 