/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0b0c15;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-gradient: linear-gradient(90deg, #ff00cc, #333399);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #d946ef;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* --- BACKGROUND BLOBS --- */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}
.shape-1 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    top: -100px;
    left: -100px;
}
.shape-2 {
    width: 300px;
    height: 300px;
    background: #db2777;
    bottom: 10%;
    right: -50px;
}

/* --- NAVBAR --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 90%;
    left: 5%;
    top: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: var(--glass-border);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
}

.hero-content {
    max-width: 600px;
}

.subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.gradient-text {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 20px 0 40px 0;
    line-height: 1.6;
}

.cta-group .btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
    margin-right: 15px;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--text-main);
}

/* --- CODE CARD VISUAL --- */
.code-card {
    background: #1e1e2e;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
}
.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-body p { margin-bottom: 5px; color: #a9b7c6; font-size: 0.9rem; }
.keyword { color: #cc7832; }
.string { color: #6a8759; }

/* --- SECTIONS --- */
.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.about-section, .projects-section, .contact-section {
    padding: 100px 10%;
}

/* --- GLASS CARDS --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: var(--glass-border);
}

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

.skills-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skills-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- PROJECTS GRID --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #16161e;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.project-content {
    padding: 30px;
}

.project-content h3 { margin-bottom: 10px; }
.project-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.tags span {
    font-size: 0.75rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 5px;
}

.project-link {
    display: block;
    margin-top: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- CONTACT --- */
.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-link {
    display: block;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: underline;
    margin: 30px 0;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}
.socials a:hover { color: var(--accent); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-section { flex-direction: column; text-align: center; justify-content: center; padding-top: 100px; }
    .hero-visual { display: none; }
    h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .glass-nav { top: auto; bottom: 20px; }
}