/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f0f4f8;
    --bg-accent: #e6f4f8;
    --border-color: #e1e8ed;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Section accent colors */
    --section-about-bg: #f0f9ff;
    --section-about-border: #0ea5e9;
    --section-portfolio-bg: #fef3c7;
    --section-portfolio-border: #f59e0b;
    --section-contact-bg: #ede9fe;
    --section-contact-border: #8b5cf6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
}

/* Scroll Animations */
.section {
    opacity: 1;
    transform: translateY(0);
}

.section.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero doesn't need scroll animation */
.hero {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: white;
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 8rem 0 6rem;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, rgba(245, 158, 11, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--section-about-border) 50%, var(--section-portfolio-border) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--section-about-border) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    padding: 2rem 3rem;
    border-radius: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: inline-block;
}

/* Section title containers */
.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

/* All section titles use the same style */
.about .section-title,
.portfolio .section-title,
.contact .section-title {
    background: var(--section-about-bg);
    border: 3px solid var(--section-about-border);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    opacity: 1;
    transform: translateY(0);
}

.about.animate-on-scroll .about-card {
    opacity: 0;
    transform: translateY(30px);
}

.about.animate-on-scroll.visible .about-card {
    animation: slideUp 0.6s ease forwards;
}

.about.animate-on-scroll.visible .about-card:nth-child(1) { animation-delay: 0.1s; }
.about.animate-on-scroll.visible .about-card:nth-child(2) { animation-delay: 0.2s; }
.about.animate-on-scroll.visible .about-card:nth-child(3) { animation-delay: 0.3s; }
.about.animate-on-scroll.visible .about-card:nth-child(4) { animation-delay: 0.4s; }
.about.animate-on-scroll.visible .about-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-xl);
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0);
}

.skills.animate-on-scroll .skill-category {
    opacity: 0;
    transform: translateY(30px);
}

.skills.animate-on-scroll.visible .skill-category {
    animation: slideUp 0.6s ease forwards;
}

.skills.animate-on-scroll.visible .skill-category:nth-child(1) { animation-delay: 0.1s; }
.skills.animate-on-scroll.visible .skill-category:nth-child(2) { animation-delay: 0.2s; }
.skills.animate-on-scroll.visible .skill-category:nth-child(3) { animation-delay: 0.3s; }
.skills.animate-on-scroll.visible .skill-category:nth-child(4) { animation-delay: 0.4s; }
.skills.animate-on-scroll.visible .skill-category:nth-child(5) { animation-delay: 0.5s; }

.skill-category:hover {
    box-shadow: var(--shadow-lg);
}

.skill-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-primary);
}



.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.projects-content.active {
    display: block;
}

/* Services Section */
.services-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6f4f8 100%);
    border-radius: 1.5rem;
    scroll-margin-top: 100px;
}

.services-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Projects Subtitle */
.projects-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

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

/* Services Section */
.services-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 1.5rem;
}

.services-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.projects-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transform: translateY(0);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio.animate-on-scroll .project-card {
    opacity: 0;
    transform: translateY(30px);
}

.portfolio.animate-on-scroll.visible .project-card {
    animation: slideUp 0.6s ease forwards;
}

.portfolio.animate-on-scroll.visible .project-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio.animate-on-scroll.visible .project-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio.animate-on-scroll.visible .project-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio.animate-on-scroll.visible .project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.813rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.project-link:hover {
    gap: 0.5rem;
    background: var(--bg-tertiary);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}



.contact-unified {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

.contact.animate-on-scroll .contact-unified {
    opacity: 0;
    transform: translateY(30px);
}

.contact.animate-on-scroll.visible .contact-unified {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--bg-tertiary);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.info-value a:hover {
    color: var(--primary-hover);
}

.cv-buttons-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 0.75rem;
}

.cv-buttons-section .btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    border: none;
}

.cv-buttons-section .btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
    transform: translateY(-2px);
}

.cv-buttons-section .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cv-buttons-section .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 1.5rem 2rem;
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .language-switcher {
        padding: 0.2rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-unified {
        padding: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cv-buttons-section {
        flex-direction: column;
    }

    .cv-buttons-section .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-links {
        font-size: 0.875rem;
        gap: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding: 1rem 1.5rem;
    }
}

