/* ==================== OGARNE AI - Custom Styles ==================== */

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

/* Custom selection color */
::selection {
    background-color: rgba(0, 212, 170, 0.3);
    color: white;
}

/* ==================== Fade In Animation ==================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays handled inline */

/* ==================== Navbar Styles ==================== */
#navbar {
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== Button Hover Effects ==================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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-glow:hover::before {
    left: 100%;
}

/* ==================== Card Hover Effects ==================== */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateX(2deg) rotateY(-2deg);
}

/* ==================== Gradient Text ==================== */
.gradient-text {
    background: linear-gradient(135deg, #00D4AA, #55EFC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Glassmorphism Effect ==================== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== Mobile Menu Animation ==================== */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0) !important;
}

/* ==================== Scroll Indicator ==================== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

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

::-webkit-scrollbar-track {
    background: #1A1A2E;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #00B894;
}

/* ==================== Focus Styles ==================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #00D4AA;
    outline-offset: 2px;
}

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

    .fade-in-element {
        opacity: 1;
        transform: none;
    }
}

/* ==================== Legal Pages Specific ==================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1A1A2E;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00D4AA;
}

.legal-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #16213E;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #00B894;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #00D4AA;
}

.legal-content strong {
    color: #1A1A2E;
    font-weight: 600;
}

/* Table styles for legal pages */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.legal-content th {
    background: #F9FAFB;
    font-weight: 600;
    color: #1A1A2E;
}

.legal-content tr:hover td {
    background: #F9FAFB;
}

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

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

    .legal-content {
        max-width: 100%;
    }
}
