/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Inspired by redoyanulhaque.me */
    --clr-bg: #0a192f;
    --clr-bg-light: #112240;
    --clr-bg-lighter: #233554;
    --clr-accent: #64ffda;
    /* Neon Cyan */
    --clr-accent-tint: rgba(100, 255, 218, 0.1);
    --clr-text-white: #e6f1ff;
    --clr-text-slate: #8892b0;
    --clr-text-light-slate: #ccd6f6;

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Layout */
    --spacer: 1rem;
    --nav-height: 100px;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-slate);
    font-family: var(--font-main);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--clr-bg-lighter) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.15;
    z-index: -1;
}

h1,
h2,
h3 {
    color: var(--clr-text-light-slate);
    font-weight: 700;
}

.mono {
    font-family: var(--font-mono);
    color: var(--clr-accent);
    font-size: 0.9rem;
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.btn-outline {
    color: var(--clr-accent);
    background-color: transparent;
    border: 1px solid var(--clr-accent);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--clr-accent-tint);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    color: var(--clr-accent);
    font-size: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--clr-accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    counter-reset: item;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-light-slate);
    font-family: var(--font-mono);
    font-size: 13px;
    transition: var(--transition);
}

.nav-links a::before {
    counter-increment: item;
    content: "0" counter(item) ". ";
    color: var(--clr-accent);
    margin-right: 5px;
}

.nav-links a:hover {
    color: var(--clr-accent);
}

/* Hero Section */
.hero-content h1 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--clr-text-light-slate);
    margin: 0;
}

.hero-content h2 {
    font-size: clamp(40px, 8vw, 70px);
    color: var(--clr-text-slate);
    margin-top: 5px;
    line-height: 0.9;
}

.hero-content p {
    margin: 20px 0 50px;
    max-width: 540px;
    font-size: 20px;
}

/* Projects */
.projects-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
    background-color: var(--clr-bg-light);
    color: var(--clr-text-light-slate);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-card h3 {
    margin: 10px 0;
    font-size: 22px;
}

.project-card p {
    font-size: 17px;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 15px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12px;
}

.project-tech li {
    color: var(--clr-text-slate);
}

/* Technologies Section */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 50px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 5px var(--clr-accent-tint));
    transition: var(--transition);
}

.tech-item:hover .tech-icon {
    filter: drop-shadow(0 0 15px var(--clr-accent));
}

.tech-item span {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--clr-text-slate);
}

.tech-item:hover span {
    color: var(--clr-accent);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 50px;
    }
}
