/* Circux Systems Landing Page Custom Styles */

/* Performance optimizations */
* {
    box-sizing: border-box;
}

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

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #8e44ad;
    outline-offset: 2px;
}

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

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

/* Form validation styles */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444;
}

.input-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 1px #10b981;
}

/* Notification animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification {
    animation: slideIn 0.3s ease-out;
}

/* Mobile menu improvements */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Button loading states */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-900 {
        background-color: #000000 !important;
    }
    
    .text-gray-400 {
        color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #232326;
}
::-webkit-scrollbar-thumb {
    background: #8e44ad;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b59b6;
}

* {
    transition: all 0.2s ease-in-out;
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-hover {
    background: #232326 !important;
    border: 1px solid #33343a !important;
    color: #fff;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
    border-color: #8e44ad !important; /* purple accent border on hover */
}

.icon-accent {
    color: #fff;
    background: #232326 !important;
    border: 2px solid #8e44ad !important; /* subtle purple border */
    border-radius: 0.75rem;
    padding: 0.5rem;
}

::selection {
    background: #8e44ad;
    color: white;
}

button:focus,
a:focus {
    outline: 2px solid #8e44ad;
    outline-offset: 2px;
}

/* --- Button Styles --- */
.btn,
button,
input[type="button"],
input[type="submit"],
a[class*="btn"] {
    background-color: #3a3a3c !important;
    color: #fff !important;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a[class*="btn"]:hover {
    background-color: #232326 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.12);
    border: 1.5px solid #8e44ad !important; /* subtle purple border on hover */
}

/* Accent underline for headings */
.heading-accent {
    border-bottom: 2.5px solid #8e44ad;
    display: inline-block;
    padding-bottom: 0.2em;
}

/* Brand purple colors */
.brand-purple {
    color: #8e44ad !important;
}
.brand-purple-bg {
    background-color: #8e44ad !important;
}
.brand-purple-border {
    border-color: #8e44ad !important;
}
.brand-purple-gradient {
    background: linear-gradient(to right, #8e44ad, #9b59b6) !important;
}
.brand-purple-gradient-text {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .card-hover {
        padding: 1.5rem !important;
        margin: 0.5rem !important;
    }
    
    .icon-accent {
        width: 3rem !important;
        height: 3rem !important;
        padding: 0.5rem !important;
    }
    
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Improve touch targets */
    a, button {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 3rem 1rem !important;
    }
    
    /* Improve text readability on mobile */
    p {
        line-height: 1.6 !important;
    }
    
    /* Mobile-specific hero improvements */
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
    }
    
    /* Mobile navigation improvements */
    nav a {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
    
    /* Mobile CTA improvements */
    .bg-\[#8e44ad\], .bg-\[#9b59b6\] {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
}

/* Remove purple backgrounds from sections */
section,
nav,
footer {
    background: #18181b !important;
}

/* Override Tailwind gray classes to use proper gray instead of blue-gray */
.bg-gray-700,
.bg-gray-800,
.bg-gray-900 {
    background-color: #232326 !important;
}

.bg-gray-800\/50 {
    background-color: rgba(35, 35, 38, 0.5) !important;
}

.bg-gray-900\/95 {
    background-color: rgba(35, 35, 38, 0.95) !important;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}
.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #bdbdbd;
}
@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}
nav, .header-shadow {
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10), 0 1.5px 0 0 #232326;
    border-bottom: 1.5px solid #232326 !important;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.6;
    }
} 