/* --- Variables & Reset --- */
:root {
    --bg-dark: #0a0a0a;       /* Deep Black */
    --bg-card: #121212;       /* Slightly Lighter Black */
    --primary: #7c4dff;       /* Purple */
    --primary-dark: #651fff;  /* Darker Purple */
    --accent: #ff9100;        /* Orange */
    --text-main: #ffffff;     /* White */
    --text-muted: #b0b0b0;    /* Grey */
    --font-main: 'Space Grotesk', sans-serif;
    --transition: all 0.3s ease;
}

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

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

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(124, 77, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.typewriter {
    color: var(--accent);
    font-weight: 600;
    border-right: 2px solid var(--accent);
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    margin: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Background Decoration */
.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- Sections Generic --- */
section { padding: 5rem 10%; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skills-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary);
    font-size: 0.9rem;
}

.about-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
}

.about-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #222;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-content { padding: 2rem; }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.tags { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tags span {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(255, 145, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.links a {
    margin-right: 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
}
.links a:hover { color: var(--primary); }

/* --- Contact --- */
.contact { text-align: center; }
.email-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin: 2rem 0;
}
.email-link:hover { color: var(--accent); }

.social-icons { display: flex; justify-content: center; gap: 2rem; margin-bottom: 4rem; }
.social-icons a { font-size: 1.5rem; padding: 10px; background: var(--bg-card); border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 1px solid #333; }
.social-icons a:hover { background: var(--primary); border-color: var(--primary); }

footer {
    border-top: 1px solid #222;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
}

