/* ===== BASE STYLES ===== */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #1A1A1A;
    color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #FF6A00 0%, #E65D00 100%);
    color: #FFFFFF;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.4);
}

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

.btn-primary:active {
    transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6A00;
    transition: width 0.3s ease;
}

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

/* Navbar scroll effect */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-on-load {
    animation: fadeInUp 1s ease-out forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CARD HOVER EFFECTS ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:-translate-y-2 {
    transform: translateY(-8px);
}

.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

/* Service cards hover */
.bg-card-bg {
    transition: all 0.4s ease;
}

.bg-card-bg:hover {
    background-color: #2a2a2a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== HERO BACKGROUND ANIMATION ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Grid pattern overlay */
[style*="background-image"] {
    animation: fadeIn 1.5s ease-out;
}

/* ===== IMAGE HOVER EFFECTS ===== */
.overflow-hidden img {
    transition: transform 0.7s ease;
}

.group:hover img {
    transform: scale(1.05);
}

/* ===== LINK TRANSITIONS ===== */
a {
    transition: color 0.3s ease;
}

/* ===== FORM STYLES (for contact page) ===== */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #FF6A00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
    outline: none;
}

/* ===== DECORATION ANIMATIONS ===== */
.border-accent\/20 {
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(255, 106, 0, 0.2); }
    50% { border-color: rgba(255, 106, 0, 0.4); }
}

/* ===== STATS COUNTER ANIMATION ===== */
[class*="text-3xl"], [class*="text-4xl"] {
    background: linear-gradient(135deg, #FF6A00, #ff8533);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LOADING ANIMATION ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, #252525 25%, #333 50%, #252525 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== PROCESS STEPS CONNECTOR ANIMATION ===== */
@media (min-width: 768px) {
    [class*="bg-gradient-to-r"] {
        background-size: 200% 100%;
        animation: gradientSlide 2s ease-in-out infinite;
    }
    
    @keyframes gradientSlide {
        0% { background-position: 0% 50%; }
        100% { background-position: 100% 50%; }
    }
}

/* ===== FOOTER LINKS ===== */
footer a {
    position: relative;
    display: inline-block;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF6A00;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* ===== SOCIAL ICONS BOUNCE ===== */
footer [data-lucide]:hover {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ===== TEXT GRADIENT ANIMATION ===== */
.text-transparent {
    background-size: 200% auto;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .reveal-on-scroll {
        transition-delay: 0s !important;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* ===== REDUCE MOTION ===== */
@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;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}