/* ============================================
   TeachMore Marketing Site — Shared Styles
   ============================================ */

/* ---- Design Tokens ---- */
:root {
    --primary-blue: #006699;
    --primary-hover: #004d73;
    --primary-gradient: linear-gradient(135deg, #006699 0%, #0099cc 100%);
    --secondary-gradient: linear-gradient(135deg, #0099cc 0%, #006699 100%);
    --surface: #ffffff;
    --background: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success-green: #10b981;
    --dark-surface: #0f172a;
}

/* ---- Base ---- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    padding-top: 76px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

.text-brand { color: var(--primary-blue) !important; }

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Navbar ---- */
.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
}

.navbar-brand {
    color: var(--primary-blue) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: #475569 !important;
    margin-left: 15px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}

/* ---- Buttons ---- */
.btn-modern {
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 153, 0.4);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    color: #475569;
    border: 2px solid #cbd5e1;
}

.btn-outline-modern:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: translateY(-2px);
    border-color: #cbd5e1;
    text-decoration: none;
}

.btn-outline-blue {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.btn-light-modern {
    font-weight: 700;
    color: var(--primary-blue);
    background: white;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-light-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: var(--primary-hover);
    text-decoration: none;
}

/* ---- Jumbotron Header (Features, Clients, Security, Why) ---- */
.jumbotron-modern {
    background: var(--primary-gradient);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 80px;
}

.jumbotron-modern::before {
    content: '';
    position: absolute;
    top:-50%; left:-50%; width:200%; height:200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 40%);
    animation: pulse 10s infinite alternate;
}

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

.jumbotron-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    position: relative;
    z-index: 2;
}

.jumbotron-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* ---- Hero Section (Homepage, Radar) ---- */
.hero-section {
    padding: 100px 0 120px;
    background: radial-gradient(circle at top right, rgba(0, 102, 153, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 153, 204, 0.1), transparent 40%);
    position: relative;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

/* ---- Section Titles ---- */
.section-title {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-main);
}

.section-heading {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 60px;
}

/* ---- Glass Cards ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ---- Role Badge ---- */
.role-badge {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(0, 102, 153, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

/* ---- Feature Lists ---- */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-blue);
    font-size: 18px;
}

.feature-list strong {
    color: var(--text-main);
}

.feature-list-check {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-list-check li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--success-green);
}

.feature-list-check li strong {
    color: var(--text-main);
}

/* ---- Feature Sections (Homepage Role Blocks) ---- */
.feature-section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    background: white;
}

.feature-section.bg-alt {
    background-color: var(--background);
}

/* ---- Feature Blocks (Features Page) ---- */
.feature-block {
    padding: 60px 0;
    background-color: var(--background);
}

.feature-block:nth-of-type(even) {
    background-color: white;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.feature-icon-box {
    background: rgba(0, 102, 153, 0.05);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    transition: all 0.4s ease;
}

.feature-icon-box:hover {
    background: rgba(0, 102, 153, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 102, 153, 0.1);
}

.feature-icon-box i {
    font-size: 5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Stats Bar ---- */
.stats-bar {
    background: var(--dark-surface);
    padding: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Platform Overview Cards ---- */
.platform-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 102, 153, 0.1);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 153, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

.platform-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
}

/* ---- Dark Trust Section ---- */
.trust-section {
    background: var(--dark-surface);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -25%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 153, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.trust-quote {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.trust-body {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--primary-gradient);
    padding: 80px 0;
    text-align: center;
    color: white;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.cta-section.contact-bg {
    background-image: url('zigzagbackground.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-section.contact-bg::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(15, 23, 42, 0.85);
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.cta-body {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Profile Cards ---- */
.profile-card {
    border: none;
    background: transparent;
    text-align: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 24%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.profile-card:hover .profile-img {
    transform: scale(1.05) rotate(2deg);
}

/* ---- Client Cards ---- */
.client-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 153, 0.1);
    background: white;
}

.client-icon {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(0, 102, 153, 0.05);
}

.client-name {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---- Radar-Specific ---- */
.insight-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

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

.insight-icon {
    font-size: 3rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.space-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    transition: all 0.4s ease;
}

.space-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.space-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.space-title i {
    color: var(--primary-blue);
}

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

.radar-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #334155;
}

.radar-list li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.radar-list strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ---- Gradient Icon (Large Decorative) ---- */
.gradient-icon-lg {
    font-size: 10rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.1;
    transition: all 0.4s ease;
}

.feature-section:hover .gradient-icon-lg {
    opacity: 0.2;
    transform: scale(1.05);
}

/* ---- "Coming Soon" Badge ---- */
.badge-coming-soon {
    background: rgba(0, 102, 153, 0.1);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

/* ---- FAQ Section ---- */
.faq-item {
    background: white;
    border-radius: 16px;
    padding: 30px 35px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.faq-question {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

/* ---- Security / Info Cards ---- */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 153, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* ---- Footer ---- */
.main-footer {
    background: var(--dark-surface);
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 0.9rem;
    text-align: center;
}

.main-footer a { color: var(--text-muted); }
.main-footer a:hover { color: white; text-decoration: none; }

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Screenshot Showcase ---- */
.screenshot-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: white;
    height: 350px;
}

.screenshot-frame:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0, 102, 153, 0.18), 0 8px 30px rgba(0, 0, 0, 0.1);
}

.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.screenshot-frame:hover img {
    transform: scale(1.02);
}

/* Browser-frame adds 32px header, so image area is smaller */
.screenshot-frame.screenshot-frame--browser img {
    height: calc(100% - 32px);
}

/* Perspective frames are slightly smaller */
.screenshot-frame.screenshot-perspective {
    height: 300px;
}

/* Browser-style header bar for screenshots */
.screenshot-frame--browser {
    padding-top: 0;
}

.screenshot-frame--browser::before {
    content: '';
    display: block;
    height: 32px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.screenshot-frame--browser::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 10px;
    letter-spacing: 5px;
    color: #cbd5e1;
    z-index: 2;
}

/* Caption under screenshot */
.screenshot-caption {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
}

/* Gallery of multiple screenshots */
.screenshot-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent;
}

.screenshot-gallery::-webkit-scrollbar {
    height: 6px;
}

.screenshot-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.screenshot-gallery .screenshot-frame {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Stacked showcase: layered screenshot effect */
.screenshot-stack {
    position: relative;
    perspective: 1000px;
}

.screenshot-stack .screenshot-frame:nth-child(2) {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    z-index: -1;
    opacity: 0.5;
    transform: rotateY(-3deg) scale(0.95);
}

/* Tab-based screenshot switcher */
.screenshot-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.screenshot-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.screenshot-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(0, 102, 153, 0.05);
}

.screenshot-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 102, 153, 0.3);
}

.screenshot-panel {
    display: none;
}

.screenshot-panel.active {
    display: block;
    animation: screenshotFadeIn 0.4s ease;
}

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

/* Tilted perspective screenshot */
.screenshot-perspective {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.screenshot-perspective:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .jumbotron-title {
        font-size: 2.4rem;
    }
    .section-title, .section-heading {
        font-size: 2rem;
    }
    .trust-quote {
        font-size: 1.4rem;
    }
    .gradient-icon-lg {
        font-size: 6rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .glass-card {
        padding: 25px;
    }
}
