/* Navigation and footer link custom styles (fixed) */

.nav-links a, .footer-links a {
    background: var(--secondary-color);
    color: #FFD600;
    padding: 0.5em 1.2em;
    border-radius: 2em;
    transition: all 0.2s;
    font-weight: 800;
    text-decoration: none;
    margin: 0 0.2em;
    display: inline-block;
    border: none;
    text-shadow: 0 1px 4px rgba(124,58,237,0.10), 0 0px 0px #fff;
    outline: none;
}

.nav-links a.active, .footer-links a.active,
.nav-links a:focus, .footer-links a:focus,
.nav-links a:hover, .footer-links a:hover {
    background: #FFD600 !important;
    color: var(--secondary-color) !important;
    /* Aucun fond blanc */
}
/* Color Scheme:
   Primary: #FFD600 (Yellow)
   Secondary: #2D1A4D (Dark Purple)
   Accent: #FFFFFF (White)
*/

:root {
    --primary-color: #FFD600;
    --secondary-color: #2D1A4D;
    --accent-color: #FFFFFF;
    --text-dark: #2D1A4D;
    --text-light: #FFFFFF;
    --shadow-light: rgba(45, 26, 77, 0.1);
    --shadow-medium: rgba(45, 26, 77, 0.2);
    --shadow-dark: rgba(45, 26, 77, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--accent-color);
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-medium);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 214, 0, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(-100px) translateX(-100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--accent-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.card p {
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.8;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(45, 26, 77, 0.1);
}

.stat {
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 214, 0, 0.8));
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.highlight {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Divider */
.divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 4rem auto;
    width: 80%;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.about-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px var(--shadow-light));
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Services Section */
.services {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.05), rgba(45, 26, 77, 0.05));
    border-radius: 20px;
    padding: 4rem 2rem;
}

/* Contact Section */
.contact {
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 20px;
    text-align: center;
}

.contact-content h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.contact-details h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-details small {
    color: var(--text-dark);
    opacity: 0.7;
}

.contact-form {
    background: var(--accent-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(45, 26, 77, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    /* Suppression du filtre pour garder la couleur d'origine du logo */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 214, 0, 0.1);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Realizations Grid */
.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.realization-card {
    background: var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
}

.realization-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.realization-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.realization-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.realization-card:hover .realization-image img {
    transform: scale(1.1);
}

.realization-content {
    padding: 2rem;
}

.realization-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.realization-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.realization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 214, 0, 0.8));
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Statistics Cards */
.stat-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-card p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
    border-left: 3px solid var(--primary-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.timeline-date {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content ul li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Expertise Cards */
.expertise-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
    border-color: var(--primary-color);
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.expertise-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.expertise-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.expertise-stats {
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 214, 0, 0.8));
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Methodology Steps */
.methodology-step {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.methodology-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.methodology-step h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.methodology-step p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.methodology-step ul {
    list-style: none;
    padding: 0;
}

.methodology-step ul li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.methodology-step ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Sector Cards */
.sector-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
    border-color: var(--primary-color);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.sector-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.sector-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.sector-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.expertise-tag {
    background: rgba(45, 26, 77, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.sector-stats {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 214, 0, 0.8));
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Pricing Cards */
.pricing-card {
    background: var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-header {
    background: linear-gradient(135deg, var(--secondary-color), rgba(45, 26, 77, 0.9));
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.pricing-header h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.pricing-rate {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pricing-content {
    padding: 2rem;
}

.pricing-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-content ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-note {
    background: rgba(255, 214, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
}

/* Info Cards */
.info-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
    border-color: var(--primary-color);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.info-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.info-card p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-details {
    background: rgba(45, 26, 77, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Project Examples */
.sector-projects {
    margin: 1rem 0;
}

.project-example {
    background: rgba(255, 214, 0, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
}

/* Service Price */
.service-price {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(45, 26, 77, 0.1);
}

.price {
    background: linear-gradient(135deg, var(--secondary-color), rgba(45, 26, 77, 0.9));
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Image Carousel Styles */
.image-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 15px;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.dot:hover {
    background: rgba(255, 214, 0, 0.8);
    transform: scale(1.2);
    border-color: var(--primary-color);
}

.dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.6);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(45, 26, 77, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    pointer-events: all;
    opacity: 0;
}

.image-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(45, 26, 77, 0.4);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Animation for carousel transition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-image.active {
    animation: slideIn 0.5s ease-out;
}

/* Carousel loading state */
.carousel-image:not(.active) {
    pointer-events: none;
}

/* Enhanced hover effects for carousel */
.image-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 70%, rgba(255, 214, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.image-carousel:hover::before {
    opacity: 1;
}

/* Service CTA Styles */
.service-cta {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(45, 26, 77, 0.1);
    width: 100%;
}

.service-cta .btn {
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 214, 0, 0.8));
    color: var(--text-dark);
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.3);
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: 160px;
}

.service-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.9), var(--primary-color));
}

/* Ensure cards have proper spacing */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.card .service-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(45, 26, 77, 0.4);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Animation for carousel transition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 140px;
    }

    .card {
        padding: 1.5rem;
    }

    /* Adjust grid for mobile */
    .services div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.carousel-image.active {
    animation: slideIn 0.5s ease-out;
}

/* Carousel loading state */
.carousel-image:not(.active) {
    pointer-events: none;
}

/* Enhanced hover effects for carousel */
.image-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 70%, rgba(255, 214, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.image-carousel:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .realizations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Responsive carousel */
    .image-carousel {
        height: 200px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .carousel-nav {
        padding: 0 10px;
    }

    /* Service CTA responsive styles */
    .service-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 140px;
    }

    /* Adjust grid for mobile */
    .services div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
    }
}