/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2b45 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 5px;
}

.header-content p {
    font-weight: 500;
    opacity: 0.9;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Logo Styles */
.logo img {
    width: 80px;
    height: 80px;
    border-radius: 0;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .logo img {
        width: 60px;
        height: 60px;
    }
}

/* Flag Icon Styles */
.flag-icon {
    display: inline-block;
    width: 1.33333em;
    height: 1em;
    vertical-align: -0.125em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.flag-icon-ro {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23002B7F" d="M0 0h170.67v512H0z"/><path fill="%23FCD116" d="M170.67 0h170.67v512H170.67z"/><path fill="%23CE1126" d="M341.33 0H512v512H341.33z"/></svg>');
}

/* Font Awesome flag icon fallback */
.flag-icon-fa {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: inline-block;
    width: 1.33333em;
    height: 1em;
    vertical-align: -0.125em;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.flag-icon-ro-fa::before {
    content: "\f17c";
}


@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(13, 43, 69, 0.9)), #1a3a5f;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Language Switcher */
.language-switcher {
    background-color: #e9ecef;
    padding: 20px 0;
    text-align: center;
}

.switch-lang-btn {
    background: #1a3a5f;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.switch-lang-btn:hover {
    background: #0d2b45;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: white;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    color: #1a3a5f;
    margin-bottom: 20px;
    font-size: 2rem;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background-color: #f1f3f5;
}

.services-section h2 {
    text-align: center;
    color: #1a3a5f;
    margin-bottom: 40px;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
}

/* Appointment Section */
.appointment-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2b45 100%);
}

.schedule-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.schedule-btn:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #1a3a5f;
    margin-bottom: 20px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a3a5f;
    box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    background: #1a3a5f;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.submit-btn:hover {
    background: #0d2b45;
}

.confirmation-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
}

/* Footer */
.footer {
    background: #0d2b45;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-info h3,
.social-links h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .text-content h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info p,
    .social-links a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .schedule-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
