/* ============================================
   MindCraft Educational Counseling Center
   Custom Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 0.75rem;
    --transition: all 0.3s ease;
}

/* --- Global Styles --- */
body {
    font-family: var(--font-primary);
    color: var(--secondary);
    background-color: var(--light);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Navbar --- */
.navbar {
    padding: 0.8rem 0;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.navbar .nav-link.nav-compact {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

/* --- Hero Slider --- */
.hero-slide {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-slide-icon {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18rem;
    color: rgba(255, 255, 255, 0.06);
    z-index: 1;
    pointer-events: none;
}

#heroSlider .carousel-item {
    transition: transform 0.8s ease-in-out;
}

#heroSlider .carousel-indicators {
    bottom: 25px;
    z-index: 5;
}

#heroSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    opacity: 0.6;
    transition: var(--transition);
}

#heroSlider .carousel-indicators button.active {
    background: var(--warning);
    border-color: var(--warning);
    opacity: 1;
    transform: scale(1.2);
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin: 0 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

#heroSlider:hover .carousel-control-prev,
#heroSlider:hover .carousel-control-next {
    opacity: 1;
}

#heroSlider .carousel-control-prev:hover,
#heroSlider .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Slide content animation */
.carousel-item.active .badge,
.carousel-item.active h1,
.carousel-item.active p,
.carousel-item.active .btn {
    animation: slideUp 0.8s ease forwards;
}

.carousel-item.active h1 { animation-delay: 0.1s; }
.carousel-item.active p { animation-delay: 0.25s; }
.carousel-item.active .btn { animation-delay: 0.4s; }

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

/* --- Section Styles --- */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.service-card {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: scale(1.1);
}

.service-card h5 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* --- Counselor Card --- */
.counselor-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
}

.counselor-card .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.counselor-card h5 {
    margin-bottom: 0.25rem;
}

.counselor-card .specialization {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.counselor-card .bio {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.75rem;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #0891b2);
    border: none;
    color: #fff;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* --- Feature boxes --- */
.feature-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-box .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- Page Header / Banner --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    position: relative;
    z-index: 1;
    justify-content: center;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Testimonial --- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .stars {
    color: var(--warning);
    margin-bottom: 0.75rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    padding: 5rem 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

/* --- Form Styles --- */
.form-control,
.form-select {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-container {
    max-width: 460px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-container .auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* --- Dashboard / Admin --- */
.dashboard-card {
    border-radius: var(--radius);
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100px;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card h3 {
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-primary);
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.bg-gradient-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.bg-gradient-success { background: linear-gradient(135deg, #10b981, #059669); }
.bg-gradient-info    { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bg-gradient-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-gradient-danger  { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* --- Admin Sidebar --- */
.admin-sidebar {
    background: var(--secondary);
    min-height: calc(100vh - 76px);
    padding: 1.5rem 0;
    position: sticky;
    top: 76px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.65);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}

.admin-content {
    padding: 2rem;
    min-height: calc(100vh - 76px);
}

/* --- Tables --- */
.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
}

/* --- About Page --- */
.about-values .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Contact Page --- */
.contact-info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-slide {
        min-height: 70vh;
    }

    .hero-slide h1.display-5 {
        font-size: 2rem !important;
    }

    .hero-slide-icon {
        font-size: 10rem;
        right: 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 60vh;
    }
    
    .hero-slide h1.display-5 {
        font-size: 1.5rem !important;
    }

    .hero-slide p.fs-5 {
        font-size: 1rem !important;
    }

    .hero-slide-icon {
        display: none;
    }

    #heroSlider .carousel-control-prev,
    #heroSlider .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .auth-container {
        margin: 2rem 1rem;
        padding: 1.75rem;
    }
    
    .admin-sidebar {
        min-height: auto;
        position: relative;
        top: 0;
    }
}

/* --- Utility --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: var(--transition);
}

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

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
