/* ============================================
   ACOUSTI ENGINEERING COMPANY WEBSITE
   Professional, Modern, Responsive Design
   ============================================ */

/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a5f7a;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1a5f7a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a5f7a;
    transition: width 0.3s ease;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

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

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-phone {
    margin-bottom: 30px;
    font-size: 18px;
}

.hero-phone p {
    margin: 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff6b35;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ============================================
   CONTAINER & COMMON SECTIONS
   ============================================ */

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

section {
    padding: 80px 0;
}

section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1a5f7a;
    margin-bottom: 50px;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background-color: #f0f8fb;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background-color: #fff;
}

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

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #1a5f7a;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e0e0e0;
    margin: -30px -30px 20px -30px;
    border-radius: 8px 8px 0 0;
}

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

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin: 0 0 10px 0;
}

.service-card p {
    margin: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a5f7a;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-us {
    background: linear-gradient(135deg, #1a5f7a 0%, #2a7f9a 100%);
    color: #fff;
}

.why-us h2 {
    color: #fff;
}

.benefits-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list li {
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    animation: fadeInUp 0.6s ease;
    line-height: 1.6;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
    font-size: 20px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background-color: #f9f9f9;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a5f7a;
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

.contact-info a {
    color: #1a5f7a;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff6b35;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form-wrapper {
    animation: fadeInUp 0.6s ease;
}

#wallpaperContactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5f7a;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.submit-button {
    padding: 14px 30px;
    background-color: #ff6b35;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.submit-button:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.error-message {
    color: #ff6b6b;
    margin-top: 5px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.success-message h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.success-message p {
    margin: 0;
    font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #1a5f7a;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-list li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .hero {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 24px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .benefits-list li {
        font-size: 14px;
        padding-left: 25px;
    }

    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 20px;
    }

    .submit-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

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

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

/* Smooth transitions for all interactive elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
