/* Variables */
:root {
    --primary-color: #005b9a;
    --secondary-color: #74c2e1;
    --text-color: #333;
    --light-text: #fff;
    --background-light: #f5f5f5;
    --background-dark: #1a1a1a;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --nav-height: 80px;
    --nav-background: rgba(255, 255, 255, 0.98);
    --nav-active-color: var(--primary-color);
    --nav-hover-color: var(--secondary-color);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Grandis', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-text);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--background-light);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-background);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 91, 154, 0.08);
}

.header.scrolled {
    --nav-height: 70px;
    box-shadow: 0 2px 20px rgba(0, 91, 154, 0.06);
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo img {
    height: 45px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    display: block;
}

/* Elegant underline animation */
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--nav-active-color), var(--nav-hover-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item a:hover {
    color: var(--nav-hover-color);
}

.nav-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Active page indicator */
.nav-item.active a {
    color: var(--nav-active-color);
}

.nav-item.active a::after {
    transform: scaleX(1);
    background: var(--nav-active-color);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--nav-background);
    min-width: 220px;
    padding: 0.75rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 91, 154, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--nav-background);
    border-radius: 2px;
}

.dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    color: var(--nav-hover-color);
    background: rgba(0, 91, 154, 0.03);
    padding-left: 2rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.85), rgba(116, 194, 225, 0.85));
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    background-size: cover;
    background-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.7), rgba(116, 194, 225, 0.7));
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s ease;
}

.slide.active img {
    transform: scale(1);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    text-align: center;
    color: var(--light-text);
    z-index: 3;
    opacity: 0;
    transition: all 0.8s ease;
    width: 90%;
    max-width: 800px;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.slide-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 3;
}

.prev-slide,
.next-slide {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.prev-slide:hover,
.next-slide:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.slide-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.dot.active {
    background: var(--light-text);
    transform: scale(1.2);
}

/* Services Section */
.services {
    position: relative;
    z-index: 2;
    padding: 5rem 1rem;
    background: var(--background-light);
    margin-top: -1px; /* Prevent gap between hero and services */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    perspective: 1000px;
}

.service-card {
    position: relative;
    background: var(--light-text);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover h3 {
    transform: translateY(-5px);
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 2rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.service-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.overlay-content ul li {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.service-card:hover .overlay-content ul li {
    opacity: 1;
    transform: translateX(0);
}

.service-card:hover .overlay-content ul li:nth-child(1) { transition-delay: 0.1s; }
.service-card:hover .overlay-content ul li:nth-child(2) { transition-delay: 0.2s; }
.service-card:hover .overlay-content ul li:nth-child(3) { transition-delay: 0.3s; }
.service-card:hover .overlay-content ul li:nth-child(4) { transition-delay: 0.4s; }

.service-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--light-text);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.service-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* About Section - New Design */
.about {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: -1px; /* Prevent gap between sections */
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 91, 154, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(116, 194, 225, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Two-column layout for about section */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* About Content Column */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.about-card:hover .about-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Video Section Column */
.about-video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.video-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.video-container > p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-placeholder:hover::before {
    opacity: 1;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.video-placeholder:hover i {
    transform: scale(1.1);
}

.video-placeholder h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.video-placeholder p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Video Features */
.video-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 91, 154, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 91, 154, 0.1);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-video-section {
        order: -1; /* Video appears first on mobile */
    }
    
    .video-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 6rem 0;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    .about-header p {
        font-size: 1rem;
    }
    
    .video-container {
        padding: 2rem;
    }
    
    .video-placeholder {
        height: 250px;
    }
    
    .video-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .about-header h2 {
        font-size: 1.8rem;
    }
    
    .video-container {
        padding: 1.5rem;
    }
    
    .video-placeholder {
        height: 200px;
    }
    
    .video-placeholder i {
        font-size: 3rem;
    }
    
    .video-placeholder h4 {
        font-size: 1.1rem;
    }
}

/* About Stats Section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.05) 0%, rgba(116, 194, 225, 0.05) 100%);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 91, 154, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #005b9a, #74c2e1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 91, 154, 0.12);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #005b9a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #005b9a, #74c2e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 91, 154, 0.1);
}

.stat-label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* Nos Réalisations Section */
.realisations {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.realisations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 91, 154, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(116, 194, 225, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.realisations .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.realisations .section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.realisations .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.realisations .section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.realisation-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 91, 154, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.realisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 91, 154, 0.15);
}

.realisation-card .video-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.realisation-card .video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.realisation-card .video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realisation-card .video-placeholder:hover::before {
    opacity: 1;
}

.realisation-card .video-placeholder:hover {
    transform: scale(1.05);
}

.realisation-card .video-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.realisation-card .video-placeholder:hover i {
    transform: scale(1.2);
}

.realisation-card .video-placeholder h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.realisation-card .video-placeholder p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.realisation-info {
    padding: 2rem;
}

.realisation-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.realisation-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.1), rgba(116, 194, 225, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 91, 154, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
}

.realisations-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 91, 154, 0.1);
    position: relative;
    z-index: 1;
}

.realisations-cta h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.realisations-cta p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.realisations-cta .cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.realisations-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 91, 154, 0.3);
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
    background: #003d66;  /* Same as CTA section */
    margin-top: 1px; /* Prevent gap between sections */
    color: var(--light-text);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 91, 154, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(116, 194, 225, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h3,
.info-item p {
    color: #1a1a1a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: linear-gradient(165deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--light-text);
    padding: 6rem 1rem 2rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 91, 154, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(116, 194, 225, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 91, 154, 0.05) 0%, transparent 100%);
    pointer-events: none;
    animation: footerGlow 8s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    opacity: 0;
    transform: translateY(30px);
    animation: footerFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
}

.footer-section::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: all 0.4s ease;
}

.footer-section:hover::after {
    width: 100%;
    opacity: 1;
}

.footer-section:nth-child(1) { animation-delay: 0.3s; }
.footer-section:nth-child(2) { animation-delay: 0.5s; }
.footer-section:nth-child(3) { animation-delay: 0.7s; }

@keyframes footerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section h3 {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-section h3::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%
    );
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section:hover h3::before {
    transform: scaleX(1);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 1.2rem;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 0;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.footer-section ul li:hover {
    transform: translateX(15px);
    padding-left: 20px;
}

.footer-section ul li:hover::before {
    opacity: 1;
    left: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    font-size: 1.1rem;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        var(--secondary-color) 0%, 
        var(--primary-color) 100%
    );
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(116, 194, 225, 0.3);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-links a::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 11px;
    transition: all 0.4s ease;
}

.social-links a i {
    font-size: 1.4rem;
    color: var(--light-text);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(0, 91, 154, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover::after {
    background: transparent;
}

.social-links a:hover i {
    transform: scale(1.2);
    color: var(--light-text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%
    );
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-bottom p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary-color) 50%, 
        transparent 100%
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.footer-bottom:hover p::after {
    transform: scaleX(1);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 4rem 1rem 1.5rem;
        clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 100%);
    }

    .footer-content {
        gap: 3rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section h3::before {
        left: 50%;
        transform: translateX(-50%) scaleX(0.3);
    }

    .social-links {
        justify-content: center;
    }

    .footer-section ul li {
        padding-left: 0 !important;
        transform: none !important;
    }

    .footer-section ul li::before {
        display: none;
    }

    .footer-section a:hover {
        transform: none;
    }

    .footer-bottom::before {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 1rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
    }

    .social-links a i {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .realisations-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .realisations .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--nav-background);
        flex-direction: column;
        padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 20px rgba(0, 91, 154, 0.08);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.3s; }

    .nav-item a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 91, 154, 0.08);
    }

    .nav-item a::after {
        display: none;
    }

    .nav-item.active a {
        color: var(--nav-active-color);
        font-weight: 600;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        display: none;
        border-left: 2px solid var(--nav-active-color);
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.75rem 1rem 0.75rem 2rem;
    }

    .dropdown-menu li a:hover {
        padding-left: 2.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-card {
        padding: 2rem;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-controls {
        bottom: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 1rem;
    }
    
    .realisations {
        padding: 4rem 0;
    }
    
    .realisations .section-header h2 {
        font-size: 2rem;
    }
    
    .realisations .section-header p {
        font-size: 1rem;
    }
    
    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .realisation-card .video-container {
        height: 200px;
    }
    
    .realisation-info {
        padding: 1.5rem;
    }
    
    .realisations-cta {
        padding: 2rem;
    }
    
    .realisations-cta h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    .about {
        padding: 6rem 0;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-card {
        padding: 2rem;
    }
    
    .realisations {
        padding: 3rem 0;
    }
    
    .realisations .section-header h2 {
        font-size: 1.8rem;
    }
    
    .realisations-grid {
        gap: 1.5rem;
    }
    
    .realisation-card .video-container {
        height: 180px;
    }
    
    .realisation-card .video-placeholder i {
        font-size: 2.5rem;
    }
    
    .realisation-card .video-placeholder h4 {
        font-size: 1.1rem;
    }
    
    .realisation-info {
        padding: 1.25rem;
    }
    
    .realisation-info h3 {
        font-size: 1.2rem;
    }
    
    .tech-stack {
        gap: 0.4rem;
    }
    
    .tech-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .realisations-cta {
        padding: 1.5rem;
    }
    
    .realisations-cta h3 {
        font-size: 1.3rem;
    }
    
    .realisations-cta p {
        font-size: 1rem;
    }
    
    .realisations-cta .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* CTA Button Styles */
.cta-button {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #005b9a, #74c2e1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 91, 154, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 154, 0.3);
    background: linear-gradient(135deg, #005b9a, #5ab3d8);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 91, 154, 0.2);
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-ripple:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Button Variants */
.cta-button.primary {
    background: linear-gradient(135deg, #005b9a, #74c2e1);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #005b9a;
    color: #005b9a;
}

.cta-button.secondary:hover {
    background: rgba(0, 91, 154, 0.1);
    color: #005b9a;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Ensure all sections after hero have proper z-index */
section:not(.hero) {
    position: relative;
    z-index: 2;
    background: var(--background-light);
}

/* CTA Section */
.cta-section {
    background: #003d66;  /* More vibrant blue background */
    padding: 5rem 0;
    text-align: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 91, 154, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(116, 194, 225, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background: white;
    color: #003d66;  /* Matching the new background color */
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Large Screen Styles for About Content */
@media (min-width: 1200px) {
    .about-content-grid {
        max-width: 1400px;
        margin: 0 auto;
        gap: 3rem;
    }
    
    .about-card {
        padding: 1.5rem;
        max-width: 400px;
    }
    
    .about-card h3 {
        font-size: 1.2rem;
    }
    
    .about-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .about-card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .about-card-icon i {
        font-size: 1.3rem;
    }
    
    .about-stats {
        max-width: 1200px;
        margin: 0 auto;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .stat-item {
        padding: 1.25rem;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto 4rem;
    }
}

@media (min-width: 1600px) {
    .about-content-grid {
        max-width: 1600px;
        gap: 4rem;
    }
    
    .about-card {
        padding: 1.75rem;
        max-width: 450px;
    }
    
    .about-stats {
        max-width: 1400px;
        gap: 2rem;
    }
    
    .stat-item {
        padding: 1.5rem;
        max-width: 280px;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
    
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
    }
} 