:root {
    /* Light Mode Variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --badge-deployed: #10b981;
    --badge-development: #f59e0b;
    --tech-bg: #e0e7ff;
    --tech-text: #4338ca;
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --card-bg: #1a1a2e;
    --card-border: #2d2d44;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --badge-deployed: #34d399;
    --badge-development: #fbbf24;
    --tech-bg: #312e81;
    --tech-text: #c7d2fe;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.logo {
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 3rem;
    font-weight: 700;
}

/* About Section */
.about {
    grid-column: span 1;
    grid-row: span 1;
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about p {
    color: var(--text-secondary);
}

/* Project Sections */
.project {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.deployed {
    background: var(--badge-deployed);
    color: white;
}

.badge.development {
    background: var(--badge-development);
    color: #1a1a2e;
}

.project h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech {
    background: var(--tech-bg);
    color: var(--tech-text);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.project-link.disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Social Section */
.social {
    grid-column: span 1;
    grid-row: span 1;
}

.social h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--accent);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    grid-column: span 3;
    text-align: center;
    background: var(--bg-secondary);
    padding: 1.5rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        grid-column: span 2;
    }
    
    .footer {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .hero {
        grid-column: span 1;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 2.2rem;
    }
    
    .footer {
        grid-column: span 1;
    }
}

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

.bento-item {
    animation: fadeIn 0.6s ease forwards;
}

.bento-item:nth-child(1) { animation-delay: 0.1s; }
.bento-item:nth-child(2) { animation-delay: 0.2s; }
.bento-item:nth-child(3) { animation-delay: 0.3s; }
.bento-item:nth-child(4) { animation-delay: 0.4s; }
.bento-item:nth-child(5) { animation-delay: 0.5s; }
.bento-item:nth-child(6) { animation-delay: 0.6s; }
