* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #c1c1c1;
    margin: 0;
    padding-top: 80px;
    transition: background-color 1.5s ease, color 1.5s ease;
}

.mono {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
    letter-spacing: -0.5px;
}

.topnav{
    background-color: #121212;
    height: 65px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 100;
    border-bottom: 2px solid #8ad0ff;


    box-shadow: 0 2px 15px rgba(0, 150, 255, 0.7),
    0 0 60px rgba(0, 150, 255, 0.5),
    0 0 120px rgba(0, 150, 255, 0.3);
    transition: border-bottom-color 1.5s ease, box-shadow 1.5s ease;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    color: #f1f1f1;
    letter-spacing: -0.5px;
    transition-duration: 0.3s;
}

.brand:hover{
    color: white;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.6);
    transition-duration: 0.5s;
}

.topnav-links {
    display: flex;
    gap: 30px;
}

.topnav-links a {
    font-family: 'Roboto Mono', monospace;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topnav-links a:hover {
    color: #0096ff;
}

.topnav-links a.active {
    color: #F0F8FF;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.4);
    font-weight: bold;
}

.bouncing-dot {
    display: inline-block;
    color: #0096ff;
    position: relative;
    font-size: 30px;
    line-height: 0;
}

.kicker {
    display: inline-block;
    position: relative;
    transition: 0.5s ease-out;
}

.kicking {
    animation: kickLeg 0.8s ease-in-out;
}

@keyframes kickLeg {
    0% { transform: rotate(0deg) translateX(0); }
    30% { transform: rotate(-30deg) translateX(-2px); }
    50% { transform: rotate(20deg) translateX(5px); }
    80% { transform: rotate(10deg) translateX(2px); }
    90% { transform: rotate(7deg) translateX(1px); }
    95% { transform: rotate(4deg) translateX(0); }
    99% { transform: rotate(1deg) translateX(0); }
    100% { transform: rotate(0deg) translateX(0); }
}


.accent { color: #0096ff; }
section { padding: 100px 7%;}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links img {
    min-height: 22px;
    width: 150px;
    transition: all 0.3s ease;
    transition-duration: 0.3s;
}

.social-links a:hover img {
    transform: translateY(-3px);
    transition-duration: 0.3s;
}

.social-icon {
    min-height: 22px;
    fill: #8892b0;
    transition: all 0.3s ease;
}

.social-links a:hover .social-icon {
    fill: #0096ff;
    filter: drop-shadow(0 0 8px rgba(0, 150, 255, 0.8));
    transform: translateY(-3px);
}

.btn {
    padding: 14px 28px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background-color: transparent;
    color: #0096ff;
    border: 1px solid #0096ff;
}

.btn-primary:hover {
    background-color: rgba(0, 150, 255, 0.1); /* subtle fill on hover */
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
    transform: translateY(-3px); /* slight lift effect */
}

.btn-outline {
    color: #f1f1f1;
    border: 1px solid #f1f1f1;
}

.btn-outline:hover {
    background-color: #f1f1f1;
    color: #121212;
    transform: translateY(-3px);
}

.accent,
.topnav-links a,
.bouncing-dot,
.btn {
    transition: color 1.5s ease, background-color 1.5s ease, border-color 1.5s ease, box-shadow 1.5s ease;
}

.footer {
    background-color: #121212;
    height: 65px;
    width: 100%;
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 100;

    border-top: 2px solid #8ad0ff;
    box-shadow: 0 -2px 15px rgba(0, 150, 255, 0.7),
    0 0 60px rgba(0, 150, 255, 0.5),
    0 0 120px rgba(0, 150, 255, 0.3);

    transition: border-top-color 1.5s ease, box-shadow 1.5s ease;
    margin-top: 100px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-family: 'Roboto Mono', monospace;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: #0096ff;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.6);
}

.secret {
    color: #121212;
    transition-duration: 0.3s;
}

.secret:hover {
    color: rgba(12, 50, 150, 0.5);
    transition-duration: 2s;
}

.education-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(40px, 6vw, 60px);
    color: #f1f1f1;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: #8892b0;
}

.timeline-section {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: #0096ff;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #121212;
    border: 2px solid #0096ff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.8);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background-color: #0096ff;
    box-shadow: 0 0 20px rgba(0, 150, 255, 1);
}

.timeline-content {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: #0096ff;
    box-shadow: 0 10px 30px -15px rgba(0, 150, 255, 0.2);
    transform: translateY(-3px);
}

.timeline-date {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.degree-title {
    margin: 0 0 5px 0;
    color: #f1f1f1;
    font-size: 24px;
}

.institution {
    margin: 0 0 15px 0;
    color: #8892b0;
    font-weight: normal;
    font-size: 18px;
}

.grade {
    color: #c1c1c1;
    margin-bottom: 15px;
}

.details {
    color: #8892b0;
    line-height: 1.6;
    font-size: 15px;
}

.details strong {
    color: #c1c1c1;
}

.grade-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #c1c1c1;
}

@media (max-width: 1024px) {
    .topnav {
        height: auto;
        flex-direction: column;
        padding: 15px 0;
    }

    .brand {
        margin-bottom: 15px;
    }

    .topnav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .topnav-links a {
        font-size: 14px;
        padding: 5px;
    }

    .bouncing-dot {
        display: inline;
        position: static;
        transform: none !important;
        opacity: 1 !important;
    }

    .kicker { transform: none !important; animation: none !important; }

    .social-links img {
        width: 100px;
    }

    .secret:hover {
        color: #121212
    }

}

@media (max-width: 768px) {
    .timeline::before { left: 10px; }
    .timeline-marker { left: 1px; width: 16px; height: 16px; }
    .timeline-item { padding-left: 35px; margin-bottom: 40px; }
    .timeline-content { padding: 20px; }
    .degree-title { font-size: 20px; }
    .institution { font-size: 16px; }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape){

    .topnav {
        height: 50px;
        padding: 0 20px;
        flex-direction: row;
    }

    .brand {
        font-size: 18px;
        margin-bottom: 0;
    }

    .topnav-links {
        width: auto;
        gap: 15px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .topnav-links a {
        font-size: 13px;
    }

    body {
        padding-top: 100px;
    }

    .secret:hover {
        color: #121212
    }

}