/* Core Variables & Reset */
:root {
    --bg-dark: #0a0a0a;
    /* Almost black */
    --bg-surface: #171717;
    /* Dark Grey for cards/sections */
    --primary: #10b981;
    /* Emerald/Neon Green - backend vibes */
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #64748b;
    /* Slate grey for secondary text */
    --text-main: #f8fafc;
    /* Off-white for readability */
    --text-muted: #94a3b8;

    --font-main: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --radius: 8px;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section {
    padding: 100px 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
    background-color: #34d399;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--text-main);
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links .btn-primary {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--bg-dark);
    /* Ensure text is readable on primary button */
}

.nav-links .btn-primary:hover {
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 25%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero .subtitle {
        font-size: 1.25rem;
    }
}

/* Code Decoration */
.code-decoration {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.3s ease;
    display: none;
}

@media (min-width: 992px) {
    .code-decoration {
        display: block;
    }
}

.code-decoration:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.code-decoration code {
    font-family: monospace;
    color: #a5f3fc;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
}

/* Profile Picture */
.profile-picture-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    display: none;
}

@media (min-width: 992px) {
    .profile-picture-container {
        display: flex;
    }
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow),
        0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--primary-glow),
        0 15px 50px rgba(0, 0, 0, 0.6);
    border-color: #34d399;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* About & Stats */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default mobile */
    gap: 50px;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1.5fr 1fr;
        align-items: center;
    }
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.tags span:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 30px;
    z-index: 2;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.project-tech span {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-links a:hover {
    color: var(--primary);
}

.project-visual {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.project-card:hover .project-visual {
    color: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--radius);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Cursor Glow Effect */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

/* Footer */
.footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Glitch Text Effect (Simplified CSS version) */
.glitch-text {
    position: relative;
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add JS toggle later */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .code-decoration {
        display: none;
    }
}