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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

/* Enhanced typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.4rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* Enhanced container styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Enhanced navbar */
.navbar {
    background: linear-gradient(135deg, rgba(102,126,234,0.95) 0%, rgba(118,75,162,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 1000px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.hero-photo {
    flex-shrink: 0;
    position: relative;
}

.tutor-photo {
    width: 280px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 8px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.tutor-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 35px 70px rgba(0,0,0,0.4);
}

/* Mathematical Showcase - Positioned around entire hero content area */
.mathematical-showcase {
    position: absolute;
    top: -120px;
    left: -300px;
    width: 1600px;
    height: 700px;
    pointer-events: none;
    z-index: 1;
}

/* All formula elements */
.formula-single {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: -10;
    max-width: 160px;
    opacity: 0.75;
}

.formula-single math {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    text-align: center;
    display: block;
    margin: 0 auto;
}

/* Top formulas - well above entire hero content */
.formula-top-1 {
    top: 20px;
    left: 250px;
    max-width: 140px;
}

.formula-top-2 {
    top: 10px;
    left: 500px;
    max-width: 120px;
}

.formula-top-3 {
    top: 25px;
    left: 750px;
    max-width: 160px;
}

.formula-top-4 {
    top: 15px;
    left: 1000px;
    max-width: 100px;
}

.formula-top-5 {
    top: 30px;
    left: 1200px;
    max-width: 110px;
}

/* Left side formulas - near the photo */
.formula-left-1 {
    top: 200px;
    left: 150px;
    max-width: 120px;
}

.formula-left-2 {
    top: 350px;
    left: 80px;
    max-width: 180px;
}

/* Right side formulas - staggered two-column pattern */
.formula-right-1 {
    top: 80px;
    right: 60px;
    max-width: 130px;
}

.formula-right-2 {
    top: 220px;
    right: 40px;
    max-width: 200px;
}

.formula-right-3 {
    top: 360px;
    right: 120px;
    max-width: 160px;
}

.formula-right-4 {
    top: 500px;
    right: 45px;
    max-width: 140px;
}

/* Bottom formulas - staggered two-row pattern like top */
.formula-bottom-1 {
    bottom: 100px;
    left: 150px;
    max-width: 180px;
}

.formula-bottom-2 {
    bottom: 80px;
    left: 400px;
    max-width: 120px;
}

.formula-bottom-3 {
    bottom: 105px;
    left: 650px;
    max-width: 140px;
}

.formula-bottom-5 {
    bottom: 85px;
    left: 900px;
    max-width: 100px;
}

.formula-bottom-7 {
    bottom: 95px;
    left: 1150px;
    max-width: 160px;
}

/* Responsive hiding for smaller screens */
@media (max-width: 1400px) {
    .formula-top-5 {
        display: none;
    }
}

@media (max-width: 1300px) {
    .formula-right-1,
    .formula-right-2,
    .formula-right-3,
    .formula-right-4 {
        display: none;
    }
}

@media (max-width: 1100px) {
    .formula-top-1,
    .formula-top-3,
    .formula-top-4,
    .formula-bottom-1,
    .formula-bottom-3,
    .formula-bottom-7 {
        display: none;
    }
}

@media (max-width: 900px) {
    .formula-left-1,
    .formula-left-2,
    .formula-top-2,
    .formula-bottom-2,
    .formula-bottom-5 {
        display: none;
    }
}



/* Contact Methods in Hero */
.contact-methods {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
    z-index: 50;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-icon.telegram:hover {
    background: rgba(0, 136, 204, 0.3);
}

.contact-icon.email:hover {
    background: rgba(234, 67, 53, 0.3);
}

.hero-text {
    flex: 1;
    position: relative;
    z-index: 50;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
    position: relative;
    z-index: 50;
}

/* Buttons */
.btn {
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.primary-btn {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    background: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #764ba2;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

/* Section styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.3), transparent);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 80px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px auto;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

/* About section */
.about-content {
    display: block;
    width: 100%;
}

.about-text {
    width: 100%;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.location-info {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(102,126,234,0.2);
}

.location-info h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.location-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Enhanced Services Section */
.services-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.service-main {
    position: sticky;
    top: 100px;
}

.service-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.service-icon-main {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.service-hero h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.service-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.service-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.service-details p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
}

/* Enhanced Pricing Section */
.pricing-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pricing-intro {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-intro h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.pricing-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-plan {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102,126,234,0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.pricing-plan:hover::before {
    transform: scaleX(1);
}

.pricing-plan.featured {
    border-color: #667eea;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-plan.featured::before {
    transform: scaleX(1);
}

.plan-header {
    position: relative;
    margin-bottom: 25px;
}

.plan-header h4 {
    font-size: 1.4rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(102,126,234,0.3);
}

.plan-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.price-currency {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(102,126,234,0.1);
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.plan-features li:last-child {
    border-bottom: none;
}

.pricing-subjects {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.pricing-subjects h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.subject-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.subject-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(102,126,234,0.05);
    border: 1px solid rgba(102,126,234,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.subject-item:hover {
    transform: translateX(5px);
    background: rgba(102,126,234,0.1);
    border-color: rgba(102,126,234,0.3);
}

.subject-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.subject-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
    white-space: nowrap;
}

/* Education Section */
.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.education-card:hover::before {
    transform: scaleY(1);
}

.education-details h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.education-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Jitsi Section */
.jitsi-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.jitsi-container p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.feature-highlight {
    background: rgba(102,126,234,0.05);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.feature-highlight h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-highlight p {
    margin-bottom: 15px;
    color: #555;
}

.feature-highlight ul {
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
    color: #555;
    max-width: 500px;
}

.feature-highlight li {
    margin-bottom: 12px;
    line-height: 1.6;
    padding: 10px 15px;
    background: rgba(102,126,234,0.08);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

#jitsiFrame {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Hide Jitsi branding and unwanted elements - more aggressive */
#jitsiFrame iframe {
    border-radius: 15px;
}

/* Comprehensive Jitsi logo and branding removal */
.jitsi-watermark,
.watermark,
[data-testid="watermark"],
.jitsi-logo,
.brand-watermark,
.leftwatermark,
.rightwatermark,
.poweredby,
.powered-by,
[class*="watermark"],
[class*="logo"],
[id*="watermark"],
[id*="logo"],
.app-header .logo,
.toolbar-button-with-badge[data-testid="info.label"],
.info-dialog .logo,
.welcome .logo,
.header .logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide hangup button since we have our own */
[data-testid="hangup-button"],
.toolbox-button[aria-label="Leave"],
.toolbox-button[aria-label="Hangup"] {
    display: none !important;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.contact-methods-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(102,126,234,0.05);
    border: 2px solid rgba(102,126,234,0.2);
    border-radius: 15px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    min-width: 280px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    justify-content: center;
}

.contact-method:hover {
    transform: translateY(-3px);
    background: rgba(102,126,234,0.1);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102,126,234,0.2);
}

.contact-method svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.contact-method div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-method strong {
    font-size: 1rem;
    margin-bottom: 2px;
    color: #2c3e50;
}

.contact-method span {
    font-size: 0.9rem;
    color: #666;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.contact-info li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(102,126,234,0.1);
    color: #555;
}

.contact-info li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-main {
        position: static;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .subject-pricing {
        grid-template-columns: 1fr;
    }
    
    .contact-methods-list {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .mathematical-showcase {
        display: none;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
}

/* About Section Enhanced Styling */
.hero-intro {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(102,126,234,0.2);
}

.greeting-text {
    margin-bottom: 25px;
}

.greeting-hello {
    color: #667eea;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.greeting-name {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.4;
}

.main-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
    border-top: 2px solid rgba(102,126,234,0.2);
    padding-top: 20px;
}

.methodology {
    margin-top: 40px;
}

.methodology h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.methodology p {
    margin-bottom: 20px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
}

.methodology .emoji {
    display: inline-block;
    width: 20px;
    text-align: left;
    flex-shrink: 0;
    margin-right: 10px;
}

.methodology .text {
    flex: 1;
}

/* Fix footer spacing */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Grid Centering Fix */
.results-stats,
.services-grid,
.group-benefits-grid,
.promotions-grid {
    justify-items: center;
}

/* Footer Fix */
footer {
    margin-top: auto;
    padding: 30px 0;
    background: #2c3e50;
    color: white;
    text-align: center;
}

/* Results Section */
.results-showcase {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

.stat-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.stat-content p {
    color: #5a6c7d;
    margin: 0;
    font-size: 1rem;
}

.universities-list {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.universities-list h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.university-item {
    background: rgba(255,255,255,0.8);
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.university-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Help With Section */
.help-showcase {
    display: grid;
    gap: 25px;
}

.help-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.help-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.help-icon {
    color: #667eea;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.help-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.help-content p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.6;
}

/* Enhanced Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.service-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-card-icon {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.6;
}

/* Group Benefits Section */
.group-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.group-benefit {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.group-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.benefit-icon {
    color: #28a745;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.benefit-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.benefit-content p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.6;
}

/* Promotions Section */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.promotion-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promotion-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.promotion-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

.promotion-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102,126,234,0.3);
}

.promotion-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.promotion-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.promotion-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.promotion-card p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.6;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        opacity: 0;
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

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

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .help-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .group-benefit {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .services-grid,
    .group-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .university-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .promotions-grid {
        grid-template-columns: 1fr;
    }
}
