/* Base Styles - Dark Theme Default */
:root {
    /* Coffee-inspired color palette - Dark Mode Values */
    --primary-color: #C4A77D; /* Warmer, more visible coffee color */
    --secondary-color: #8B7355; /* Rich coffee brown */
    --accent-color: #E8D5B7; /* Warm cream accent */
    --light-color: #FAF7F2; /* Softer off-white */
    --dark-color: #1A1512; /* Deep espresso black */
    --text-color: #F5F0E8;
    --background-color: #1C1917;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --card-bg: #2A2522;
    --header-bg: rgba(28, 25, 23, 0.98);
    --input-bg: #3D3835;
    --input-text: #F5F0E8;
    --input-border: #4A4542;
    --gradient-start: rgba(28, 25, 23, 0.9);
    --gradient-end: rgba(28, 25, 23, 0.7);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Toggle Removed */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-color);
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Selection styling */
::selection {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 56px;
    color: var(--primary-color);
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Fix button text color in dark mode */
[data-theme="dark"] .btn {
    color: var(--light-color);
    background-color: var(--primary-color);
}

[data-theme="dark"] .btn:hover {
    color: #FFFFFF;
}

/* Language Switcher Styles */
.lang-pl, .lang-en, .lang-de {
    display: none;
}

body[data-lang="pl"] .lang-pl,
body[data-lang="en"] .lang-en,
body[data-lang="de"] .lang-de {
    display: block;
}

.language-switcher {
    display: flex;
    gap: 4px;
    margin-left: 20px;
}

.lang-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1.5px solid rgba(196, 167, 125, 0.4);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

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

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 167, 125, 0.1);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.logo:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.main-nav ul li {
    margin: 0;
}

.nav-link {
    position: relative;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.85rem;
    padding: 8px 14px;
    transition: all 0.25s ease;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(196, 167, 125, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.25s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
    background-color: transparent;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(196, 167, 125, 0.1);
}

.mobile-menu-btn span {
    height: 2px;
    width: 20px;
    background-color: var(--primary-color);
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section Styles */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(135deg, rgba(26, 21, 18, 0.85), rgba(26, 21, 18, 0.75)), url('img/hero-restaurant.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--background-color), transparent);
    pointer-events: none;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: #FFFFFF;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 30px rgba(196, 167, 125, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(196, 167, 125, 0.4);
    color: var(--dark-color);
}

/* Fix hero CTA button text color in dark mode */
[data-theme="dark"] .cta-button {
    color: var(--light-color);
    background-color: var(--primary-color);
}

[data-theme="dark"] .cta-button:hover {
    color: #FFFFFF;
}

/* About Section Styles */
.about {
    background: linear-gradient(135deg, var(--light-color), #F0EBE3);
    position: relative;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    width: 100%;
    text-align: center;
}

.about-text p {
    color: #3D3835;
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.about-details {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.7);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.detail-item i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-right: 15px;
}

.detail-item p {
    color: #3D3835;
    font-weight: 500;
    margin: 0;
}

/* Fix about section text color in dark mode */
[data-theme="dark"] .about-text p {
    color: #333;
}

[data-theme="dark"] .about-text h3 {
    color: #222;
}

[data-theme="dark"] .detail-item p {
    color: #333;
}

/* Portfolio Section Styles */
.portfolio {
    background-color: var(--background-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Courses Section Styles */
.courses {
    background: linear-gradient(135deg, var(--light-color), #F0EBE3);
}

.courses .section-title {
    color: var(--secondary-color);
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.course-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 28px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.course-content p {
    margin-bottom: 24px;
    color: #5D5A57;
    line-height: 1.7;
}

/* Credentials Section */
.credentials {
    padding: 100px 0;
    background-color: var(--background-color);
}

.credentials-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 48px;
}

.credential-item {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.credential-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.credential-item h3 {
    padding: 24px 32px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    font-size: 1.6rem;
    font-weight: 700;
}

.certificate-display, .cv-display {
    display: flex;
    flex-direction: column;
    padding: 32px;
}

@media (min-width: 768px) {
    .certificate-display {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .certificate-image {
        max-width: 50%;
        margin-bottom: 0;
    }
}

.certificate-details, .cv-details {
    flex: 1;
}

.certificate-details p, .cv-details p {
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Contact Section Styles */
.contact {
    background-color: var(--background-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(196, 167, 125, 0.3);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: #FFFFFF;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.info-item:last-of-type {
    border-bottom: none;
}

.info-item i {
    font-size: 1.3rem;
    margin-right: 18px;
    color: var(--light-color);
}

.info-item p {
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--light-color);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
    transform: translateY(-4px);
}

/* Contact Form Styles */
.contact-form {
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

/* Form inputs for both light and dark mode */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(196, 167, 125, 0.15);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    border-color: var(--input-border);
    background-color: var(--input-bg);
    color: var(--input-text);
}

/* Contact Form Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-success {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
    padding: 80px 0;
}

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

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #0D0B0A);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo:hover {
    color: var(--accent-color);
}

.footer-language-switcher {
    display: flex;
    gap: 6px;
}

.footer-language-switcher .lang-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(196, 167, 125, 0.2);
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.7);
}

/* Ensure footer text is readable in dark mode */
[data-theme="dark"] .footer {
    color: var(--light-color);
}

[data-theme="dark"] .copyright {
    color: var(--light-color);
}

/* Ensure contrast for links in dark mode */
[data-theme="dark"] a {
    color: var(--accent-color);
}

/* Fix language button colors in dark mode */
[data-theme="dark"] .lang-btn {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

[data-theme="dark"] .lang-btn.active {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* Fix social media icons visibility in dark mode */
[data-theme="dark"] .social-links a {
    background-color: var(--accent-color);
    color: #222;
}

[data-theme="dark"] .social-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Ensure footer social icons are also visible */
[data-theme="dark"] .footer .social-links a {
    background-color: var(--accent-color);
    color: #222;
}

[data-theme="dark"] .footer .social-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 56px;
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.2rem;
        padding: 6px 10px;
        border-width: 1.5px;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 56px);
        background-color: rgba(28, 25, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px 16px;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
        flex-direction: column;
        border-top: 1px solid rgba(196, 167, 125, 0.15);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }
    
    .main-nav ul li {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 12px;
        text-align: left;
        border: 1px solid transparent;
        text-transform: none;
        letter-spacing: 0;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(196, 167, 125, 0.12);
        border-color: rgba(196, 167, 125, 0.2);
        color: var(--primary-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Language switcher in mobile nav */
    .main-nav .language-switcher {
        display: none;
    }
    
    .mobile-language-switcher {
        display: flex;
        justify-content: center;
        margin-top: 28px;
        padding-top: 28px;
        border-top: 1px solid rgba(196, 167, 125, 0.15);
        gap: 10px;
    }
    
    .mobile-language-switcher .lang-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    /* Hide desktop language switcher */
    .header > .container > .language-switcher {
        display: none;
    }
    
    .hero {
        padding-top: 56px;
    }
    
    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.15;
    }
    
    .hero p {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 0.9rem;
    }
    
    .courses-container,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card {
        border-radius: 16px;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-content {
        padding: 24px;
    }
    
    .course-content h3 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    section {
        padding: 56px 0;
    }
    
    .about-content,
    .contact-container {
        gap: 28px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-details {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }
    
    .detail-item {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .portfolio-item img {
        height: 160px;
    }
    
    .portfolio-item {
        border-radius: 12px;
    }
    
    .nav-link, .btn, .cta-button, .lang-btn, .social-links a, .back-to-top {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
    }
    
    .course-content .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
        min-width: auto;
        width: 100%;
    }
    
    .contact-info,
    .contact-form {
        padding: 24px;
        border-radius: 16px;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .credential-item h3 {
        padding: 20px 24px;
        font-size: 1.3rem;
    }
    
    .certificate-display {
        padding: 24px;
    }
    
    .service-card {
        padding: 28px 24px;
        border-radius: 16px;
    }
    
    .service-icon {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .qr-code-container {
        padding: 20px;
    }
    
    .qr-image {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 576px) {
    .header .container {
        height: 52px;
        padding: 0 12px;
    }
    
    .logo {
        font-size: 1.1rem;
        padding: 5px 8px;
    }
    
    .main-nav {
        top: 52px;
        height: calc(100vh - 52px);
        padding: 16px 12px;
    }
    
    .nav-link {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .mobile-language-switcher .lang-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 32px;
    }
    
    .section-title::after {
        width: 50px;
        height: 3px;
        margin: 16px auto;
    }
    
    .hero {
        min-height: 100vh;
        padding: 52px 0 48px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 14px 32px;
        font-size: 0.85rem;
        border-radius: 40px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .portfolio-item {
        border-radius: 10px;
    }
    
    .portfolio-item img {
        height: 140px;
    }
    
    section {
        padding: 48px 0;
    }
    
    .container {
        width: 100%;
        padding: 0 16px;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .detail-item {
        padding: 12px 16px;
        border-radius: 10px;
    }
    
    .detail-item i {
        font-size: 1.2rem;
    }
    
    .course-card {
        border-radius: 14px;
    }
    
    .course-image {
        height: 160px;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-content h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .course-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .course-content .btn {
        padding: 11px 20px;
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 24px 20px;
        border-radius: 14px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px;
        border-radius: 14px;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .info-item {
        padding: 10px 0;
    }
    
    .info-item i {
        font-size: 1.1rem;
        margin-right: 14px;
    }
    
    .info-item p {
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .form-group textarea {
        height: 120px;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .credential-item {
        border-radius: 14px;
    }
    
    .credential-item h3 {
        padding: 16px 20px;
        font-size: 1.2rem;
    }
    
    .certificate-display {
        padding: 20px;
        flex-direction: column;
    }
    
    .certificate-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .certificate-details p {
        font-size: 0.9rem;
    }
    
    .certificate-details .btn {
        width: 100%;
    }
    
    .qr-code-container {
        padding: 16px;
        margin-top: 20px;
    }
    
    .qr-label {
        font-size: 0.85rem;
    }
    
    .qr-image {
        width: 120px;
        height: 120px;
    }
    
    .footer {
        padding: 40px 0 24px;
    }
    
    .footer-content {
        gap: 16px;
        margin-bottom: 28px;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-language-switcher .lang-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .copyright {
        padding-top: 20px;
        font-size: 0.8rem;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .mobile-menu-btn span {
        height: 2px;
        width: 18px;
        margin: 2px 0;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
        font-size: 1rem;
    }
    
    .cookie-banner {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    
    .cookie-banner p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .cookie-banner .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
        min-width: auto;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .portfolio-grid {
        gap: 8px;
    }
    
    .portfolio-item img {
        height: 120px;
    }
    
    .logo {
        font-size: 1rem;
        padding: 4px 7px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    box-shadow: 0 8px 25px rgba(196, 167, 125, 0.3);
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(196, 167, 125, 0.4);
}

/* Image Animation Styles */
.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.animated-image {
    object-fit: contain;
    max-width: 90%;
    max-height: 90%;
}

/* Form Success Message */
.form-success-message {
    background-color: #28a745;
    color: white;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-language-switcher {
    display: none;
    margin: 20px auto;
    justify-content: center;
    gap: 5px;
}

/* Author link styling and animation */
.author-link {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.author-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.author-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Removed pulse animation for cleaner look */

/* Dark mode style for author link */
[data-theme="dark"] .author-link {
    color: var(--light-color);
}

[data-theme="dark"] .author-link::after {
    background-color: var(--light-color);
}

[data-theme="dark"] .author-link:hover {
    color: #FFFFFF;
}

/* Experience Timeline */
.experience {
    padding: 80px 0;
    background-color: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 4px solid var(--light-color);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: -10px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--dark-color);
}

.timeline-content h4 {
    margin-top: 5px;
    color: #666;
    font-weight: normal;
    font-style: italic;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--dark-color), #0D0B0A);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 10000;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 600px;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    color: white;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
    }
    
    .timeline-dot {
        left: 21px;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-color), #F0EBE3);
}

.services .section-title {
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.service-card {
    background: #FFFFFF;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.service-card p {
    color: #5D5A57;
    line-height: 1.7;
}

/* QR Code Styles */
.qr-code-container {
    margin-top: 28px;
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-label {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--light-color);
    font-weight: 500;
}

.qr-image {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* CV Preview Styles */
.cv-preview {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    height: 500px;
    overflow: hidden;
}

.cv-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cv-preview:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Dark Mode Adjustments for new sections */
[data-theme="dark"] .services {
    background-color: #2d2d2d;
}

[data-theme="dark"] .service-card {
    background-color: #1a1a1a;
}

[data-theme="dark"] .qr-code-container {
    background-color: #1a1a1a;
}

[data-theme="dark"] .qr-label {
    color: var(--light-color);
}

[data-theme="dark"] .cv-preview {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .cv-preview span {
    color: #adb5bd;
}

/* Focus States for Accessibility */
.nav-link:focus-visible,
.btn:focus-visible,
.cta-button:focus-visible,
.lang-btn:focus-visible,
.logo:focus-visible,
.social-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 167, 125, 0.2);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .back-to-top,
    .cookie-banner,
    .mobile-menu-btn {
        display: none !important;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}