@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-color: #0f1013;
    --card-bg: #1e1e24;
    --text-main: #f0f0f0;
    --text-dim: #9aa0a6;
    --accent-red: rgb(176, 0, 0);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --card-shadow-hover: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: var(--bg-color);
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--accent-red);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card {
    background-color: rgba(30, 30, 36, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px var(--card-shadow);
    transition: box-shadow 0.2s ease-in-out, transform 0.3s ease;
    border-radius: 18px;
    padding: 25px;
    flex: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.avatar {
    border-radius: 50%;
    border: 2px solid #555;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-top: 10px;
}

.card h2 {
    font-size: 30px;
}

.card p {
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

.card:hover {
    box-shadow: 0 6px 32px var(--card-shadow-hover);
    transform: scale(1.02);
}

.about-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-me img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
}

.about-me p {
    padding-top: 2px;
    font-family: "Consolas", monospace;
    font-size: 16px;
    color: var(--text-dim);
}

.card-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

@media (max-width: 768px) {
    .card-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Removed widget styles */
.skills-body {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.skill-tag {
    background: #2a2a35;
    color: #f0f0f0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.skill-tag:hover {
    background: #3f3f4e;
    color: #fff;
}

.my-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.open-button {
    padding: 12px 24px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 550;
    color: rgb(255, 255, 255);
    background-color: var(--accent-red);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 5px;
}

.open-button:hover {
    transform: scale(1.02);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.overlay-content {
    background-color: rgba(30, 30, 36, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.overlay-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-main);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.social-link.telegram {
    background-color: #2CA5E0;
}

.social-link.github {
    background-color: #333;
}

.social-link.email {
    background-color: #EA4335;
}

.close-button {
    padding: 10px 24px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dim);
    background: #2a2a35;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.close-button:hover {
    background: #3f3f4e;
    color: #fff;
}

.hidden {
    display: none !important;
}

/* --- Top Navigation Pills --- */
.top-nav-wrapper {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1500px;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.nav-pill {
    background-color: rgba(30, 30, 36, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    padding: 12px 25px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav-pill:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5);
    background-color: rgba(35, 35, 42, 0.7);
}

.left-pill {
    gap: 30px;
}

.right-pill {
    gap: 15px;
}

.time-date-display {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.pill-separator {
    color: var(--text-dim);
    font-size: 14px;
    opacity: 0.5;
}

.datetime-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-logo:hover {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
    color: var(--text-main);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .nav-content {
        padding: 15px 20px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-item {
        font-size: 14px;
    }
}

/* --- Gemini Aurora Gradient --- */
.gemini-aurora {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -2;
    background-color: var(--bg-color);
}

.gemini-blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.7;
    animation: float 25s infinite ease-in-out alternate, morph 10s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}

.gemini-blob-1 {
    width: 35vw;
    height: 35vw;
    background-color: rgba(161, 91, 245, 0.45);
    /* Purple */
    top: -5%;
    left: 0%;
    animation-delay: 0s, -2s;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.gemini-blob-2 {
    width: 25vw;
    height: 25vw;
    background-color: rgba(66, 133, 244, 0.45);
    /* Blue */
    bottom: -5%;
    right: 10%;
    animation-delay: -5s, -4s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.gemini-blob-3 {
    width: 30vw;
    height: 30vw;
    background-color: rgba(234, 67, 53, 0.35);
    /* Red/Pink */
    top: 40%;
    left: 45%;
    animation-delay: -10s, -6s;
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
}

.gemini-blob-4 {
    width: 20vw;
    height: 20vw;
    background-color: rgba(251, 188, 5, 0.25);
    /* Yellow */
    bottom: 30%;
    left: 15%;
    animation-delay: -15s, -8s;
    border-radius: 80% 20% 60% 40% / 30% 60% 40% 70%;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(15vw, -10vh) scale(1.2) rotate(45deg);
    }

    66% {
        transform: translate(-10vw, 15vh) scale(0.8) rotate(-45deg);
    }

    100% {
        transform: translate(10vw, 5vh) scale(1.1) rotate(90deg);
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

#dot-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}