@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #050509;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================
   MOVING BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(80, 80, 180, 0.18), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 150, 255, 0.12), transparent 30%),
        #050509;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 18s infinite ease-in-out;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: #4c3cff;
    top: -150px;
    left: -100px;
}

.orb2 {
    width: 350px;
    height: 350px;
    background: #008cff;
    right: -100px;
    top: 30%;
    animation-delay: -6s;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: #8c3cff;
    bottom: -100px;
    left: 40%;
    animation-delay: -12s;
}

@keyframes float {

    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.1);
    }

    50% {
        transform: translate(-50px, 80px) scale(0.9);
    }

    75% {
        transform: translate(70px, 40px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }

}

.grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);

    background-size: 50px 50px;

    mask-image: linear-gradient(to bottom, black, transparent);
}

/* =========================
   NAVIGATION
========================= */

.navbar {
    width: 90%;
    max-width: 1200px;
    margin: 25px auto;

    padding: 18px 25px;

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

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 20px;

    position: relative;
    z-index: 10;
}

.logo {
    font-size: 25px;
    font-weight: 800;
}

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

.nav-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

/* =========================
   GENERAL
========================= */

.page {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 0;
}

.page-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.page-header h1 {
    font-size: clamp(45px, 7vw, 80px);
    margin: 10px 0 20px;
}

.page-header > p:last-child {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    color: #8da2ff;
    font-weight: 700;
}

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

.hero {
    width: 90%;
    max-width: 1200px;
    min-height: 75vh;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.3fr 0.7fr;

    align-items: center;
    gap: 50px;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 78px);
    line-height: 1.05;
    margin: 15px 0 25px;
}

.hero h1 span {
    background: linear-gradient(90deg, #ffffff, #8da2ff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    color: rgba(255,255,255,0.65);
    font-size: 17px;
    line-height: 1.8;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

/* =========================
   BUTTONS
========================= */

.button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px);
}

.primary {
    background: white;
    color: black;
}

.secondary {
    background: rgba(255,255,255,0.06);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

/* =========================
   PROFILE PHOTO
========================= */

.profile-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-card {
    width: 310px;
    height: 310px;

    padding: 8px;

    border-radius: 50%;

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

    backdrop-filter: blur(20px);

    overflow: hidden;

    position: relative;
    z-index: 2;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-glow {
    position: absolute;
    width: 280px;
    height: 280px;

    background: #5667ff;
    filter: blur(100px);

    opacity: 0.4;
}

/* =========================
   GLASS CARDS
========================= */

.glass-card,
.project-card,
.skill-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.1);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 20px;

    padding: 30px;

    transition: 0.4s;
}

.glass-card:hover,
.project-card:hover,
.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}

.glass-card h2,
.project-card h2,
.skill-card h3 {
    margin-bottom: 15px;
}

.glass-card p,
.project-card p,
.skill-card p {
    color: rgba(255,255,255,0.62);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* =========================
   HOME CARDS
========================= */

.quick-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto 100px;

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

    gap: 20px;
}

/* =========================
   TWO COLUMN
========================= */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.section {
    margin-top: 100px;
}

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

.section-title h2 {
    font-size: 40px;
    margin-top: 10px;
}

.skills-grid,
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* =========================
   TAGS
========================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tags span {
    padding: 7px 12px;
    border-radius: 20px;

    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);

    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    min-height: 320px;
}

.project-card:last-child {
    grid-column: span 2;
}

.project-number {
    color: #8da2ff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
}

.project-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-top: 20px;
    font-size: 14px;
}

/* =========================
   TIMELINE
========================= */

.timeline {
    position: relative;
    max-width: 850px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;

    left: 10px;
    top: 0;
    bottom: 0;

    width: 1px;

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

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 35px;
}

.timeline-dot {
    position: absolute;

    left: 3px;
    top: 35px;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: #8da2ff;

    box-shadow: 0 0 20px #8da2ff;
}

.date {
    color: #8da2ff !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-item span {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.social-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.35);
    font-size: 13px;
}

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

@media (max-width: 800px) {

    .navbar {
        flex-direction: column;
        gap: 18px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }

    .hero-description {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-container {
        order: -1;
    }

    .profile-card {
        width: 230px;
        height: 230px;
    }

    .quick-section,
    .two-column,
    .skills-grid,
    .activities-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .project-card:last-child {
        grid-column: span 1;
    }

    .page {
        padding-top: 40px;
    }

}