/* 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;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 43, 70, 0.3);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background-color: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.dark .btn-secondary {
    color: var(--secondary);
    border-color: var(--secondary);
}

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

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-ghost:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.dark .btn-ghost {
    color: #94a3b8;
    border-color: #334155;
}

.dark .btn-ghost:hover {
    background-color: rgba(51, 65, 85, 0.5);
    color: white;
}

/* ========================================
   Card Component
   ======================================== */
.card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.dark .card {
    background-color: rgb(30, 41, 59);
    border-color: rgb(51, 65, 85);
}

.dark .card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Product Card (Service pages)
   ======================================== */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

.dark .product-card {
    background-color: rgb(30, 41, 59);
    border-color: rgb(51, 65, 85);
}

.dark .product-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.product-card.featured {
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary), 0 8px 24px rgba(14, 165, 233, 0.15);
}

.dark .product-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(0, 212, 255, 0.1);
}

/* ========================================
   Pricing Feature List
   ======================================== */
.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.pricing-feature .material-icons-outlined {
    font-size: 1.125rem;
    color: #22c55e;
}

.dark .pricing-feature {
    color: #94a3b8;
}

/* ========================================
   Hero Gradient (Service pages)
   ======================================== */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(15, 43, 70, 0.95) 50%, rgba(14, 165, 233, 0.6) 100%);
}

/* ========================================
   Form Components
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.dark .form-label {
    color: #cbd5e1;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

.dark .form-input {
    background-color: rgba(30, 41, 59, 0.5);
    border-color: #475569;
    color: white;
}

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

/* ========================================
   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;
    }
}
