/*
  Modern Portfolio CSS - Updated for better resume button, circular profile, skill icons, sticky nav, and mobile menu
*/

html, body {
    width: 100%;
    /* Remove max-width: 100vw; */
}

body {
    overflow-x: unset;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: #f4f6fb;
    color: #222;
}

.header {
    background: #0a174e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8vw 16px 8vw;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 100%;
    /* Remove max-width and min-width */
    box-sizing: border-box;
}
.logo {
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    letter-spacing: 2px;
}
.nav {
    display: flex;
    align-items: center;
    transition: right 0.3s;
    position: relative;
    z-index: 1100;
}
.nav a {
    color: #fff;
    margin-left: 32px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover {
    color: #00bcd4;
}
.close-icon {
    display: none;
    color: #fff;
    font-size: 2rem;
    margin-left: 24px;
    cursor: pointer;
}
.menu-icon {
    display: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    margin-left: 18px;
    z-index: 1200;
}

/* Sticky header for all sections */
.sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a174e;
    color: #fff;
    padding: 48px 8vw 0 8vw;
    min-height: 420px;
    position: relative;
}
.hero-content {
    max-width: 520px;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #cfd8dc;
}
.hero-social a {
    color: #fff;
    margin-right: 16px;
    font-size: 1.5rem;
    transition: color 0.2s;
}
.hero-social a:hover {
    color: #00bcd4;
}
.resume-btn {
    background: linear-gradient(90deg, #00bcd4, #2196f3);
    color: #fff;
    padding: 8px 22px;
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 12px;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.resume-btn:hover {
    background: linear-gradient(90deg, #2196f3, #00bcd4);
    color: #fff;
}
.hero-image {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: absolute;
    right: 8vw;
    bottom: 0;
    height: 100%;
    z-index: 2;
}
@media (max-width: 900px) {
    .hero-image {
        position: static;
        align-items: center;
        justify-content: center;
        height: auto;
    }
}
.profile-pic {
    width: 320px;
    height: 380px;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 8px solid #0a174e;
    background: transparent;
    margin-bottom: -40px;
}
@media (max-width: 900px) {
    .profile-pic {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        border-width: 6px;
        margin-bottom: 0;
    }
}

/* Highlights Section */
.highlights {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    background: #f4f6fb;
    padding: 36px 8vw 24px 8vw;
    gap: 24px;
    flex-wrap: wrap;
}
.highlight-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px 18px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 220px;
}
.highlight-card img {
    width: 64px;
    height: 64px;
}
.highlight-text {
    font-size: 1.1rem;
    color: #0a174e;
    text-align: center;
}

/* Modern Skills Section */
.skills-section {
    background: #fff;
    padding: 40px 8vw 32px 8vw;
}
.skills-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #0a174e;
}
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    width: 100%;
}
.skills-list {
    display: contents;
}
.skill-bar {
    background: #f4f6fb;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 0;
    position: relative;
    transition: box-shadow 0.2s;
}
.skill-bar:hover {
    box-shadow: 0 4px 24px rgba(0,188,212,0.12);
}
.skill-icon {
    width: 40px;
    height: 40px;
    margin: 0 0 8px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 4px;
}
.skill-bar span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a174e;
    margin-bottom: 8px;
}
.bar {
    background: #e0e4ea;
    border-radius: 8px;
    width: 100%;
    height: 16px;
    overflow: hidden;
    margin-top: 6px;
}
.bar-fill {
    background: linear-gradient(90deg, #00bcd4, #2196f3);
    height: 100%;
    border-radius: 8px 0 0 8px;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
/* Remove old skills visual */
.skills-visual { display: none; }

/* Education Timeline */
.education-section {
    background: #f4f6fb;
    padding: 40px 8vw 32px 8vw;
}
.education-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #0a174e;
}
.timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 3px solid #00bcd4;
}
.timeline-item {
    position: relative;
    margin-bottom: 35px;
}
.timeline-dot {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 4px solid #00bcd4;
    border-radius: 50%;
    z-index: 1;
}
.timeline-content {
    background: #fff;
    padding: 18px 22px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.timeline-content h3 {
    margin: 0 0 6px 0;
    color: #0a174e;
}
.timeline-content span {
    color: #00bcd4;
    font-size: 1rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background: #fff;
    padding: 40px 8vw 32px 8vw;
    position: relative;
    z-index: 1;
    min-width: 0;
}
.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #0a174e;
}
.contact-content {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    align-items: flex-start;
    min-width: 0;
}
.contact-form {
    background: #f4f6fb;
    padding: 24px 28px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 420px;
    flex: 1;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    resize: none;
}
.btn {
    background: linear-gradient(90deg, #00bcd4, #2196f3);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover {
    background: linear-gradient(90deg, #2196f3, #00bcd4);
}
.contact-image {
    margin-top: 18px;
    text-align: center;
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-image svg {
    width: 220px;
    height: 180px;
    display: block;
    animation: floatContact 2.5s infinite ease-in-out alternate;
}
@keyframes floatContact {
    0% { transform: translateY(0); }
    100% { transform: translateY(-18px); }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .hero-image {
        align-self: center;
    }
    .highlights {
        flex-direction: column;
        align-items: center;
    }
    .skills-content, .contact-content {
        flex-direction: column;
        gap: 24px;
    }
    .contact-content {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .contact-image {
        margin-top: 0;
        justify-content: flex-start;
    }
}
@media (max-width: 700px) {
    .header {
        flex-direction: row;
        gap: 0;
        padding: 14px 4vw 10px 4vw;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100vw;
        height: 100vh;
        width: 70vw;
        background: #0a174e;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 24px 0 24px;
        box-shadow: -2px 0 12px rgba(0,0,0,0.12);
        transition: right 0.3s;
    }
    .nav.open {
        right: 0;
    }
    .nav a {
        margin: 18px 0;
        font-size: 1.3rem;
    }
    .menu-icon {
        display: block;
    }
    .menu-icon.hide {
        display: none;
    }
    .close-icon {
        display: block;
        position: absolute;
        top: 18px;
        right: 18px;
    }
    .hero, .highlights, .skills-section, .education-section, .contact-section {
        padding-left: 4vw;
        padding-right: 4vw;
    }
    .hero-image img, .profile-pic {
        width: 120px;
        height: 120px;
    }
    .contact-image img {
        width: 100%;
        max-width: 180px;
    }
}
@media (max-width: 500px) {
    .skills-content {
        grid-template-columns: 1fr;
    }
}

/* Animations for skill bars */
.bar-fill {
    animation: growSkill 1.2s ease-in-out;
}
@keyframes growSkill {
    from { width: 0; }
    to { width: inherit; }
}

/* About section animation (science/tech) */
.about-animated {
    animation: animateAbout 1.5s cubic-bezier(.4,0,.2,1);
}
@keyframes animateAbout {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* End of CSS */
