* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    background: linear-gradient(
        -45deg,
        #000000,
        #040f26,
        #0a2472,
        #0e4bcf,
        #0a2472,
        #040f26,
        #000000
    );
    background-size: 400% 400%;
    animation: aurora 7s ease infinite;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 128, 255, 0.25), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.65), transparent 45%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

nav {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 1.3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.logo:visited,
.logo:hover,
.logo:active {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo span {
    color: #ff2b2b;
}

.menu-container {
    position: relative;
}

.menu-btn {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    padding: 0.7rem 1.3rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: rgba(8, 15, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.5rem;
    list-style: none;
    min-width: 210px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    color: #cfcfcf;
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: 0.25s ease;
}

.dropdown-menu li a:hover {
    background: #0e4bcf;
    color: #ffffff;
}

main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
}

.hero {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    animation: fadeUp 0.8s ease forwards;
}

.small-title {
    display: inline-block;
    color: #8eb7ff;
    background: rgba(14, 75, 207, 0.18);
    border: 1px solid rgba(142, 183, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    color: #d7d7d7;
}

h1 span {
    color: #8eb7ff;
}

h2 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: #ffffff;
    margin-bottom: 1rem;
}

.description {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn,
.btn:visited {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn.primary {
    background: #0e4bcf;
    border: 1px solid #0e4bcf;
    box-shadow: 0 10px 30px rgba(14, 75, 207, 0.4);
}

.btn.primary:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(14, 75, 207, 0.55);
}

.btn.secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.btn.secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.profile-card,
.glass-card,
.skill-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.profile-card {
    border-radius: 28px;
    padding: 2.5rem 2rem;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e4bcf, #8eb7ff);
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: #ffffff;
    box-shadow: 0 0 45px rgba(14, 75, 207, 0.6);
}

.profile-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.profile-card p {
    color: #cfcfcf;
}

.profile-tags,
.project-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.3rem;
}

.profile-tags span,
.project-tags span {
    color: #ffffff;
    background: rgba(14, 75, 207, 0.28);
    border: 1px solid rgba(142, 183, 255, 0.2);
    padding: 0.45rem 0.85rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

.section {
    max-width: 1200px;
    margin: auto;
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title p {
    color: #8eb7ff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
}

.about-card,
.contact-card {
    max-width: 850px;
    margin: auto;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
}

.about-card p,
.project-card p,
.contact-card p {
    color: #d5d5d5;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.skill-card {
    border-radius: 24px;
    padding: 1.7rem 1rem;
    text-align: center;
    transition: 0.3s ease;
}

.skill-card:hover {
    background: rgba(14, 75, 207, 0.28);
    transform: translateY(-8px);
}

.skill-card i {
    font-size: 2.5rem;
    color: #8eb7ff;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(14, 75, 207, 0.28);
    display: grid;
    place-items: center;
    color: #8eb7ff;
    font-size: 2.5rem;
}

.project-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.project-tags {
    margin: 1.6rem 0;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.contact-links a {
    color: #ffffff;
    text-decoration: none;
    background: rgba(14, 75, 207, 0.35);
    border: 1px solid rgba(142, 183, 255, 0.2);
    padding: 0.8rem 1rem;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.3s ease;
}

.contact-links a:hover {
    background: #0e4bcf;
    transform: translateY(-4px);
}

footer {
    text-align: center;
    color: #bdbdbd;
    padding: 1.2rem 2rem;
    font-size: 0.9rem;
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .description {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    nav {
        padding: 1rem;
    }

    .logo,
    .logo:visited,
    .logo:hover,
    .logo:active {
        font-size: 1.15rem;
    }

    .menu-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    main {
        padding: 6.5rem 1rem 3rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .contact-links {
        flex-direction: column;
    }

    .btn,
    .contact-links a {
        width: 100%;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .dropdown-menu {
        min-width: 190px;
    }
}