:root {
    --primary: #00ff88; /* Tech Green */
    --bg-dark: #0d1117; /* GitHub Dark */
    --text-main: #e6edf3;
    --text-dim: #8b949e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #0d1117; /* Solid GitHub Dark */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 32px; }
.logo-text { font-weight: 400; font-size: 1.2rem;}

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* --- GENERAL SECTIONS --- */
section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent; /* Removes the gradient break */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle { color: var(--text-dim); font-size: 1.2rem; margin-bottom: 40px; }

/* --- PORTFOLIO & CONTACT SPACING FIX --- */
#portfolio {
    padding-bottom: 40px; /* Reduced gap below portfolio */
}

#contact {
    padding-top: 40px; /* Reduced gap above contact */
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 800;
}

/* --- PORTFOLIO GRID --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.portfolio-item {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.portfolio-item:hover { border-color: var(--primary); transform: translateY(-5px); }
.portfolio-item h4 { color: var(--primary); margin-bottom: 15px; }

.tech-tag, .skill-tag {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin: 5px 5px 0 0;
    font-weight: 600;
}

/* --- BUTTONS --- */
.cta-button, .submit-btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .submit-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2); 
}

/* --- FOOTER --- */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}