/* Athletic Minds - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2c4f5c;
    --accent-orange: #ff6b35;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
}

.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a3540 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Sections */
.features {
    padding: 80px 0;
    background: var(--light-gray);
}

.success-stories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-orange);
    position: absolute;
    top: -10px;
    left: 20px;
}

.testimonial-content {
    margin-top: 1rem;
    font-style: italic;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Tutors Page */
/* Tutor Card Container */
.tutor-card-container {
    perspective: 1000px;
    height: 400px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tutor-card-container:hover {
    transform: translateY(-5px);
}

/* Expanded state for modal-like experience */
.tutor-card-container.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 90vw;
    max-width: 800px;
    height: 90vh;
    max-height: 700px;
    z-index: 1002;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay for expanded cards */
.card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.card-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Main Card */
.tutor-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.tutor-card.flipped {
    transform: rotateY(180deg);
}

/* Card Faces */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.card-back {
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Enhanced styling for expanded cards */
.tutor-card-container.expanded .card-back {
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Front Card Styles */
.card-front .tutor-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 20px auto;
    overflow: hidden;
    border: 4px solid #e3f2fd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-front .tutor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-emoji {
    font-size: 48px;
    line-height: 92px;
    display: block;
}

.card-front .tutor-info {
    padding: 0 20px 20px;
}

.tutor-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tutor-title {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

.tutor-subjects {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.tutor-bio-preview {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 40px;
}

/* Buttons */
.view-details-button, .book-button {
    padding: 8px 16px;
    margin: 5px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-details-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.view-details-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.book-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Back Card Styles */
.back-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 15px;
}

.back-button {
    background: none;
    border: none;
    color: #3498db;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #e3f2fd;
}

.back-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

/* Detailed Info */
.detailed-info {
    flex: 1;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
}

/* Custom scrollbar for detailed info */
.detailed-info::-webkit-scrollbar {
    width: 6px;
}

.detailed-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.detailed-info::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.detailed-info::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h4 {
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 12px;
    border-left: 4px solid #3498db;
    padding-left: 12px;
    font-weight: 600;
}

.info-section p {
    font-size: 0.9em;
    color: #555;
    margin: 8px 0;
    line-height: 1.5;
}

.education-list ul {
    margin: 8px 0;
    padding-left: 20px;
}

.education-list li {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0;
    line-height: 1.4;
}

/* Subjects and Specialties Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.subjects-tags, .specialties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.subject-tag {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.specialty-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Enhanced Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    font-size: 0.9em;
    border-left: 4px solid #3498db;
}

.rate-type {
    color: #666;
    font-weight: 500;
}

.rate-price {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1em;
}

/* Enhanced Availability */
.availability-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}

.availability-item {
    margin: 8px 0;
    font-size: 0.9em;
    color: #555;
}

.availability-item strong {
    color: #2c3e50;
}

.availability-badges {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.badge.online {
    background-color: #27ae60;
    color: white;
}

.badge.travel {
    background-color: #f39c12;
    color: white;
}

/* Enhanced Testimonials */
.testimonials {
    display: grid;
    gap: 15px;
}

.testimonial {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #3498db;
    margin: 0;
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quote-content {
    font-style: italic;
    font-size: 0.9em;
    line-height: 1.5;
    color: #444;
    margin-bottom: 10px;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    color: #666;
    font-size: 0.85em;
}

/* Contact Information */
.contact-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info em {
    color: #666;
    font-size: 0.85em;
}

/* Back Actions */
.back-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e3f2fd;
}

.book-button-large {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.book-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .tutor-card-container.expanded {
        width: 95vw;
        height: 95vh;
        max-height: none;
    }
    
    .card-back {
        padding: 20px;
    }
    
    .tutor-card-container.expanded .card-back {
        padding: 20px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .availability-badges {
        justify-content: flex-start;
    }
    
    .back-header h3 {
        font-size: 1.1em;
    }
    
    .info-section h4 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .tutor-card-container.expanded .card-back {
        padding: 15px;
    }
    
    .back-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .back-button {
        align-self: flex-start;
    }
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

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

/* Button Ripple Effect */
.button-ripple {
    position: relative;
    overflow: hidden;
}

.button-ripple:active::after {
    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%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 200px;
        height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutor-card-container {
        height: 450px;
    }
    
    .card-back {
        padding: 15px;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .specialties-tags {
        justify-content: center;
    }
    
    .availability-badges {
        justify-content: center;
    }
}
/* 
.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.tutor-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.tutor-image {
    height: 250px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    overflow: hidden;
}

.tutor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-info {
    padding: 1.5rem;
}

.tutor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.tutor-subjects {
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: 1rem;
}

.book-button {
    width: 100%;
    background: var(--accent-orange);
    color: var(--white);
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.book-button:hover {
    background: #e55a2b;
} */

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--accent-orange);
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card ul {
    margin-top: 1rem;
    padding-left: 1rem;
}

.service-card li {
    margin-bottom: 0.5rem;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.submit-button {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #1a3540;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}