* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #070b14;
    color: white;
    overflow-x: hidden;
}

/* BACKGROUND GLOWS */

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.glow1 {
    width: 300px;
    height: 300px;
    background: #2563eb;
    top: -100px;
    left: -100px;
}

.glow2 {
    width: 350px;
    height: 350px;
    background: #7c3aed;
    bottom: -100px;
    right: -100px;
}

/* NAVBAR */

.navbar {
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;

    backdrop-filter: blur(12px);
    background: rgba(10, 10, 20, 0.4);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #d1d5db;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* HERO */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;
    gap: 60px;
}

.hero-left {
    flex: 1;
}

.small-title {
    color: #60a5fa;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    max-width: 600px;
    color: #b8c1cc;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    font-size: 1rem;
    font-weight: 600;

    transition: 0.3s;
}

.primary-btn {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    color: white;
    text-decoration: none;
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.secondary-btn {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* CODE CARD */

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 500px;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 22px;
    overflow: hidden;

    box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.card-top {
    display: flex;
    gap: 10px;

    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #facc15;
}

.green {
    background: #22c55e;
}

.code {
    padding: 30px;
}

.code pre {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.8;
}

.blue {
    color: #60a5fa;
}

.purple {
    color: #c084fc;
}

.green {
    color: #4ade80;
}

/* SECTIONS */

section {
    padding: 120px 8%;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.line {
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* ABOUT */

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(255,255,255,0.04);
    padding: 35px;

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-8px);
}

.about-card h3 {
    margin-bottom: 18px;
    font-size: 1.5rem;
}

.about-card p {
    color: #b8c1cc;
    line-height: 1.7;
}

/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255,255,255,0.04);
    padding: 30px;

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-card p {
    color: #b8c1cc;
    line-height: 1.7;
    margin-bottom: 25px;
}

.project-card a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

/* SOCIALS */

.socials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.social-card {
    padding: 18px 28px;

    border-radius: 16px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    color: white;
    text-decoration: none;

    transition: 0.3s;
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}

/* FOOTER */

footer {
    padding: 40px;
    text-align: center;
    color: #94a3b8;

    border-top: 1px solid rgba(255,255,255,0.08);
}

/* HIDDEN ABOUT */

.hidden {
    display: none;
}

/* RESPONSIVE */

@media(max-width: 950px) {

    .hero {
        flex-direction: column;
        justify-content: center;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .navbar {
        padding: 20px 5%;
    }

    section {
        padding: 100px 5%;
    }

}

@media(max-width: 650px) {

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-links {
        gap: 15px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

}