/* ==================== CSS Variables & General Styles ==================== */
:root {
    --primary-blue: #0D47A1;
    --secondary-blue: #1F5BA8;
    --light-blue: #42A5F5;
    --white: #FFFFFF;
    --dark-text: #1A1A1A;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

/* Theme overrides (dark mode) */
:root.theme-dark {
    --dark-text: #E8ECF4;
    --light-gray: #0F1624;
    --border-color: #22314A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    position: relative;
    overflow-x: hidden;
}

body.theme-dark {
    color: var(--dark-text);
    background-color: #0B1220;
}

body.theme-dark::after {
    opacity: 0.02;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/logo.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 800px 500px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Dark mode element tweaks */
body.theme-dark .navbar {
    background: linear-gradient(135deg, #0B254F 0%, #113266 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

body.theme-dark .nav-link::after {
    background-color: rgba(255,255,255,0.14);
}

body.theme-dark .hero,
body.theme-dark .services,
body.theme-dark .about,
body.theme-dark .portfolio,
body.theme-dark .features,
body.theme-dark .contact,
body.theme-dark .footer {
    background: #0B1220;
    color: var(--dark-text);
}

body.theme-dark .service-card,
body.theme-dark .portfolio-item,
body.theme-dark .feature-item,
body.theme-dark .contact-form,
body.theme-dark .info-item,
body.theme-dark .portfolio-modal .modal-content,
body.theme-dark .grid-item,
body.theme-dark .slideshow-container,
body.theme-dark .thumbnails {
    background: #111827;
    color: #E8ECF4;
    border-color: #1F2937;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

body.theme-dark .section-title,
body.theme-dark .section-subtitle,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark p,
body.theme-dark li {
    color: #E8ECF4;
}

body.theme-dark .slide-counter {
    color: #E8ECF4;
}

body.theme-dark .thumbnail {
    border-color: #1F2937;
}

body.theme-dark input,
body.theme-dark textarea {
    background: #0E1624;
    color: #E8ECF4;
    border-color: #1F2937;
}

body.theme-dark .submit-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

body.theme-dark .footer {
    border-top: 1px solid #1F2937;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 1rem;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ==================== Navigation Bar ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}

.logo-svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo span {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    margin-left: 6px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.5rem;
    align-items: center;
    margin-right: auto;
    flex-wrap: nowrap;
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 0.55rem 0.95rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 42px;
    height: 42px;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-icon {
    font-size: 1.05rem;
}

/* Language Toggle Button */
.lang-toggle {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 55px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-current {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    font-size: 0.95rem;
}


.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    overflow: visible;
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Tuned waves: slightly smaller, smoother and natural durations */
.nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 115%;
    height: 115%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 160'><path d='M0 80 C120 20 280 140 400 80 C520 20 680 140 800 80 L800 160 L0 160 Z' fill='%23ffffff'/></svg>");
    background-repeat: no-repeat;
    background-position: 0 55%;
    background-size: 140% 130%;
    opacity: 0; /* κρυφό μέχρι το hover */
    filter: blur(0.6px);
    transition: opacity .32s ease, transform .42s cubic-bezier(.2,.9,.2,1), filter .32s ease;
    z-index: -1;
    border-radius: 14px;
    pointer-events: none;
}

.nav-link:hover::before {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(1.22);
    filter: blur(0.4px);
    animation: waveShift1 7s linear infinite;
}

@keyframes waveShift1 {
    0% { background-position: 0% 60%, 25% 50%; }
    50% { background-position: 50% 60%, 70% 50%; }
    100% { background-position: 100% 60%, 25% 50%; }
}

@keyframes waveShift2 {
    0% { background-position: 10% 60%, 20% 50%; }
    50% { background-position: 60% 60%, 75% 50%; }
    100% { background-position: 10% 60%, 20% 50%; }
}

/* Maintain a subtle underline for accessibility/indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: rgba(255,255,255,0.06);
    transition: background-color 0.22s ease, transform 0.22s ease;
    border-radius: 2px;
    z-index: -1;
}

.nav-link:hover::after {
    background-color: rgba(255,255,255,0.16);
    transform: translateY(-2px);
}

/* MOBILE: adjust waves for smaller screens */
@media (max-width: 768px) {
    .nav-menu .nav-link::before {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 130%;
        height: 130%;
        background-size: 150% 140%;
        opacity: 0;
        filter: blur(0.5px);
    }

    .nav-menu.active .nav-link:hover::before {
        opacity: 0.30;
        animation: waveShift1 8s linear infinite;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* MOBILE: ensure waves and layout remain correct in the collapsed menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(13,71,161,0.98), rgba(31,91,168,0.98));
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 0.9rem 1rem;
        border-radius: 10px;
        display: block;
        margin: 4px 0;
    }

    .nav-menu .nav-link::before {
        left: 10px;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% - 20px);
        height: 110%;
        background-size: cover, cover;
        opacity: 0.09;
    }

    .nav-menu.active .nav-link:hover::before {
        opacity: 0.20;
        animation: waveShift1 10s linear infinite;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    margin-right: 1rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prefer an uploaded raster logo (logo.jpg or logo.png) and fall back to the SVG we generated */
    background:
        linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(66, 165, 245, 0.85) 100%),
        url('../assets/images/logo.jpg') center/contain no-repeat,
        url('../assets/images/logo.png') center/contain no-repeat,
        url('../assets/images/logo.svg') center/600px no-repeat;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23ffffff" opacity="0.1"/></svg>') repeat-x;
    animation: wave 15s linear infinite;
}

.wave-1 {
    bottom: 0;
    animation-delay: 0s;
    opacity: 0.3;
}

.wave-2 {
    bottom: 10px;
    animation-delay: -5s;
    opacity: 0.2;
}

.wave-3 {
    bottom: 20px;
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-button {
    background: var(--white);
    color: var(--primary-blue);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ==================== Services Section ==================== */
.services {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 165, 245, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: var(--light-blue);
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.15);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--light-blue);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    text-align: center;
}

.service-icon svg {
    display: inline-block;
    vertical-align: middle;
}

.service-card:hover .service-icon {
    color: var(--primary-blue);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    text-align: left;
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
}

/* ==================== About Section ==================== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.about-text p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--light-blue);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #999;
    margin: 0;
}

/* Dark mode overrides for stats */
body.theme-dark .about-stats {
    gap: 1.8rem;
}

body.theme-dark .stat {
    background: #0F172A;
    border-left: 4px solid #3B82F6;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

body.theme-dark .stat h3 {
    color: #E8ECF4;
}

body.theme-dark .stat p {
    color: #C7D2FE;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.2);
}

/* ==================== Portfolio Section ==================== */
.portfolio {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.portfolio-item h3 {
    color: var(--primary-blue);
    padding: 1.5rem 2rem 0.5rem;
    font-size: 1.3rem;
}

.portfolio-item p {
    color: #666;
    padding: 0 2rem 2rem;
    line-height: 1.7;
}

/* ==================== Features Section ==================== */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid var(--light-blue);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.15);
}

.feature-item i {
    font-size: 3rem;
    color: var(--light-blue);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-item:hover i {
    color: var(--primary-blue);
    transform: scale(1.15);
}

.feature-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: #666;
    line-height: 1.8;
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.info-item:hover {
    background: #e3f2fd;
    transform: translateX(10px);
}

.info-item i {
    font-size: 2rem;
    color: var(--light-blue);
    min-width: 50px;
    text-align: center;
}

.info-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-form label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.4rem;
    display: inline-block;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 10px rgba(66, 165, 245, 0.3);
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.3);
}

/* Form validation styles */
.contact-form .error-message {
    color: #b00020;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #b00020;
    box-shadow: none;
}

/* Google Maps embed */
.map-embed {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #e3f2fd;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.15);
}

.map-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Address + Map side-by-side inside contact-info */
.address-map {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.address-map .map-embed {
    margin-top: 0;
    height: 100%;
    min-height: 260px;
}

.address-map .map-embed iframe {
    height: 100%;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .address-map {
        grid-template-columns: 1fr;
    }
    .address-map .map-embed {
        min-height: 220px;
    }
}

/* ==================== Footer ==================== */
.footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 50px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-actions {
        display: flex;
        gap: 0.8rem;
    }

    .lang-toggle {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        min-width: 48px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .portfolio-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card,
    .portfolio-item,
    .feature-item {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ==================== Portfolio Modal & Gallery ==================== */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
}

.portfolio-modal.active {
    display: block;
}

.modal-content {
    position: relative;
    max-width: 1400px;
    margin: 50px auto;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--white);
    font-size: 2rem;
    margin: 0;
}

.modal-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 8px;
}

.view-toggle button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.view-toggle button.active {
    background: var(--primary-blue);
    color: var(--white);
}

.view-toggle button:hover {
    color: var(--white);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Slideshow View */
.slideshow-view {
    display: none;
}

.slideshow-view.active {
    display: block;
}

.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slide-nav.prev {
    left: -60px;
}

.slide-nav.next {
    right: -60px;
}

.slide-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    font-size: 1rem;
}

/* Thumbnails */
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
}

.thumbnails::-webkit-scrollbar {
    height: 8px;
}

.thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.thumbnail {
    flex: 0 0 100px;
    height: 70px;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover {
    border-color: var(--light-blue);
}

.thumbnail.active {
    border-color: var(--primary-blue);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid View */
.grid-view {
    display: none;
}

.grid-view.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* Make portfolio items clickable */
.portfolio-item {
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments for modal */
@media (max-width: 1200px) {
    .slide-nav.prev {
        left: 10px;
    }
    
    .slide-nav.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 15px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .grid-view.active {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }
}
