/* Custom Styles for TuitionsGrid */

/* Apply Roboto font globally */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom Tailwind Configuration */
@layer utilities {
    /* Custom colors based on style guide */
    .text-primary-green {
        color: #28a745;
    }
    .bg-primary-green {
        background-color: #28a745;
    }
    .text-secondary-green {
        color: #20c997;
    }
    .bg-secondary-green {
        background-color: #20c997;
    }
    .text-earth-gray {
        color: #6c757d;
    }
    .bg-earth-gray {
        background-color: #6c757d;
    }
}

/* Primary Button Styles */
.btn-primary {
    background-color: #28a745;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Secondary Button Styles */
.btn-secondary {
    background-color: transparent;
    color: #28a745;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #28a745;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #28a745;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Navigation Styles */
.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Section Padding */
section {
    scroll-margin-top: 80px;
}

/* Form Input Focus Styles */
input:focus,
textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* General Image Styles */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Prevent images from being too large */
img[src*=".png"],
img[src*=".jpg"],
img[src*=".jpeg"],
img[src*=".svg"] {
    max-width: 100%;
    height: auto;
}

/* Navbar Logo */
.navbar-logo {
    height: 2.5rem;
    max-height: 3rem;
    width: auto;
    max-width: 200px;
}

@media (min-width: 768px) {
    .navbar-logo {
        height: 3rem;
        max-height: 3.5rem;
    }
}

/* Hero Section Illustration */
.hero-illustration {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.hero-illustration:hover {
    transform: translateY(-5px);
}

/* Hero Feature Card - overlay on illustration */
.hero-feature-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-feature-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

.hero-feature-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Hero section improvements */
#home {
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(34, 197, 94, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

#home > div {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-illustration {
        max-width: 550px;
    }
}

@media (min-width: 1024px) {
    .hero-illustration {
        max-width: 650px;
    }
}

/* Footer Logo */
.footer-logo {
    height: 2.5rem;
    max-height: 3rem;
    width: auto;
    max-width: 200px;
}

@media (min-width: 768px) {
    .footer-logo {
        height: 3rem;
        max-height: 3.5rem;
    }
}

/* Company Logo (Powered by) */
.company-logo {
    height: 2rem;
    max-height: 2.5rem;
    width: auto;
    max-width: 200px;
}

@media (min-width: 768px) {
    .company-logo {
        height: 2.5rem;
        max-height: 3rem;
        max-width: 250px;
    }
}

/* Footer Logo - adjust if needed based on logo design */
.footer-logo {
    /* Invert colors for dark background (dark logo -> white) */
    /* filter: brightness(0) invert(1); */
    opacity: 1;
    display: block;
    /* Ensure visibility */
    min-height: 2rem;
}

/* Alternative: If your logo is already white/light, comment out the filter above and use this: */
/* 
.footer-logo {
    filter: none;
    opacity: 1;
}
*/

/* Alternative: If invert makes it invisible, try just brightening: */
/* 
.footer-logo {
    filter: brightness(10);
    opacity: 1;
}
*/

.footer-logo:hover {
    opacity: 0.9;
}

/* Company logo (Powered by) - keep original colors */
footer img[alt="Software Company Logo"] {
    filter: none;
    opacity: 1;
}

footer img[alt="Software Company Logo"]:hover {
    opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Hero illustration sizing on mobile */
    .hero-illustration {
        max-width: 100%;
    }
    
    #home::before {
        display: none;
    }
    
    .navbar-logo {
        max-width: 150px;
    }
    
    /* Company logo already sized appropriately in base styles */
}

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

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

/* Loading States */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Navbar Shadow on Scroll */
.navbar-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

