.logo {
    color: #fcfcfc;
    font-size: 1.3em;
    font-weight: bold;
    margin-right: 3.5vw;
    padding-left: 0.5vw;
    letter-spacing: 2px;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-shadow: 1px 1px 4px #222;
    white-space: nowrap;
    align-self: center;
}
body {
    background-color:#0c1422;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #121a27;
    padding: 0.8em 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}
.navbar a {
    color: #7b7575;
    text-decoration: none;
    margin: 0 2vw;
    font-size: clamp(1em, 2vw, 1.2em);
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
}
.navbar a:hover {
    color: #ffcc00;
}

/* Profile section styles */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem 6rem;
    color: #fff;
}
.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 3px solid gray;
    box-shadow: 0 0 0 6px rgba(255,204,0,0.04), 0 6px 18px rgba(0,0,0,0.6);
    margin-bottom: 0.8rem;
    background-image: none;
}
.full-name {
    margin: 6px 0 18px;
    font-size: 1.4rem;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 6px;
    letter-spacing: 1px;
}
.subtitle {
    margin: 0 0 18px;
    color: #cfcfcf;
    font-size: 0.98rem;
    font-style: italic;
    opacity: 0.95;
}
.info-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.info-grid p a {
    color: #fcfcfc;
}

/* Make education links white */
.info-box.education a {
    color: #ffffff;
}

.info-box {
    background: rgba(68, 65, 68, 0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.2rem;
    width: 32%;
    min-height: 280px;
    box-sizing: border-box;
    color: #ddd;
}
.info-box h3 {
    margin-top: 0;
    color: #fff;
}

/* Skills box styles */
.skills .skill { margin-bottom: 14px; }
.skill-label { color: #fff; font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.skill-percent { color: #cfcfcf; font-weight: 600; font-size: 0.95rem; }
.skill-bar { background: rgba(255,255,255,0.04); height: 12px; border-radius: 8px; overflow: hidden; }
.skill-fill {
    background: #62a8fa;
    height: 100%;
    width: 0;
    border-radius: 6px;
    /* animate from 0 to the custom property --w */
    animation: fill-bar 0.9s ease forwards;
}

@keyframes fill-bar {
    to { width: var(--w, 0%); }
}

/* staggered delays so fills don't all animate at once */
.skills .skill:nth-child(1) .skill-fill { animation-delay: 0.12s; }
.skills .skill:nth-child(2) .skill-fill { animation-delay: 0.28s; }
.skills .skill:nth-child(3) .skill-fill { animation-delay: 0.44s; }
.skills .skill:nth-child(4) .skill-fill { animation-delay: 0.60s; }

@media (max-width: 880px) {
    .info-grid { flex-direction: column; gap: 1rem; align-items: center; }
    .info-box { width: 90%; }
}

/* Overlay/modal for Contact */
.overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    z-index: 1200;
}
.overlay.show { display: flex; }
.overlay-content {
    width: 92%;
    max-width: 1000px;
    height: 86%;
    background: #071017;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.04);
}
.overlay-content iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; overflow:hidden; }
.overlay-content, .overlay-content iframe, .overlay { -webkit-overflow-scrolling: touch; }

/* Ensure contact content doesn't scroll inside iframe: if the contact page has its own scrollbars, hide them */
.overlay-content iframe::-webkit-scrollbar { display: none; }
.overlay-close {
    position: absolute;
    right: 10px;
    top: 8px;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 26px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}
