/* ====================================
   Proyfexa - Custom Styles
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for entire document */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(34, 211, 238), rgb(59, 130, 246));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgb(34, 211, 238), rgb(59, 130, 246));
    opacity: 0.8;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgb(34, 211, 238) rgba(15, 23, 42, 0.8);
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Gradient Text Utility */
.bg-gradient-text {
    background: linear-gradient(135deg, rgb(34, 211, 238), rgb(59, 130, 246));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
button, a.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    cursor: pointer;
    border: none;
}

button:active, a.btn:active {
    transform: scale(0.98);
}

/* Link Styles */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Form Styles */
input, textarea, select {
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

input::placeholder, textarea::placeholder {
    color: rgb(107, 114, 128);
}

/* Card hover effects */
.group {
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Radial Background */
.bg-gradient-radial {
    background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

/* Article Cards */
article {
    overflow: hidden;
    border-radius: 0.5rem;
}

article:hover {
    border-color: currentColor;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* FAQ Items */
.faq-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background-color: rgba(51, 65, 85, 0.5);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.active {
    max-height: 500px;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* Input validation styles */
input:valid, textarea:valid, select:valid {
    border-color: rgb(34, 211, 238);
}

input:invalid, textarea:invalid, select:invalid {
    border-color: rgb(239, 68, 68);
}

/* Smooth transitions for interactive elements */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom shadow effects */
.shadow-glow {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}

.shadow-glow:hover {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Focus states for accessibility */
button:focus-visible, a:focus-visible {
    outline: 2px solid rgb(34, 211, 238);
    outline-offset: 2px;
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid rgb(34, 211, 238);
    outline-offset: 0px;
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    button, a.btn {
        border: 2px solid currentColor;
    }
    
    input, textarea, select {
        border-width: 2px;
    }
}

/* Custom color variables for reuse */
:root {
    --color-cyan: rgb(34, 211, 238);
    --color-blue: rgb(59, 130, 246);
    --color-purple: rgb(147, 51, 234);
    --color-pink: rgb(236, 72, 153);
    --color-slate-dark: rgb(15, 23, 42);
    --color-slate-light: rgb(100, 116, 139);
}

/* Text decoration links */
a.text-link {
    position: relative;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

a.text-link:hover {
    border-bottom-color: currentColor;
}

/* Grid responsive utilities */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Flex gap utilities */
.gap-xs {
    gap: 0.5rem;
}

.gap-sm {
    gap: 1rem;
}

.gap-md {
    gap: 1.5rem;
}

.gap-lg {
    gap: 2rem;
}

/* Custom list styles */
ul.custom-list {
    list-style: none;
    padding-left: 0;
}

ul.custom-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

ul.custom-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgb(34, 211, 238);
    font-weight: bold;
}

/* Section spacing */
section {
    transition: all 0.3s ease;
}

/* Underline animation effect */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: rgb(34, 211, 238);
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}
