* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply Inter font but exclude Font Awesome icons */
body,
h1, h2, h3, h4, h5, h6,
p, span, a, div, button, input, textarea, select {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Preserve Font Awesome fonts */
.fa, .fas, .far, .fal, .fab,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
}

.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(15, 23, 42, 0.1) 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
}

.industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
}

.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.standard-badge {
    transition: all 0.3s ease;
}

.standard-badge:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInRight 0.3s ease-out;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Form input focus effects */
#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#contactForm input:valid:not(:placeholder-shown),
#contactForm textarea:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

.glow-on-hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.glow-on-hover:hover::before {
    left: 100%;
}

.glow-on-hover:hover {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.9), 0 0 80px rgba(102, 126, 234, 0.5);
    transform: translateY(-5px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

.pulse-animation {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(15, 23, 42, 0.2));
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

.section-gradient-1 {
    background: linear-gradient(180deg, #0f172a 0%, #1a1f3a 100%);
}

.section-gradient-2 {
    background: linear-gradient(180deg, #1a1f3a 0%, #0f172a 100%);
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

/* Hide Default Cursor */
* {
    cursor: none !important;
}

/* Allow back to top button to be clickable */
#back-to-top {
    pointer-events: auto !important;
}

/* Custom Cyber Cursor */
.cyber-cursor {
    width: 50px;
    height: 50px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.15s ease;
}

.cyber-cursor-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Diamond/Target Shape */
.cyber-cursor-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 28px;
    height: 28px;
    background: transparent;
    border: 2px solid #3b82f6;
    animation: cursorPulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px #3b82f6, inset 0 0 10px rgba(59, 130, 246, 0.3);
}

.cyber-cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px #3b82f6;
    animation: dotPulse 1.5s ease-in-out infinite;
}

/* Crosshair Lines */
.cyber-cursor-line {
    position: absolute;
    background: #3b82f6;
    box-shadow: 0 0 5px #3b82f6;
}

.line-h {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.line-v {
    width: 2px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Outer ring */
.line-h:nth-child(5),
.line-v:nth-child(6),
.line-h:nth-child(7),
.line-v:nth-child(8) {
    opacity: 0.5;
}

.line-h:nth-child(5) {
    width: 8px;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.line-v:nth-child(6) {
    height: 8px;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.line-h:nth-child(7) {
    width: 8px;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.line-v:nth-child(8) {
    height: 8px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.cyber-cursor.active .cyber-cursor-circle {
    animation: cursorClick 0.3s ease;
    border-color: #60a5fa;
    box-shadow: 0 0 25px #60a5fa, inset 0 0 15px rgba(96, 165, 250, 0.5);
    transform: translate(-50%, -50%) rotate(45deg) scale(0.8);
}

@keyframes cursorPulse {
    0%, 100% { 
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) rotate(45deg) scale(1.15);
    }
}

@keyframes dotPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

@keyframes cursorClick {
    0% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(45deg) scale(0.7); }
    100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
}

/* Cursor Trail Effect */
.cursor-trail {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #3b82f6, transparent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 15px #3b82f6;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scale.active {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }

/* Particles Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 3D Card Tilt */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    pointer-events: auto;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.7);
}

/* Typing Effect */
.typing-text {
    overflow: hidden;
    border-right: 3px solid #3b82f6;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Progress Bars */
.progress-bar {
    height: 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

/* Image Reveal */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    animation: reveal 1.5s ease forwards;
}

@keyframes reveal {
    to { left: 100%; }
}
