:root {
    --bg-color: #f8f9fa;
    --text-color: #2d3436;
    --primary-color: #00b894;
    --secondary-color: #636e72;
    --accent-color: #55efc4;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 15px 30px rgba(0, 184, 148, 0.2);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #dfe6e9;
    --primary-color: #55efc4;
    --secondary-color: #b2bec3;
    --accent-color: #00b894;
    --card-bg: #2d3436;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 15px 30px rgba(85, 239, 196, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.4);
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Controls (Lang & Theme) */
.language-switcher,
.theme-toggle {
    position: fixed;
    top: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switcher {
    right: 80px;
    display: flex;
    gap: 5px;
}

.language-switcher button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    opacity: 0.6;
    transition: var(--transition);
}

.language-switcher button.active,
.language-switcher button:hover {
    background-color: var(--primary-color);
    color: #fff;
    opacity: 1;
}

.theme-toggle {
    right: 20px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.theme-toggle svg {
    position: absolute;
    transition: var(--transition);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    opacity: 0.6;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 10px auto;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.project-image {
    height: 200px;
    background-color: #eee;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    min-height: 3em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 184, 148, 0.05) 100%);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 20px 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-link {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
}