/*
*********************************************************************
                        GENERAL STYLES
*********************************************************************
*/

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

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    flex: 1;
}

/*
*********************************************************************
                        NAV BAR STYLES
*********************************************************************
*/

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 100px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #007bff;
}

.logo h1 {
    font-size: 22px;
    color: #333;
    font-weight: 500;
}

.logo a {
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: red;
    border-bottom: 2px solid #007bff;
}

.nav-links a.active {
    color: #007bff;
    font-weight: 700;
    border-bottom: 2px solid #007bff;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 32px;
    cursor: pointer;
}

/*
*********************************************************************
                        HERO SECTION STYLES
*********************************************************************
*/

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 180px;
}

.profile-photo {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.intro h2 {
    font-size: 75px;
    /* Larger heading */
    color: #333;
}

.intro h2 span {
    color: #007bff;
    /* Blue accent */
}

.intro p {
    margin: 25px 0;
    font-size: 26px;
    color: #666;
    max-width: 450px;
}

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

.social-links a {
    text-decoration: none;
    color: #007bff;
    font-size: 45px;
    margin-right: 20px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #0056b3;
    transform: scale(1.1);
}

/*
*********************************************************************
                        PAGE SPECIFIC STYLES
*********************************************************************
*/

.about,
.projects,
.contact {
    padding: 120px 80px;
    text-align: center;
    background: #f0f2f5;
    border-top: 1px solid #e0e0e0;
}

.about h2,
.projects h2,
.contact h2 {
    color: #007bff;
    font-size: 50px;
    text-align: center;
    margin-bottom: 50px;
}

/* ABOUT PAGE */
.about-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 40px;
}

.about-card {
    background-color: #ffffff;
    color: #333;
    padding: 30px;
    margin-top: 50px;
    border-radius: 25px;
    width: 95%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    align-items: center;
}

.about-card:hover,
.project-card:hover,
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-card h2 {
    font-size: 2.2rem;
    color: #007bff;
    margin-bottom: 25px;
}

.about-text {
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center;
    text-justify: inter-word;
}

.about p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.9;
    max-width: 750px;
    margin: auto;
    text-align: justify;
}

.highlight {
    color: #007bff;
    font-weight: bold;
}

/* PROJECT PAGE */
.what-i-do-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.project-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 50px;
    width: 520px;
    height: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    margin-top: 20px;
    font-size: 1.8rem;
    color: #333;
}

.project-card p {
    font-size: 1.1rem;
    color: #666;
}

/* CONTACT PAGE */
.contact-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.contact-card {
    background-color: #ffffff;
    color: #333;
    padding: 50px;
    border-radius: 25px;
    width: 95%;
    max-width: 650px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.contact-card h2 {
    font-size: 2.2rem;
    color: #007bff;
    margin-bottom: 25px;
}

.contact-text {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact a {
    color: #007bff;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.find-me {
    margin-top: 35px;
    color: #007bff;
    font-size: 22px;
}

/*********************************************************************
                        FOOTER STYLES
*********************************************************************
*/

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #343a40;
    color: #f8f9fa;
    font-size: 16px;
    padding: 25px;
}

.footer p {
    margin: 0;
}

/*
*********************************************************************
                        MEDIA QUERIES
*********************************************************************
*/

@media (min-width: 1025px) {
    body {
        overflow: auto;
    }
}

/* TABLET */
@media (max-width: 1024px) {
    .nav-bar {
        padding: 20px 50px;
    }

    .hero {
        margin-left: 100px;
    }

    .intro h2 {
        font-size: 55px;
    }

    .about,
    .projects,
    .contact {
        padding: 100px 50px;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 45px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .nav-bar {
        padding: 20px;
    }

    .menu-icon {
        display: block;
    }

    .menu {
        display: block;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 8px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
    }

    #menu-toggle:checked~.menu {
        right: 0;
    }

    .hero {
        flex-direction: column-reverse;
        margin: 60px 0;
        margin-top: 0%;
        text-align: center;
    }

    .intro {
        margin-top: 50px;
    }

    .intro h2 {
        font-size: 45px;
    }

    .intro p {
        max-width: 100%;
    }

    .profile-photo img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .project-grid {
        flex-direction: column;
    }

    .project-card {
        width: 100%;
        padding: 20px;
    }

    .about-card,
    .contact-card {
        width: 100%;
        padding: 35px;
    }

    .about,
    .projects,
    .contact {
        padding: 80px 20px;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 35px;
    }
}