* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --header-color: #0f172a;
    --text-color: #334155;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --main-font: 'Inter', 'Segoe UI', sans-serif;
    --button-color: #ea0202;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

h1 {
    font-size: 2rem;
    color: var(--header-color);
    margin-bottom: 30px;
    animation: fadein 1s ease;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

.tagline {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    animation: fadein 1s ease;
    animation-delay: 0.3s;
    animation-fill-mode: backwards;
}

.profile-pic {
    border: 4px solid white;
    padding: 5px;
    width: 30rem;
    max-width: 100%;
    box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.12);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--main-font);
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-color);    
    padding: 16px 0;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-list a {
    position: relative;
    color: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-list a:hover {
    color: var(--accent-color);
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    justify-content: space-between;
    align-items: center;
}

a {
    color: var(--accent-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

@media(min-width:768px) {
    h1 {
        font-size: 3rem;
    }

    .site-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }
}

.github-link {
    color: #2abd05;
}

.github-link:hover {
    color: #efab3d;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 20px 45px rgba(0, 0, 0, 0.12);
}

.footer-elements {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}

.footer-elements a {
    font-size: 2rem;
}

.footer-elements i {
    margin-right: 8px;
}

section {
    padding: 50px 0;
}

.comment-section {
    text-align: center;
    padding: 20px;
}

.comment-section a {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: background-color 0.3s ease;
}

.comment-section a:hover {
    background-color: #c00000;
    color: white;
}

.comments-heading {
    font-size: 2rem;
    animation: fadein 2s ease-in-out;
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

@keyframes colorCycle {
    0% {
        color: #ea0202;
    }

    33% {
        color: #1d07e1;
    }

    66% {
        color: #2abd05;
    }

    100% {
        color: #ea0202;
    }
}

.welcome {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.welcome h1 {
    animation: colorCycle 4s infinite;
}

.welcome a i {
    font-size: 30px;
}

.welcome p {
    font-size: 1.5rem;
}

.start-nav {
    list-style: none;
}

.start-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 30px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: background-color 0.3s ease, transform 0.3s ease;
}


.start-nav a:hover {
    background: linear-gradient(#4284DB, #29EAC4);
    transform: translateY(-5px);
    box-shadow: 0px 8px 16px 7px rgba(0, 0, 0, 0.2);
}

.resume {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    scroll-behavior: smooth;
    margin-top: 20px;
    align-items: center;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 600;
}

.resume a {
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.resume a:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 2px 8px 16px 7px rgba(0, 0, 0, 0.2);
}

.resume img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    ;
}

.resume-preview-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.resume-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: none;
    transform: none;
}

a.resume-overlay:hover {
    transform: none;
    transition: none;
}

.video-wrapper {
    display: flex;
    position: relative;
    width: 30rem;
    max-width: 100%;
    flex-wrap: wrap;
    scroll-behavior: auto;
}

#mute-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    outline: none;
    padding: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.my-name {
    text-align: center;
}

.profile-section {
    min-width: 0;
}

.github-card {
    width: 100%;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.github-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.github-card-header h2 {
    margin: 0;
    color: #0f172a;
}

.github-card-header a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.github-chart {
    display: block;
    width: 100%;
    height: auto;
}