.project-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.project-category {
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.project-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-project {
    align-self: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    margin-top: auto;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin: 0 1rem;
}

.carousel-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    margin: 0 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* ===== STATS SECTION STYLES ===== */
.stats {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #2d3250, #1a1c2e);
    color: white;
    overflow: hidden;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.stats-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffffff, #9BA4B5, #ffffff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 5s infinite linear;
}

.stats-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 300px;
}

.stats-divider span {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
}

.stats-divider i {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 1rem;
    animation: pulse 2s infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-container i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.8;
    filter: blur(10px);
    animation: glow 3s infinite alternate;
}

.stat-number-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin: 0;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: auto;
}

.stat-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 1.5s ease-out;
}

/* ===== ABOUT SECTION STYLES ===== */
.about {
    position: relative;
    padding: 5rem 0;
    background: var(--light);
    overflow: hidden;
}

.about-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-shape {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(79, 70, 229, 0.05));
    animation: morphShape 15s infinite alternate ease-in-out;
}

.shape1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -150px;
    animation-delay: 0s;
}

.shape2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

.shape3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.about-img {
    position: relative;
}

.img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.img-wrapper:hover {
    transform: rotate(0);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.1);
}

.img-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    left: 10px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    z-index: -1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.value-item p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== TESTIMONIALS SECTION STYLES ===== */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f1f5f9, #f8fafc);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: rgba(79, 70, 229, 0.1);
}

.testimonial-content {
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary);
}

.author-info h4 {
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rating {
    color: #f59e0b;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-btn {
    background-color: white;
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
}

.testimonial-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    margin: 0 1rem;
}

/* ===== CONTACT SECTION STYLES ===== */
.contact {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    overflow: hidden;
}

.contact-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(79, 70, 229, 0.05));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphShape 15s infinite alternate ease-in-out;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.contact-info {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.contact-info-item p {
    color: var(--gray);
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-floating-icon {
    position: absolute;
    left: 12px;
    top: 38px;
    color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit span {
    margin-right: 0.5rem;
}

/* ===== FOOTER STYLES ===== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -119px;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.footer-col p {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -5px;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: white;
}

.footer-links li a:hover::before {
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 5px 5px 0;
    padding: 0 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 50px;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes floatCube {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateY(-20px) rotateX(90deg) rotateY(45deg); }
    50% { transform: translateY(10px) rotateX(180deg) rotateY(90deg); }
    75% { transform: translateY(-15px) rotateX(270deg) rotateY(135deg); }
}

@keyframes floatSphere {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    25% { transform: translateY(-30px) translateX(20px) scale(1.1); }
    50% { transform: translateY(15px) translateX(-15px) scale(0.9); }
    75% { transform: translateY(-20px) translateX(10px) scale(1.05); }
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    25% { transform: translateY(-30px) rotate(5deg); opacity: 0.7; }
    50% { transform: translateY(20px) rotate(-5deg); opacity: 0.5; }
    75% { transform: translateY(-20px) rotate(3deg); opacity: 0.6; }
}

@keyframes lightMove {
    0% {
        transform: rotate(-45deg) translateX(-100%);
        opacity: 0;
    }
    20%, 80% {
        opacity: 1;
    }
    100% {
        transform: rotate(-45deg) translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes glow {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes morphShape {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 50% 30% 30% 70% / 50% 60% 30% 60%; }
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 960px) {
    /* Mobile Menu */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Projects 3D Carousel */
    .project-card {
        width: 80%;
        left: 10%;
    }
    
    .project-card[data-slide="1"],
    .project-card[data-slide="2"] {
        transform: translateX(0) translateZ(0) rotateY(0);
        opacity: 0;
    }
    
    /* Stack order on mobile */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 768px) {
    /* Typography */
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Layout */
    .services-grid,
    .stats-grid {
        gap: 1.5rem;
    }
    
    .service-card-3d {
        height: 350px;
    }
    
    .card-back-content {
        padding: 1.5rem;
    }
    
    .card-back-content ul li {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    /* Typography */
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Layout */
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-plus {
        font-size: 1.5rem;
    }
    
    /* Forms */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form .btn {
        border-radius: 5px;
    }
    
    /* Footer */
    .footer-col {
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 25%;
        width: 50%;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Advanced 3D shadows for cards */
.shadow-3d {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 
                0 6px 6px rgba(0, 0, 0, 0.1), 
                0 0 100px rgba(0, 0, 0, 0.1) inset;
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hover glow effects */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Animation classes */
.animate-float {
    animation: float 6s infinite ease-in-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-fade-in {
    animation: fadeIn 1s forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s forwards;
}

/* Delay utilities */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Page transition animations */
.page-transition {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-transition.loaded {
    opacity: 1;
}

/* Popup animation */
@keyframes popup {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.popup-animation {
    animation: popup 0.5s forwards;
}

/* Ripple effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.ripple-effect:hover::after {
    width: 300%;
    height: 300%;
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-effect {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* 3D Transform on Hover */
.transform-3d-hover {
    transition: transform 0.3s ease;
}

.transform-3d-hover:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

/* Custom Scrollbar Track */
.custom-scrollbar::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, var(--light), #e2e8f0);
    border-radius: 10px;
}

/* Preloader Animation */
@keyframes rotate3D {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(10deg); }
}

/* Animated Background Gradient */
@keyframes backgroundGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-bg-gradient {
    background: linear-gradient(270deg, var(--primary), var(--secondary), var(--accent));
    background-size: 600% 600%;
    animation: backgroundGradient 15s ease infinite;
}

/* Floating Effect for Menu Items */
.menu-float li {
    transition: transform 0.3s ease;
}

.menu-float li:hover {
    transform: translateY(-5px);
}

/* Writing effect for text */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

/* Blinking cursor effect */
@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

.cursor-effect {
    border-right: 2px solid var(--primary);
    animation: blinkCursor 1s infinite;
}

/* Dynamic hover underline */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #4f46e5;
    --secondary-dark: #4338ca;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --accent: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.2s, opacity 0.2s;
    opacity: 0;
    display: none;
}

@media (hover: hover) {
    .custom-cursor {
        display: block;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    bottom: 30px;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* ===== COMMON STYLES ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

.btn i {
    margin-left: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow for better contrast */

}




.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -10px;
    left: 25%;
}

.reveal-text {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-100%);
    animation: revealTextAnim 1s 0.5s forwards ease-in-out;
}

@keyframes revealTextAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(37, 99, 235, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.logo:hover i {
    transform: rotate(20deg);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ===== HERO SECTION STYLES ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1c2e, #2d3250);
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-3d-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
}

.floating-cube {
    position: absolute;
    transform-style: preserve-3d;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    animation: floatCube 15s infinite ease-in-out;
}

.floating-cube:before, .floating-cube:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform-origin: center;
    transition: all 0.5s ease;
}

.floating-cube:before {
    transform: rotateX(45deg);
}

.floating-cube:after {
    transform: rotateY(45deg);
}

.cube1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cube2 {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    transform: scale(1.5);
}

.cube3 {
    top: 40%;
    left: 60%;
    animation-delay: -8s;
    transform: scale(0.7);
}

.floating-sphere {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(79, 70, 229, 0.1));
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    animation: floatSphere 20s infinite ease-in-out;
}

.sphere1 {
    top: 25%;
    right: 20%;
    animation-delay: -2s;
}

.sphere2 {
    bottom: 15%;
    left: 25%;
    transform: scale(1.5);
    animation-delay: -7s;
}

.glowing-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glowing-particles:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: white;
}

.animated-gradient-text {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ffffff, #9BA4B5, #ffffff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 5s infinite linear;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-3d:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateZ(-10px);
    transition: all 0.3s;
    opacity: 0.7;
}

.btn-3d:hover {
    transform: translateY(-5px) translateZ(0);
}

.btn-3d:hover:before {
    transform: translateZ(-20px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeIn 1s 1.5s forwards;
    opacity: 0;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* ===== SERVICES SECTION STYLES ===== */
#services {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
    filter: blur(2px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.element1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.element2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.element3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card-3d {
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.service-card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-front {
    background-color: white;
}

.card-back {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: rotateY(180deg);
}

.service-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-icon {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateZ(20px);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-back-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.card-back-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-back-content ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    text-align: left;
}

.card-back-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-back-content ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
}

.card-back-content .btn {
    background-color: white;
    color: var(--primary);
    margin-top: 1rem;
    align-self: center;
}

.card-back-content .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===== PROJECTS SECTION STYLES ===== */
.projects {
    position: relative;
    background-color: #1a1c2e;
    color: white;
    padding: 6rem 0;
    overflow: hidden;
}

.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.light-ray {
    position: absolute;
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 0) 0%, 
        rgba(37, 99, 235, 0.2) 50%, 
        rgba(37, 99, 235, 0) 100%);
    height: 200px;
    width: 100%;
    transform: rotate(-45deg) translateX(-50%);
    animation: lightMove 15s infinite;
    opacity: 0;
}

.ray1 {
    top: 20%;
    animation-delay: 0s;
}

.ray2 {
    top: 40%;
    animation-delay: 5s;
}

.ray3 {
    top: 60%;
    animation-delay: 10s;
}

.projects .section-title {
    position: relative;
    z-index: 2;
    color: white;
}

.projects .section-title h2::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.carousel-3d-container {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    perspective: 1000px;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.project-card {
    position: absolute;
    width: 60%;
    height: 100%;
    left: 20%;
    top: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    opacity: 0;
    transform: rotateY(0) translateZ(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-card[data-slide="0"] {
    transform: rotateY(0) translateZ(300px);
    opacity: 1;
    z-index: 3;
}

.project-card[data-slide="1"] {
    transform: rotateY(45deg) translateZ(150px) translateX(200px);
    opacity: 0.7;
    z-index: 2;
}

.project-card[data-slide="2"] {
    transform: rotateY(-45deg) translateZ(150px) translateX(-200px);
    opacity: 0.7;
    z-index: 1;
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

/* ===== MOBILE NAVIGATION STYLES ===== */
@media screen and (max-width: 960px) {
    /* Mobile Menu */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        z-index: 101;
    }

    /* Transition for smoother menu appearance */
    nav ul {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav ul.active {
        opacity: 1;
        transform: translateY(0);
    }
}