:root {
    --bg-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

/* Background Shapes for Light Theme */
.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3); /* Soft Blue */
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.25); /* Soft Purple */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.2); /* Soft Sky Blue */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Header & Language Toggle */
header {
    display: flex;
    justify-content: flex-end;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-opt {
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.lang-opt:hover {
    color: var(--accent-color);
}

.lang-opt.active {
    color: var(--accent-color);
    font-weight: 700;
}

.divider {
    color: #cbd5e1;
}

/* Profile Section */
.profile-section {
    text-align: center;
    animation: fadeUp 0.8s ease-out;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    color: var(--text-primary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: #ffffff;
    color: var(--accent-color);
    box-shadow: 0 10px 40px 0 rgba(59, 130, 246, 0.15);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 15px 40px -5px rgba(31, 38, 135, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-right: 0;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.arrow-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.project-card:hover .arrow-icon {
    color: var(--accent-color);
    transform: translate(3px, -3px);
}

footer {
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
    animation: fadeUp 1.2s ease-out 0.4s backwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    .name {
        font-size: 2.5rem;
    }
}
