/* 
   Concept Home Tutorial Services 
   Custom Stylesheet 
*/

:root {
    /* Soft Blue, White, Purple Theme */
    --primary-color: #4a90e2; /* Soft Blue */
    --primary-rgb: 74, 144, 226;
    --secondary-color: #9b59b6; /* Purple */
    --secondary-rgb: 155, 89, 182;
    --accent-color: #ff6b81; /* Coral/Pink Accent */
    --bg-light: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-light: #121212;
    --text-dark: #f5f6fa;
    --text-light: #dcdde1;
    --white: #1e272e;
    --glass-bg: rgba(30, 39, 46, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

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

/* Utilities */
.text-primary { color: rgba(var(--primary-rgb), var(--bs-text-opacity, 1)) !important; }
.text-secondary { color: rgba(var(--secondary-rgb), var(--bs-text-opacity, 1)) !important; }
.bg-primary { background-color: rgba(var(--primary-rgb), var(--bs-bg-opacity, 1)) !important; }
.bg-secondary { background-color: rgba(var(--secondary-rgb), var(--bs-bg-opacity, 1)) !important; }
.bg-light { background-color: var(--bg-light) !important; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #ff4757);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
    transition: var(--transition);
}

.btn-accent:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 129, 0.5);
}

/* Form Controls */
.form-control.border-0 {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .form-control.border-0 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25) !important;
}

body.dark-mode .form-control:focus {
    background-color: #2d3436;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
}

/* Header & Navbar */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    position: relative;
    padding: 10px 15px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}

.hero-bg-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
}

/* Floating Elements */
.floating-element {
    animation: float 4s ease-in-out infinite;
}

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

/* Stats Section */
.stats-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.stats-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Courses Card */
.course-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

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

.course-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-img-wrapper img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Features/Why Choose Us */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.glass-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    animation:
        l20-1 0.8s infinite linear alternate,
        l20-2 1.6s infinite linear;
}
@keyframes l20-1 {
   0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
   12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
   25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
   50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
   100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2 { 
  0%    {transform:scaleY(1)  rotate(0deg)}
  49.99%{transform:scaleY(1)  rotate(135deg)}
  50%   {transform:scaleY(-1) rotate(0deg)}
  100%  {transform:scaleY(-1) rotate(135deg)}
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.fab-btn:hover {
    transform: scale(1.1);
    color: white;
}

.fab-whatsapp { background-color: #25D366; }
.fab-call { background-color: var(--primary-color); }
.fab-top { 
    background-color: var(--text-dark); 
    width: 50px; 
    height: 50px; 
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
}
.fab-top.show {
    opacity: 1;
    visibility: visible;
}

/* Media Queries */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        border-radius: 12px;
        padding: 15px 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    body.dark-mode .navbar-collapse {
        background: #1e272e;
        border-color: rgba(255,255,255,0.05);
    }
    
    .nav-link {
        padding: 12px 20px !important;
        margin-bottom: 5px;
        border-radius: 8px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-link::after {
        display: none !important; /* Hide the desktop underline effect on mobile */
    }
    
    .nav-link:hover, .nav-link.active {
        background: rgba(var(--primary-rgb), 0.1);
        color: var(--primary-color) !important;
    }
    
    .navbar-collapse .d-flex {
        justify-content: center;
        margin-top: 10px;
    }
    
    .navbar-collapse .btn-primary {
        width: 100%;
        padding: 12px !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 40px 0 60px;
        text-align: center;
    }
}
