:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #4b4ea2 100%);
    --secondary-gradient: linear-gradient(135deg, #939dfb 0%, #7157f5 100%);
    --accent-teal: #00d4ff;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-light: #e2e8f0;
    --text-dark: #1e293b;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 25px 50px rgba(0, 0, 0, 0.25);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: white;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}

/* ========== TOUCH-FRIENDLY STYLES ========== */
@media (hover: none) and (pointer: coarse) {
    .btn-gradient:hover,
    .btn-outline-gradient:hover,
    .nav-link:hover,
    .knowledge-badge:hover,
    .tech-stack-badge:hover,
    .portfolio-item:hover,
    .service-card:hover,
    .team-card:hover,
    .testimonial-card:hover,
    .context-card:hover,
    .philosophy-card:hover,
    .knowledge-card:hover,
    .insight-item:hover,
    .stat-card:hover,
    .floating-card:hover {
        transform: none !important;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80% !important;
    }
}

/* ========== KNOWLEDGE BACKGROUND ELEMENTS ========== */
.knowledge-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
    cursor: help;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.knowledge-badge:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
}

.knowledge-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-dark);
    margin-bottom: 10px;
    pointer-events: none;
}

.knowledge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--dark-bg);
}

.knowledge-badge:hover .knowledge-tooltip {
    opacity: 1;
    visibility: visible;
}

.expertise-meter {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.expertise-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.expertise-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tech-radar {
    width: 100%;
    height: 300px;
    position: relative;
    margin: 30px 0;
    overflow: hidden;
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 50%;
}

.radar-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}

.radar-point:hover {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.radar-label {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    transition: var(--transition);
    pointer-events: none;
}

/* ========== INDUSTRY CONTEXT SECTION ========== */
.industry-context-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.context-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.context-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
    border-left-color: #667eea;
    border-right-color: #764ba2;
}

.context-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.context-card:hover::before {
    transform: translateX(0);
}

.context-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.context-card:hover .context-icon {
    transform: rotateY(180deg) scale(1.1);
}

.context-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.context-card p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.context-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

/* ========== TECHNOLOGY INSIGHTS ========== */
.tech-insights-section {
    background: white;
    position: relative;
}

.insight-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.insight-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.insight-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.insight-tab:hover:not(.active) {
    color: #475569;
    background: #f1f5f9;
}

.insight-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.insight-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.insight-item {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition);
    border-left: 4px solid #667eea;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.insight-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.insight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--secondary-gradient);
    transition: height 0.6s ease;
}

.insight-item:hover::before {
    height: 100%;
}

.insight-item h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.insight-item p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.tech-stack-badge {
  display: inline-block;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: help;
  position: relative;
  -webkit-tap-highlight-color: transparent;

  /* ❌ remove transform transition from badge */
  transition: background 0.2s ease;
}

.tech-stack-badge:hover {
  background: rgba(102, 126, 234, 0.2);
  /* ❌ transform REMOVED */
}
.tech-stack-badge .knowledge-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);

  background: var(--dark-bg);
  color: #ffffff;

  padding: 12px 16px;
  border-radius: var(--radius-sm);

  width: 200px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 9999;
  box-shadow: var(--shadow-dark);

  transition: opacity 0.2s ease;

  /* 🔥 text clarity fix */
  -webkit-font-smoothing: antialiased;
}


.tech-stack-badge:hover .knowledge-tooltip {
  opacity: 1;
  visibility: visible;
}


/* ========== INNOVATION PHILOSOPHY ========== */
.philosophy-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V1C1000,19.4,873.3,97.8,500,97z" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: center;
    animation: waveAnimation 20s linear infinite;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.philosophy-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.philosophy-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.philosophy-card:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.philosophy-number {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.3;
    margin-bottom: 20px;
    color: white;
}

.philosophy-card h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.philosophy-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* ========== METHODOLOGY SECTION ========== */
.methodology-section {
    background: var(--light-bg);
    position: relative;
}

.methodology-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.methodology-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.methodology-step {
    position: relative;
    margin-bottom: 50px;
    width: 45%;
}

.methodology-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.methodology-step:nth-child(even) {
    left: 55%;
}

.methodology-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    z-index: 2;
}

.methodology-step:nth-child(odd) .methodology-dot {
    right: -52px;
}

.methodology-step:nth-child(even) .methodology-dot {
    left: -52px;
}

.methodology-content {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.methodology-step:hover .methodology-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.methodology-step:hover .methodology-dot {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* ========== KNOWLEDGE HUB ========== */
.knowledge-hub-section {
    background: white;
    position: relative;
}

.knowledge-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.knowledge-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.knowledge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.knowledge-card:hover::before {
    opacity: 0.05;
}

.knowledge-img {
    height: 180px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.knowledge-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.knowledge-card:hover .knowledge-img img {
    transform: scale(1.05);
}

.knowledge-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.knowledge-category {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.knowledge-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.knowledge-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.knowledge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

/* ========== CASE STUDY DETAILS ========== */
.case-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 20px;
    overflow-y: auto;
}

.case-details-modal.show {
    opacity: 1;
    visibility: visible;
}

.case-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.case-details-modal.show .case-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* ========== EXPERTISE OVERLAY ========== */
.expertise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
    overflow-y: auto;
}

.expertise-overlay.show {
    opacity: 1;
    visibility: visible;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin-top: 40px;
    width: 100%;
}

.expertise-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.expertise-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
}

/* ========== SPARKLE & ANIMATION EFFECTS ========== */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: sparkleFloat 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========== HERO SPARKLES BACKGROUND ========== */
.hero-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-sparkle {
    position: absolute;
    border-radius: 50%;
    animation: heroSparkleMove 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes heroSparkleMove {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
    20% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(180deg);
        opacity: 0;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
}

/* ========== WELCOME MESSAGE STYLES ========== */
.welcome-message-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-gradient);
    color: white;
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    z-index: 10000;
    box-shadow: var(--shadow-dark);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: welcomeMessageFade 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@keyframes welcomeMessageFade {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.welcome-icon {
    font-size: 3rem;
    animation: welcomeIconPulse 2s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes welcomeIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
    }
}

.welcome-message-container h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-message-container p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.welcome-close-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.welcome-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Voice control buttons */
.voice-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.voice-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    -webkit-tap-highlight-color: transparent;
}

.voice-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.animated-gradient-text {
    background: linear-gradient(90deg, #667eea, #764ba2, #00d4ff, #f093fb, #667eea);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.glow {
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.spin-animation {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== LAYOUT & SPACING ========== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 0 20px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-title p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
}

/* ========== PARTICLE BACKGROUND ========== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.15;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========== NAVIGATION ========== */
.navbar {
    padding: 18px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: var(--transition);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark) !important;
    position: relative;
}

.navbar-brand .logo-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0;
    animation: logoSparkle 2s ease-in-out infinite;
}

@keyframes logoSparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 8px;
    transition: var(--transition);
    position: relative;
    padding: 8px 12px !important;
    -webkit-tap-highlight-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    font-size: 1.5rem;
    color: var(--text-dark);
    -webkit-tap-highlight-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========== BUTTONS ========== */
.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.btn-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid transparent;
    color: #667eea;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-sm);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-outline-gradient:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    color: #667eea;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef7ff 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    width: 240px;
    height: 160px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    overflow: hidden;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.floating-card:hover::before {
    left: 100%;
}

.card-1 {
    top: 0;
    right: 10%;
    transform: rotate(5deg);
    animation: float-1 6s ease-in-out infinite;
}

.card-2 {
    top: 120px;
    right: 5%;
    transform: rotate(-3deg);
    animation: float-2 7s ease-in-out infinite;
}

.card-3 {
    top: 240px;
    right: 15%;
    transform: rotate(2deg);
    animation: float-3 8s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-25px) rotate(-3deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.floating-card:hover i {
    animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    z-index: 2;
    position: relative;
}

.floating-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    z-index: 2;
    position: relative;
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    line-height: 1;
    transition: var(--transition);
}

.stat-text {
    font-weight: 600;
    color: #475569;
    font-size: 1rem;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background: var(--light-bg);
    position: relative;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
    -webkit-tap-highlight-color: transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: #667eea;
    transition: var(--transition);
    position: relative;
    z-index: 3;
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 3;
}

.service-card p {
    color: #64748b;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 3;
}

.service-features li {
    margin-bottom: 10px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: #667eea;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-section {
    background: white;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap ;
    overflow-x: visible;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    
}
.more-buttons {
    display: flex;
    flex-wrap: wrap;   /* Allow buttons inside to wrap */
    gap: 15px;
    width: 100%;       /* Important so it goes to next line */
}


.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    color: #64748b;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.filter-btn.active, .filter-btn:hover {
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.filter-btn.active::before, .filter-btn:hover::before {
    opacity: 1;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    background: white;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    -webkit-tap-highlight-color: transparent;
}

.portfolio-item.show {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.portfolio-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== TEAM SECTION ========== */
.team-section {
    background: var(--light-bg);
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    -webkit-tap-highlight-color: transparent;
}

.team-card.show {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.team-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.team-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 70%, rgba(102, 126, 234, 0.3));
    z-index: 1;
    transition: var(--transition);
}

.team-card:hover .team-img::before {
    background: linear-gradient(transparent 40%, rgba(102, 126, 234, 0.5));
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-content {
    padding: 24px;
    text-align: center;
    position: relative;
}

.team-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.team-content h4 {
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 8px;
}

.team-content p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.team-social a {
    width: 36px;
    height: 36px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: var(--transition);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.team-social a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

/* ========== PROCESS SECTION ========== */
.process-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.process-line {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    opacity: 0.2;
    z-index: 1;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.process-step.show {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-step p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    background: var(--light-bg);
    position: relative;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    -webkit-tap-highlight-color: transparent;
}

.testimonial-card.show {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: #e2e8f0;
    font-family: serif;
    line-height: 1;
    transition: var(--transition);
}

.testimonial-card:hover::before {
    color: #667eea;
    opacity: 0.5;
}

.testimonial-text {
    color: #475569;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid #e2e8f0;
    transition: var(--transition);
    flex-shrink: 0;
}

.testimonial-card:hover .author-avatar {
    border-color: #667eea;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.author-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V1C1000,19.4,873.3,97.8,500,97z" fill="%23ffffff" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    animation: waveAnimation 20s linear infinite;
}

@keyframes waveAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 0; }
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 1;
}

.cta-section h2.show {
    opacity: 1;
    transform: translateY(0);
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.cta-section p.show {
    opacity: 1;
    transform: translateY(0);
}

.cta-btn {
    background: white;
    color: #667eea;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cta-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: white;
}

.cta-btn:hover::before {
    opacity: 1;
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition);
}

.footer-heading:hover::after {
    width: 60px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: transparent;
}

.footer-links a i {
    margin-right: 8px;
    color: #00d4ff;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
    line-height: 1.6;
}

.contact-info p i {
    margin-right: 12px;
    color: #00d4ff;
    margin-top: 3px;
}

.contact-info p:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px) scale(1.1);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 20px;
}

.footer-newsletter p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.input-group {
    display: flex;
    flex-wrap: nowrap;
}

.input-group .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
    width: 100%;
    font-size: 1rem;
}

.input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.copyright {
    padding-top: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.copyright a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: white;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
    
    /* Starting position */
    top: 10px;
    bottom: auto;
    transform: translateY(0) scale(0.6);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);  /* Smooth transition */
}

/* Slow motion show animation */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: slowSlideFromTop 1.8s cubic-bezier(0.25, 0.1, 0.15, 1) forwards;
}

/* ✅ INCREASED HOVER EFFECT - Button pe hover karein to bada effect */
.back-to-top:hover {
    transform: translateY(-12px) scale(1.35);  /* Pehle se bada */
    box-shadow: 0 28px 55px rgba(102, 126, 234, 0.75);  /* Zyada shadow */
    cursor: pointer;
    background: linear-gradient(135deg, #7b6ef0, #9b8cff);  /* Thoda lighter gradient */
}

/* Optional: Active state */
.back-to-top:active {
    transform: translateY(-5px) scale(1.2);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

/* Slow slide animation */
@keyframes slowSlideFromTop {
    0% {
        top: 5%;
        bottom: auto;
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.4);
    }
    20% {
        top: 20%;
        opacity: 0.2;
        filter: blur(10px);
        transform: scale(0.6);
    }
    40% {
        top: 40%;
        opacity: 0.4;
        filter: blur(8px);
        transform: scale(0.75);
    }
    60% {
        top: 60%;
        opacity: 0.6;
        filter: blur(5px);
        transform: scale(0.85);
    }
    80% {
        top: 80%;
        opacity: 0.8;
        filter: blur(2px);
        transform: scale(0.95);
    }
    100% {
        top: auto;
        bottom: 30px;
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Slow hide animation */
.back-to-top.hiding {
    animation: slowSlideToTop 1.6s ease-in forwards;
}

@keyframes slowSlideToTop {
    0% {
        bottom: 30px;
        top: auto;
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
    100% {
        bottom: auto;
        top: 5%;
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.4);
        visibility: hidden;
    }
}

/* ========== LOADING ANIMATION ========== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    position: relative;
    margin-bottom: 24px;
}

.loading-spinner div {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 6px solid transparent;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spinnerOne 1.2s linear infinite;
}

.loading-spinner div:nth-child(2) {
    border: 6px solid transparent;
    border-bottom-color: #764ba2;
    animation: spinnerTwo 1.2s linear infinite;
}

@keyframes spinnerOne {
    0% { transform: rotate(0deg); border-width: 6px; }
    50% { transform: rotate(180deg); border-width: 1px; }
    100% { transform: rotate(360deg); border-width: 6px; }
}

@keyframes spinnerTwo {
    0% { transform: rotate(0deg); border-width: 1px; }
    50% { transform: rotate(180deg); border-width: 6px; }
    100% { transform: rotate(360deg); border-width: 1px; }
}

.loading h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========== RIPPLE EFFECT ========== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== COMPREHENSIVE MOBILE RESPONSIVE STYLES ========== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 3.8rem;
    }
    
    .section-title h2 {
        font-size: 3.5rem;
    }
}

/* Large Devices (1200px to 1399px) */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .floating-card {
        width: 200px;
        height: 140px;
    }
    
    .knowledge-tooltip {
        width: 220px;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Medium Devices (992px to 1199px) - Tablets Landscape */
@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 40px;
    }
    
    .floating-card {
        width: 180px;
        height: 120px;
        padding: 16px;
    }
    
    .card-1 {
        right: 5%;
    }
    
    .card-2 {
        right: 0;
    }
    
    .card-3 {
        right: 10%;
    }
    
    .process-line {
        display: none;
    }
    
    .process-step {
        margin-bottom: 30px;
    }
    
    .team-img {
        height: 220px;
    }
    
    .portfolio-img {
        height: 180px;
    }
    
    .welcome-message-container {
        padding: 25px 30px;
        max-width: 450px;
    }
    
    .welcome-message-container h3 {
        font-size: 1.6rem;
    }
    
    .methodology-timeline::before {
        left: 30px;
    }
    
    .methodology-step {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 70px;
        margin-bottom: 40px;
    }
    
    .methodology-step:nth-child(odd) .methodology-dot,
    .methodology-step:nth-child(even) .methodology-dot {
        left: 20px;
        right: auto;
    }
    
    .context-card,
    .philosophy-card,
    .service-card,
    .knowledge-content {
        padding: 30px;
    }
    
    .knowledge-img {
        height: 160px;
    }
    
    .tech-radar {
        height: 250px;
    }
    
    .radar-center {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .expertise-item {
        padding: 25px;
    }
    
    .case-modal-content {
        width: 95%;
    }
}

/* Small Devices (768px to 991px) - Tablets Portrait */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-btns a, .hero-btns button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        background: white;
        padding: 20px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow);
        margin-top: 20px;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-item.ms-lg-4 {
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .footer-newsletter .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-newsletter .form-control,
    .footer-newsletter .btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }
    
    .welcome-message-container {
        padding: 20px 25px;
        max-width: 400px;
    }
    
    .welcome-icon {
        font-size: 2.5rem;
    }
    
    .welcome-message-container h3 {
        font-size: 1.4rem;
    }
    
    .welcome-message-container p {
        font-size: 1rem;
    }
    
    .welcome-close-btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
    
    .knowledge-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .knowledge-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 3px;
    }
    
    .knowledge-tooltip {
        width: 180px;
        font-size: 0.75rem;
        padding: 10px 12px;
    }
    
    .context-card,
    .philosophy-card,
    .service-card,
    .insight-item,
    .methodology-content {
        padding: 25px;
    }
    
    .context-icon,
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .philosophy-number {
        font-size: 2.5rem;
    }
    
    .philosophy-card h4,
    .context-card h4,
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .knowledge-img {
        height: 140px;
    }
    
    .knowledge-content {
        padding: 20px;
    }
    
    .knowledge-content h4 {
        font-size: 1.1rem;
    }
    
    .tech-radar {
        height: 200px;
        margin: 20px 0;
    }
    
    .radar-center {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .radar-point {
        width: 8px;
        height: 8px;
    }
    
    .radar-label {
        font-size: 0.7rem;
    }
    
    .expertise-overlay {
        padding: 30px 20px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .expertise-item {
        padding: 20px;
    }
    
    .case-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .close-modal {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
    
    /* Hide complex hover effects on mobile */
    .context-card:hover .context-icon,
    .service-card:hover .service-icon,
    .floating-card:hover i {
        transform: none;
        animation: none;
    }
    
    .insight-item:hover {
        transform: none;
    }
    
    /* Improve touch targets */
    .filter-btn,
    .insight-tab,
    .voice-btn,
    .team-social a,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px !important;
    }
}
@media (max-width: 768px) {
  .team-img {
    width: 100%;
    height: auto;
  }
}

/* Extra Small Devices (576px to 767px) - Large Phones */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-card {
        width: 150px;
        height: 100px;
        padding: 12px;
    }
    
    .floating-card i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .floating-card h4 {
        font-size: 0.9rem;
    }
    
    .floating-card p {
        font-size: 0.75rem;
    }
    
    .portfolio-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .footer-heading {
        font-size: 1.2rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
    
    .welcome-message-container {
        padding: 15px 20px;
        max-width: 320px;
    }
    
    .welcome-icon {
        font-size: 2rem;
    }
    
    .welcome-message-container h3 {
        font-size: 1.2rem;
    }
    
    .welcome-message-container p {
        font-size: 0.9rem;
    }
    
    .welcome-close-btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
    
    .btn-gradient,
    .btn-outline-gradient,
    .cta-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .knowledge-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .knowledge-tooltip {
        width: 160px;
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    
    .context-card,
    .philosophy-card,
    .service-card,
    .insight-item {
        padding: 20px;
    }
    
    .context-stats {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stat-item {
        text-align: left;
    }
    
    .philosophy-number {
        font-size: 2rem;
    }
    
    .philosophy-card h4,
    .context-card h4,
    .service-card h4 {
        font-size: 1rem;
    }
    
    .knowledge-img {
        height: 120px;
    }
    
    .knowledge-content {
        padding: 15px;
    }
    
    .knowledge-content h4 {
        font-size: 1rem;
    }
    
    .knowledge-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .tech-radar {
        height: 180px;
    }
    
    .radar-center {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .radar-point {
        width: 6px;
        height: 6px;
    }
    
    .radar-label {
        font-size: 0.6rem;
    }
    
    .expertise-overlay h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .expertise-item {
        padding: 15px;
    }
    
    .expertise-item h5 {
        font-size: 1rem;
    }
    
    .team-content {
        padding: 20px;
    }
    
    .team-social {
        gap: 8px;
    }
    
    .team-social a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: 15px;
        left: 20px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
}

/* Extra Extra Small Devices (400px to 575px) - Small Phones */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .btn-gradient, .btn-outline-gradient {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .portfolio-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .welcome-message-container {
        max-width: 280px;
        padding: 15px;
    }
    
    .welcome-icon {
        font-size: 1.8rem;
    }
    
    .welcome-message-container h3 {
        font-size: 1.1rem;
    }
    
    .welcome-message-container p {
        font-size: 0.85rem;
    }
    
    .voice-controls {
        gap: 8px;
    }
    
    .voice-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .knowledge-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .knowledge-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 5px 0;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .floating-card {
        width: 130px;
        height: 90px;
        padding: 10px;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card h4 {
        font-size: 0.8rem;
    }
    
    .floating-card p {
        font-size: 0.65rem;
    }
    
    .context-card,
    .philosophy-card,
    .service-card {
        padding: 15px;
    }
    
    .context-icon,
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .philosophy-number {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .insight-tabs {
        gap: 5px;
    }
    
    .insight-tab {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .insight-item {
        padding: 15px;
    }
    
    .tech-stack-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .knowledge-img {
        height: 100px;
    }
    
    .knowledge-content {
        padding: 12px;
    }
    
    .knowledge-category {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .knowledge-content h4 {
        font-size: 0.95rem;
    }
    
    .knowledge-content p {
        font-size: 0.8rem;
    }
    
    .knowledge-meta {
        font-size: 0.75rem;
    }
    
    .tech-radar {
        height: 150px;
    }
    
    .radar-center {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .radar-label {
        font-size: 0.55rem;
    }
    
    .expertise-overlay h2 {
        font-size: 1.3rem;
    }
    
    .expertise-item {
        padding: 12px;
    }
    
    .expertise-item h5 {
        font-size: 0.9rem;
    }
    
    .expertise-meter {
        height: 6px;
        margin: 10px 0;
    }
    
    .expertise-fill {
        height: 6px;
    }
    
    .footer-heading {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .footer-newsletter {
        padding: 20px;
    }
    
    .footer-newsletter p {
        font-size: 0.85rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 30px;
        margin-top: 40px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Very Small Devices (320px to 399px) - Extra Small Phones */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn-gradient, .btn-outline-gradient, .cta-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    
    .knowledge-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .floating-card {
        width: 110px;
        height: 80px;
        padding: 8px;
    }
    
    .floating-card i {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .floating-card h4 {
        font-size: 0.7rem;
    }
    
    .floating-card p {
        font-size: 0.6rem;
    }
    
    .context-card,
    .philosophy-card,
    .service-card {
        padding: 12px;
    }
    
    .philosophy-number {
        font-size: 1.6rem;
    }
    
    .team-content {
        padding: 15px;
    }
    
    .team-social a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .loading,
    .welcome-message-container,
    .sparkle-container,
    .hero-sparkles,
    .particles-bg,
    .back-to-top,
    .navbar-toggler,
    .footer-newsletter .btn,
    .hero-btns,
    .portfolio-overlay,
    .team-social,
    .social-links,
    .expertise-overlay,
    .case-details-modal,
    .voice-controls,
    .tech-radar {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .navbar {
        position: static;
        background: #fff !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
    }
    
    .hero {
        padding: 30px 0 !important;
    }
    
    .section-padding {
        padding: 30px 0 !important;
    }
    
    a {
        text-decoration: none;
        color: #000 !important;
    }
    
    .btn-gradient, .btn-outline-gradient, .cta-btn {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .knowledge-card,
    .service-card,
    .portfolio-item,
    .team-card,
    .testimonial-card,
    .context-card,
    .philosophy-card,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .hero-visual,
    .floating-card,
    .knowledge-img,
    .team-img,
    .portfolio-img {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .section-title h2 {
        font-size: 1.8rem !important;
    }
    
    .gradient-text, .animated-gradient-text {
        color: #000 !important;
        background: none !important;
    }
    
    footer {
        background: #fff !important;
        color: #000 !important;
        padding: 30px 0 !important;
    }
    
    .footer-heading,
    .footer-links a,
    .contact-info p,
    .copyright,
    .copyright a {
        color: #000 !important;
    }
    
    .footer-newsletter {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
    }
    
    .footer-newsletter p {
        color: #000 !important;
    }
    
    .calculator-input .form-control {
        background: #fff !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    
    .knowledge-badge {
        background: #f9f9f9 !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }
    
    .tech-stack-badge {
        background: #f9f9f9 !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero h1,
    .hero p,
    .hero-btns,
    .portfolio-item,
    .team-card,
    .process-step,
    .testimonial-card,
    .cta-section h2,
    .cta-section p,
    .cta-btn {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .sparkle,
    .hero-sparkle,
    .particle,
    .floating-card,
    .loading-spinner div,
    .expertise-fill::after,
    .philosophy-section::before,
    .cta-section::before {
        animation: none !important;
    }
    
    .welcome-icon,
    .logo-sparkle {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .knowledge-badge,
    .tech-stack-badge,
    .portfolio-tag,
    .filter-btn,
    .btn-gradient,
    .btn-outline-gradient,
    .cta-btn {
        border-width: 2px;
    }
    
    .nav-link::after {
        height: 4px;
    }
    
    .service-card::after {
        height: 6px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .navbar {
        background-color: rgba(26, 26, 26, 0.98);
    }
    
    .hero {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
    
    .services-section,
    .industry-context-section,
    .team-section,
    .testimonials-section {
        background: #121212;
    }
    
    .service-card,
    .context-card,
    .portfolio-item,
    .team-card,
    .testimonial-card,
    .stat-card,
    .insight-item,
    .knowledge-card,
    .methodology-content {
        background: #2a2a2a;
        color: #f0f0f0;
        border-color: #444;
    }
    
    .service-card h4,
    .context-card h4,
    .portfolio-content h4,
    .team-content h4,
    .knowledge-content h4,
    .insight-item h5 {
        color: #f0f0f0;
    }
    
    .service-card p,
    .context-card p,
    .portfolio-content p,
    .team-content p,
    .knowledge-content p,
    .insight-item p,
    .stat-text {
        color: #aaa;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .floating-card {
        width: 140px;
        height: 100px;
    }
    
    .navbar-nav {
        max-height: 50vh;
    }
    
    .expertise-overlay {
        padding: 20px;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Prevent text size adjustment on orientation change */
@media (orientation: landscape) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero,
    .cta-section,
    .expertise-overlay,
    .case-details-modal {
        min-height: -webkit-fill-available;
    }
}

/* ========== PRICING SECTION ========== */
.pricing-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.pricing-card.popular {
    transform: translateY(-20px);
    border: 2px solid #667eea;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
    position: relative;
    z-index: 2;
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.pricing-card.popular:hover {
    transform: translateY(-30px);
}

.pricing-header {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pricing-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.pricing-price {
    margin: 20px 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 5px;
}

.price-period {
    color: #64748b;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 15px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-features li i {
    color: #10b981;
    margin-right: 12px;
    margin-top: 3px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: #94a3b8;
}

.pricing-features li.disabled i {
    color: #cbd5e1;
}

.pricing-features li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.pricing-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 20px;
    font-style: italic;
}

/* Pricing Toggle Switch */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.toggle-label {
    font-weight: 600;
    color: #475569;
    transition: var(--transition);
}

.toggle-label.active {
    color: #667eea;
}

.toggle-switch {
    position: relative;
    width: 70px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: var(--primary-gradient);
}

input:checked + .toggle-slider:before {
    transform: translateX(36px);
}

/* Enterprise CTA */
.enterprise-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    color: white;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.enterprise-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V1C1000,19.4,873.3,97.8,500,97z" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: cover;
    animation: waveAnimation 20s linear infinite;
}

.enterprise-cta h3 {
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.enterprise-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.enterprise-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.enterprise-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.enterprise-feature i {
    color: #00d4ff;
    font-size: 1.2rem;
}

/* Comparison Table */
.comparison-table {
    margin-top: 60px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: white;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #f8fafc;
}

.feature-check {
    color: #10b981;
    font-size: 1.1rem;
}

.feature-x {
    color: #ef4444;
    font-size: 1.1rem;
}

.feature-limited {
    color: #f59e0b;
    font-size: 0.9rem;
    font-weight: 600;
}


/* Responsive Pricing */
@media (max-width: 992px) {
    .pricing-card.popular {
        transform: translateY(0);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .enterprise-cta {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 30px 20px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .pricing-card.popular::before {
        right: -45px;
        padding: 6px 50px;
        font-size: 0.7rem;
    }
    
    .enterprise-features {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        max-width: 300px;
        margin: 30px auto 0;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
}

@media (max-width: 576px) {
    .pricing-toggle {
        flex-direction: column;
        gap: 15px;
    }
    
    .enterprise-cta {
        padding: 30px 20px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}/* Calculator Card */
/* Main Calculator Card - Enhanced Gradient & Shadows */
.calculator-card {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 50%, 
        #9a4ef0 100%);
    border-radius: 24px;
    padding: 32px;
    color: white;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #ff6b9d 0%,
        #9d4edd 50%,
        #4361ee 100%);
    border-radius: 24px 24px 0 0;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Header Section */
.calculator-header {
    position: relative;
    z-index: 2;
}

.calculator-header h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 80%;
}

/* Calculator Body */
.calculator-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 32px;
    color: #333;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: #2d3748;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Input Group with Enhanced Buttons */
.calculator-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-input .btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.calculator-input .btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.calculator-input .btn:active {
    transform: scale(0.98);
}

.calculator-input .form-control {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    height: 48px;
    border: 2px solid #e2e8f0;
    color: #2d3748 !important;
    background-color: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calculator-input .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

/* Form Text Styling */
.form-text {
    margin-top: 10px;
    color: #4a5568 !important;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(247, 250, 252, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.form-text:hover {
    background: rgba(247, 250, 252, 1);
    transform: translateX(2px);
}

.price-per-unit {
    color: #4a6cf7 !important;
    font-weight: 700;
    padding: 4px 8px;
    background: linear-gradient(135deg, 
        rgba(74, 108, 247, 0.1) 0%,
        rgba(74, 108, 247, 0.15) 100%);
    border-radius: 6px;
    border: 1px solid rgba(74, 108, 247, 0.2);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Total Section */
.calculator-total {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    border-radius: 18px;
    border: 2px dashed #c7d2fe;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.calculator-total::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(199, 210, 254, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.calculator-total:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.1);
}

.total-label {
    font-size: 0.9rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.total-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    margin: 12px 0;
    background: linear-gradient(135deg, #667eea 0%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pricePulse 2s ease-in-out infinite;
}

@keyframes pricePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.total-period {
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
}

/* Custom Package Card Enhancement */
.pricing-card.custom-package {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card.custom-package:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.3);
}

.pricing-card.custom-package .pricing-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Modal & Summary Enhancements */
.package-summary {
    padding: 24px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(247, 250, 252, 0.5);
    padding-left: 10px;
    border-radius: 8px;
}

.summary-item.total {
    border-top: 2px solid #667eea;
    border-bottom: none;
    margin-top: 20px;
    padding-top: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

.summary-note {
    background: linear-gradient(135deg, 
        rgba(248, 249, 255, 0.8) 0%,
        rgba(240, 244, 255, 0.8) 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 24px;
    color: #4a5568;
    font-size: 0.95rem;
    border-left: 4px solid #667eea;
}

.summary-note i {
    color: #667eea;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Enhanced Highlight Animation */
.pricing-card.custom-package.highlight {
    animation: pulseHighlight 2s ease;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.2),
        0 20px 40px rgba(102, 126, 234, 0.25) !important;
}

@keyframes pulseHighlight {
    0% { 
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7),
                    0 10px 20px rgba(102, 126, 234, 0.1);
        transform: scale(1);
    }
    50% { 
        transform: scale(1.02);
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
    100% { 
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
                    0 20px 40px rgba(102, 126, 234, 0.25);
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .calculator-body {
        padding: 24px;
    }
    
    .total-amount {
        font-size: 2.5rem;
    }
    
    .calculator-input .btn {
        width: 44px;
        height: 44px;
    }
    
    .calculator-header p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .calculator-card {
        padding: 20px;
    }
    
    .calculator-input {
        flex-direction: column;
        gap: 12px;
    }
    
    .calculator-input .btn {
        width: 100%;
        height: 44px;
    }
    
    .total-amount {
        font-size: 2rem;
    }
}

/* Loading State Animation */
@keyframes shimmerLoading {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.loading-shimmer {
    background: linear-gradient(90deg, 
        #f0f0f0 25%, 
        #e0e0e0 50%, 
        #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerLoading 1.5s infinite;
}


