:root {
    --primary-blue: #3498db;
    --vibrant-blue: #00BFFF;
    --dark-blue: #2980b9;
    --accent-color: #00c6d7;
    --dark-bg: #ffffff;
    --gray-bg: #f5f7fa;
    --light-text: #333333;
    --gray-text: #707070;
    --deep-blue: #2980b9;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --dark-text: #333333;
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--accent-color));
    --shadow-sm: 0 4px 6px rgba(0, 95, 255, 0.1);
    --shadow-md: 0 10px 20px rgba(0, 95, 255, 0.15);
    --shadow-lg: 0 15px 30px rgba(0, 95, 255, 0.2);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom scrollbar */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--gray-bg);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0); /* Start transparent */
}
.nav-container .container {
    padding: 0 30px; /* Ensure consistent side padding */
}

.nav-scrolled {
    background: var(--white); /* Solid white background when scrolled */
    box-shadow: 0 4px 30px rgba(0, 95, 255, 0.1);
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 100%;
    height: 80px; 
    margin-top: 10px;
}

.navbar .nav-link {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-scrolled .nav-link {
    text-shadow: none;
}

.navbar .logo {
    max-height: 50px; 
    width: auto;
    display: block;
    margin-bottom: 0;
    padding: 0;
    background: none; /* Remove gradient if applied */
    
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Ensure CTA button has proper spacing */
.navbar .cta-button {
    margin-left: 30px; /* Consistent spacing from nav items */
}
.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}
@media (max-width: 992px) {
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container .container {
        padding: 0 20px; /* Slightly reduced padding on smaller screens */
    }
    
    .navbar .logo {
        max-height: 35px; /* Slightly smaller on mobile */
    }
}

/* Fix for IE and some browsers */
.navbar > * {
    flex-shrink: 0; /* Prevent items from shrinking */
}

/* Improve alignment of all navbar elements */
.navbar {
    position: relative;
}

/* Ensure vertical centering */
.nav-menu li,
.navbar .logo,
.navbar .cta-button {
    display: flex;
    align-items: center;
}


/* Ensure menu is centered properly */


/* Ensure logo size is appropriate and consistent */
.navbar .logo {
    max-width: 260px; /* Adjust based on your logo's dimensions */
    object-fit: contain;
}
.cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-color));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 95, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 95, 255, 0.5);
}

/* Enhanced 3D Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
    perspective: 1000px;
}

.hero-3d-space {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--primary-blue);
    left: -80px;
    top: 50%;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.35;
    margin-bottom: 30px;
    font-weight: 900;
    color: var(--light-text);
}

.hero-title span {
    display: block;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    color: white;
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 20px rgba(0, 153, 255, 0.2);
}

.hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 153, 255, 0.3);
}

.hero-cta i {
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* Hero Visual Section with 3D Cards */
.hero-visual {
    position: relative;
    z-index: 2;
    perspective: 1500px;
    height: 500px;
    width: 100%;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: var(--transition-medium);
}

.card {
    position: absolute;
    width: 280px;
    height: 350px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 95, 255, 0.2), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.card:nth-child(1) {
    left: 0;
    top: 30px;
    transform: translateZ(150px) rotateY(-10deg);
    z-index: 3;
}

.card:nth-child(2) {
    left: 150px;
    top: 80px;
    transform: translateZ(50px) rotateY(5deg);
    z-index: 2;
}

.card:nth-child(3) {
    left: 80px;
    top: 200px;
    transform: translateZ(-50px) rotateY(-5deg);
    z-index: 1;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--primary-blue);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(0, 198, 215, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 95, 255, 0.15);
    transform: translateZ(30px);
    transition: var(--transition-fast);
}

.card:hover .card-icon {
    transform: translateZ(50px) scale(1.1);
    color: var(--accent-color);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-blue);
    transform: translateZ(20px);
    transition: var(--transition-fast);
}

.card:hover .card-title {
    transform: translateZ(40px);
}

.card-text {
    font-size: 16px;
    color: var(--gray-text);
    text-align: center;
    transform: translateZ(15px);
    transition: var(--transition-fast);
}

.card:hover .card-text {
    transform: translateZ(30px);
}

/* 3D Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1000px;
    pointer-events: none;
    opacity: 0.2;
    z-index: 1;
}

.horizontal-lines, .vertical-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.h-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 95, 255, 0), rgba(0, 95, 255, 0.8), rgba(0, 95, 255, 0));
    transform-origin: center;
}

.h-line:nth-child(1) { top: 20%; animation: horizontalPulse 8s infinite alternate; }
.h-line:nth-child(2) { top: 35%; animation: horizontalPulse 12s infinite alternate-reverse; }
.h-line:nth-child(3) { top: 50%; animation: horizontalPulse 10s infinite alternate; }
.h-line:nth-child(4) { top: 65%; animation: horizontalPulse 9s infinite alternate-reverse; }
.h-line:nth-child(5) { top: 80%; animation: horizontalPulse 11s infinite alternate; }

.v-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 198, 215, 0), rgba(0, 198, 215, 0.8), rgba(0, 198, 215, 0));
    transform-origin: center;
}

.v-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 198, 215, 0), rgba(0, 198, 215, 0.8), rgba(0, 198, 215, 0));
    transform-origin: center;
}

.v-line:nth-child(1) { left: 20%; animation: verticalPulse 10s infinite alternate-reverse; }
.v-line:nth-child(2) { left: 35%; animation: verticalPulse 12s infinite alternate; }
.v-line:nth-child(3) { left: 50%; animation: verticalPulse 8s infinite alternate-reverse; }
.v-line:nth-child(4) { left: 65%; animation: verticalPulse 11s infinite alternate; }
.v-line:nth-child(5) { left: 80%; animation: verticalPulse 9s infinite alternate-reverse; }

@keyframes horizontalPulse {
    0% { transform: translateZ(0); opacity: 0.3; }
    50% { transform: translateZ(100px); opacity: 0.7; }
    100% { transform: translateZ(0); opacity: 0.3; }
}

@keyframes verticalPulse {
    0% { transform: translateZ(0); opacity: 0.3; }
    50% { transform: translateZ(120px); opacity: 0.7; }
    100% { transform: translateZ(0); opacity: 0.3; }
}

/* Floating Orbs 
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 2000px;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 198, 215, 0.5), rgba(0, 95, 255, 0));
    transform-style: preserve-3d;
    box-shadow: 0 0 20px rgba(0, 198, 215, 0.3);
    opacity: 0.5;
}

.orb-1 {
    width: 50px;
    height: 50px;
    top: 25%;
    left: 15%;
    animation: floatOrb 15s infinite ease-in-out;
}

.orb-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 80%;
    animation: floatOrb 18s infinite ease-in-out 2s;
}

.orb-3 {
    width: 30px;
    height: 30px;
    top: 80%;
    left: 30%;
    animation: floatOrb 12s infinite ease-in-out 1s;
}

.orb-4 {
    width: 20px;
    height: 20px;
    top: 40%;
    left: 85%;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-5 {
    width: 40px;
    height: 40px;
    top: 15%;
    left: 70%;
    animation: floatOrb 16s infinite ease-in-out 3s;
}

@keyframes floatOrb {
    0% { transform: translateZ(0) translateX(0) translateY(0); }
    25% { transform: translateZ(120px) translateX(30px) translateY(-20px); }
    50% { transform: translateZ(50px) translateX(-20px) translateY(30px); }
    75% { transform: translateZ(150px) translateX(-30px) translateY(-10px); }
    100% { transform: translateZ(0) translateX(0) translateY(0); }
}
*/
/* Connection Lines */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.connect-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 95, 255, 0), rgba(0, 95, 255, 0.4), rgba(0, 95, 255, 0));
    transform-origin: left center;
    transform-style: preserve-3d;
}

.line1 {
    width: 150px;
    top: 35%;
    left: 20%;
    transform: rotateZ(30deg) rotateY(-15deg) translateZ(50px);
    animation: pulseLine 5s infinite alternate;
}

.line2 {
    width: 200px;
    top: 55%;
    left: 10%;
    transform: rotateZ(-15deg) rotateY(10deg) translateZ(80px);
    animation: pulseLine 7s infinite alternate-reverse;
}

.line3 {
    width: 180px;
    top: 65%;
    left: 25%;
    transform: rotateZ(45deg) rotateY(20deg) translateZ(30px);
    animation: pulseLine 6s infinite alternate;
}

@keyframes pulseLine {
    0% { opacity: 0.2; transform: rotateZ(var(--rotate-z, 30deg)) rotateY(var(--rotate-y, -15deg)) translateZ(50px); }
    100% { opacity: 0.6; transform: rotateZ(var(--rotate-z, 30deg)) rotateY(var(--rotate-y, -15deg)) translateZ(120px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    color: var(--primary-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Solutions Section */
.solutions {
    padding: 150px 0;
    position: relative;
    background-color: var(--light-bg);
}

.solutions-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(0, 153, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.solutions-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.solutions-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
}

.solution-showcase {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Prevent overflow issues */
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(-450px);
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smoother easing */
}

.carousel-item {
    position: absolute;
    width: 350px;
    height: 450px;
    left: 50%;
    top: 50%;
    margin-left: -175px;
    margin-top: -225px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    backface-visibility: hidden; /* Prevent backface flicker */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform-origin: center; /* Ensure proper rotation */
    cursor: pointer;
}

/* Improve active item appearance */
.carousel-item.active {
    box-shadow: 0 20px 40px rgba(0, 95, 255, 0.3), 0 0 30px rgba(0, 198, 215, 0.2);
    transform: rotateY(calc(var(--item-rotation) * 1deg)) translateZ(470px) scale(1.05) !important;
    z-index: 10;
}
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    z-index: -1;
}

.carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(450px); }
.carousel-item:nth-child(2) { transform: rotateY(60deg) translateZ(450px); }
.carousel-item:nth-child(3) { transform: rotateY(120deg) translateZ(450px); }
.carousel-item:nth-child(4) { transform: rotateY(180deg) translateZ(450px); }
.carousel-item:nth-child(5) { transform: rotateY(240deg) translateZ(450px); }
.carousel-item:nth-child(6) { transform: rotateY(300deg) translateZ(450px); }

.carousel-item {
    opacity: 1;
}

.carousel-item:hover {
    transform-origin: center;
    transform: rotateY(calc(var(--item-rotation) * 1deg)) translateZ(470px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 95, 255, 0.3);
    opacity: 1;
    z-index: 10;
}

.solution-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 95, 255, 0.2);
}

.solution-title {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.solution-description {
    color: var(--gray-text);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.solution-link {
    align-self: flex-start;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.solution-link:hover {
    gap: 12px;
}

.solution-link i {
    transition: transform 0.3s ease;
}

.solution-link:hover i {
    transform: translateX(5px);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px; /* Increase spacing between buttons */
    z-index: 10;
}

.carousel-prev, .carousel-next {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 60px; /* Larger buttons */
    height: 60px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 95, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); /* Match carousel transitions */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover, .carousel-next:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 95, 255, 0.5);
    background: var(--accent-color);
}

.carousel-item.active {
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 95, 255, 0.3);
}

.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 95, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* Improve carousel item hover effects */
.carousel-item:hover {
    box-shadow: 0 25px 50px rgba(0, 95, 255, 0.4), 0 0 30px rgba(0, 198, 215, 0.3);
}

/* Solution content enhancements */
.solution-icon {
    transform: translateZ(20px); /* Add depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover .solution-icon {
    transform: translateZ(50px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 95, 255, 0.3);
}

.solution-title {
    transform: translateZ(15px);
    transition: transform 0.3s ease, color 0.3s ease;
}

.carousel-item:hover .solution-title {
    transform: translateZ(40px);
    color: var(--primary-blue);
}

.solution-description {
    transform: translateZ(10px);
    transition: transform 0.3s ease;
}

.carousel-item:hover .solution-description {
    transform: translateZ(30px);
}

/* Add smooth fade for non-front items to improve 3D effect */
.carousel-item {
    opacity: 0.7;
    filter: blur(1px);
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

.carousel-item.active, .carousel-item:hover {
    opacity: 1;
    filter: blur(0);
}

/* Responsive improvements for carousel */
@media (max-width: 992px) {
    .carousel {
        transform: translateZ(-300px);
    }
    
    .carousel-item {
        width: 300px;
        height: 400px;
        margin-left: -150px;
        margin-top: -200px;
    }
    
    .carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(300px); }
    .carousel-item:nth-child(2) { transform: rotateY(60deg) translateZ(300px); }
    .carousel-item:nth-child(3) { transform: rotateY(120deg) translateZ(300px); }
    .carousel-item:nth-child(4) { transform: rotateY(180deg) translateZ(300px); }
    .carousel-item:nth-child(5) { transform: rotateY(240deg) translateZ(300px); }
    .carousel-item:nth-child(6) { transform: rotateY(300deg) translateZ(300px); }
}

@media (max-width: 768px) {
    .carousel {
        transform: translateZ(-250px);
    }
    
    .carousel-item {
        width: 280px;
        height: 380px;
        margin-left: -140px;
        margin-top: -190px;
        padding: 30px 20px;
    }
    
    .carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(250px); }
    .carousel-item:nth-child(2) { transform: rotateY(60deg) translateZ(250px); }
    .carousel-item:nth-child(3) { transform: rotateY(120deg) translateZ(250px); }
    .carousel-item:nth-child(4) { transform: rotateY(180deg) translateZ(250px); }
    .carousel-item:nth-child(5) { transform: rotateY(240deg) translateZ(250px); }
    .carousel-item:nth-child(6) { transform: rotateY(300deg) translateZ(250px); }
}
/* Enhanced Projects Preview Section */
.projects-preview {
    padding: 150px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-subtitle {
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--dark-blue), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-description {
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.view-all-btn:hover {
    gap: 12px;
    color: var(--accent-color);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

.featured-projects {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card.featured {
    grid-row: span 1;
    grid-column: span 1;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.project-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(41,128,185,0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    display: inline-block;
    padding: 8px 15px;
    background: var(--gradient-blue);
    border-radius: 30px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 95, 255, 0.3);
    transform: translateY(-20px);
    opacity: 0;
    transition: var(--transition-medium);
    transition-delay: 0.1s;
}

.project-card:hover .project-category {
    transform: translateY(0);
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-medium);
    transition-delay: 0.2s;
}

.project-card:hover .project-actions {
    transform: translateY(0);
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: white;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-details {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
    transition: var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--primary-blue);
}

.project-excerpt {
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-stack {
    font-size: 0.85rem;
    color: var(--gray-text);
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--accent-color);
    gap: 8px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(0, 198, 215, 0.9)), url('/api/placeholder/1500/800');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-primary-btn {
    background: white;
    color: var(--primary-blue);
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cta-primary-btn i {
    transition: transform 0.3s ease;
}

.cta-primary-btn:hover i {
    transform: translateX(5px);
}

.cta-secondary-btn {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid white;
    transition: var(--transition-fast);
}

.cta-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Footer Styles */
.site-footer {
    background-color: var(--light-bg);
    padding: 80px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--gray-text);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 95, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 16px;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    color: white;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--light-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--gray-text);
}

.contact-icon {
    font-size: 18px;
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-blue);
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-blue);
    opacity: 0.3;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Custom cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 198, 215, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: transform 0.1s;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-projects {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-visual {
        order: -1;
        height: 400px;
    }
    
    .card:nth-child(1) {
        left: 50%;
        top: 30px;
        transform: translateX(-50%) translateZ(150px);
    }
    
    .card:nth-child(2) {
        left: 50%;
        top: 80px;
        transform: translateX(-180px) translateZ(50px);
    }
    
    .card:nth-child(3) {
        left: 50%;
        top: 80px;
        transform: translateX(80px) translateZ(50px);
    }
    
    .solutions-title, .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.3s ease;
        z-index: 100;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 101;
        margin-left: 20px;
    }
    
    .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-blue);
        transition: all 0.3s ease;
    }
    
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        width: 100%;
        justify-content: center;
    }
    
    .cta-primary-btn, .cta-secondary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}