/* Enhanced CSS with Modern Animations and Better Color Contrast */

/* ==========================================================================
   CSS Reset and Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --primary-gradient: linear-gradient(135deg, #0066ff, #00ccff);
    --secondary-color: #ff3366;
    --accent-color: #00ff88;
    --dark-bg: #0a0e27;
    --darker-bg: #070a1f;
    --light-bg: #f8fbff;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-primary: 0 20px 60px rgba(0, 102, 255, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    --border-radius: 20px;
    --animation-speed: 0.4s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0a0e27 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 51, 102, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        background: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 51, 102, 0.05) 0%, transparent 50%);
    }

    50% {
        background: radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(255, 51, 102, 0.05) 0%, transparent 50%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-light);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(0, 204, 255, 0.6));
    }
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* ==========================================================================
   Button Styles with Enhanced Animations
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: var(--shadow-primary);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 18px 42px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navigation with Glassmorphism
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--animation-speed) ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--animation-speed) ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all var(--animation-speed) ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gradient);
    transition: all var(--animation-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Dropdown Styles with Enhanced Animation */
.nav-dropdown .dropdown-icon {
    font-size: 0.8rem;
    transition: transform var(--animation-speed) ease;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    min-width: 220px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.9);
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    list-style: none;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    font-weight: 400;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
    border-left-color: var(--primary-color);
}

/* Navigation CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-nav {
    color: #25D366;
    font-size: 1.5rem;
    transition: all var(--animation-speed) ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
}

.whatsapp-nav:hover {
    color: #25D366;
    transform: scale(1.2) rotate(10deg);
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   Hero Section with Advanced Animations
   ========================================================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 8%;
    background: linear-gradient(135deg, #0a1128, #001f54);
    color: #fff;
    position: relative;
    /* keep it positioned normally */
    z-index: 1;
    margin-bottom: 100px;
    /* 👈 gives space before next section */
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    margin: 20px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
    border-radius: 50px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 500px;
    width: 100%;
}

.storyset-credit {
    position: absolute;
    left: -9999px;
    /* pushes it far off screen */
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==========================================================================
   Services Section with Enhanced Cards
   ========================================================================== */

.services {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 102, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(180deg);
    box-shadow: var(--shadow-glow);
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--text-light);
    transition: all var(--animation-speed) ease;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.9;
}

.service-card.placeholder {
    visibility: hidden;
}

/* ==========================================================================
   Technologies Section
   ========================================================================== */

.technologies {
    padding: 5px 0;
    background: transparent;
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity var(--animation-speed) ease;
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.tech-item i {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--animation-speed) ease;
    position: relative;
    z-index: 2;
}

.tech-item:hover i {
    transform: scale(1.3) rotateZ(360deg);
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.5));
}

.tech-item span {
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.tech-item img.tech-icon {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 102, 255, 0.5));
    background: transparent;
    border-radius: 0;
}

.tech-item img.tech-icon:hover {
    transform: scale(1.2) rotateZ(360deg);
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.5));
}

/* ==========================================================================
   Industries Section
   ========================================================================== */

.industries {
    padding: 100px 0;
    background: transparent;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.industry-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.industry-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 102, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.industry-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--animation-speed) ease;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.industry-card:hover .industry-icon {
    background: var(--primary-gradient);
    transform: scale(1.1) rotateY(360deg);
    border-color: transparent;
}

.industry-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all var(--animation-speed) ease;
}

.industry-card:hover .industry-icon i {
    color: var(--text-light);
    transform: scale(1.1);
}

.industry-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.industry-card p {
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.9;
}

.industry-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: auto;
}

.industry-card-link:hover {
    text-decoration: none;
}

/* ==========================================================================
   Portfolio Section with 3D Effects
   ========================================================================== */

.portfolio {
    padding: 100px 0;
    background: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(1000px) rotateY(0deg);
}

.portfolio-item:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-20px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 102, 255, 0.25);
    border-color: var(--primary-color);
}

.portfolio-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--animation-speed) ease;
}

.portfolio-placeholder i {
    font-size: 4.5rem;
    color: var(--text-light);
    transition: all var(--animation-speed) ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--animation-speed) ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-placeholder i {
    transform: scale(1.2) rotateZ(360deg);
}

.portfolio-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 35px;
    border: 2px solid var(--text-light);
    border-radius: 50px;
    transition: all var(--animation-speed) ease;
    background: transparent;
    backdrop-filter: blur(10px);
}

.portfolio-link:hover {
    background: var(--primary-gradient);
    color: var(--text-light);
    border-color: transparent;
    transform: scale(1.05);
}

.portfolio-content {
    padding: 2.5rem;
}

.portfolio-content h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.9;
}

.portfolio-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: all var(--animation-speed) ease;
}

.portfolio-tags span:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.05);
}

/* ==========================================================================
   Testimonials Section with Infinite Scroll
   ========================================================================== */

.testimonials {
    padding: 100px 0;
    background: transparent;
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    animation: slideLeft 50s linear infinite;
    gap: 3rem;
    width: max-content;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--animation-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 380px;
    max-width: 380px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.8s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 102, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.testimonial-stars {
    margin-bottom: 2rem;
}

.testimonial-stars i {
    color: #FFD700;
    font-size: 1.3rem;
    margin-right: 0.3rem;
    transition: all var(--animation-speed) ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.testimonial-card:hover .testimonial-stars i {
    transform: scale(1.1) rotateZ(360deg);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
}

.testimonial-card p::before,
.testimonial-card p::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-card p::before {
    top: -10px;
    left: -10px;
}

.testimonial-card p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    transition: all var(--animation-speed) ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover .author-avatar {
    /* transform: scale(1.1) rotateY(360deg); */
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

/* Shine effect on hover */
.testimonial-card:hover .author-avatar {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

/* Add the shine layer */
.testimonial-card:hover .author-avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transform: rotate(25deg);
    animation: avatarShine 1.2s ease forwards;
}

/* Keyframes for shine */
@keyframes avatarShine {
    0% {
        transform: translateX(-150%) rotate(25deg);
    }

    100% {
        transform: translateX(150%) rotate(25deg);
    }
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonials-carousel:hover .testimonials-track {
    animation-play-state: paused;
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.team {
    padding: 100px 0;
    background: transparent;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: all var(--animation-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(1000px) rotateY(0deg);
}

.team-card:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 102, 255, 0.2);
    border-color: var(--primary-color);
}

.team-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.team-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 102, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--animation-speed) ease;
}

.team-card:hover .team-placeholder {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.team-placeholder i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all var(--animation-speed) ease;
}

.team-card:hover .team-placeholder i {
    color: var(--text-light);
    transform: scale(1.2) rotateY(360deg);
}

.team-content {
    padding: 2.5rem;
}

.team-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 1.3rem;
}

.team-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 45px;
    height: 45px;
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    backdrop-filter: blur(10px);
}

.team-social a:hover {
    background: var(--primary-gradient);
    color: var(--text-light);
    transform: translateY(-3px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

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

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.9;
}

.about-values h3 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

.values-list {
    list-style: none;
    margin-bottom: 3rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 10px;
    transition: all var(--animation-speed) ease;
    backdrop-filter: blur(10px);
}

.values-list li:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateX(10px);
}

.values-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    transition: all var(--animation-speed) ease;
}

.values-list li:hover i {
    transform: scale(1.2) rotateZ(360deg);
    color: #00ff88;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--animation-speed) ease;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transition: all var(--animation-speed) ease;

}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.about-shape {
    position: absolute;
    width: 350px;
    height: 350px;
    background: conic-gradient(from 0deg, rgba(0, 102, 255, 0.1), rgba(0, 204, 255, 0.1), rgba(255, 51, 102, 0.05), rgba(0, 102, 255, 0.1));
    border-radius: 50%;
    animation: rotateShape 20s linear infinite;
}

@keyframes rotateShape {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-image {
    width: 220px;
    height: 220px;
    background: var(--primary-gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
    transition: all var(--animation-speed) ease;
    animation: float 6s ease-in-out infinite;
}

.about-image:hover {
    transform: scale(1.05) rotateY(180deg);
}

.about-image i {
    font-size: 4.5rem;
    color: var(--text-light);
    transition: all var(--animation-speed) ease;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotateZ(0deg);
    }

    50% {
        transform: translateY(-20px) rotateZ(5deg);
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
    padding: 100px 0;
    background: transparent;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--animation-speed) ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    background: transparent;
}

.faq-question:hover {
    background: rgba(0, 102, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform var(--animation-speed) ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--animation-speed) ease;
    background: rgba(0, 102, 255, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 2rem 2rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.9;
}

.faq-list {
    margin: 1rem 0 1rem 2rem;
    padding: 0;
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.9;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    padding: 100px 0;
    background: transparent;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    animation: ctaGlow 8s ease-in-out infinite;
}

@keyframes ctaGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-content p {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer {
    background: rgba(7, 10, 31, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-light);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    padding: 0.3rem 0;
    display: inline-block;
    opacity: 0.8;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
    opacity: 0.7;
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #20c957);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all var(--animation-speed) ease;
    z-index: 999;
    animation: whatsappPulse 3s infinite, whatsappFloat 6s ease-in-out infinite;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7), 0 0 0 20px rgba(37, 211, 102, 0.1);
    }
}

@keyframes whatsappFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotateZ(15deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Cookie Consent Bar
   ========================================================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 10, 31, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-light);
    padding: 1.5rem;
    z-index: 10000;
    display: none;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--animation-speed) ease;
}

.cookie-link:hover {
    text-decoration: underline;
    color: #00ccff;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-gradient);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-speed) ease;
    z-index: 998;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
    font-size: 1.2rem;
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Responsive Design - Tablet
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
        max-width: 400px;
        margin: 2rem auto 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   Responsive Design - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --border-radius: 15px;
    }

    /* Navigation Mobile Styles */
    .nav-container {
        padding: 1rem 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 1rem;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        justify-content: center;
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        border-radius: 10px;
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 102, 255, 0.1);
        border-radius: 10px;
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 400px;
    }

    .nav-dropdown .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .nav-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    /* Content Sections */
    .hero {
        padding: 120px 0 80px;
        text-align: center;
        min-height: 90vh;
    }

    .hero .container {
        gap: 2rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-card {
        padding: 2rem 1.5rem;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Grid Layouts */
    .services-grid,
    .industries-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

    .tech-item {
        padding: 2rem 1rem;
    }

    .tech-item i {
        font-size: 3rem;
    }

    /* Sections Padding */
    .services,
    .technologies,
    .industries,
    .portfolio,
    .testimonials,
    .team,
    .about,
    .faq,
    .cta {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    /* Cards */
    .service-card,
    .industry-card,
    .testimonial-card {
        padding: 2.5rem 2rem;
    }

    .portfolio-content,
    .team-content {
        padding: 2rem;
    }

    /* About Section */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 280px;
    }

    .about-visual {
        margin-top: 3rem;
        height: 300px;
    }

    .about-shape {
        width: 280px;
        height: 280px;
    }

    .about-image {
        width: 180px;
        height: 180px;
    }

    .about-image i {
        font-size: 3.5rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1.5rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.5rem;
    }

    .faq-list {
        margin: 0.5rem 0 1rem 1.5rem;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* Floating Elements */
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .back-to-top {
        bottom: 100px;
        right: 25px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    /* Testimonials Mobile */
    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
        padding: 2rem 1.5rem;
    }

    .testimonials-track {
        gap: 2rem;
        animation-duration: 40s;
    }
}

/* ==========================================================================
   Responsive Design - Small Mobile
   ========================================================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .hero-cta {
        width: 100%;
    }

    .btn-large {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 260px;
    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 100px 8%;
        background: linear-gradient(135deg, #0a1128, #001f54);
        color: #fff;
        position: relative;
        /* keep it positioned normally */
        z-index: 1;
        margin-bottom: 180px;
        /* 👈 gives space before next section */
    }

    .services {
        padding: 100px 0;
        background: transparent;
        position: relative;
        z-index: 2;
    }

    .service-card,
    .industry-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        max-width: 100%;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
    }

    .author-info {
        text-align: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .values-list li {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.8rem 1.2rem;
    }

    .testimonials-track {
        gap: 1.5rem;
        animation-duration: 35s;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Enhanced Animation Classes
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger animation for grids */
.services-grid .service-card,
.industries-grid .industry-card,
.team-grid .team-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-grid.visible .service-card,
.industries-grid.visible .industry-card,
.team-grid.visible .team-card {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0080ff;
        --text-light: #ffffff;
        --text-dark: #000000;
    }

    .btn-primary {
        border: 2px solid #ffffff;
    }

    .service-card,
    .industry-card,
    .testimonial-card,
    .team-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonials-track {
        animation: none;
    }

    .about-shape {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
.nav-link:focus,
.faq-question:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {

    .navbar,
    .whatsapp-float,
    .back-to-top,
    .cookie-consent {
        display: none;
    }

    .hero {
        padding-top: 20px;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-title,
    .section-header h2,
    .nav-logo a {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0052cc, #0099cc);
}

/* Selection Colors */
::selection {
    background: rgba(0, 102, 255, 0.3);
    color: var(--text-light);
}

::-moz-selection {
    background: rgba(0, 102, 255, 0.3);
    color: var(--text-light);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* keeps everything centered */
}

.stat-value {
    display: inline-flex;
    align-items: baseline;
    /* keeps number and + aligned nicely */
}

.stat-number {
    display: inline-block;
}