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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

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

/* Header styling */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 20px;
    color: white;
}

.main-header .logo h1 {
    font-size: 24px;
    margin-left: 20px;
}

.nav-links {
    list-style: none;
    margin-right: 20px;
}

.nav-links li {
    display: inline-block;
    margin-right: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f1c40f;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background-size: cover;
    color: black;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-btn {
    background-color: #f1c40f;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: #333;
    color: white;
}

/* Footer */
footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.cta-btn {
    background-color: #f1c40f;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: #333;
    color: white;
}

.container {
    flex: 1;
}

.logo-link {
    color: white; 
    text-decoration: none; 
    font-weight: bold;
}

.logo-link:hover {
    color: #f1c40f; 
}

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

.contact-details {
    font-size: 1.1em;
    line-height: 2em;
}

.contact-details a {
    color: #121ebe;
    text-decoration: none;
}

.contact-details a:hover {
    color: #f1c40f; 
}

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


.cta-btn {
    background-color: #f1c40f;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer; 
}

.cta-btn:hover {
    background-color: #333;
    color: white;
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #f1c40f; 
}

.about-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-container {
    display: flex;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 30px;
}

.about-image img {
    max-width: 200px;
    border-radius: 10px;
    margin-right: 30px;
}

.about-content {
    flex-grow: 1;
}

.about-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

.additional-text {
    text-align: left;
}

.additional-text h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.additional-text p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

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

.projects-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projects-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.projects-section p {
    font-size: 1.5em;
    color: #666;
}

@media (max-width: 768px) {
    .main-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 150px;
    }

    .about-content h2 {
        font-size: 1.8em;
    }

    .about-content p,
    .additional-text p {
        font-size: 1.1em;
    }

    .projects-section,
    .contact-section,
    .resume-section {
        padding: 20px;
        font-size: 1em;
    }

    .projects-section p,
    .contact-section p,
    .resume-section p {
        font-size: 1.1em;
    }

    footer {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px;
    }

    .logo h1 {
        font-size: 1.5em;
    }

    nav ul {
        gap: 5px;
    }

    .about-image img {
        max-width: 120px;
    }

    .about-content p {
        font-size: 1em;
    }

    .additional-text p {
        font-size: 1em;
    }

    footer {
        font-size: 0.8em;
    }
}
img {
    max-width: 100%;
    height: auto;
}