/* ============================================
   PSYCHOLOGY ONLINE CLASSES - STYLE.CSS
   Modern, Beautiful & Optimized
   ============================================ */

/* ============================================
   1. GLOBAL STYLES & RESETS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   2. CUSTOM SCROLLBAR (Modern Design)
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 10px;
    border: 2px solid #f0f9ff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f0f9ff;
}

/* ============================================
   3. SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ============================================
   4. ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   5. UTILITY ANIMATION CLASSES
   ============================================ */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce 2s ease-in-out infinite;
}

/* ============================================
   6. HOVER EFFECTS
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6),
                0 0 60px rgba(59, 130, 246, 0.4);
}

.hover-rotate {
    transition: transform 0.5s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ============================================
   7. GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-rainbow {
    background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #0080ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s ease infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   8. CARD EFFECTS
   ============================================ */
.card-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Glass Morphism Effect */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ============================================
   9. BUTTONS ENHANCEMENTS
   ============================================ */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:active {
    transform: scale(0.95);
}

/* ============================================
   10. FORM STYLES
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 3px;
    ring-color: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    transition: all 0.3s ease;
}

input,
textarea,
select {
    transition: all 0.3s ease;
}

input.border-red-500 {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ============================================
   11. LOADING SPINNER
   ============================================ */
.spinner {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

/* ============================================
   12. FAQ ACCORDION
   ============================================ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.active {
    max-height: 1000px;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

/* ============================================
   13. TOOLTIP
   ============================================ */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #334155 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px);
}

/* ============================================
   14. NAVBAR SCROLL EFFECT
   ============================================ */
nav {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   15. IMAGE LOADING EFFECT
   ============================================ */
img {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

img[data-src] {
    opacity: 0.3;
    filter: blur(5px);
}

img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* ============================================
   16. TEXT SHADOWS FOR BETTER READABILITY
   ============================================ */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.text-shadow-xl {
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   17. SHIMMER EFFECT (Loading)
   ============================================ */
.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   18. RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* ============================================
   19. SELECTION STYLING
   ============================================ */
::selection {
    background: #3b82f6;
    color: white;
}

::-moz-selection {
    background: #3b82f6;
    color: white;
}

/* ============================================
   20. PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    h1 {
        font-size: 20pt;
        page-break-after: avoid;
    }
    
    h2 {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ============================================
   21. ACCESSIBILITY IMPROVEMENTS
   ============================================ */
*:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #1e40af;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   22. PERFORMANCE OPTIMIZATIONS
   ============================================ */
.will-change-transform {
    will-change: transform;
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   23. CUSTOM SCROLLBAR FOR CONTAINERS
   ============================================ */
.custom-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* ============================================
   24. DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ============================================
   END OF STYLES
   ============================================ */


   /* Fix for rotating rectangle - Remove all rotation animations */

/* Ensure hero pattern doesn't rotate */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 60%), 
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: none !important; /* Remove rotation */
}

/* Remove any transform rotation from background elements */
.absolute.blur-3xl {
    animation: pulse-slow 4s ease-in-out infinite !important; /* Only pulse, no rotation */
}

/* Ensure text is always visible */
.hero-text-section * {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 20 !important;
}

/* Stop any spinning/rotating animations in hero section */
section [class*="animate-spin"],
section [class*="rotate"] {
    animation: none !important;
    transform: none !important;
}

/* Keep only safe animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Ensure floating elements only move up-down, not rotate */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite !important;
}

/* Make sure all text is fully opaque */
h1, h2, h3, p, span, div {
    opacity: 1 !important;
}

/* Override any conflicting GSAP animations on text */
.hero-main-heading,
.hero-subheading,
.hero-stats {
    opacity: 1 !important;
    transform: none !important;
}


/* Add this to your existing style.css file or in the <style> section */

/* Desktop-only hero layout fixes */
@media (min-width: 1024px) {
    /* Hero section layout adjustments */
    .hero-content-wrapper {
        display: flex;
        align-items: center;
        gap: 4rem;
    }
    
    /* Left text section - takes more horizontal space */
    .hero-text-section {
        flex: 1;
        min-width: 0; /* Allows text to expand properly */
        padding-right: 2rem;
        margin-top: -1rem; /* Moves content slightly up */
    }
    
    /* Right visual section - slightly reduced */
    .hero-visual-section {
        flex: 0 0 400px; /* Fixed width for visual card */
        position: relative;
    }
    
    /* Main heading adjustments for better horizontal coverage */
    .hero-main-heading {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Subheading adjustments */
    .hero-subheading {
        font-size: 1.25rem !important;
        line-height: 1.6 !important;
        max-width: 90% !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Description text */
    .hero-text-section p.text-sm {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Stats section - moves up */
    .hero-stats {
        margin-top: 1.5rem !important;
        margin-bottom: 2rem !important;
        justify-content: flex-start;
    }
    
    /* CTA Buttons - moves significantly up */
    .hero-cta-buttons {
        margin-top: 2rem !important;
        margin-bottom: 0 !important;
        transform: translateY(-10px); /* Moves buttons up */
    }
    
    /* Individual buttons sizing */
    .hero-cta-buttons a {
        font-size: 1rem !important;
        padding: 1rem 2rem !important;
        min-width: 220px;
    }
    
    /* Visual card adjustments */
    .hero-visual-section .card-wrapper {
        margin-top: -20px; /* Moves card slightly up */
    }
}

/* Extra large screens optimization */
@media (min-width: 1280px) {
    .hero-main-heading {
        font-size: 4rem !important;
    }
    
    .hero-subheading {
        font-size: 1.4rem !important;
        max-width: 95% !important;
    }
    
    .hero-cta-buttons {
        margin-top: 2.5rem !important;
    }
}

/* Additional fixes for text expansion */
@media (min-width: 1024px) {
    /* Remove max-width constraints on text */
    .hero-text-section .max-w-2xl {
        max-width: none !important;
    }
    
    /* Ensure text uses available horizontal space */
    .hero-text-section h1,
    .hero-text-section p {
        width: 100% !important;
    }
    
    /* Adjust badge position */
    .hero-text-section .inline-flex {
        margin-bottom: 1.5rem !important;
    }
}



/* Fix for hero section spacing */
@media (min-width: 1024px) {
    /* Remove any extra top padding from hero section */
    section.relative.min-h-screen.flex.items-center {
        padding-top: 1rem !important;
        align-items: flex-start !important;
    }
    
    /* Push content up */
    .container.mx-auto.px-4 {
        padding-top: 0.5rem !important;
    }
    
    /* Make text section even more compact */
    .hero-text-section {
        padding-top: 0.5rem !important;
    }
    
    /* Reduce gap between elements */
    .hero-text-section > * + * {
        margin-top: 0.75rem !important;
    }
    
    /* Ensure buttons are visible */
    .hero-cta-buttons {
        margin-top: 1rem !important;
    }
}

/* Force buttons to be visible without scrolling */
@media (min-width: 1024px) and (max-height: 800px) {
    section.relative.min-h-screen {
        min-height: calc(100vh - 80px) !important;
        padding-top: 0 !important;
    }
    
    .hero-content-wrapper {
        padding-top: 0 !important;
        margin-top: -0.5rem !important;
    }
}