/* KinabaluDevs Custom Styles */

/* Primary color variables */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-dark: #1d4ed8;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Hero section animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Card hover effects */
.service-card, .feature-card {
    transition: all 0.3s ease;
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Icon animations */
.icon-bounce {
    animation: pulse 2s infinite;
}

/* Form focus styles */
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Navigation styles */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Footer styles */
.footer {
    background: linear-gradient(135deg, #1f2937, #111827);
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message animation */
.alert-success {
    animation: fadeInUp 0.5s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* Glass morphism effect */
.glass-effect {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Hero Section Animations */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.7), 0 0 40px rgba(59, 130, 246, 0.3);
    }
}

/* Floating Animation */
.floating-animation {
    animation: floating 6s ease-in-out infinite;
}

/* Tech Grid Background */
.tech-grid {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
}

.tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: floating 20s linear infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Hero Content Animations */
.hero-badge {
    animation: scaleIn 0.6s ease-out 0.2s both;
}

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

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

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

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

/* Enhanced Glass Effect for Hero */
.hero-content .glass-effect {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px 0 rgba(59, 130, 246, 0.2);
}

/* Button Hover Effects */
.hero-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Image Hover Effect */
.hero-image img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Footer Animations */
.footer-company-info {
    animation: fadeInUp 0.6s ease-out;
}

.footer-quick-links {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.footer-contact-info {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.footer-bottom {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Footer Hover Effects */
.footer-quick-links button:hover,
.footer-bottom span:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Footer Value Badges */
.footer-company-info .glass-effect:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
    transition: all 0.3s ease;
}

/* Footer Contact Icons Animation */
.footer-contact-info svg {
    transition: all 0.3s ease;
}

.footer-contact-info li:hover svg {
    transform: scale(1.1);
    color: #60a5fa;
}

/* About Section Animations */
.about-header {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-image {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
}

.about-content {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out 0.4s forwards;
}

.about-values .value-badge {
    opacity: 0;
    transform: scale(0);
    animation: scaleIn 0.5s ease-out forwards;
}

.about-values .value-badge:nth-child(1) { animation-delay: 0.6s; }
.about-values .value-badge:nth-child(2) { animation-delay: 0.7s; }
.about-values .value-badge:nth-child(3) { animation-delay: 0.8s; }
.about-values .value-badge:nth-child(4) { animation-delay: 0.9s; }

.about-stats {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.stat-card {
    opacity: 0;
    transform: scale(0);
    animation: bounceIn 0.6s ease-out forwards;
    transition: transform 0.3s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.8s; }
.stat-card:nth-child(2) { animation-delay: 0.9s; }
.stat-card:nth-child(3) { animation-delay: 1.0s; }
.stat-card:nth-child(4) { animation-delay: 1.1s; }

.stat-card:hover {
    transform: scale(1.05);
}

/* About Animation Keyframes */
@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);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    .floating-animation,
    .pulse-glow,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-buttons,
    .hero-image {
        animation: none;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}