:root {
    --primary-color: #1a4f76;
    --secondary-color: #d16b2e;
    --bg-color: #fcfcfd;
    --surface-color: #ffffff;
    --surface-blur: blur(10px);
    --text-primary: #333333;
    --text-secondary: #666666;
    --overlay-color: rgba(255, 255, 255, 0.85);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'M PLUS 1p', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0; /* slight breathing room so it doesn't clip */
}

.logo-img {
    height: 100%;
    max-width: 300px;
    object-fit: contain;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

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

.nav a {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.7);
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(224, 122, 60, 0.3);
    background-color: #f08c50;
}

.btn-primary.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img, .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    max-width: 90%;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.5);
}

.hero-center-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 auto 2.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    display: inline-block;
}

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

.card {
    background-color: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.card-body {
    padding: 2rem;
}

.badge {
    display: inline-block;
    background-color: rgba(224, 122, 60, 0.2);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-body h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Service List */
.service-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(26, 79, 118, 0.5);
}

.service-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.service-img {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .portfolio-item:hover img {
        transform: scale(1.05);
    }

    .portfolio-item:hover .portfolio-overlay {
        transform: translateY(0);
        opacity: 1;
    }
}

.portfolio-overlay h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Contact */
.contact-card {
    background-color: var(--surface-color);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    padding: 4rem;
    background: rgba(26, 79, 118, 0.05);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.location {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-form {
    flex: 1.5;
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #333333;
    color: #333333;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn i {
    font-size: 1.6rem;
    margin-right: 1rem;
}

.contact-btn:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --surface-color: #1e1e1e;
        --text-primary: #f0f0f0;
        --text-secondary: #aaaaaa;
        --primary-color: #5fa8d3;
        --overlay-color: rgba(18, 18, 18, 0.85);
    }
    .header.scrolled {
        background-color: rgba(30, 30, 30, 0.9);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .hero-subtitle {
        background: rgba(30, 30, 30, 0.5);
    }
    .card, .contact-card, .timeline-content {
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    .contact-info {
        background: rgba(0, 0, 0, 0.2);
    }
    .form-group input, .form-group textarea {
        background-color: #2a2a2a;
        color: #f0f0f0;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .contact-btn {
        background-color: #2a2a2a;
        color: #f0f0f0;
        border: 1px solid #555;
    }
    .contact-btn:hover {
        background-color: #333;
    }
    .nav.active {
        background-color: rgba(18, 18, 18, 0.98);
    }
    .legal-th {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Footer */
.footer {
    position: relative;
    padding: 4rem 0 0;
    border-top: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    overflow: hidden;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.325);
    z-index: -1;
}

.footer-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-about {
    flex: 1 1 300px;
}

.footer-about p {
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.footer-socials a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.footer-links, .footer-contact {
    flex: 1 1 200px;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
}

/* Floating LINE Button */
.floating-line-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-line-btn:hover {
    transform: translateY(-5px);
}

.floating-line-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.floating-line-btn:hover .floating-line-img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .service-item, .service-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-card {
        flex-direction: column;
    }
    .contact-info, .contact-form {
        padding: 2rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav a {
        font-size: 1.5rem;
    }
}

/* Legal Pages */
.legal-th {
    background-color: #f9f9f9;
}

/* Subpages Common */
.page-main {
    padding-top: 100px;
}

.breadcrumbs {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

@media (max-width: 768px) {
    .floating-line-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-line-img {
        border-radius: 10px;
    }
}

.page-hero {
    padding: 120px 2rem 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55); /* Dark overlay to match reference */
    z-index: -1;
}

.page-hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.5);
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* About - Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(0,0,0,0.1);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 10px rgba(224, 122, 60, 0.3);
}

.timeline-date {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Portfolio Filters */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* Flow Steps */
.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    min-width: 100px;
    text-align: right;
}

.step-content {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    flex: 1;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.step-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(224, 122, 60, 0.15);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background: rgba(26, 79, 118, 0.05);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-bottom-left-radius: 16px;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    text-shadow: none;
}

.pricing-body {
    padding: 2rem;
    flex: 1;
}

.pricing-body ul {
    list-style: none;
}

.pricing-body li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-body li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 500px;
}

@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    .flow-step {
        flex-direction: column;
        gap: 1rem;
    }
    .step-number {
        text-align: left;
    }
}

/* GSAP utility classes for initial states */
.gs_reveal { visibility: hidden; }
.gs_reveal_up { visibility: hidden; }
.gs_reveal_left { visibility: hidden; }
.gs_reveal_right { visibility: hidden; }
.gs_reveal_scale { visibility: hidden; }

/* Section Background Enhancements - Image Backgrounds */
.section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--overlay-color);
    z-index: -1;
}

.section.campaign {
    background-image: url('./assets/bg_campaign.png');
}
.section.service {
    background-image: url('./assets/bg_services.png');
}
.section.portfolio {
    background-image: url('./assets/bg_portfolio.png');
}
.section.flow-section {
    background-image: url('./assets/bg_flow.png');
}
.section.contact, .section.faq-section {
    background-image: url('./assets/bg_contact.png');
}

/* Fallbacks for sections without specific images */
.section.preparation { background-color: #f9f9f9; }
.section.portfolio-page { background-image: url('./assets/bg_portfolio.png'); }
.section.about-vision, .section.features, .section.timeline-section, .section.profile, .section.access { background-image: url('./assets/about_hero.png'); }
.section.pricing-section { background-image: url('./assets/pricing_hero.png'); }

/* Page Hero Backgrounds */
.page-hero.about-hero { background-image: url('./assets/about_hero.png'); }
.page-hero.portfolio-hero { background-image: url('./assets/portfolio_hero.png'); }
.page-hero.flow-hero { background-image: url('./assets/flow_hero.png'); }
.page-hero.pricing-hero { background-image: url('./assets/pricing_hero.png'); }
.page-hero.faq-hero { background-image: url('./assets/faq_hero.png'); }

/* Reference site portfolio grid styles */
.portfolio-grid {
    gap: 11px;
    padding-inline: 24px;
}
@media (min-width: 1400px) {
    .portfolio-grid {
        padding-inline: 1.548vw;
    }
}
@media (max-width: 575px) {
    .portfolio-grid {
        gap: 2.667vw;
        padding-inline: 6.4%;
    }
}

.portfolio-item {
    border-radius: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.portfolio-item img, 
.portfolio-item video {
    transition: transform 0.5s ease 0s;
    pointer-events: none;
}

@media (hover: hover) {
    .portfolio-item:hover img, 
    .portfolio-item:hover video {
        transform: scale(1.02);
    }
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.4s ease-out;
    padding: 0;
    pointer-events: auto;
    transform: none !important;
    z-index: 2;
}

.portfolio-overlay h4, 
.portfolio-overlay p {
    display: none;
}

@media (hover: hover) {
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
        transform: none;
    }
}

/* Portfolio Modal (Lightbox) */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.95);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: flex;
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 10000;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(255,255,255,0.4);
}

.modal-prev { left: -60px; }
.modal-next { right: -60px; }

@media (max-width: 768px) {
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}

.modal-info {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.modal-info .meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile Optimization Enhancements */
@media (max-width: 768px) {
    /* Horizontally scrollable filter buttons */
    .filter-controls {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 12px !important;
        margin-bottom: 2rem !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
        padding-inline: 15px !important;
    }
    
    .filter-controls::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .filter-btn {
        flex-shrink: 0 !important;
        padding: 0.4rem 1.2rem !important;
        font-size: 0.9rem !important;
    }

    /* Modal Navigation Optimization */
    .modal-prev, .modal-next {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
        background: rgba(0, 0, 0, 0.45) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    .modal-prev { left: 5px !important; }
    .modal-next { right: 5px !important; }
}

@media (max-width: 575px) {
    /* 2-Column Grid Layout */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding-inline: 16px !important;
    }
}

/* Language Switcher Styling */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.lang-switcher a,
.lang-switcher span {
    padding: 4px 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
    display: inline-block;
}

.lang-switcher a {
    color: var(--text-primary);
}

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

.lang-switcher span.active {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
}


