/* Custom styles for Stone Pointe Institute */

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

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

::-webkit-scrollbar-track {
    background: #064e3b;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 5px;
}

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

/* Gradient animations */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.25);
}

/* Button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

/* Print styles */
@media print {
    .hero-gradient,
    nav,
    footer {
        background: white !important;
        color: black !important;
    }
    
    .btn-primary,
    .btn-secondary {
        background: #10b981 !important;
        color: white !important;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid currentColor;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    .serif-display {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .serif-display {
        font-size: 3.5rem;
        line-height: 1.2;
    }
}

@media (min-width: 769px) {
    .serif-display {
        font-size: 4rem;
        line-height: 1.1;
    }
}

/* Custom selection color */
::selection {
    background: #10b981;
    color: #fefce8;
}

::-moz-selection {
    background: #10b981;
    color: #fefce8;
}
