/*
    Basic CSS File (styles.css)
*/

/* --- Global Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* --- Header & Navigation --- */
header {
    background: #007bff; /* Primary Brand Color */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #0056b3;
}

/* --- Sections --- */
section {
    padding: 40px 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #007bff;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* --- Hero Section Specific --- */
#hero {
    background: #e9ecef;
    text-align: center;
    padding: 80px 20px;
}

#hero a {
    background: #28a745; /* Action Color */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
}

/* --- Testimonials Specific --- */
#testimonials blockquote {
    background: #f8f9fa;
    border-left: 5px solid #ffc107; /* Highlight Color */
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}

#testimonials footer {
    text-align: right;
    font-weight: bold;
    margin-top: 10px;
    color: #555;
}

/* --- Form Styles --- */
#contact form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding */
}

#contact form input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#contact form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: 20px;
}

footer a {
    color: #ffc107;
    text-decoration: none;
    margin: 0 5px;
}

/* --- Responsiveness: Media Queries --- */

/* 1. Tablet View (Screens up to 768px wide) */
@media (max-width: 768px) {
    /* Adjust padding for a tighter look on tablets */
    section {
        padding: 30px 15px;
    }

    /* Change the header/nav to stack on tablets */
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center; /* Center the links */
        flex-wrap: wrap; /* Allow links to wrap if necessary */
        margin-top: 10px;
    }

    nav ul li a {
        padding: 8px 12px;
    }
}

/* 2. Mobile View (Screens up to 600px wide) */
@media (max-width: 600px) {
    /* Full width navigation for better finger tapping on phones */
    nav ul {
        flex-direction: column; 
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        border-bottom: 1px solid #0056b3; /* Separator for links */
    }

    /* Reduce padding and margins for forms and sections */
    #contact form input[type="text"],
    #contact form input[type="email"],
    #contact form textarea {
        margin-bottom: 15px;
    }
    
    #hero {
        padding: 60px 15px; /* Less vertical space on small screens */
    }
    
    #hero h2 {
        font-size: 1.8em; /* Smaller font size for headings */
    }
    
    /* Make blockquotes simpler */
    #testimonials blockquote {
        margin: 15px 0;
    }
}

