/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FBF8CC;
    color: #03045E;
    line-height: 1.5;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 97px;
    position: relative;
}

/* Header / Navigation */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 34px 0;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #03045E;
    line-height: 1.5em;
}

.nav {
    display: flex;
    gap: 61px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav a {
    font-size: 18px;
    font-weight: 400;
    color: #03045E;
    text-decoration: none;
    line-height: 1.5em;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.7;
}

.social-icons {
    display: flex;
    gap: 29px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.menu-icon {
    position: absolute;
    right: 0;
    top: 77px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 100px;
    min-height: 600px;
    position: relative;
}

.hero-content {
    max-width: 620px;
}

.greeting {
    font-size: 28px;
    font-weight: 500;
    color: #03045E;
    line-height: 1.5em;
    margin-bottom: 0;
}

.hero-title {
    font-size: 100px;
    font-weight: 800;
    color: #03045E;
    line-height: 1.16em;
    margin: 0;
}

.location {
    font-size: 28px;
    font-weight: 500;
    color: #03045E;
    line-height: 1.5em;
    margin-top: 10px;
    margin-bottom: 40px;
}

.resume-btn {
    display: inline-block;
    padding: 16px 38px;
    background-color: #F5EE84;
    border: 1px solid #474306;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 400;
    color: #474306;
    text-decoration: none;
    line-height: 1.5em;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 6px;
    right: -6px;
    bottom: -7px;
    background-color: #F5EE84;
    border-radius: 6px;
    z-index: -1;
}

.resume-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #474306;
}

.hero-image {
    position: relative;
    width: 500px;
    height: 500px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.stars-decoration {
    position: absolute;
    bottom: 70px;
    left: -8px;
}

/* About Section */
.about {
    padding-top: 100px;
    padding-bottom: 60px;
}

.section-title {
    font-size: 100px;
    font-weight: 800;
    color: #F7F197;
    line-height: 1.16em;
    margin-bottom: 32px;
}

.about-text {
    font-size: 24px;
    font-weight: 400;
    color: #03045E;
    line-height: 1.833em;
    max-width: 1100px;
}

/* Experience Timeline */
.experience {
    padding: 60px 0;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin-left: 257px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #03045E;
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 13px;
    height: 13px;
    background-color: #03045E;
    border-radius: 50%;
}

.timeline-content {
    max-width: 900px;
}

.timeline-date {
    font-size: 24px;
    font-weight: 600;
    color: #03045E;
    line-height: 1.667em;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 24px;
    font-weight: 400;
    color: #03045E;
    line-height: 1.833em;
}

/* Work Section */
.work {
    padding-top: 100px;
    padding-bottom: 60px;
}

.work-intro {
    font-size: 24px;
    font-weight: 400;
    color: #03045E;
    line-height: 1.833em;
    max-width: 900px;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    object-fit: cover;
    order: 1;
}

.project-detail {
    max-width: 100%;
    order: 2;
    margin-top: 20px;
}

.project-date {
    font-size: 15px;
    font-weight: 400;
    color: #03045E;
    line-height: 2.933em;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: #03045E;
    line-height: 1.833em;
    margin-bottom: 0;
}

.project-description {
    font-size: 18px;
    font-weight: 400;
    color: #03045E;
    line-height: 1.778em;
}

/* Project Showcase */
.project-showcase {
    display: flex;
    flex-direction: row;
    gap: 60px;
    margin-top: 120px;
    align-items: start;
}

.showcase-image {
    width: 569px;
    max-width: 100%;
    height: 379px;
    border-radius: 8px;
    object-fit: cover;
}

.showcase-details {
    max-width: 560px;
}

/* Contact Section */
.contact {
    padding-top: 150px;
    padding-bottom: 100px;
}

.contact-content {
    display: grid;
    grid-template-columns: 449px 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 0;
}

.contact-image {
    width: 449px;
    height: 299px;
    border-radius: 8px;
    object-fit: cover;
}

.contact-details {
    padding-top: 0;
}

.contact-intro {
    font-size: 24px;
    font-weight: 400;
    color: #03045E;
    line-height: 1.833em;
    max-width: 640px;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
}

.contact-link {
    font-size: 24px;
    font-weight: 400;
    color: #03045E;
    line-height: 1.833em;
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1200px) {
    .container {
        padding: 0 60px;
    }
    
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 60px;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        width: 400px;
        height: 400px;
    }
    
    .hero-title {
        font-size: 72px;
    }
    
    .section-title {
        font-size: 72px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-detail {
        order: 1;
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .project-image {
        order: 2;
    }
    
    .project-showcase {
        flex-direction: column;
        gap: 30px;
    }
    
    .showcase-details {
        order: 1;
        max-width: 100%;
    }
    
    .showcase-image {
        width: 100%;
        height: auto;
        min-height: 250px;
        order: 2;
    }
    
    .showcase-details {
        order: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .timeline {
        margin-left: 0;
    }
    
    .nav {
        gap: 40px;
    }
}

/* Small tablets and large phones */
@media (max-width: 900px) {
    .container {
        padding: 0 30px;
    }
    
    .header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav {
        position: static;
        transform: none;
        gap: 25px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .social-icons {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 56px;
    }
    
    .greeting,
    .location {
        font-size: 22px;
    }
    
    .about-text,
    .work-intro,
    .timeline-description,
    .contact-intro,
    .contact-link {
        font-size: 18px;
    }
    
    .timeline-date {
        font-size: 18px;
    }
    
    .hero-image {
        width: 320px;
        height: 320px;
    }
    
    .about {
        padding-top: 60px;
    }
    
    .work {
        padding-top: 60px;
    }
    
    .contact {
        padding-top: 80px;
    }
    
    .project-image {
        height: 300px;
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 15px 0;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .logo {
        font-size: 20px;
        text-align: center;
    }
    
    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        font-size: 16px;
    }
    
    .social-icons {
        gap: 15px;
        justify-content: center;
    }
    
    .social-icon svg {
        width: 22px;
        height: 16px;
    }
    
    .hero {
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .greeting,
    .location {
        font-size: 18px;
    }
    
    .location {
        margin-bottom: 25px;
    }
    
    .resume-btn {
        padding: 12px 28px;
        font-size: 16px;
    }
    
    .hero-image {
        width: 250px;
        height: 250px;
    }
    
    .about {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .about-text,
    .work-intro,
    .timeline-description,
    .contact-intro {
        font-size: 16px;
        line-height: 1.7em;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -30px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-date {
        font-size: 16px;
    }
    
    .timeline-item {
        padding-bottom: 40px;
    }
    
    .work {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .work-intro {
        margin-bottom: 30px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 20px;
    }
    
    .project-description {
        font-size: 14px;
    }
    
    .project-showcase {
        margin-top: 40px;
        gap: 20px;
    }
    
    .showcase-image {
        width: 100%;
        height: auto;
        min-height: 180px;
    }
    
    .contact {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .contact-image {
        height: 180px;
    }
    
    .contact-link {
        font-size: 14px;
        word-break: break-all;
    }
    
    .experience {
        padding: 40px 0;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .greeting,
    .location {
        font-size: 16px;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .about-text,
    .work-intro,
    .timeline-description,
    .contact-intro {
        font-size: 14px;
    }
    
    .timeline-date {
        font-size: 14px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .contact-link {
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about,
.experience,
.work,
.contact {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-image {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Selection styling */
::selection {
    background-color: #F7F197;
    color: #03045E;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FBF8CC;
}

::-webkit-scrollbar-thumb {
    background: #03045E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0077B6;
}
