/* Basic page setup - makes the whole page flexible and sets background color */
html, body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: #e5e5e5;
    line-height: 1.6;
    color: #333;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Navigation bar - green background, sticks to top when scrolling */
.navbar {
    background-color: #2d6a4f;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Logo in navigation - big and bold */
nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #f0f0f0;
}

/* Navigation links - horizontal list */
nav .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

/* Individual nav links - white text, smooth color change on hover */
nav .nav-links li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav .nav-links li a:hover {
    color: #4e342e;
}

/* Hero header - big gradient background, centered content */
header.hero {
    background: linear-gradient(135deg, #2d6a4f, #4e342e);
    color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

/* Main heading in hero - very big */
header.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: sans-serif;
}

/* Paragraph in hero - medium size */
header.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Images in hero - responsive and rounded corners */
header.hero img {
    max-width: 700px;
    width: 90%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

/* Buttons - brown background, rounded, lifts up on hover */
.button {
    background-color: #4e342e;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    padding: 15px 30px;
    margin: 20px 0;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.button:hover {
    background-color: #2d6a4f;
    transform: translateY(-2px);
}

/* All sections - centered with max width */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 15px;
    background-color: #f0f0f0;
    padding: 70px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.form-input h2 {
    color: #2d6a4f;
    margin-bottom: 20px;
    align-self: center;
    font-family: cursive;
}

.about-page-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-page-grid .about {
    flex: 2;
}

.about-page-grid .form-input {
    flex: 1;
    min-width: 320px;
    margin-bottom: 0;
}

.about-page-grid .form-input form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-page-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.project-page-grid .projects {
    flex: 2;
    min-width: 320px;
}

.project-page-grid .form-input {
    flex: 1;
    min-width: 320px;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .project-page-grid {
        flex-direction: column;
    }
}

.about-page-grid .form-input label {
    font-weight: 600;
    color: #2d6a4f;
}

.about-page-grid .form-input input,
.about-page-grid .form-input select,
.about-page-grid .form-input textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c5c5c5;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-page-grid .form-input input:focus,
.about-page-grid .form-input select:focus,
.about-page-grid .form-input textarea:focus {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.about-page-grid .form-input button {
    width: fit-content;
    background-color: #2d6a4f;
    color: #f0f0f0;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.about-page-grid .form-input button:hover {
    background-color: #4e342e;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

.form-input form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input label {
    font-weight: 600;
    color: #2d6a4f;
}

.form-input input,
.form-input select,
.form-input textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c5c5c5;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.form-input button {
    width: fit-content;
    background-color: #2d6a4f;
    color: #f0f0f0;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.form-input button:hover {
    background-color: #4e342e;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

/* Weather results styling - positioned directly below the form */
#weather-results {
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#weather-results #city-name {
    color: #2d6a4f;
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 0 15px 0;
}

#weather-results #temperature {
    color: #333;
    font-size: 1.2em;
    margin: 8px 0;
    font-weight: 600;
}

#weather-results #weather {
    color: #666;
    font-size: 1.1em;
    margin: 8px 0;
    font-style: italic;
}

/* Specific sections - light background, rounded corners, shadow */
.about, .projects, .contact-info, .why-section, #course-section, .call-to-action {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* Headings in sections - green color */
.about h2, .projects h2, .why-section h3, #course-section h3, .call-to-action h2 {
    color: #2d6a4f;
    margin-bottom: 20px;
}

/* Project list - flexible grid */
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

/* Individual project cards - white background, lifts on hover */
.project-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: calc(33% - 20px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
}

/* Images in project items - full width, rounded */
.project-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.contact-info a{
    margin: 10px 0;
    font-size: 1.1em;
    color:#2d6a4f;
    background-color: #e5e5e5;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    
}

/* Contact image - centered and responsive */
.contact-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

/* Social media links - horizontal list */
.social-media {
    list-style: none;
    padding: 0;
}

.social-media li {
    display: inline;
    margin-right: 20px;
}

.social-media a {
    color: #2d6a4f;
    text-decoration: none;
    font-weight: bold;
    background-color: #e5e5e5;
}

.social-media a:hover {
    text-decoration: none;
}

/* Footer - green background, centered */
.footer {
    background-color: #2d6a4f;
    color: #f0f0f0;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer .nav-links {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.footer .nav-links li {
    display: inline;
    margin: 0 10px;
}

.footer a {
    color: #f0f0f0;
    text-decoration: none;
}

.footer a:hover {
    text-decoration:none;
    background-color: #2a533f;
    padding: 2px 4px;
    border-radius: 3px;
}
.footer-action {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
}

.footer-button {
    padding: 14px 28px;
    border-radius: 8px;
    background-color: #4e342e;
    color: #f0f0f0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.footer-button:hover,
.footer-button:focus-visible {
    background-color: #2a533f;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}
/* Mobile styles - adjusts for small screens */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    nav .nav-links {
        margin-top: 10px;
    }

    header.hero h1 {
        font-size: 2em;
    }

    .project-item {
        width: 100%;
    }

    section {
        padding: 20px 10px;
    }
}
