* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 5%;

    z-index: 9999;

    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 2px;

    border: 1px solid #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #9a9a9a;
    font-size: 12px;
    letter-spacing: 2px;
    position: relative;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0%;
    height: 1px;

    background: #fff;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================
   SECTIONS
========================= */

section {
    min-height: 100vh;
    padding: 120px 5%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* =========================
   HERO
========================= */

.hero {
    align-items: center;
    text-align: center;
}

.name-effect {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -4px;

    text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.name-effect span {
    display: inline-block;
    cursor: pointer;
}

.sub-text {
    margin-top: 24px;
    color: #888;
    font-size: 15px;
    letter-spacing: 1px;
}

/* =========================
   ABOUT
========================= */

/* =========================
   ABOUT
========================= */

.about {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;

    border-top: 1px solid #1d1d1d;
}

.about-left h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

.about-left p {
    color: #9d9d9d;
    line-height: 1.8;
    max-width: 550px;
    font-size: 15px;
}

.italic {
    font-style: italic;
    color: #777;
    font-family: 'Playfair Display', serif;
}

.about-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 1 !important;
    visibility: visible !important;
}

.stat-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;

    opacity: 1 !important;
    visibility: visible !important;
}

.stat-box {
    min-height: 190px;

    background: #111;
    border: 1px solid #222;
    border-radius: 24px;

    padding: 30px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    text-align: center;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    transition: 0.35s ease;
}

.stat-box:hover {
    transform: translateY(-8px) !important;
    border-color: #fff;

    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.06);
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.stat-box p {
    font-size: 11px;
    letter-spacing: 2px;
    color: #888;
    line-height: 1.6;
}

/* MOBILE */

@media(max-width:768px) {

    .about {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   SKILLS
========================= */

.skills {
    border-top: 1px solid #1d1d1d;
}

.skills-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;

    margin-bottom: 70px;

    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 2px;
}

.skills-text {
    max-width: 450px;
    color: #8e8e8e;
    line-height: 1.7;
    font-size: 15px;
}

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

.skill-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 24px;

    padding: 35px;

    transition: 0.35s ease;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.skill-card:hover {
    transform: translateY(-8px) !important;
    border-color: #fff;

    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.06);
}

.skill-header {
    margin-bottom: 25px;
}

.skill-header h3 {
    font-size: 15px;
    letter-spacing: 3px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags span {
    border: 1px solid #333;

    padding: 10px 16px;

    border-radius: 40px;

    font-size: 12px;
    color: #9c9c9c;

    transition: 0.3s ease;
}

.tags span:hover {
    border-color: #fff;
    color: #fff;

    transform: translateY(-3px);

    background: #1a1a1a;
}

/* MOBILE */

@media(max-width:768px) {

    .skills-top {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* =========================
   CONTACT
========================= */

.contact {
    text-align: center;
    border-top: 1px solid #1d1d1d;
}

.contact h2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.1;
}

.email {
    margin-top: 35px;
    font-size: 1.2rem;
    color: #aaa;
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px) {

    nav {
        padding: 0 6%;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 100px 6%;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .skill-row {
        grid-template-columns: 1fr;
    }

    .name-effect {
        letter-spacing: -2px;
    }

}

/* SOCIAL LINKS */

.social-links {
    margin-top: 40px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    flex-wrap: wrap;
}

.social-links a {
    text-decoration: none;

    color: #aaa;

    border: 1px solid #222;

    padding: 12px 22px;

    border-radius: 50px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;

    transition: 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    border-color: #fff;

    transform: translateY(-4px);

    background: #111;
}

.social-links ion-icon {
    font-size: 18px;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* CONTENT */
.hero-content {
    position: relative;
    z-index: 5;
}

.name-effect {
    font-size: 7rem;
    font-weight: 900;
    color: white;
    line-height: 0.9;
    letter-spacing: 5px;
}

.sub-text {
    margin-top: 20px;
    color: #cfcfcf;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* BACKGROUND CROWNS */
.crown-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
}

/* COMMON CROWN STYLE */
.crown {
    position: absolute;
    width: 80px;
    opacity: 0.13;
    animation: float 10s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

/* DIFFERENT POSITIONS + SPEED */
.crown1 {
    left: 5%;
    top: 10%;
    animation-duration: 12s;
}

.crown2 {
    left: 20%;
    top: 70%;
    animation-duration: 15s;
}

.crown3 {
    left: 35%;
    top: 20%;
    animation-duration: 11s;
}

.crown4 {
    left: 50%;
    top: 80%;
    animation-duration: 18s;
}

.crown5 {
    left: 65%;
    top: 15%;
    animation-duration: 13s;
}

.crown6 {
    left: 80%;
    top: 60%;
    animation-duration: 16s;
}

.crown7 {
    left: 90%;
    top: 30%;
    animation-duration: 14s;
}

.crown8 {
    left: 12%;
    top: 40%;
    animation-duration: 20s;
}

.crown9 {
    left: 42%;
    top: 55%;
    animation-duration: 17s;
}

.crown10 {
    left: 72%;
    top: 75%;
    animation-duration: 19s;
}

.crown11 {
    left: 28%;
    top: 85%;
    animation-duration: 12s;
}

.crown12 {
    left: 58%;
    top: 35%;
    animation-duration: 16s;
}

/* FLOAT ANIMATION */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(15px) rotate(-5deg);
    }

    75% {
        transform: translateY(-10px) rotate(3deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* RESPONSIVE */
@media(max-width:768px) {
    .name-effect {
        font-size: 4rem;
    }

    .crown {
        width: 50px;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
    margin-top: 40px;

    flex-wrap: nowrap;
    /* IMPORTANT */
}

.social-links a {
    min-width: 180px;
    /* SAME WIDTH */

    color: white;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.2);

    padding: 14px 24px;

    border-radius: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    font-size: 18px;
    font-weight: 500;

    transition: 0.3s ease;

    background: rgba(255, 255, 255, 0.04);
}

.social-links a:hover {
    transform: translateY(-5px);
    border-color: white;
}

.social-links i {
    font-size: 22px;
}


/* =========================
   PROJECTS
========================= */

.projects {
    padding: 120px 8%;
    background: #0a0a0a;
    color: white;
}

.projects-top {
    text-align: center;
    margin-bottom: 70px;
}

.projects-text {
    max-width: 700px;
    margin: 20px auto 0;
    color: #bdbdbd;
    line-height: 1.8;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* CARD */

.project-card {
    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    overflow: hidden;

    transition: 0.4s ease;

    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* IMAGE */

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

/* CONTENT */

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-content p {
    color: #bdbdbd;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* TAGS */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    padding: 8px 16px;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 14px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* MOBILE */
@media(max-width:768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);

        display: none;
        flex-direction: column;
        gap: 20px;

        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
}

html {
    scroll-behavior: smooth;
}

.nav-links a {
    transition: 0.3s ease;
}

