:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #e3f2fd;
    --text-color: #333;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #666;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 86, 179, 0.95);
    backdrop-filter: blur(10px);
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

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

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

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

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.menu-toggle::before {
    top: 0;
}

.menu-toggle::after {
    bottom: 0;
}

.menu-toggle.active::before {
    transform: rotate(45deg);
    top: 50%;
}

.menu-toggle.active::after {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text {
    padding: 2rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.6;
    background: transparent;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.stats-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0056b3;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1em;
    color: #666;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #003366;
    margin-bottom: 1rem;
}

.feature p {
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .stats-grid,
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.service-category {
    margin-bottom: 4rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-header i {
    font-size: 2rem;
}

.service-details {
    padding: 2rem;
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-item p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.service-item ul {
    list-style: none;
}

.service-item ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-item ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.immigration-section {
    padding: 2rem 0;
}

.service-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
    line-height: 1.6;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.country-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.country-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.country-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.country-header h5 {
    margin: 0;
    color: #003366;
    font-size: 1.2em;
    font-weight: 600;
}

.flag-icon {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-content {
    padding: 20px;
}

.country-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-content ul li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #555;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
}

.country-content ul li:last-child {
    border-bottom: none;
}

.country-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0056b3;
}

/* WhatsApp Button */
.whatsapp-button {
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

.whatsapp-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0056b3;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Contact Form */
.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
}

.contact-form {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 45px;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.form-group textarea {
    width: 100%;
    height: 150px;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
}

.floating-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 5px;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

textarea ~ .floating-label {
    top: 25px;
    transform: none;
}

input:focus ~ .floating-label,
textarea:focus ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label,
textarea:not(:placeholder-shown) ~ .floating-label,
select:focus ~ .floating-label,
select:not([value=""]) ~ .floating-label {
    top: -0.7rem;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    padding: 0 5px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
    outline: none;
}

.submit-btn {
    width: 100%;
    height: 45px;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
    }
    
    .floating-label {
        font-size: 0.9rem;
    }
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0056b3;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
    box-shadow: none;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

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

.floating-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 5px;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-label::after {
    content: '';
}

textarea ~ .floating-label {
    top: 20px;
    transform: none;
}

input:focus ~ .floating-label,
textarea:focus ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label,
textarea:not(:placeholder-shown) ~ .floating-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #0056b3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
}

.error-message {
    color: #ff0000;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

.submit-btn {
    background: #0056b3;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: #003d82;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Section Headers */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #0056b3, #0077cc);
    border-radius: 2px;
}

.about h2,
.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    padding: 0;
    background: transparent;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #0056b3;
}

.footer-section.about .slogan {
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #0056b3;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-section ul li i {
    color: #0056b3;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.footer-section ul li span {
    flex: 1;
    line-height: 1.6;
}

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

.footer-section a:hover {
    color: #0056b3;
}

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

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

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

.footer-bottom a:hover {
    color: #0056b3;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

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

    .footer-section {
        text-align: left;
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

/* Responsive Design */

/* Animation de chargement */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove default asterisk from HTML required attribute */
.form-group input:required,
.form-group select:required,
.form-group textarea:required {
    box-shadow: none;
}

.form-group input:required:invalid,
.form-group select:required:invalid,
.form-group textarea:required:invalid {
    box-shadow: none;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.success-message.show {
    opacity: 1;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-content i {
    font-size: 3rem;
    color: #28a745;
}

.success-content p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

/* Form Error Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff3366;
}

.error-message {
    color: #ff3366;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}
