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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --white: #ffffff;
    --success-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

html:lang(el) {
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ensure cards and content don't overflow */
.service-card,
.card,
.benefit-item,
.faq-item {
    box-sizing: border-box;
    width: 100%;
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand a {
    text-decoration: none;
    display: inline-block;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.nav-brand span {
    color: var(--secondary-color);
    font-weight: 400;
    margin-left: 4px;
}

.nav-brand .tagline {
    margin: 0;
    margin-top: -5px;
    font-size: 0.7rem;
    color: var(--dark-color);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: right;
    padding-right: 2px;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: url('images/graphic-backround.png') center/cover no-repeat;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 37, 87, 0.4) 0%, rgba(30, 58, 138, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: var(--white);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--dark-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: var(--white);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 2rem;
    text-align: left;
}

.about-text .lead {
    text-align: left;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.about-feature h4 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.about-feature p {
    font-size: 1rem;
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Partners Section */
.partners {
    background-color: var(--light-color);
}

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

.partner-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--secondary-color);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Dark background for white logos */
.partner-item img[src*="aigaion"] {
    background: var(--dark-color);
    padding: 1rem;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info-item {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--light-color);
}

.contact-info-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--secondary-color);
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-info-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

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

.contact-hours {
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-item {
        padding: 2.5rem 1.5rem;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Service Detail Pages */
.service-detail {
    padding: 80px 20px;
}

.service-detail.alt-bg {
    background-color: var(--light-color);
}

.service-content {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #bae6fd;
}

.service-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-align: center;
    display: block;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
}

.service-text h2 {
    color: var(--primary-color);
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.service-text h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.service-features-detailed {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    display: grid;
    gap: 0.5rem;
}

.service-features-detailed li {
    padding: 1.25rem 1.5rem;
    padding-left: 3rem;
    position: relative;
    background: var(--white);
    border-radius: 8px;
    line-height: 1.7;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-features-detailed li:hover {
    background: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.service-features-detailed li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.4rem;
    background: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.service-text .btn {
    display: block;
    width: fit-content;
    margin: 3rem auto 0;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Button Link */
.btn-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

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

/* Services Overview Section */
.services-overview {
    background-color: var(--light-color);
    padding: 80px 20px;
}

.why-choose {
    padding: 80px 20px;
}

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

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Page Styles */
.about {
    padding: 80px 20px;
}

.values-section {
    background-color: var(--light-color);
    padding: 80px 20px;
}

.services-overview-section {
    padding: 80px 20px;
}

.services-list {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-item-alt {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.service-item-alt h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Partners Page Styles */
.partners-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.benefits-section {
    background-color: var(--light-color);
    padding: 80px 20px;
}

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

.benefit-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-item p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Contact Page Styles */
.contact-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

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

.faq-section {
    background-color: var(--light-color);
    padding: 80px 20px;
}

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

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Navigation Active State */
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-brand a {
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin: 0;
    line-height: 1;
}

.footer-section h3 span {
    color: var(--accent-color);
}

.footer-section .tagline {
    margin: 0;
    margin-top: -2px;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: var(--light-color);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: right;
    padding-right: 2px;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

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

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

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Make contact form single column on mobile */
    .contact-layout {
        grid-template-columns: 1fr;
    }

    /* Fix text wrapping for Greek text */
    h1, h2, h3, h4, h5, h6 {
        word-break: normal;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    p, li {
        word-break: normal;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    /* Fix card content */
    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-card h3,
    .service-card p,
    .service-card ul,
    .service-card li {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    /* Ensure lists have proper padding and spacing */
    ul, ol {
        padding-left: 1.2rem;
        margin: 0.5rem 0;
    }

    .service-card li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
        padding-right: 0.5rem;
    }

    /* Reduce padding on mobile */
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }

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

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

    section {
        padding: 40px 15px;
    }

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

    /* Fix page headers on mobile */
    .page-header {
        min-height: 250px !important;
        padding: 40px 15px !important;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    .page-header p {
        font-size: 0.95rem !important;
    }

    /* Reduce font sizes on very small screens */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
    }
}