/* Modern Professional Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2296A8;
    --primary-light: #25c4db;
    --primary-dark: #1a7a89;
    --primary-gradient: linear-gradient(135deg, #2296A8 0%, #25c4db 100%);
    --accent-blue: #007AFF;
    --accent-purple: #5856D6;
    --accent-green: #34C759;
    --accent-orange: #FF9500;
    --accent-pink: #FF2D92;
    --bg-light: #ffffff;
    --bg-lighter: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --text-light: #86868b;
    --border: rgba(0, 0, 0, 0.08);
    --blur: blur(20px);
}

* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

/* Optimize scrolling performance */
* {
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

body {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Reduce animations during scrolling for better performance */
body.scrolling * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Optimize will-change for scroll elements */
.scroll-animate {
    will-change: opacity, transform;
}

.scroll-animate.animate-in {
    will-change: auto; /* Remove will-change after animation */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-text {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #1e293b, #64748b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-accent {
    background: linear-gradient(to right, #2296A8, #25c4db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Enhanced Header styles */
.header-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

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

.logo-footer {
    height: 72px;
    width: auto;
}

.logo-header {
    height: 32px;
    width: auto;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline {
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-lighter);
    border-color: var(--primary);
}

/* Card styles */
.feature-card {
    background: var(--bg-light);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 150, 168, 0.03), rgba(37, 196, 219, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-lighter);
    border-color: rgba(34, 150, 168, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.project-card a {
    display: flex;
    height: 100%;
}

.project-card .relative.overflow-hidden.rounded-2xl {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

.project-card .space-y-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Section styles */
.section-dark {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.8),
        rgba(10, 10, 10, 0.95)
    );
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-gradient {
    background: 
        radial-gradient(circle at top right, rgba(34, 150, 168, 0.1), transparent 50%),
        radial-gradient(circle at bottom left, rgba(10, 10, 10, 0.95), transparent 50%);
}

/* Grid layouts */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-lighter);
}

/* Animations */
@keyframes float {
    0% {  }
    50% {  }
    100% {  }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.mobile-nav::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html, body, .mobile-nav {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Container styles */
.container {
    width: 80%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Privacy Policy Page */
.privacy-card {
    background: var(--bg-light);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.privacy-card:hover {
    background: var(--bg-lighter);
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background: #2296A8;
    border-radius: 50%;
    position: absolute;
    left: -4px;
    top: 16px;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(34, 150, 168, 0.5), rgba(34, 150, 168, 0.1), transparent);
}

.privacy-bg {
    position: relative;
    overflow: hidden;
}

.privacy-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(34, 150, 168, 0.05) 0%, transparent 100%);
    transform: rotate(12deg);
    pointer-events: none;
}

.privacy-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(34, 150, 168, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .display-text {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
/* Enhanced Hero Styles */
/* Hero badge animation is now handled in animations.css */

.hero-title {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-gradient-text {
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-description {
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 1s both;
}

.hero-stats {
    animation: fadeInUp 1s ease 1.2s both;
}

/* Enhanced Floating Cards Animation */
.float-card-1 {
    transform-origin: center center;
}

.float-card-2 {
    transform-origin: center center;
}

@keyframes floatCard1 {
    0% { 
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1) rotateY(0deg);
    }
    8% { 
        transform: translate3d(15px, -8px, 0) rotate(2deg) scale(1.02) rotateY(5deg);
    }
    16% { 
        transform: translate3d(25px, -18px, 0) rotate(3deg) scale(1.04) rotateY(8deg);
    }
    24% { 
        transform: translate3d(20px, -30px, 0) rotate(4deg) scale(1.06) rotateY(6deg);
    }
    32% { 
        transform: translate3d(8px, -35px, 0) rotate(3deg) scale(1.05) rotateY(2deg);
    }
    40% { 
        transform: translate3d(-5px, -32px, 0) rotate(1deg) scale(1.04) rotateY(-3deg);
    }
    48% { 
        transform: translate3d(-18px, -25px, 0) rotate(-1deg) scale(1.03) rotateY(-6deg);
    }
    56% { 
        transform: translate3d(-25px, -15px, 0) rotate(-2deg) scale(1.02) rotateY(-8deg);
    }
    64% { 
        transform: translate3d(-22px, -5px, 0) rotate(-1deg) scale(1.01) rotateY(-5deg);
    }
    72% { 
        transform: translate3d(-12px, 2px, 0) rotate(0deg) scale(1.005) rotateY(-2deg);
    }
    80% { 
        transform: translate3d(-2px, -2px, 0) rotate(1deg) scale(1.01) rotateY(1deg);
    }
    88% { 
        transform: translate3d(8px, -6px, 0) rotate(1.5deg) scale(1.015) rotateY(3deg);
    }
    96% { 
        transform: translate3d(5px, -3px, 0) rotate(0.5deg) scale(1.005) rotateY(1deg);
    }
    100% { 
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1) rotateY(0deg);
    }
}

@keyframes floatCard2 {
    0% { 
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1) rotateY(0deg);
    }
    10% { 
        transform: translate3d(-12px, -5px, 0) rotate(-1.5deg) scale(1.01) rotateY(-4deg);
    }
    20% { 
        transform: translate3d(-20px, -12px, 0) rotate(-2.5deg) scale(1.025) rotateY(-7deg);
    }
    30% { 
        transform: translate3d(-25px, -22px, 0) rotate(-3deg) scale(1.04) rotateY(-9deg);
    }
    40% { 
        transform: translate3d(-18px, -32px, 0) rotate(-2deg) scale(1.05) rotateY(-6deg);
    }
    50% { 
        transform: translate3d(-5px, -38px, 0) rotate(-0.5deg) scale(1.06) rotateY(-2deg);
    }
    60% { 
        transform: translate3d(8px, -35px, 0) rotate(1deg) scale(1.05) rotateY(3deg);
    }
    70% { 
        transform: translate3d(18px, -28px, 0) rotate(2deg) scale(1.04) rotateY(6deg);
    }
    80% { 
        transform: translate3d(22px, -18px, 0) rotate(2.5deg) scale(1.03) rotateY(7deg);
    }
    90% { 
        transform: translate3d(15px, -8px, 0) rotate(1.5deg) scale(1.015) rotateY(4deg);
    }
    100% { 
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1) rotateY(0deg);
    }
}







@keyframes floatCard3 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    16% { 
        transform: translateY(-12px) translateX(6px) rotate(0.8deg) scale(1.015);
    }
    33% { 
        transform: translateY(-18px) translateX(-8px) rotate(-1.2deg) scale(1.03);
    }
    50% { 
        transform: translateY(-22px) translateX(4px) rotate(1.5deg) scale(1.04);
    }
    66% { 
        transform: translateY(-16px) translateX(-6px) rotate(-0.8deg) scale(1.025);
    }
    83% { 
        transform: translateY(-8px) translateX(10px) rotate(1deg) scale(1.015);
    }
}

/* Enhanced hover effects for floating cards */
.float-card-1:hover,
.float-card-2:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.05) !important;
    background: linear-gradient(135deg, #2296A8, #25c4db) !important;
    border-color: rgba(34, 150, 168, 0.5) !important;
    box-shadow: 0 25px 50px rgba(34, 150, 168, 0.3) !important;
}

/* Show logo and hide content on hover */
.float-card-1:hover .tappix-logo,
.float-card-2:hover .tappix-logo {
    opacity: 1;
}

.float-card-1:hover .progress-bars,
.float-card-2:hover .progress-bars,
.float-card-1:hover .status-dot,
.float-card-2:hover .status-dot,
.float-card-1:hover .card-title,
.float-card-2:hover .card-title {
    opacity: 0;
}

/* Enhanced card styling */
.float-card-1,
.float-card-2 {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

/* Smooth transitions for card content */
.float-card-1 .progress-bars,
.float-card-2 .progress-bars,
.float-card-1 .status-dot,
.float-card-2 .status-dot,
.float-card-1 .card-title,
.float-card-2 .card-title {
    transition: opacity 0.3s ease;
}

/* Add a subtle shine effect on hover */
.float-card-1::before,
.float-card-2::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 ease;
    z-index: 1;
}

.float-card-1:hover::before,
.float-card-2:hover::before {
    left: 100%;
}

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

/* Mobile Navigation Styles */
.mobile-nav {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-nav-panel {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active .mobile-nav-panel {
    transform: translateX(0);
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step:hover .w-20 {
    transform: scale(1.1);
}

/* Enhanced Gradients */
.gradient-orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at 30% 40%, 
        rgba(34, 150, 168, 0.15) 0%,
        rgba(34, 150, 168, 0.08) 30%,
        rgba(34, 150, 168, 0) 70%
    );
    top: -200px;
    left: -200px;
    animation: 
        morphGradient 25s ease-in-out infinite,
        floatGradient 30s ease-in-out infinite,
        colorPulse 8s ease-in-out infinite;
}

.gradient-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 70% 60%, 
        rgba(37, 196, 219, 0.12) 0%,
        rgba(37, 196, 219, 0.06) 40%,
        rgba(37, 196, 219, 0) 70%
    );
    bottom: -150px;
    right: -150px;
    animation: 
        morphGradient 28s ease-in-out infinite reverse,
        floatGradient 35s ease-in-out infinite reverse,
        colorPulse 10s ease-in-out infinite 1s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 50% 50%, 
        rgba(34, 150, 168, 0.1) 0%,
        rgba(34, 150, 168, 0.05) 40%,
        rgba(34, 150, 168, 0) 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: 
        morphGradient 22s ease-in-out infinite 1s,
        floatGradient 28s ease-in-out infinite,
        colorPulse 9s ease-in-out infinite 2s;
}

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .feature-card {
        padding: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-stats > div {
        text-align: center;
    }
    
    .hero-stats .text-2xl {
        font-size: 1.5rem;
    }
    
    .hero-stats .text-sm {
        font-size: 0.75rem;
    }
}

/* Form Enhancements */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Loading States */
.loading-text svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Focus States */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .feature-card {
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .btn-outline {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* Apple-style Solution Cards */
.solution-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced gradient orbs for light theme */
.gradient-orb-4 {
    width: 600px;
    height: 600px;
    background: 
        radial-gradient(circle at 60% 30%, 
            rgba(255, 149, 0, 0.08) 0%,
            rgba(255, 45, 146, 0.04) 40%,
            rgba(255, 149, 0, 0) 70%
        );
    top: 30%;
    right: 20%;
    animation: 
        morphGradient 30s ease-in-out infinite 3s,
        floatGradient 25s ease-in-out infinite reverse,
        colorPulse 12s ease-in-out infinite 1.5s;
}

/* Apple-style typography enhancements */
.apple-title {
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.05;
    background: linear-gradient(135deg, #2296A8 0%, #007AFF 50%, #25c4db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.apple-subtitle {
    font-weight: 500;
    letter-spacing: -0.022em;
    line-height: 1.47059;
    color: #1d1d1f;
}

.apple-body {
    font-weight: 400;
    letter-spacing: -0.016em;
    line-height: 1.47059;
    color: #6e6e73;
}

/* Flat Minimal Hero Button */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    background: #2296A8;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(34, 150, 168, 0.3);
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    background: #1a7a89;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 150, 168, 0.4);
    color: white;
}

.btn-hero:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(34, 150, 168, 0.3);
}

/* Magnetic effect */
.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-hero:hover::before {
    transform: translateX(100%);
}

/* Pulse effect on load */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 4px 20px rgba(34, 150, 168, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(34, 150, 168, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(34, 150, 168, 0.3);
    }
}

.btn-hero {
    animation: buttonPulse 2s ease-in-out infinite;
}

.btn-hero:hover {
    animation: none;
}

/* Responsive styles for hero button */
@media (max-width: 768px) {
    .btn-hero {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

/* Responsive adjustments for card hover effects */
@media (max-width: 768px) {
    .float-card-1:hover,
    .float-card-2:hover {
        transform: translateY(-4px) scale(1.02) !important;
    }
    
    .tappix-logo img {
        height: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .float-card-1:hover,
    .float-card-2:hover {
        transform: translateY(-2px) scale(1.01) !important;
    }
}

/* Enhanced interactive effects for cooler cards */
.float-card-1:hover,
.float-card-2:hover {
    animation-play-state: paused;
    transform: translateY(-12px) scale(1.08) rotateY(5deg) !important;
    background: linear-gradient(135deg, #2296A8, #25c4db) !important;
    border-color: rgba(34, 150, 168, 0.6) !important;
    box-shadow: 0 30px 60px rgba(34, 150, 168, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    filter: brightness(1.1) saturate(1.2);
}

/* Enhanced hover effects for progress bars */
.float-card-1:hover .h-2,
.float-card-2:hover .h-2 {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.6), 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.6)
    ) !important;
    animation-duration: 1s !important;
    transform: scaleY(1.5) !important;
}

/* Enhanced hover effects for status dots */
.float-card-1:hover .status-dot,
.float-card-2:hover .status-dot {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

/* Enhanced hover effects for text */
.float-card-1:hover .card-title,
.float-card-2:hover .card-title {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
}

/* Flat Design Solution Cards */
.solution-card {
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2296A8, #25c4db);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover {
    transform: translateY(-4px);
}

/* Solutions Section Styling */
#solutions {
    position: relative;
}

#solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(34, 150, 168, 0.02) 50%, transparent 100%),
        radial-gradient(circle at 20% 20%, rgba(34, 150, 168, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 196, 219, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Flat design enhancements */
.solution-card h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.solution-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Icon container enhancements */
.solution-card .w-16 {
    box-shadow: 0 4px 12px rgba(34, 150, 168, 0.15);
}

.solution-card:hover .w-16 {
    box-shadow: 0 8px 20px rgba(34, 150, 168, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .solution-card {
        padding: 1.5rem;
    }
    
    .solution-card .w-16 {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .solution-card .w-16 svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .solution-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
}

/* Subtle grid pattern for solutions section */
#solutions::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(34, 150, 168, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 150, 168, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

/* Enhanced section header styling */
#solutions h2 {
    position: relative;
}

#solutions h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2296A8, #25c4db);
    border-radius: 2px;
}

/* Solutions grid enhancements */
.solutions-grid {
    position: relative;
}

/* Add subtle shadow to the entire grid */
.solutions-grid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

/* Enhanced project image overlays for light theme */
.project-card .aspect-video {
    position: relative;
}



/* Ensure badges and icons are properly positioned */
.project-card .absolute {
    position: absolute;
}

/* Enhanced hover effects for project badges */
.project-card:hover .bg-white\/90 {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure project badges stay in position */
.project-card .absolute.top-4.left-4,
.project-card .absolute.top-4.right-4 {
    position: absolute;
    top: 1rem;
    will-change: transform;
}

.project-card .absolute.top-4.left-4 {
    left: 1rem;
}

.project-card .absolute.top-4.right-4 {
    right: 1rem;
}

/* Improve text contrast on light overlays */
.project-card .text-primary {
    font-weight: 600;
}

/* Add subtle shadow to improve readability */
.project-card .absolute.top-4 {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Projects grid layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

/* Center CTA section */
.projects-cta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.projects-cta > div {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .project-card .relative.overflow-hidden.rounded-2xl {
        min-height: 500px;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
}

/* Enhanced Header Navigation Styling */
.header-nav .max-w-7xl {
    position: relative;
}

/* Logo enhancements */
.header-nav img {
    filter: none;
    max-height: 2.5rem;
}

/* Navigation link enhancements */
.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2296A8, #25c4db);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

/* Enhanced button styling in header */
.header-nav .btn-primary {
    box-shadow: 0 2px 8px rgba(34, 150, 168, 0.2);
    border: none;
}

.header-nav .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(34, 150, 168, 0.3);
    transform: translateY(-1px);
}

/* Mobile menu button enhancements */
#menuButton {
    position: relative;
    overflow: hidden;
}

#menuButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 150, 168, 0.1), transparent);
    transition: left 0.5s ease;
}

#menuButton:hover::before {
    left: 100%;
}

/* Header responsiveness */
@media (max-width: 1024px) {
    .header-nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .header-nav .flex {
        height: 5rem;
    }
    
    .header-nav img {
        height: 2rem;
    }
}

/* Flat Design Process Cards */
.process-card {
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2296A8, #25c4db);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.process-card:hover::before {
    transform: scaleX(1);
}

.process-card:hover {
    transform: translateY(-4px);
}

/* Process Section Styling */
#process {
    position: relative;
}

#process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(34, 150, 168, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

/* Process grid enhancements */
.process-grid {
    position: relative;
}

/* Step number enhancements */
.process-card .absolute.top-4 {
    box-shadow: 0 4px 12px rgba(34, 150, 168, 0.3);
    border: 2px solid white;
}

/* Icon container enhancements */
.process-card .w-20 {
    border: 1px solid rgba(34, 150, 168, 0.1);
}

.process-card:hover .w-20 {
    border-color: rgba(34, 150, 168, 0.2);
    box-shadow: 0 4px 12px rgba(34, 150, 168, 0.1);
}

/* Feature list styling */
.process-card ul li {
    font-weight: 500;
}

/* CTA section styling */
.process-card + .text-center .bg-gray-50 {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-card {
        padding: 2rem;
    }
    
    .process-grid {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .process-card .w-20 {
        width: 4rem;
        height: 4rem;
    }
    
    .process-card .w-20 svg {
        width: 2rem;
        height: 2rem;
    }
    
    .process-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .process-card .absolute.top-4 {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* Mobile-First Utility Classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full {
        width: 100% !important;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-flex {
        display: flex !important;
    }
    
    .mobile-grid {
        display: grid !important;
    }
    
    .mobile-block {
        display: block !important;
    }
}

/* Enhanced Mobile Container System */
@media (max-width: 1024px) {
    .mobile-container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mobile-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1.5rem;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }
    
    .mobile-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border-color: rgba(34, 150, 168, 0.2);
    }
}

/* Mobile Typography Enhancements */
@media (max-width: 1024px) {
    .mobile-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    
    .mobile-subtitle {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        line-height: 1.3;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }
    
    .mobile-body {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .mobile-caption {
        font-size: 0.875rem;
        line-height: 1.4;
        color: #6b7280;
    }
}

/* Mobile Button System */
@media (max-width: 1024px) {
    .mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
        min-height: 48px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .mobile-btn-primary {
        background: linear-gradient(135deg, #2296A8, #25c4db);
        color: white;
        border: none;
        box-shadow: 0 4px 16px rgba(34, 150, 168, 0.3);
    }
    
    .mobile-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(34, 150, 168, 0.4);
    }
    
    .mobile-btn-outline {
        border: 2px solid rgba(34, 150, 168, 0.3);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        color: var(--primary);
    }
    
    .mobile-btn-outline:hover {
        background: rgba(34, 150, 168, 0.1);
        border-color: var(--primary);
        transform: translateY(-2px);
    }
}

/* Mobile Grid System */
@media (max-width: 1024px) {
    .mobile-grid-1 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mobile-grid-2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mobile-flex-col {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-flex-row {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* Mobile Spacing System */
@media (max-width: 1024px) {
    .mobile-mt-1 { margin-top: 0.25rem; }
    .mobile-mt-2 { margin-top: 0.5rem; }
    .mobile-mt-3 { margin-top: 0.75rem; }
    .mobile-mt-4 { margin-top: 1rem; }
    .mobile-mt-6 { margin-top: 1.5rem; }
    .mobile-mt-8 { margin-top: 2rem; }
    
    .mobile-mb-1 { margin-bottom: 0.25rem; }
    .mobile-mb-2 { margin-bottom: 0.5rem; }
    .mobile-mb-3 { margin-bottom: 0.75rem; }
    .mobile-mb-4 { margin-bottom: 1rem; }
    .mobile-mb-6 { margin-bottom: 1.5rem; }
    .mobile-mb-8 { margin-bottom: 2rem; }
    
    .mobile-p-1 { padding: 0.25rem; }
    .mobile-p-2 { padding: 0.5rem; }
    .mobile-p-3 { padding: 0.75rem; }
    .mobile-p-4 { padding: 1rem; }
    .mobile-p-6 { padding: 1.5rem; }
    .mobile-p-8 { padding: 2rem; }
}

/* Mobile Performance Optimizations */
@media (max-width: 1024px) {
    /* Disable expensive effects on mobile */
    .expensive-animation,
    .complex-gradient,
    .heavy-shadow {
        display: none !important;
    }
    
    /* Optimize transforms for mobile */
    .mobile-optimized {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    /* Reduce blur effects on mobile */
    .mobile-blur {
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
}

/* Mobile Device Optimizations */
.mobile-device {
    /* Disable expensive animations */
    --animation-duration: 0.2s;
    --transition-duration: 0.2s;
}

.mobile-device * {
    animation-duration: var(--animation-duration) !important;
    transition-duration: var(--transition-duration) !important;
}

.mobile-device .gradient-orb,
.mobile-device .ongoing-animation,
.mobile-device .complex-animation {
    display: none !important;
}

.mobile-device .hero-gradient-bg {
    background: linear-gradient(to bottom, #ffffff, #f9fafb) !important;
}

/* Touch Device Optimizations */
.touch-device {
    -webkit-tap-highlight-color: rgba(34, 150, 168, 0.2);
}

.touch-device .hover\\:scale-105:hover {
    transform: none !important;
}

.touch-device .hover\\:translate-x-1:hover {
    transform: none !important;
}

.touch-device .hover\\:translate-y-1:hover {
    transform: none !important;
}

/* Touch feedback for interactive elements */
.touch-device .btn:active,
.touch-device .mobile-btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

.touch-device .nav-link:active,
.touch-device .mobile-nav-links a:active {
    background: rgba(34, 150, 168, 0.1) !important;
    transform: scale(0.95) !important;
}

/* Reduce animations class */
.reduce-animations * {
    animation-duration: 0.1s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
}

.reduce-animations .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Mobile optimized class */
.mobile-optimized .float-card-1,
.mobile-optimized .float-card-2,
.mobile-optimized .float-card-3 {
    animation: none !important;
    transform: none !important;
}

.mobile-optimized .hero-gradient-bg,
.mobile-optimized .gradient-orb {
    display: none !important;
}

.mobile-optimized .ongoing-animation {
    display: none !important;
}

/* Mobile-specific component styles */
@media (max-width: 1024px) {
    /* Enhanced mobile hero */
    .hero-mobile-optimized {
        background: linear-gradient(to bottom, #ffffff, #f8fafc);
        padding: 4rem 1rem 2rem 1rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Mobile card stack */
    .mobile-card-stack {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .mobile-card-stack .flat-card {
        position: static;
        transform: none;
        width: 100%;
        margin: 0;
    }
    
    /* Mobile section spacing */
    .mobile-section-spacing {
        padding: 2rem 0;
    }
    
    .mobile-section-spacing h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .mobile-section-spacing p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile form enhancements */
    .mobile-form-enhanced {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 2rem 1.5rem;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .mobile-form-enhanced input,
    .mobile-form-enhanced textarea,
    .mobile-form-enhanced select {
        font-size: 16px;
        padding: 1rem;
        border-radius: 12px;
        border: 2px solid rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.9);
        transition: all 0.3s ease;
    }
    
    .mobile-form-enhanced input:focus,
    .mobile-form-enhanced textarea:focus,
    .mobile-form-enhanced select:focus {
        border-color: var(--primary);
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 0 0 3px rgba(34, 150, 168, 0.1);
        transform: translateY(-2px);
    }
}

/* Mobile accessibility improvements */
@media (max-width: 1024px) {
    /* Larger touch targets */
    .mobile-touch-target {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better focus indicators */
    .mobile-focus-enhanced:focus {
        outline: 3px solid var(--primary);
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    /* High contrast support */
    @media (prefers-contrast: high) {
        .mobile-high-contrast {
            border: 2px solid #000;
            background: #fff;
            color: #000;
        }
        
        .mobile-high-contrast.btn-primary {
            background: #000;
            color: #fff;
            border: 2px solid #000;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .mobile-reduced-motion * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}