/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
    cursor: none;
    background-color: #ffffff;
    color: #111827;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
}

/* Smooth scroll — all browsers */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;  /* fixed navbar ke liye */
}

/* Better scrolling performance */
html, body {
    overflow-x: hidden;
}

/* ============================================
   CURSOR
   ============================================ */

.mobile-menu .p-6 {
    background-color: white !important;
    height: 100vh !important;
    overflow-y: auto !important;
}

.cursor-dot {
    width: 12px;
    height: 12px;
    background: #16407b;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    box-shadow: 0 0 15px #16407b;
}

.cursor-dot.trail {
    width: 6px;
    height: 6px;
    background: rgba(0, 173, 181, 0.6);
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.8);
}

.cursor-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(2); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 8px; }

::-webkit-scrollbar-track { background: #f3f4f6; }

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover { background: #16407b; }

/* ============================================
   FADE-UP ANIMATION
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ============================================
   GLASS / BLUR
   ============================================ */

.glass-strong {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-blur {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   TEXT / GRADIENTS
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #111827 0%, #16407b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CARDS
   ============================================ */

.service-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 173, 181, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 173, 181, 0.15);
}

.portfolio-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover img { transform: scale(1.05); }

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: #16407b;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 173, 181, 0.3);
}

.btn-secondary {
    border: 2px solid #e5e7eb;
    color: #111827;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #16407b;
    background: rgba(0, 173, 181, 0.05);
}

/* ============================================
   SHAPES / DECORATIVE
   ============================================ */

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.shape-accent { background: rgba(0, 173, 181, 0.15); }
.shape-gray { background: rgba(0, 0, 0, 0.05); }

/* ============================================
   CTA GRADIENT
   ============================================ */

.cta-gradient {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #f9fafb 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open { transform: translateX(0); }

/* ============================================
   DROPDOWNS
   ============================================ */

.dropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.group:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-dropdown-content.open { max-height: 600px; }

/* ============================================
   PRODUCT / FEATURE BADGES
   ============================================ */

.feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 173, 181, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.mockup-eduimy { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.mockup-softcart { background: linear-gradient(135deg, #16407b 0%, #00d4aa 100%); }
.mockup-foodimy { background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%); }

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(0, 173, 181, 0.1);
    color: #16407b;
    border: 1px solid rgba(0, 173, 181, 0.2);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

input, textarea, select, button { cursor: auto; }

/* ============================================
   ACTIVE NAV LINK
   ============================================ */

a.is-current:not(.btn-primary) { color: #16407b !important; }

/* ============================================
   PERFORMANCE / SMOOTHNESS
   ============================================ */

/* Better scroll performance for animated elements */
.animate-blob,
.animate-pulse,
.animate-bounce {
    will-change: transform;
}
 
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   MOBILE TOUCH IMPROVEMENTS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot { display: none !important; }
    a, button { -webkit-tap-highlight-color: transparent; }
}

/* ============================================
   RESPONSIVE SCROLL PADDING
   ============================================ */

@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }
}