* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(120deg, #271641, #120022);
    color: rgb(253, 253, 253);
    transition: 0.4s;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    font-weight: 700;
    font-size: 22px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: inherit;
}

/* MAIN */

main {
    max-width: 1100px;
    margin: auto;
    padding: 40px;
}

/* GLASS */

.glass {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.3);
}


/* HERO */

.hero {
    display: flex;
    gap: 40px;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-carousel {
    display: flex;
    align-items: center;
}

.hero-carousel img {
    width: 300px;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

.hero-carousel button {
    background: none;
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 0 15px;
}

/* BUTTON */

.big-button {
    margin-top: 30px;
    padding: 16px 34px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    background: rgba(47, 16, 85, 0.6);
    color: rgb(255, 255, 255);
}


/* PORTFOLIO */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.project-card {
    height: 160px;
    border-radius: 20px;
    background: rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-card span {
    font-size: 12px;
    opacity: 0.6;
}

/* EDUCATION */

.course {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* BIRTHDAY */

.birthday #timer {
    font-size: 26px;
    margin-top: 10px;
}

/* FOOTER */

.footer {
    text-align: left;
    padding: 40px;
    opacity: 0.8;
}

.copy {
    font-size: 12px;
    margin-top: 20px;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    max-width: 420px;
    margin: 120px auto;
    position: relative;
    background-color: rgba(41, 41, 41, 0.6);
}

#closeModal {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
}

form textarea,
form input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 10px;
    border: none;
}

form button {
    color: white;
    background-color: #3a1b64;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

/* MOBILE */

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-carousel img {
        width: 100%;
        height: auto;
    }

    main {
        padding: 20px;
    }
}

.moon {
    font-size: 22px;
    cursor: pointer;
    user-select: none;
    opacity: 0.8;
}

.moon:hover {
    opacity: 1;
}

.courses {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    transform: skewY(-3deg);
    padding: 20px 0;
}

.course-card {
    min-width: 220px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.4);
    transform: skewY(3deg);
    flex-shrink: 0;
}

.glass-header {
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.4);
}

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    margin-bottom: 30px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.edu-card {
    padding: 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
}

.edu-card button {
    margin-top: 15px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

.edu-card button:disabled {
    opacity: 0.5;
    cursor: default;
}


.snow {
    position: fixed;
    top: -10px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: fall linear infinite;
    pointer-events: none;
    z-index: 9999;
}

@keyframes fall {
    to {
        transform: translateY(110vh);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 30px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}