/* OnySoft Corporate Website - Custom Styles */
/* Built with Tailwind CSS CDN - Additional custom styles */

/* ========================================
   Custom Properties
   ======================================== */
:root {
    --primary: #0f2b46;
    --secondary: #0ea5e9;
    --accent: #00d4ff;
    --background-light: #f8fafc;
    --background-dark: #020617;
}

/* ========================================
   Base Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* ========================================
   Glass Card Effect
   ======================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   Glass Input Effect
   ======================================== */
.glass-input {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .glass-input {
    background: rgba(30, 41, 59, 0.4);
}

/* ========================================
   Hero Pattern (Grid dots)
   ======================================== */
.hero-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-grid-pattern {
    background-image: radial-gradient(rgba(14, 165, 233, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.dark .bg-grid-pattern {
    background-image: radial-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

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

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Marquee animation for client logos */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

/* ========================================
   Text Gradient
   ======================================== */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

.dark .text-gradient {
    background-image: linear-gradient(to right, var(--secondary), var(--accent));
}

/* ========================================
   Timeline Scroll (hide scrollbar)
   ======================================== */
.timeline-scroll::-webkit-scrollbar {
    display: none;
}

.timeline-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   Project Filter Buttons
   ======================================== */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(15, 43, 70, 0.2);
}

.dark .filter-btn.active {
    background-color: var(--secondary);
    color: var(--primary);
}

/* ========================================
   Map Filter for better visual
   ======================================== */
.map-filter {
    filter: grayscale(100%) contrast(90%);
    transition: filter 0.5s ease;
}

.map-filter:hover {
    filter: grayscale(0%) contrast(100%);
}

/* ========================================
   Button Hover Effects
   ======================================== */
.btn-glow {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* ========================================
   Card Hover Effects
   ======================================== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.dark .card-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Icon Animations
   ======================================== */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    transform: scale(1.1);
}

/* ========================================
   Link Underline Animation
   ======================================== */
.link-underline {
    position: relative;
}

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

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

/* ========================================
   Form Focus Styles
   ======================================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.dark input:focus,
.dark textarea:focus,
.dark select:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* ========================================
   Loading Skeleton
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }

    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        text-decoration: underline;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
