/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= NAVBAR ================= */
header {
    background-color: #343a40;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffc107;
    font-size: 28px;
    font-weight: bold;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin-left: 25px;
}

.menu li a {
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.menu li a:hover,
.menu li a.active {
    background-color: #ffc107;
    color: #343a40;
}

/* ================= PAGE HEADER ================= */
.page-header.contact-header {
    height: 200px;
    background: url("https://images.pexels.com/photos/3184298/pexels-photo-3184298.jpeg?auto=compress&cs=tinysrgb&h=400") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header.contact-header .overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.page-header p {
    font-size: 16px;
}

/* ================= CONTACT INFO ================= */
.contact-info {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(33% - 20px);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box h3 {
    margin-bottom: 10px;
    color: #343a40;
    font-size: 18px;
}

.info-box p {
    color: #6c757d;
    font-size: 14px;
}

/* ================= CONTACT FORM ================= */
.contact-form-section {
    max-width: 600px;
    margin: 50px auto;
    padding: 0 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #343a40;
}

.contact-form-section form .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact-form-section label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #343a40;
}

.contact-form-section input,
.contact-form-section textarea {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    border-color: #ffc107;
}

.contact-form-section button {
    width: 100%;
    padding: 12px;
    background: #343a40;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.contact-form-section button:hover {
    background: #495057;
}

.contact-form-section small.error {
    color: red;
    margin-top: 3px;
    display: none;
}

#successMsg {
    text-align: center;
    margin-top: 15px;
    color: green;
    font-weight: bold;
}

/* ================= FOOTER ================= */
footer {
    background-color: #1f1f1f;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-box {
    flex: 1 1 250px;
    margin: 10px;
}

.footer-box h3 {
    margin-bottom: 15px;
    color: #ffb400;
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-box ul li a:hover {
    color: #ffb400;
}

.social-links a {
    margin-right: 10px;
    display: inline-block;
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.2);
}

.copy {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .menu {
        flex-direction: column;
        margin-top: 10px;
    }
    .menu li {
        margin: 8px 0;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .features .container {
        grid-template-columns: 1fr;
    }
}
