:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --secondary-color: #004e89;
    --secondary-dark: #003d6b;
    --accent-color: #f77f00;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f77f00 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

/* Responsive font sizing */
@media (max-width: 1440px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 479px) {
    html {
        font-size: 13px;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global image responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure no horizontal overflow */
* {
    max-width: 100%;
}

body, html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Responsive container widths */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 575px) {
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
        gap: 8px;
    }
}

@media (max-width: 374px) {
    .btn {
        padding: 9px 20px;
        font-size: 0.85rem;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1581858726788-75bc0f6a952d?w=1920&q=80') center/cover no-repeat;
    padding-top: 80px;
    background-attachment: fixed;
}

@media (max-width: 991px) {
    .hero {
        background-attachment: scroll;
        background-position: center center;
    }
}

@media (max-width: 767px) {
    .hero {
        background-size: cover;
        background-position: 60% center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.hero-text {
    max-width: 800px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.highlight-large {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 1s backwards;
}

.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* Services Section */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: var(--gradient-dark);
    color: var(--white);
}

.service-card.featured .service-title,
.service-card.featured .service-description {
    color: var(--white);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* Réalisations Section */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--dark-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
    max-width: 100%;
}

@media (max-width: 767px) {
    .gallery-image img {
        object-position: center;
    }
}

@media (max-width: 479px) {
    .gallery-image img {
        height: 100%;
        object-fit: cover;
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-content p {
    margin-bottom: 1rem;
}

.gallery-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.gallery-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* À Propos Section */
.apropos {
    background: var(--light-color);
}

.apropos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.apropos-text {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.apropos-features {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.apropos-feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-content p {
    color: var(--gray-color);
}

.apropos-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .image-wrapper img {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .image-wrapper img {
        height: 350px;
        object-position: center;
    }
}

@media (max-width: 479px) {
    .image-wrapper img {
        height: 300px;
    }
}

@media (max-width: 374px) {
    .image-wrapper img {
        height: 280px;
    }
}

.image-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.badge-content h3 {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.badge-content p {
    color: var(--dark-color);
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    background: var(--gradient-dark);
    color: var(--white);
}

.testimonials .section-subtitle {
    color: var(--primary-light);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.contact-items {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-details p {
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 12px 20px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Contact Popup Button */
.contact-popup-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 25px rgba(255, 107, 53, 0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupBtnPulse 2s infinite;
}

.contact-popup-btn:hover {
    transform: scale(1.1);
}

.contact-popup-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes popupBtnPulse {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(255, 107, 53, 0.8);
    }
}

/* Contact Popup Overlay */
.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.contact-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contact Popup */
.contact-popup {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(50px);
    transition: var(--transition);
}

.contact-popup-overlay.active .contact-popup {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--gray-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.popup-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.popup-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.popup-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.popup-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.popup-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.popup-content {
    padding: 2rem;
}

.popup-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.popup-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.popup-contact-item:hover::before {
    transform: scaleY(1);
}

.popup-contact-item:hover {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.popup-contact-item:hover .popup-icon {
    transform: scale(1.1) rotate(10deg);
}

.popup-contact-item.whatsapp .popup-icon {
    background: #25D366;
    color: var(--white);
}

.popup-contact-item.phone .popup-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.popup-contact-item.email .popup-icon {
    background: #EA4335;
    color: var(--white);
}

.popup-contact-item.form .popup-icon {
    background: var(--secondary-color);
    color: var(--white);
}

.popup-info {
    flex: 1;
}

.popup-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.popup-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.popup-arrow {
    color: var(--gray-color);
    transition: var(--transition);
}

.popup-contact-item:hover .popup-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

.popup-footer {
    background: var(--light-color);
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.popup-footer p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Popup */
@media (max-width: 767px) {
    .contact-popup-btn {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .contact-popup {
        max-width: 95%;
        border-radius: 15px;
    }

    .popup-header {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 15px 15px 0 0;
    }

    .popup-header h3 {
        font-size: 1.5rem;
    }

    .popup-header i {
        font-size: 2.5rem;
    }

    .popup-content {
        padding: 1.5rem;
    }

    .popup-contact-item {
        padding: 1rem;
    }

    .popup-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .popup-info h4 {
        font-size: 1rem;
    }

    .popup-info p {
        font-size: 0.85rem;
    }

    .popup-footer {
        padding: 0.8rem 1.5rem;
        border-radius: 0 0 15px 15px;
    }
}

@media (max-width: 479px) {
    .contact-popup-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .popup-header {
        padding: 1.5rem 1rem 1.2rem;
    }

    .popup-header h3 {
        font-size: 1.3rem;
    }

    .popup-content {
        padding: 1rem;
    }

    .popup-contact-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .popup-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */

/* Large Desktop - 1920px+ */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 5.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop - 1440px to 1919px */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 5rem;
    }
}

/* Laptop - 1024px to 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.8rem;
    }
}

/* Tablet Landscape - 992px to 1023px */
@media (max-width: 1023px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait & Mobile Landscape - 768px to 991px */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        margin-top: 60px;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .apropos-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .image-wrapper img {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape & Large Mobile - 576px to 767px */
@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-image {
        height: 300px;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .apropos-text {
        font-size: 1rem;
    }

    .image-wrapper img {
        height: 350px;
    }

    .image-badge {
        bottom: 20px;
        left: 20px;
        padding: 1.5rem;
    }

    .badge-content h3 {
        font-size: 2.5rem;
    }

    .contact-grid {
        gap: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Mobile Portrait - 480px to 575px */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .gallery-image {
        height: 280px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile - 375px to 479px */
@media (max-width: 479px) {
    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 65vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .gallery-image {
        height: 250px;
    }

    .gallery-content h3 {
        font-size: 1.2rem;
    }

    .gallery-content p {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .feature-content h4 {
        font-size: 1.1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }

    .image-wrapper img {
        height: 300px;
    }

    .image-badge {
        padding: 1.2rem;
    }

    .badge-content h3 {
        font-size: 2rem;
    }

    .badge-content p {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-details h4 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile - 320px to 374px */
@media (max-width: 374px) {
    .container {
        padding: 0 12px;
    }

    .nav-container {
        padding: 0.8rem 12px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 11px 22px;
        font-size: 0.9rem;
    }

    .stats-grid {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .gallery-image {
        height: 220px;
    }

    .filter-btn {
        padding: 7px 15px;
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .image-wrapper img {
        height: 280px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-content {
        padding: 30px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        margin-top: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 1rem;
    }

    .stat-item {
        flex-direction: row;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-top,
    .hero-buttons,
    .filter-buttons,
    .contact-form,
    .newsletter-form,
    .social-links {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .hero-overlay {
        opacity: 0.5;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .feature-icon,
    .contact-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here if needed */
}
