/* ===== CSS Variables ===== */
:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --hero-bg: oklch(21.36% .0322 262.44);
    --button-blue: #2a4a6a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Performance Optimizations ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Enhanced scrolling performance */
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    /* Smooth momentum scrolling */
    scroll-behavior: smooth;
    /* Reduce scroll latency */
    overscroll-behavior: none;
}

/* Optimize animations for better performance */
.service-card,
.feature-item,
.join-btn,
.view-all-btn,
.view-more-btn {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize canvas animations */
canvas {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== Hero Section Font Consistency ===== */
.hero-content h1,
.hero-title .highlight,
.hero-description,
.btn-primary,
.btn-secondary,
.cta-button,
.nav-link,
.logo-text,
.form-group label,
.form-group input,
.form-group select,
.form-group textarea,
.submit-btn,
.modal-header h3 {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.hero-content h1 {
    font-weight: 700;
}

.hero-title .highlight {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
}

.logo-text {
    font-weight: 700;
}

.form-group label {
    font-weight: 600;
}

.modal-header h3 {
    font-weight: 700;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--hero-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--hero-bg);
    backdrop-filter: blur(15px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ===== Logo ===== */
.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.nav-logo a:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.nav-logo a:hover .logo-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(360deg);
}

.logo-icon i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text span {
    color: var(--accent-color);
    font-weight: 900;
}

/* ===== Navigation Menu ===== */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-weight: 600;
}

/* ===== CTA Button ===== */
.nav-cta {
    margin-right: 20px;
}

.cta-button {
    background: var(--button-blue);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cta-button i {
    transition: var(--transition);
}

.cta-button:hover i {
    transform: translateX(-3px);
}

/* ===== Mobile Menu Toggle ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Progress Bars ===== */
.progress-bar-left,
.progress-bar-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 150px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(42, 82, 152, 0.3) 20%, 
        rgba(52, 152, 219, 0.8) 50%, 
        rgba(42, 82, 152, 0.3) 80%, 
        transparent 100%
    );
    border-radius: 2px;
    z-index: 1000;
    overflow: hidden;
}

.progress-bar-left {
    right: 20px;
    animation: progressFlowLeft 3s ease-in-out infinite;
}

.progress-bar-right {
    left: 20px;
    animation: progressFlowRight 3s ease-in-out infinite;
}

.progress-bar-left::before,
.progress-bar-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        transparent 100%
    );
    border-radius: 2px;
    animation: lightFlow 2s linear infinite;
}

.progress-bar-left::after,
.progress-bar-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
        rgba(52, 152, 219, 0.6) 0%,
        transparent 70%
    );
    border-radius: 2px;
    animation: glowPulse 1.5s ease-in-out infinite alternate;
}

@keyframes progressFlowLeft {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.5));
        transform: translateY(-50%) scaleY(0.8);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.8));
        transform: translateY(-50%) scaleY(1);
    }
}

/* Mobile performance: disable heavy effects on small screens */
@media (max-width: 767px) {
    .navbar {
        backdrop-filter: none !important;
        background: rgba(30,60,114,0.9) !important;
        box-shadow: none !important;
    }

    .progress-bar-left,
    .progress-bar-right {
        display: none !important;
    }

    canvas {
        display: none !important;
    }

    /* Reduce heavy shadows */
    * {
        box-shadow: none !important;
        filter: none !important;
    }
}

/* ===== Projects Page Styles ===== */
.projects {
    padding: 80px 20px 120px;
    background: linear-gradient(180deg, rgba(250,250,250,1) 0%, rgba(245,247,250,1) 100%);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 28px;
}

.projects-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.projects-subtitle {
    color: rgba(44,62,80,0.7);
    font-size: 0.98rem;
}

.projects-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 22px 0 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(44,62,80,0.08);
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-title {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.project-desc {
    color: rgba(44,62,80,0.75);
    font-size: 0.95rem;
    flex: 1;
}

.project-actions {
    display: flex;
    gap: 8px;
}

.project-btn {
    background: var(--button-blue);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.project-btn.outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(44,62,80,0.08);
}

.projects-footer {
    margin-top: 28px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 60px 12px 90px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .project-image img {
        height: 180px;
    }
}


@keyframes progressFlowRight {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.5));
        transform: translateY(-50%) scaleY(0.8);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.8));
        transform: translateY(-50%) scaleY(1);
    }
}

@keyframes lightFlow {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
        filter: blur(2px);
    }
    100% {
        opacity: 0.8;
        filter: blur(0px);
    }
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: var(--hero-bg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.grid-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38%;
    background: url('../img/hero-background-grid.png') no-repeat center center / cover;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(42, 82, 152, 0.6));
    animation: gridFlowGlow 4s linear infinite;
    z-index: 2;
    mask-image: url('../img/hero-background-grid-mask.png'), linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: url('../img/hero-background-grid-mask.png'), linear-gradient(to bottom, black 60%, transparent 100%);
    mask-size: 80% auto, 80% 80%;
    -webkit-mask-size: 100% auto, 100% 100%;
    mask-position: center top, center;
    -webkit-mask-position: center top, center;
    mask-repeat: no-repeat, no-repeat;
    -webkit-mask-repeat: no-repeat, no-repeat;
}

.grid-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 38%;
    background: url('../img/hero-background-grid.png') no-repeat center center / cover;
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(42, 82, 152, 0.9)) brightness(1.3) contrast(1.2);
    animation: gridFlowGlow 4s linear infinite reverse;
    z-index: 2;
    mask-image: url('../img/hero-background-grid-mask.png'), linear-gradient(to top, black 70%, transparent 100%);
    -webkit-mask-image: url('../img/hero-background-grid-mask.png'), linear-gradient(to top, black 70%, transparent 100%);
    mask-size: 100% auto, 100% 100%;
    -webkit-mask-size: 100% auto, 100% 100%;
    mask-position: center top, center;
    -webkit-mask-position: center top, center;
    mask-repeat: no-repeat, no-repeat;
    -webkit-mask-repeat: no-repeat, no-repeat;
    transform: scaleY(-1);
}

@keyframes gridFlowGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(42, 82, 152, 0.5)) 
                drop-shadow(40px 0 15px rgba(42, 82, 152, 0.8))
                drop-shadow(80px 0 8px rgba(42, 82, 152, 0.5))
                drop-shadow(120px 0 0px rgba(42, 82, 152, 0))
                brightness(1.3) contrast(1.2);
    }
    25% {
        filter: drop-shadow(0 0 0px rgba(42, 82, 152, 0)) 
                drop-shadow(40px 0 8px rgba(42, 82, 152, 0.5))
                drop-shadow(80px 0 15px rgba(42, 82, 152, 0.8))
                drop-shadow(120px 0 8px rgba(42, 82, 152, 0.5))
                brightness(1.3) contrast(1.2);
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(42, 82, 152, 0.5)) 
                drop-shadow(40px 0 15px rgba(42, 82, 152, 0.8))
                drop-shadow(80px 0 8px rgba(42, 82, 152, 0.5))
                drop-shadow(120px 0 0px rgba(42, 82, 152, 0))
                brightness(1.3) contrast(1.2);
    }
    75% {
        filter: drop-shadow(0 0 0px rgba(42, 82, 152, 0)) 
                drop-shadow(40px 0 8px rgba(42, 82, 152, 0.5))
                drop-shadow(80px 0 15px rgba(42, 82, 152, 0.8))
                drop-shadow(120px 0 8px rgba(42, 82, 152, 0.5))
                brightness(1.3) contrast(1.2);
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(42, 82, 152, 0.5)) 
                drop-shadow(40px 0 15px rgba(42, 82, 152, 0.8))
                drop-shadow(80px 0 8px rgba(42, 82, 152, 0.5))
                drop-shadow(120px 0 0px rgba(42, 82, 152, 0))
                brightness(1.3) contrast(1.2);
    }
}

@keyframes gridGlowFlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(42, 82, 152, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(42, 82, 152, 0.8));
    }
}

@keyframes gridPulseTop {
    0%, 100% {
        opacity: 0.2;
        filter: brightness(1) drop-shadow(0 0 0px rgba(42, 82, 152, 0));
        transform: scale(1);
    }
    25% {
        opacity: 0.4;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(42, 82, 152, 0.5));
        transform: scale(1.02);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.5) drop-shadow(0 0 30px rgba(42, 82, 152, 0.8));
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(42, 82, 152, 0.4);
    }
    75% {
        opacity: 0.4;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(42, 82, 152, 0.5));
        transform: scale(1.02);
    }
}

@keyframes gridPulseBottom {
    0%, 100% {
        opacity: 0.2;
        filter: brightness(1) drop-shadow(0 0 0px rgba(42, 82, 152, 0));
        transform: scaleY(-1) scale(1);
    }
    25% {
        opacity: 0.4;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(42, 82, 152, 0.5));
        transform: scaleY(-1) scale(1.02);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.5) drop-shadow(0 0 30px rgba(42, 82, 152, 0.8));
        transform: scaleY(-1) scale(1.05);
        box-shadow: 0 0 50px rgba(42, 82, 152, 0.4);
    }
    75% {
        opacity: 0.4;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(42, 82, 152, 0.5));
        transform: scaleY(-1) scale(1.02);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: -40px;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #ffffff;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.hero-title .highlight {
    color: var(--accent-color);
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 1.8rem;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.8;
    margin-top: 8px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary i, .btn-secondary i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--button-blue);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    filter: drop-shadow(0 0 15px rgba(42, 74, 106, 0.4));
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: drop-shadow(0 0 25px rgba(42, 74, 106, 0.6));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ffffff;
    filter: drop-shadow(0 0 10px rgba(42, 82, 152, 0.4));
    transition: var(--transition);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 20px rgba(42, 82, 152, 0.7));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ===== Scroll Down Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.scroll-wheel {
    width: 6px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

.scroll-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scroll-arrows i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    animation: scrollArrow 1.5s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-arrows i:nth-child(2) {
    animation-delay: 0.3s;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator:hover .scroll-mouse {
    border-color: var(--accent-color);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(52, 152, 219, 0.6),
                inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.scroll-indicator:hover .scroll-wheel {
    box-shadow: 0 0 15px rgba(52, 152, 219, 1);
}

.scroll-indicator:hover .scroll-text span {
    color: var(--accent-color);
}

.scroll-indicator:hover .scroll-arrows i {
    color: var(--accent-color);
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.8;
    }
    100% {
        top: 8px;
        opacity: 1;
    }
}

@keyframes scrollArrow {
    0% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(3px);
        opacity: 1;
    }
    100% {
        transform: translateY(6px);
        opacity: 0.4;
    }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Animated Section Divider ===== */
.section-divider {
    position: relative;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(30, 60, 114, 0.1) 10%, 
        rgba(30, 60, 114, 0.1) 90%, 
        transparent 100%
    );
    overflow: hidden;
    margin: -2px 0;
}

.divider-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00BED7 20%, 
        #C853EF 50%, 
        #00BED7 80%, 
        transparent 100%
    );
    animation: dividerMove 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 190, 215, 0.8),
                0 0 40px rgba(200, 83, 239, 0.6);
}

.divider-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 190, 215, 0.3) 20%, 
        rgba(200, 83, 239, 0.3) 50%, 
        rgba(0, 190, 215, 0.3) 80%, 
        transparent 100%
    );
    animation: dividerMove 6s ease-in-out infinite 0.5s;
    filter: blur(8px);
}

@keyframes dividerMove {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 60, 114, 0.1) 50%, transparent 100%);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#servicesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.services-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
    animation: spanishSweepLeft 3s ease-in-out infinite;
    z-index: -1;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes spanishSweepLeft {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 0;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes lineGlow {
    0% {
        box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
        transform: translateX(50%) scaleX(0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 1);
        transform: translateX(50%) scaleX(1.2);
    }
}

.services-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: url('../img/advantages-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 60, 114, 0.3);
}


.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
    border-radius: 50%;
    animation: iconPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.animated-icon {
    font-size: 2.8rem;
    color: #3498db;
    position: relative;
    z-index: 2;
    animation: iconFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.service-card:nth-child(even) .animated-icon {
    animation-delay: 1s;
}

.service-card:nth-child(3n) .animated-icon {
    animation-delay: 2s;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(5px) rotate(-2deg);
    }
}

.service-card:hover .icon-bg {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.15) 0%, rgba(52, 152, 219, 0.15) 100%);
    transform: scale(1.05);
}

.service-card:hover .animated-icon {
    animation: iconSpin 0.6s ease-in-out;
    color: #2a5298;
    transform: scale(1.05);
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1.1);
    }
}

.service-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-title {
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.service-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-shadow: none;
}

.service-card:hover .service-description {
    color: #868e96;
    text-shadow: none;
}

.service-number {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    z-index: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.service-card:hover .service-number {
    color: #ffffff;
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: 120px 0;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 60, 114, 0.1) 50%, transparent 100%);
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.portfolio-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#portfolioCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 80px;
}

.portfolio-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.portfolio-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
    animation: spanishSweepLeft 3s ease-in-out infinite;
    z-index: -1;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 3px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.7;
}

/* ===== Triangle Slider ===== */
.triangle-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1500px;
}

.slider-wrapper {
    position: relative;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.triangle-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.triangle-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0);
}

.triangle-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: url('../img/advantages-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
                0 0 100px rgba(52, 152, 219, 0.2);
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    animation: triangleFloat 6s ease-in-out infinite;
}

@keyframes triangleFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

.triangle-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 70%
    );
    animation: triangleShine 8s linear infinite;
    pointer-events: none;
}

@keyframes triangleShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.project-image {
    flex: 1;
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    aspect-ratio: 16/9;
}

.project-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border-radius: 25px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.project-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.2) 0%, 
        transparent 40%, 
        rgba(52, 152, 219, 0.2) 100%
    );
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.project-image:hover .image-overlay {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.1) 0%, 
        transparent 50%, 
        rgba(52, 152, 219, 0.1) 100%
    );
}

.project-info {
    flex: 1;
    text-align: right;
    z-index: 2;
    position: relative;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 4px 30px rgba(52, 152, 219, 0.8);
    }
}

.project-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: flex-end;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: tagPulse 4s ease-in-out infinite;
}

.tag:nth-child(2) {
    animation-delay: 1s;
}

.tag:nth-child(3) {
    animation-delay: 2s;
}

@keyframes tagPulse {
    0%, 100% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.15);
    }
    50% {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.25);
    }
}

.tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-width: 200px;
    justify-content: center;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.project-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.project-btn:hover::before {
    width: 100%;
}

.project-btn:hover::after {
    width: 100%;
    height: 100%;
}

.project-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.project-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.project-btn i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
}

.project-btn span {
    position: relative;
    z-index: 2;
}

.project-btn:hover i {
    transform: translateX(-8px) rotate(-5deg);
}

/* Professional glow effect */
.project-btn {
    animation: btnGlow 3s ease-in-out infinite alternate;
}

@keyframes btnGlow {
    0% {
        box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4),
                    0 0 20px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4),
                    0 0 30px rgba(52, 152, 219, 0.4);
    }
}

/* ===== Slider Controls ===== */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: auto;
    z-index: 10;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(52, 152, 219, 0.8) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.control-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9) 0%, 
        rgba(30, 60, 114, 0.8) 100%
    );
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.control-btn:active {
    transform: scale(0.98);
}

/* ===== Slider Indicators ===== */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 50px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    transition: width 0.4s ease;
}

.indicator.active::before,
.indicator:hover::before {
    width: 100%;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.5);
    transform: scaleX(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scaleX(1.1);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .triangle-content {
        flex-direction: column;
        gap: 40px;
        padding: 40px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }
    
    .project-image {
        width: 100%;
        transform: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        aspect-ratio: 16/9;
    }
    
    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .project-image:hover {
        transform: scale(1.01);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        border-radius: 18px;
    }
    
    .project-info {
        text-align: center;
        width: 100%;
    }
    
    .project-tags {
        justify-content: center;
    }
    
    .project-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio {
        padding: 80px 0;
    }
    
    .portfolio-title {
        font-size: 2.2rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }
    
    .triangle-content {
        padding: 30px 20px;
        gap: 30px;
        clip-path: polygon(0 0, 100% 0, 100% 98%, 50% 100%, 0 98%);
    }
    
    .project-image {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        aspect-ratio: 16/9;
    }
    
    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: all 0.6s ease;
    }
    
    .project-image:hover img {
        transform: scale(1.03);
        filter: brightness(1.02) contrast(1.05);
    }
    
    .project-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .project-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .project-tags {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .project-btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 0 auto;
        min-width: 160px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .indicator {
        width: 40px;
        height: 5px;
    }
}

@media (max-width: 480px) {
    .triangle-content {
        padding: 25px 15px;
        gap: 25px;
        clip-path: polygon(0 0, 100% 0, 100% 99%, 50% 100%, 0 99%);
    }
    
    .project-image {
        width: 100%;
        border-radius: 10px;
        aspect-ratio: 16/9;
    }
    
    .project-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .project-description {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .project-tags {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .project-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .slider-controls {
        padding: 0 5px;
    }
    
    .slider-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 35px;
        height: 4px;
    }
}

/* ===== Project Implementation Phases Section ===== */
.project-phases {
    padding: 120px 0;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.project-phases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 60, 114, 0.1) 50%, transparent 100%);
}

.phases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.phases-header {
    text-align: center;
    margin-bottom: 60px;
}

.phases-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.phases-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
    animation: spanishSweepLeft 3s ease-in-out infinite;
    z-index: -1;
}

.phases-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

.phases-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 35px auto 0;
    line-height: 1.7;
    font-weight: 500;
}

/* ===== Project Phases Slider ===== */
.phases-slider {
    position: relative;
    height: 500px;
    margin-bottom: 50px;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phases-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.phase-card {
    position: absolute;
    width: 90%;
    max-width: 800px;
    height: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(-100px) rotateY(25deg);
    opacity: 0.3;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 25px;
    overflow: hidden;
    background: url('../img/advantages-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.phase-card.active {
    transform: translate(-50%, -50%) translateZ(0) rotateY(0deg);
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

.phase-card.next {
    transform: translate(-50%, -50%) translateZ(-50px) rotateY(15deg) translateX(60px);
    opacity: 0.5;
    z-index: 5;
}

.phase-card.prev {
    transform: translate(-50%, -50%) translateZ(-50px) rotateY(-15deg) translateX(-60px);
    opacity: 0.5;
    z-index: 5;
}

.phase-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 20px;
}

.phase-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phase-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.phase-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.phase-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 500;
}

/* Phases Slider Controls */
.phases-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;
}

.phases-control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(52, 152, 219, 0.8) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.phases-control-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9) 0%, 
        rgba(30, 60, 114, 0.8) 100%
    );
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Phases Indicators */
.phases-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.phases-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.phases-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    transition: width 0.4s ease;
}

.phases-indicator.active::before,
.phases-indicator:hover::before {
    width: 100%;
}

.phases-indicator.active {
    background: rgba(255, 255, 255, 0.5);
    transform: scaleX(1.2);
}

.phases-indicator:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scaleX(1.1);
}

/* Toggle Buttons */
.phase-toggles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.toggle-btn:hover::before {
    width: 100%;
}

.toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border-color: #8B5CF6;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.toggle-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

.toggle-btn:not(.active):hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-color: #3B82F6;
    color: #ffffff;
}

.toggle-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover i {
    transform: scale(1.1);
}

/* Phases Carousel - Stack Design */
.phases-carousel {
    position: relative;
    height: 500px;
    margin-bottom: 50px;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phase-cards-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.phase-card {
    position: absolute;
    width: 90%;
    max-width: 800px;
    height: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(-100px) rotateY(25deg);
    opacity: 0.3;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 25px;
    overflow: hidden;
}

.phase-card.active {
    transform: translate(-50%, -50%) translateZ(0) rotateY(0deg);
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

.phase-card.next {
    transform: translate(-50%, -50%) translateZ(-50px) rotateY(15deg) translateX(60px);
    opacity: 0.5;
    z-index: 5;
}

.phase-card.prev {
    transform: translate(-50%, -50%) translateZ(-50px) rotateY(-15deg) translateX(-60px);
    opacity: 0.5;
    z-index: 5;
}

.phase-card.far-next {
    transform: translate(-50%, -50%) translateZ(-100px) rotateY(25deg) translateX(120px);
    opacity: 0.2;
    z-index: 1;
}

.phase-card.far-prev {
    transform: translate(-50%, -50%) translateZ(-100px) rotateY(-25deg) translateX(-120px);
    opacity: 0.2;
    z-index: 1;
}

.phase-card-content {
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(42, 82, 152, 0.8) 50%, 
        rgba(52, 152, 219, 0.7) 100%
    );
    border-radius: 25px;
    padding: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.phase-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
}

.phase-card-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, 
        rgba(139, 92, 246, 0.1) 0%, 
        transparent 50%
    );
    pointer-events: none;
}

.phase-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.4s ease;
}

.phase-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2) 0%, 
        rgba(52, 152, 219, 0.2) 100%
    );
    border-radius: 18px;
    opacity: 0;
    transition: all 0.4s ease;
}

.phase-card:hover .phase-icon::before {
    opacity: 1;
}

.phase-icon i {
    font-size: 3rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.phase-card:hover .phase-icon {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.phase-card:hover .phase-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

.phase-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.phase-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.phase-card:hover .phase-title {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.phase-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.phase-card:hover .phase-description {
    color: rgba(255, 255, 255, 0.95);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: scale(0.95);
}

.phase-indicators {
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: #8B5CF6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.indicator.active::before {
    width: 20px;
    height: 20px;
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-phases {
        padding: 80px 0;
    }
    
    .phases-title {
        font-size: 2.2rem;
    }
    
    .phases-subtitle {
        font-size: 1rem;
        margin: 25px auto 0;
    }
    
    .phase-toggles {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .toggle-btn {
        width: 250px;
        justify-content: center;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .phases-carousel {
        height: 500px;
        margin-bottom: 40px;
    }
    
    .phase-card-content {
        padding: 30px 25px;
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .phase-icon {
        width: 80px;
        height: 80px;
    }
    
    .phase-icon i {
        font-size: 2rem;
    }
    
    .phase-number {
        font-size: 3rem;
        top: 15px;
        right: 20px;
    }
    
    .phase-title {
        font-size: 1.5rem;
    }
    
    .phase-description {
        font-size: 1rem;
    }
    
    .carousel-controls {
        gap: 20px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .phase-indicators {
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .project-phases {
        padding: 60px 0;
    }
    
    .phases-title {
        font-size: 1.8rem;
    }
    
    .phases-carousel {
        height: 450px;
    }
    
    .phase-card-content {
        padding: 25px 20px;
    }
    
    .phase-icon {
        width: 70px;
        height: 70px;
    }
    
    .phase-icon i {
        font-size: 1.8rem;
    }
    
    .phase-number {
        font-size: 2.5rem;
    }
    
    .phase-title {
        font-size: 1.3rem;
    }
    
    .phase-description {
        font-size: 0.95rem;
    }
    
    .toggle-btn {
        width: 220px;
        font-size: 0.9rem;
    }
}

/* Services Section Responsive */
@media (max-width: 768px) {
    .services {
        padding: 70px 0;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
        margin: 20px auto 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 40px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 50px 0;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
    }
    
    .service-icon i {
        font-size: 1.4rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-description {
        font-size: 0.85rem;
    }
}

/* Responsive Design for Progress Bars */
@media (max-width: 768px) {
    .progress-bar-left,
    .progress-bar-right {
        width: 3px;
        height: 100px;
    }
    
    .progress-bar-left {
        right: 10px;
    }
    
    .progress-bar-right {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .progress-bar-left,
    .progress-bar-right {
        width: 2px;
        height: 80px;
    }
    
    .progress-bar-left {
        right: 5px;
    }
    
    .progress-bar-right {
        left: 5px;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--hero-bg);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        transform: translateX(-100%);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .nav-link {
        padding: 15px 25px;
        display: block;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-cta {
        margin: 20px 0 0 0;
        width: 100%;
    }
    
    .mobile-cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero Section Responsive */
    .hero {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
        padding: 0;
    }
    
    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        animation: gridFlowGlow 4s linear infinite reverse;
    }
    
    .grid-top {
        height: 50%;
        background-size: 200% auto;
        background-position: center top;
        animation: gridFlowGlow 4s linear infinite;
        opacity: 0.6;
    }
    
    .grid-bottom {
        height: 50%;
        background-size: 200% auto;
        background-position: center top;
        animation: gridFlowGlow 4s linear infinite reverse;
        opacity: 0.8;
        filter: drop-shadow(0 0 15px rgba(42, 82, 152, 0.7)) brightness(1.2) contrast(1.1);
    }
    
    .hero-container {
        padding: 0 20px;
        position: relative;
        z-index: 10;
        min-height: calc(100vh - 70px);
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 20px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .hero-title .highlight {
        font-size: 1.6rem;
        margin-top: 8px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1rem;
        justify-content: center;
    }
    
    /* Remove white gaps */
    body {
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }
    
    .hero-image {
        display: none;
    }
    
    /* Scroll Indicator Responsive */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-mouse {
        width: 20px;
        height: 35px;
    }
    
    .scroll-wheel {
        width: 3px;
        height: 6px;
        top: 5px;
    }
    
    .scroll-text span {
        font-size: 0.7rem;
    }
    
    .scroll-arrows i {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-background {
        top: 60px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 10px;
    }
    
    .nav-menu {
        top: 60px;
        padding: 15px;
    }
    
    .hero-container {
        padding: 0 15px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content {
        padding: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .hero-title .highlight {
        font-size: 1.4rem;
        margin-top: 6px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    .hero-buttons {
        gap: 12px;
        padding: 0 15px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 20px;
        font-size: 0.95rem;
        max-width: 250px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    /* Scroll Indicator for smaller mobile */
    .scroll-indicator {
        bottom: 15px;
        gap: 8px;
    }
    
    .scroll-mouse {
        width: 18px;
        height: 30px;
    }
    
    .scroll-wheel {
        width: 2px;
        height: 5px;
        top: 4px;
    }
    
    .scroll-text span {
        font-size: 0.65rem;
    }
    
    .scroll-arrows i {
        font-size: 0.5rem;
    }
}

/* ===== About Us Section ===== */
.about {
    padding: 120px 0;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 60, 114, 0.1) 50%, transparent 100%);
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#aboutCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

.about-logo {
    flex: 0 0 350px;
    text-align: center;
    position: relative;
}

.logo-monogram {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.monogram-text {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #64b5f6;
    text-shadow: 0 0 30px rgba(100, 181, 246, 0.8),
                 0 0 60px rgba(100, 181, 246, 0.4),
                 0 4px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: relative;
    animation: monogramGlow 3s ease-in-out infinite alternate;
}

.monogram-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, rgba(100, 181, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: monogramPulse 2s ease-in-out infinite;
}

@keyframes monogramGlow {
    0% {
        text-shadow: 0 0 30px rgba(100, 181, 246, 0.8),
                     0 0 60px rgba(100, 181, 246, 0.4),
                     0 4px 8px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 40px rgba(100, 181, 246, 1),
                     0 0 80px rgba(100, 181, 246, 0.6),
                     0 4px 12px rgba(0, 0, 0, 0.4);
        transform: scale(1.05);
    }
}

@keyframes monogramPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.click-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 4.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.8),
                 0 0 50px rgba(100, 181, 246, 0.6),
                 0 3px 6px rgba(0, 0, 0, 0.4),
                 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 0.8;
    letter-spacing: -2px;
    position: relative;
    animation: clickShimmer 4s ease-in-out infinite;
    background: linear-gradient(45deg, #ffffff 0%, #64b5f6 25%, #ffffff 50%, #64b5f6 75%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.solutions-text {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 8px;
    text-transform: uppercase;
    position: relative;
}

.solutions-text::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -40px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    transform: translateY(-50%);
}

.solutions-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 100%);
    transform: translateY(-50%);
}

@keyframes clickShimmer {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(100, 181, 246, 0.8));
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    animation: titleLineGlow 2s ease-in-out infinite alternate;
}

@keyframes titleLineGlow {
    0% {
        box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
        transform: scaleX(0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 1);
        transform: scaleX(1.2);
    }
}

.about-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-right: 20px;
}

.about-description::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color) 0%, transparent 100%);
    border-radius: 2px;
    opacity: 0.6;
}

/* About Us Responsive Design */
@media (max-width: 968px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .about-logo {
        flex: 0 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .about-description::before {
        display: none;
    }
    
    .click-text {
        font-size: 3.5rem;
    }
    
    .solutions-text {
        font-size: 1.8rem;
    }
    
    .monogram-text {
        font-size: 2.8rem;
    }
}

@media (max-width: 640px) {
    .about {
        padding: 80px 0;
    }
    
    .click-text {
        font-size: 2.8rem;
    }
    
    .solutions-text {
        font-size: 1.4rem;
        letter-spacing: 4px;
    }
    
    .monogram-text {
        font-size: 2.2rem;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-description {
        font-size: 1.1rem;
    }
    
    .solutions-text::before,
    .solutions-text::after {
        width: 20px;
    }
    
    .solutions-text::before {
        right: -25px;
    }
    
    .solutions-text::after {
        left: -25px;
    }
}

/* ===== CEO Message Section ===== */
.ceo-message-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 80px;
}

.ceo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.ceo-image-wrapper {
    position: relative;
    display: inline-block;
}

.ceo-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.ceo-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.ceo-message-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    position: relative;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.ceo-message-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    animation: ceoTitleLineGlow 2s ease-in-out infinite alternate;
}

@keyframes ceoTitleLineGlow {
    0% {
        box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
        transform: translateX(-50%) scaleX(0.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(52, 152, 219, 1);
        transform: translateX(-50%) scaleX(1.2);
    }
}

.ceo-message-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ceo-message-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* CEO Message Responsive Design */
@media (max-width: 968px) {
    .ceo-header {
        gap: 25px;
    }
    
    .ceo-message-title {
        font-size: 2.2rem;
    }
    
    .ceo-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 640px) {
    .ceo-message-section {
        gap: 30px;
        margin-top: 60px;
    }
    
    .ceo-header {
        gap: 20px;
    }
    
    .ceo-message-title {
        font-size: 2rem;
    }
    
    .ceo-image {
        width: 160px;
        height: 160px;
    }
    
    .ceo-message-content p {
        font-size: 1.1rem;
    }
}

/* ===== Status Bar Section ===== */
.status-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0, 190, 215, 0.1) 0%, 
        rgba(200, 83, 239, 0.1) 50%, 
        rgba(0, 190, 215, 0.1) 100%
    );
    animation: statusGlow 4s ease-in-out infinite;
}

@keyframes statusGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.status-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 1;
}

.status-item {
    text-align: center;
    flex: 1;
    padding: 0 20px;
    position: relative;
}

.status-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
}

.status-item:last-child::after {
    display: none;
}

.status-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00BED7;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 190, 215, 0.5);
    font-family: 'Cairo', sans-serif;
    line-height: 1;
}

.status-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Status Bar Responsive Design */
@media (max-width: 768px) {
    .status-bar {
        padding: 40px 0;
    }
    
    .status-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .status-item {
        padding: 0;
        width: 100%;
    }
    
    .status-item::after {
        display: none;
    }
    
    .status-number {
        font-size: 2.8rem;
    }
    
    .status-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .status-number {
        font-size: 2.5rem;
    }
    
    .status-label {
        font-size: 0.95rem;
    }
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

/* ===== Services Hero (Professional header) ===== */
.services-hero {
    margin: 30px 0 24px;
}
.services-hero-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Centered hero variant (like the attached image) */
.services-hero--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    text-align: center;
}
.services-hero--centered .services-hero-content {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    justify-items: center;
    text-align: center;
}
.services-hero--centered .hero-text {
    max-width: 900px;
}
.services-hero--centered .services-hero-title {
    font-size: 2.6rem;
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.services-hero--centered .services-hero-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 820px;
    margin: 0 auto;
}
.services-hero--centered .hero-visual { display: none; }

@media (max-width: 900px) {
    .services-hero--centered { padding: 36px 20px; min-height: auto; }
    .services-hero--centered .services-hero-title { font-size: 1.6rem; }
}

/* Refined centered hero to match sample image */
.services-hero--centered {
    background: linear-gradient(180deg, #071024 0%, #071726 100%);
    padding: 56px 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.services-hero--centered .section-label {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    padding: 6px 14px;
    border-radius: 6px;
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px rgba(2,8,20,0.45) inset;
}
.services-hero--centered .services-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 6px 0 14px;
}
.services-hero-description {
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
}
.services-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}
.services-features ul li {
    position: relative;
    padding-right: 40px;
    color: rgba(255,255,255,0.9);
    margin: 10px 0;
    font-size: 0.98rem;
}
.services-features ul li::after {
    content: '\2713';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.1rem;
}
.services-hero-cta { display:flex; gap:14px; justify-content:center; margin-top:8px; }
.services-hero-cta .btn-primary{
    background: linear-gradient(135deg, #1b4b7a 0%, #2a87c8 100%);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15,30,60,0.5);
}
.services-hero-cta .btn-secondary{
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    padding: 12px 20px;
    border-radius: 10px;
}

/* Decorative faint particles lines similar to sample (subtle) */
.services-hero--centered::before {
    content: '';
    position: absolute;
    left: -10%;
    top: 10%;
    width: 120%;
    height: 120%;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    pointer-events: none;
}

@media (max-width:700px){
    .services-hero--centered .services-hero-title{font-size:1.5rem}
    .services-hero--centered{padding:28px 14px}
}
.services-hero-title {
    font-size: 1.9rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 12px;
}
.services-hero-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.87);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 720px;
}
.services-hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: grid;
    gap: 8px;
}
.services-hero-list li {
    position: relative;
    padding-right: 28px;
    color: rgba(255,255,255,0.9);
}
.services-hero-list li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-weight: 700;
}
.services-hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.services-hero .btn-primary {
    padding: 12px 20px;
    border-radius: 10px;
}
.services-hero .btn-secondary {
    padding: 12px 18px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.95);
    border-radius: 10px;
}
.hero-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2,6,23,0.5);
    display: block;
}

@media (max-width: 900px) {
    .services-hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 60, 114, 0.1) 50%, transparent 100%);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#testimonialsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.testimonials-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
    animation: spanishSweepRight 3s ease-in-out infinite;
    z-index: -1;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes spanishSweepRight {
    0% {
        right: -100%;
        opacity: 0;
    }
    50% {
        right: 0;
        opacity: 1;
    }
    100% {
        right: 100%;
        opacity: 0;
    }
}

.testimonials-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.6;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 32px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    position: relative;
}

.testimonial-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.testimonial-audio {
    position: relative;
}

/* Hide empty placeholder audio blocks after removal */
.testimonial-audio.placeholder {
    display: none;
}

.audio-player {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.28);
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

.audio-play-btn.playing {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.audio-waveform {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    gap: 3px;
    margin-bottom: 20px;
}

.wave-bar {
    width: 3px;
    background: linear-gradient(to top, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
    animation: waveAnimation 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 28px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 32px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 22px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 38px; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 26px; animation-delay: 0.8s; }
.wave-bar:nth-child(10) { height: 34px; animation-delay: 0.9s; }
.wave-bar:nth-child(11) { height: 24px; animation-delay: 1s; }
.wave-bar:nth-child(12) { height: 36px; animation-delay: 1.1s; }
.wave-bar:nth-child(13) { height: 23px; animation-delay: 1.2s; }
.wave-bar:nth-child(14) { height: 33px; animation-delay: 1.3s; }
.wave-bar:nth-child(15) { height: 27px; animation-delay: 1.4s; }
.wave-bar:nth-child(16) { height: 37px; animation-delay: 1.5s; }
.wave-bar:nth-child(17) { height: 21px; animation-delay: 1.6s; }
.wave-bar:nth-child(18) { height: 31px; animation-delay: 1.7s; }
.wave-bar:nth-child(19) { height: 29px; animation-delay: 1.8s; }
.wave-bar:nth-child(20) { height: 35px; animation-delay: 1.9s; }

@keyframes waveAnimation {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.audio-waveform.playing .wave-bar {
    animation-duration: 0.8s;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.5);
}

.audio-progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.5);
}

.volume-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.testimonial-text {
    position: relative;
}

.testimonial-quote {
    position: relative;
    margin-bottom: 30px;
}

.testimonial-quote i {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2.2rem;
    color: var(--accent-color);
    opacity: 0.18;
}

.testimonial-message {
    font-size: 1.06rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    position: relative;
    padding-right: 18px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    top: -4px;
    right: -4px;
    left: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

@keyframes avatarGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.author-position {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.author-rating {
    display: flex;
    gap: 5px;
}

.author-rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.testimonials-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonials-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonial-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicator.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

.testimonial-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonial-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-message {
        font-size: 1.1rem;
        padding-right: 0;
    }
    
    .testimonial-quote i {
        position: static;
        margin-bottom: 15px;
        display: block;
        text-align: center;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .author-position {
        font-size: 0.9rem;
    }
    
    .testimonials-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 40px 0;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        padding: 25px 15px;
    }
    
    .audio-player {
        padding: 20px 15px;
    }
    
    .audio-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .testimonial-message {
        font-size: 1rem;
    }
    
    .testimonials-controls {
        margin-top: 30px;
    }
    
    .testimonials-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 60, 114, 0.1) 50%, transparent 100%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#contactCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.contact-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
    animation: spanishSweepLeft 3s ease-in-out infinite;
    z-index: -1;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== Contact Information ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.office-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.office-info:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.office-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.office-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.office-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.detail-item i {
    width: 20px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* ===== Social Media ===== */
.follow-us {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.follow-us h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.social-link i {
    font-size: 1.2rem;
}

/* ===== Contact Form ===== */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: var(--hero-bg);
    color: #ffffff;
}

.phone-input {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
}

.phone-input select {
    border-radius: 10px 0 0 10px;
}

.phone-input input {
    border-radius: 0 10px 10px 0;
}

.send-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.6));
}

.send-btn i {
    transition: var(--transition);
}

.send-btn:hover i {
    transform: translateX(-3px);
}

/* ===== Contact Section Responsive ===== */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .office-info {
        padding: 25px 20px;
    }
    
    .office-title {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .phone-input {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .phone-input select,
    .phone-input input {
        border-radius: 10px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 40px 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .office-info {
        padding: 20px 15px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .follow-us {
        padding: 20px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 1rem;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--hero-bg);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-nav {
    margin-bottom: 50px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 15px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.footer-logo .logo-img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-logo .logo-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo .logo-text span {
    color: var(--accent-color);
    font-weight: 900;
}

.footer-info {
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    text-align: left;
}

.footer-social h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.footer-social .social-link i {
    font-size: 1rem;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    transition: var(--transition);
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* ===== Footer Responsive ===== */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social .social-links {
        gap: 10px;
    }
    
    .footer-social .social-link {
        width: 35px;
        height: 35px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-logo .logo-text {
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
    }
    
    .footer-social .social-link {
        width: 30px;
        height: 30px;
    }
    
    .footer-social .social-link i {
        font-size: 0.9rem;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== Team Section Styles (Using Services Design) ===== */
.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.skill-badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: var(--transition);
}

.skill-badge:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.join-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(30, 60, 114, 0.1) 100%);
    border: 2px solid var(--accent-color);
}

.join-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(52, 152, 219, 0.4);
}

.join-team-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.join-team-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
}

.join-team-btn i {
    transition: var(--transition);
}

.join-team-btn:hover i {
    transform: translateX(-3px);
}

/* ===== Team View All Button ===== */
.team-view-all {
    text-align: center;
    margin-top: 50px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.services-grid .team-view-all {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
}

.view-all-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.view-all-btn:hover::before {
    width: 100%;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

.view-all-btn i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.view-all-btn:hover i {
    transform: translateX(-3px);
}

/* ===== Portfolio View More Button ===== */
.portfolio-view-more {
    text-align: center;
    margin-top: 50px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.view-more-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.view-more-btn:hover::before {
    width: 100%;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

.view-more-btn i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.view-more-btn:hover i {
    transform: translateX(-3px);
}

/* ===== Join Our Team Section ===== */
.join-team {
    padding: 120px 0;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.join-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 60, 114, 0.1) 50%, transparent 100%);
}

.join-team-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#joinTeamCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.join-team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.join-team-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    text-align: center;
    flex-direction: column;
}

.join-team-icon {
    flex: 0 0 auto;
}

.icon-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(30, 60, 114, 0.2) 100%);
    border-radius: 50%;
    border: 3px solid rgba(52, 152, 219, 0.3);
    transition: var(--transition);
    animation: iconPulse 3s ease-in-out infinite;
}

.icon-wrapper:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}

.icon-wrapper i {
    font-size: 3.5rem;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite alternate;
    z-index: 1;
}

.join-team-text {
    flex: 1;
    text-align: center;
}

.join-team-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.join-team-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
    animation: spanishSweepLeft 3s ease-in-out infinite;
    z-index: -1;
}

.join-team-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

.join-team-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.join-team-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--accent-color);
    min-width: 20px;
}

.feature-item span {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.join-team-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.join-btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.join-btn i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.join-btn.primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.join-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.join-btn.primary:hover::before {
    width: 100%;
}

.join-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

.join-btn.primary:hover i {
    transform: translateX(-3px);
}

.join-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.join-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.join-btn.secondary:hover i {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .join-team-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .join-team-text {
        text-align: center;
    }
    
    .join-team-title {
        font-size: 2.2rem;
    }
    
    .join-team-description {
        font-size: 1.1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .join-team-features {
        justify-content: center;
        gap: 20px;
    }
    
    .join-team-buttons {
        justify-content: center;
    }
    
    .icon-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .icon-wrapper i {
        font-size: 2.8rem;
    }
}
