:root {
    --bg-dark: #0a0a0a;
    --bg-mesh-1: #4c1d95; /* Deep Purple */
    --bg-mesh-2: #0284c7; /* Sky Blue */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.5);
    --secondary: #a855f7; /* Purple */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(76, 29, 149, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.1) 0%, transparent 40%);
}

/* Typography & Global */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Navigation - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ambient glow effect */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05), transparent 70%);
    z-index: -1;
    animation: pulse-glow 8s infinite alternate;
}

.hero-content {
    max-width: 900px;
    padding: 0 1.5rem;
    animation: fadeUp 1s ease-out;
}

.profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(56, 189, 248, 0.3);
    object-fit: cover;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
    transition: transform 0.3s;
}

.avatar:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--primary);
}

.status-badge {
    position: absolute;
    bottom: 0;
    right: -10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: pulse-green 2s infinite;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.roles {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.socials {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.socials a {
    font-size: 1.6rem;
    color: var(--text-muted);
    padding: 0.8rem;
    background: var(--glass-bg);
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials a:hover {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-5px);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.5);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(56, 189, 248, 0.6);
}

/* Sections */
.section {
    padding: 6rem 1.5rem;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* About & Tech Stack */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

.bullets {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.bullets li {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(5px);
}

.tech-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.tech-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
    color: var(--text-main);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

/* Projects Grid - Modern Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

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

.folder-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

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

.card-header .links a:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Contact */
.contact-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

footer a {
    color: var(--primary);
    font-weight: 500;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .section { padding: 4rem 1.5rem; }
    .nav-links { display: none; }
}