/* --- Core Variables & Reset --- */
:root {
    --bg-color: #020617; /* Very dark slate */
    --surface-color: rgba(30, 41, 59, 0.4);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
}

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

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

/* --- Ambient Glow Backgrounds --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.glow-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, rgba(0,0,0,0) 70%);
    bottom: 20%;
    right: -10%;
    animation-delay: -4s;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.7; }
}

/* --- Glass Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-logo .dot {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

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

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--surface-border);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--text-muted);
}

.icon-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: var(--text-main);
}

/* --- Global Layout --- */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.greeting {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.glass-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-emerald { color: var(--accent-emerald); }

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.2rem;
    color: var(--accent-blue);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--text-main);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-stack span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}

/* --- Footer --- */
.footer-section {
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.copyright {
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .footer-title {
        font-size: 1.8rem;
    }
}