:root {
    --primary-color: #bb86fc;
    --secondary-color: #03dac6;
    --background-dark: #121212;
    --surface-dark: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    margin-top: 0;
    color: #ffffff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--surface-dark);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--background-dark) 0%, #2c2c2c 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 218, 198, 0.4);
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

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

.subsection-title {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.subsection-title i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--surface-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(3, 218, 198, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(3, 218, 198, 0.2);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-links {
    margin-top: auto;
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.btn-text {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-text:hover {
    background-color: var(--primary-color);
    color: #121212;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.badge-tauri {
    background-color: rgba(255, 138, 0, 0.15);
    color: #ff8a00;
    border: 1px solid rgba(255, 138, 0, 0.3);
}

.badge-electron {
    background-color: rgba(159, 234, 249, 0.15);
    color: #9feaf9;
    border: 1px solid rgba(159, 234, 249, 0.3);
}

.badge-python {
    background-color: rgba(75, 139, 190, 0.15);
    color: #4b8bbe;
    border: 1px solid rgba(75, 139, 190, 0.3);
}

.badge-flutter {
    background-color: rgba(64, 209, 251, 0.15);
    color: #40d1fb;
    border: 1px solid rgba(64, 209, 251, 0.3);
}

.badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

/* Footer */
footer {
    background-color: var(--surface-dark);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .nav-links a {
        margin-left: 0;
    }
}
