/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.hero-content p {
    color: #f8f9fa !important;
}

@media (max-width: 768px) {
    .hero-buttons a:nth-of-type(2) {
        margin-top: 15px;
    }
}

/* Free Demo Ribbon */
.free-demo-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #22c55e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 5;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  color: #fff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ===== NAVIGATION ===== */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .navbar-brand h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
    }

    .navbar-brand i {
        font-size: 1.5rem !important;
    }
    
    .navbar .navbar-toggler span {
        width: 1.2em !important;
        height: 1.2em !important;
    }
    
    .hero-btn-cont a {
        width: 100%;
    }

    .hero-btn-cont button {
        width: 100%;
        justify-content: center;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.notification-content {
    font-size: 0.9rem;
    max-width: 18rem;
}

@media (max-width: 768px) {
    .notification {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.math-illustration {
    position: relative;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.math-symbol {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.math-symbol:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.math-symbol:nth-child(2) { top: 60%; right: 20%; animation-delay: 0.5s; }
.math-symbol:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 1s; }
.math-symbol:nth-child(4) { top: 40%; right: 40%; animation-delay: 1.5s; }

.hero-section {
    padding-top: 3rem;
}

/* @media (min-width: 1200px) {
    .hero-section .col-12 {
        max-width: 700px !important;
    }
    
} */

@media (max-width: 768px) {
    .hero-section {
        padding-top: 7rem !important;
    }
}

/* ===== ABOUT SECTION ===== */
.about-image {
    position: relative;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
}

.profile-placeholder:hover {
    transform: scale(1.05);
}

.credentials ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.credentials ul li:last-child {
    border-bottom: none;
}

/* ===== SUBJECTS SECTION ===== */
.subject-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.subject-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.grade-levels .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.author-info h6 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* ===== RESOURCES SECTION ===== */
.calculator-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    max-width: 400px;
    margin: 0 auto;
}

.calculator {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid var(--border-color);
}

.calculator-display {
    margin-bottom: 1rem;
}

.calculator-display input {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calc-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.calc-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calc-btn.equals {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    grid-column: span 2;
}

.calc-btn.equals:hover {
    background: var(--primary-dark);
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.resource-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resource-link:hover {
    color: var(--primary-dark);
    padding-left: 0.5rem;
}

.resource-link:last-child {
    border-bottom: none;
}

/* ===== GALLERY SECTION ===== */
.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.gallery-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-placeholder p {
    font-weight: 500;
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.contact-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-bg) !important;
    color: #fff !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .calculator-buttons {
        gap: 0.25rem;
    }
    
    .calc-btn {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .subject-card,
    .testimonial-card,
    .resource-card,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-placeholder i {
        font-size: 2rem;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    outline: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== LOADING ANIMATIONS ===== */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ===== FOCUS STATES ===== */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

@media (max-width: 576px) {
  .btn {
    width: 80%; /* or 100% if you want full width */
    text-align: center;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .hero-buttons,
    .calculator-container,
    .contact-form,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .hero-content h1 {
        color: black !important;
    }
    
    .hero-content p {
        color: black !important;
    }
} 