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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.lang-btn {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: #005a9e;
}

.lang-btn.active {
    background-color: #00a4ef;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.4);
}

/* Header */
.header {
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo h1:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-image {
    height: 50px;
    margin-bottom: 8px;
    filter: brightness(1.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-image:hover {
    transform: scale(1.08);
    filter: brightness(1.3);
}

.footer-logo {
    height: 120px;
    margin-bottom: 15px;
    filter: brightness(1.3);
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav a:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-bottom: 2px solid #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-description {
    font-size: 15px !important;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 25px;
    text-align: justify;
}

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

.hero-image svg {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.cta-button {
    background-color: #fff;
    color: #0078d4;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-image svg {
    width: 100%;
    height: 100%;
    max-width: 150px;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #0078d4;
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Formations Section */
.formations {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.formations h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.formation-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #0078d4;
}

.formation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.15);
}

.formation-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
}

.formation-card h3 {
    color: #0078d4;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.formation-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    min-height: 120px;
}

.formation-button {
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 14px;
}

.formation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.contact > .container > p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

.contact-button {
    background-color: #0078d4;
    color: white;
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #005a9e;
}

/* Application Section */
.application {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.application h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0078d4;
}

.application-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* File Input Styling */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

#cv-file {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.file-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    word-break: break-word;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #00a4ef;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #00a4ef;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .formations-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
        gap: 5px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .tagline {
        font-size: 12px;
    }

    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 14px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
    }

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

    .service-card {
        padding: 25px 20px;
    }

    .service-image {
        height: 80px;
        max-width: 100px;
    }

    .services h2,
    .formations h2,
    .contact h2 {
        font-size: 22px;
    }

    .formations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .formation-card {
        padding: 20px 15px;
    }

    .footer-logo {
        height: 80px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .header {
        padding: 15px 0;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo-image {
        height: 40px;
    }

    .tagline {
        font-size: 11px;
    }

    .nav ul {
        gap: 10px;
    }

    .nav a {
        font-size: 12px;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 13px;
    }

    .services-grid {
        gap: 15px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-image {
        height: 70px;
        max-width: 90px;
    }

    .services h2,
    .formations h2,
    .contact h2 {
        font-size: 20px;
    }

    .formations-grid {
        gap: 15px;
    }

    .formation-card {
        padding: 15px 12px;
        border-left-width: 3px;
    }

    .formation-card h3 {
        font-size: 15px;
    }

    .contact {
        padding: 30px 15px;
    }

    .contact-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    .application {
        padding: 40px 20px;
    }

    .application h2 {
        font-size: 26px;
    }

    .application-form {
        padding: 25px 20px;
        margin: 30px 0 0 0;
    }

    .form-group {
        margin-bottom: 20px;
    }
    .footer {
        padding: 30px 15px;
    }

    .footer-logo {
        height: 60px;
    }

    .footer-section h3 {
        font-size: 14px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
    }

    .chat-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .chatbot-container {
        width: calc(100vw - 30px);
        height: 400px;
        bottom: 80px;
        right: 15px;
        max-width: 100%;
    }

    .chat-messages {
        padding: 12px;
    }

    .chat-message {
        font-size: 13px;
        max-width: 90%;
    }

    .chat-input-area {
        padding: 10px;
        gap: 6px;
    }

    .chat-input-area input {
        font-size: 13px;
        padding: 7px 10px;
    }

    .chat-input-area button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Chatbot Styles */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.6);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.chatbot-header {
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.user {
    background-color: #0078d4;
    color: white;
    align-self: flex-end;
}

.chat-message.bot {
    background-color: #f0f0f0;
    color: #333;
    align-self: flex-start;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eee;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input-area input:focus {
    border-color: #0078d4;
}

.chat-input-area button {
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.05);
}
