/* Custom CSS for Ramad.qa - Cybersecurity Website */

/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #0B1220;
}

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

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

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #00D084;
    outline-offset: 2px;
}

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out;
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #0B1220 0%, #0F1724 100%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Cyber Glow Effect */
.cyber-glow {
    box-shadow: 0 0 20px rgba(0, 208, 132, 0.3);
}

.cyber-glow:hover {
    box-shadow: 0 0 30px rgba(0, 208, 132, 0.5);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #00D084 0%, #00BFA6 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00BFA6 0%, #00D084 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.3);
}

.btn-secondary {
    border: 2px solid #00D084;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #00D084;
    color: #0B1220;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.2);
}

/* Mobile Menu Enhancements */
.mobile-menu {
    backdrop-filter: blur(10px);
    background: rgba(11, 18, 32, 0.95);
}

/* Sticky CTA Animation */
.sticky-cta {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Enhancements (for future use) */
.form-input {
    background: #0F1724;
    border: 1px solid #374151;
    color: #F7FAFC;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #00D084;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-muted-text {
        color: #E5E7EB;
    }
    
    .border-gray-700 {
        border-color: #6B7280;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Dark Mode Enhancements */
.dark-mode {
    color-scheme: dark;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Custom Grid Layouts */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

@media (min-width: 641px) {
    .text-responsive {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

/* Custom Spacing */
.space-y-16 > * + * {
    margin-top: 4rem;
}

.space-y-12 > * + * {
    margin-top: 3rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Icon Enhancements */
.icon-cyber {
    filter: drop-shadow(0 0 8px rgba(0, 208, 132, 0.3));
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #00D084 50%, transparent 100%);
    margin: 4rem 0;
}

/* Loading Spinner */
.spinner {
    border: 2px solid #374151;
    border-top: 2px solid #00D084;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0F1724;
    border: 1px solid #00D084;
    color: #F7FAFC;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

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

/* Custom Checkbox Styles */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #374151;
    border-radius: 4px;
    background: #0F1724;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background: #00D084;
    border-color: #00D084;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0B1220;
    font-weight: bold;
    font-size: 12px;
}

/* Responsive Images */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Custom Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.3);
}

/* Glass Morphism Effect */
.glass {
    background: rgba(15, 23, 36, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cyber Grid Background */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 208, 132, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 208, 132, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Selection */
::selection {
    background: #00D084;
    color: #0B1220;
}

::-moz-selection {
    background: #00D084;
    color: #0B1220;
}

/* Enhanced Ramad Logo Styling */
.brand-logo {
    background: linear-gradient(135deg, #00D084 0%, #00BFA6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 208, 132, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.brand-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(0, 208, 132, 0.5);
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00D084 0%, #00BFA6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(1px);
    opacity: 0.5;
    z-index: -1;
}

/* Cyber Glow Effect for Brand */
.brand-glow {
    animation: cyberPulse 3s ease-in-out infinite;
}

@keyframes cyberPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 208, 132, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 208, 132, 0.6), 0 0 40px rgba(0, 191, 166, 0.3);
    }
}

/* Enhanced Typography for Headers */
.cyber-heading {
    background: linear-gradient(135deg, #F7FAFC 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

/* Logo Container Styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-1px);
}

/* Responsive Logo Sizing */
@media (max-width: 640px) {
    .brand-logo {
        font-size: 1.5rem;
    }
}

@media (min-width: 641px) {
    .brand-logo {
        font-size: 2rem;
    }
}

/* Logo Animation on Load */
@keyframes logoSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-animate {
    animation: logoSlideIn 0.6s ease-out;
}
