/* resetting to default */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;1,600&display=swap');

:root {
    /* softened palette + dark-blue accent */
    --text-primary: #222;
    --text-secondary: #666;
    --bg: #fafafa;
    --accent: #1E3A8A;
    --accent-hover: #1A337D;
    --light-gray: #f0f0f0;
    --medium-gray: #eaeaea;
}

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

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--text-secondary);
}

/* transitions */
a,
.btn {
    color: var(--accent);
    transition: all 300ms ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 0.8rem;
    text-decoration-color: var(--text-secondary);
}

/* desktop navigation - REDUCED HEIGHT */
nav,
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 10vh;
    padding: 0 1.5rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-links {
    gap: 1.8rem;
    list-style: none;
    font-size: 1.3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
}

.logo:hover {
    cursor: default;
}

/* Navigation Social Icons */
.nav-socials {
    display: flex;
    gap: 1rem;
    margin-left: 1.5rem;
}

.nav-icon {
    height: 1.4rem;
    width: 1.4rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* hamburger menu */
#hamburger-nav {
    display: none;
    height: 10vh;
    padding: 0 1rem;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px;
    width: 28px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 8px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(8px, 4px);
}
.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(8px, -4px);
}

/* Mobile menu social icons */
.social-icons-mobile {
    display: none;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

/* sections on website */
section {
    min-height: 80vh;
    padding: 4rem 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

/* Profile section with left-aligned image */
#profile {
    display: flex;
    padding: 4rem 10rem;
    gap: 3rem;
}

.profile-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 4rem;
}

/* Profile picture container */
.profile-pic-container {
    flex: 0 0 35%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.profile-pic {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}

/* Text content container */
.profile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section__text__p1 {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.title {
    color: var(--accent);
    font-size: 3rem;
    margin: 0.5rem 0 1.5rem;
    line-height: 1.2;
}

.profile-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.25rem;
    text-align: left;
}

/* Contact section */
.contact-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.contact-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.contact-link:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.4rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background-color: white;
    border-top: 1px solid var(--medium-gray);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1200px) {
    section {
        margin: 0 5rem;
        padding: 4rem 5rem;
    }
    
    #profile {
        padding: 4rem 5rem;
    }
    
    .profile-container {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    nav {
        height: 9vh;
    }
    
    #hamburger-nav {
        height: 9vh;
    }
    
    .title {
        font-size: 2.7rem;
    }
    
    .profile-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .profile-pic-container {
        flex: 0 0 auto;
    }
    
    .profile-pic {
        max-width: 260px;
    }
    
    .profile-content {
        text-align: center;
    }
    
    .profile-paragraph {
        text-align: center;
    }
    
    .contact-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #desktop-nav {
        display: none;
    }
    
    #hamburger-nav {
        display: flex;
    }
    
    .social-icons-mobile {
        display: flex;
    }
    
    section {
        margin: 0 2rem;
        padding: 3rem 2rem;
    }
    
    #profile {
        padding: 3rem 2rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    nav, #hamburger-nav {
        height: 8vh;
    }
    
    section {
        padding: 2rem 1.5rem;
    }
    
    #profile {
        padding: 2rem 1.5rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .profile-pic {
        max-width: 220px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}