:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --primary-color: #7c3aed; /* Purple */
    --secondary-color: #2563eb; /* Blue */
    --accent-color: #d946ef; /* Pink/Magenta */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Background */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
}

.highlight {
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: transition;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


/* Glass Card Styles */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    padding: 2rem;
}

.hero-card {
    width: 500px;
    position: relative;
    overflow: hidden;
}

.code-snippet {
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

pre {
    color: #e0e0e0;
}

.keyword { color: #d946ef; }
.variable { color: #60a5fa; }
.string { color: #a78bfa; }
.property { color: #f472b6; }

.hero-card-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.experience-badge {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-card .social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.hero-card .social-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.hero-card .social-links a:hover {
    color: var(--text-color);
}


/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.highlight-text {
    color: var(--accent-color);
}

.about-text p {
    color: var(--text-secondary);
    max-width: 600px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: transparent;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg);
    border-radius: 12px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    transition: transform 0.3s, border-color 0.3s;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background: #111;
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-sm:hover {
    color: var(--text-color);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
}

.footer-content .social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.footer-content .social-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-card {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hide for now, could add mobile menu */
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}
