/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #4a9eff;
    --secondary: #a855f7;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(90deg, #4a9eff, #a855f7);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- BACKGROUND GLOW EFFECTS --- */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    animation: moveGlow 15s infinite alternate;
}

.bg-glow-1 {
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.bg-glow-2 {
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

@keyframes moveGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-primary {
    color: white;
    padding: 0.5rem 1.5rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px; /* offset for fixed nav */
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(74, 158, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.typing-text {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 158, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(74, 158, 255, 0.1);
}

/* --- HERO VISUAL (Floating Card) --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.hero-visual .glass-card {
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.code-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.code-snippet {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
    width: 100%;
}

.code-snippet span {
    display: block;
    margin-bottom: 5px;
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 6rem 10%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

/* --- SKILLS GRID --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    border-radius: 15px;
    transition: all 0.3s;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(74, 158, 255, 0.05);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* --- PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header .icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.card-header .links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.3s;
}

.card-header .links a:hover {
    color: var(--primary);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

/* --- CONTACT SECTION --- */
.contact-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        justify-content: center;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-visual .glass-card {
        width: 200px;
        height: 200px;
        padding: 1rem;
    }
    
    .code-icon { font-size: 3rem; }
    
    .navbar {
        padding: 1rem 5%;
    }

    .hamburger {
        display: block;
        color: white;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%); /* Hidden by default */
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}
