/* Sigma School Custom Styles */

/* RTL Support */
.rtl {
    direction: rtl;
}

.rtl .text-left {
    text-align: right;
}

.rtl .text-right {
    text-align: left;
}

.rtl .ml-3 {
    margin-left: 0;
    margin-right: 0.75rem;
}

.rtl .mr-3 {
    margin-right: 0;
    margin-left: 0.75rem;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero Text Overlay */
.hero-text-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(5, 150, 105, 0.8) 100%);
    backdrop-filter: blur(1px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #f0f9ff;
}

.hero-buttons {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Responsive Hero Text */
@media (max-width: 768px) {
    .hero-text-overlay {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.4;
    }
}

/* Enhanced text contrast for better readability */
.hero-text-overlay h1,
.hero-text-overlay p {
    position: relative;
    z-index: 1;
}

/* Subtle animation for the text overlay */
.hero-text-overlay {
    animation: fadeInUp 0.8s ease-out;
}

/* Service Cards Alignment */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Ensure equal height for grid items */
.grid > * {
    display: flex;
    flex-direction: column;
}

/* Better spacing for service sections */
.services-section {
    padding: 5rem 0;
}

/* Improved card content spacing */
.service-card .space-y-3 > * + * {
    margin-top: 0.75rem;
}

.service-card .space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #2563eb;
}

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
}

/* Contact Form */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

/* Mobile Menu */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.hidden {
    max-height: 0;
    overflow: hidden;
}

.mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #2563eb;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #2563eb;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-card.featured {
    border-color: #2563eb;
    transform: scale(1.05);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

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