/*
 * Landing Pages Universal Stylesheet
 * Used for: Welcome page, Login, Transcript, and all public-facing pages
 * Theme: EduCom
 */

:root {
    /* Primary Colors */
    --primary-color: #13547a;
    --secondary-color: #80d0c7;
    --accent-color: #0f3b59;

    /* Background Colors */
    --light-bg: #f8f9fa;
    --white-color: #ffffff;
    --section-bg-color: #f0f8ff;

    /* Text Colors */
    --dark-color: #000000;
    --text-color: #717275;
    --muted-color: #6c757d;

    /* Footer Colors */
    --footer-bg: #2b8891;
    --footer-text: #ffffff;
    --footer-link-color: #ffffff;
    --footer-link-hover: #cc9303;
    --footer-title-color: #a7d8b3;

    /* Border & Shadow */
    --border-color: #7fffd4;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);

    /* Font Families */
    --body-font: "Roboto", "Open Sans", sans-serif;
    --heading-font: "Montserrat", "Merriweather", serif;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============================================
   GLOBAL STYLES
============================================= */

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

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.75rem;
}
h4 {
    font-size: 1.5rem;
}
h5 {
    font-size: 1.25rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

a:hover {
    color: var(--secondary-color);
}

/* =============================================
   UTILITY CLASSES
============================================= */

.text-primary {
    color: var(--primary-color) !important;
}
.text-secondary {
    color: var(--secondary-color) !important;
}
.text-muted {
    color: var(--muted-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}
.bg-secondary {
    background-color: var(--secondary-color) !important;
}
.bg-light {
    background-color: var(--light-bg) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}
.shadow-md {
    box-shadow: var(--shadow-md) !important;
}
.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* =============================================
   BUTTONS
============================================= */

.btn {
    font-family: var(--heading-font);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 84, 122, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: #5fb8af;
    border-color: #5fb8af;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 208, 199, 0.3);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 84, 122, 0.3);
}

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

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

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

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

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* =============================================
   CARDS
============================================= */

.card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
}

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

.card-header {
    background: var(--light-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: var(--light-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* =============================================
   FORMS
============================================= */

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-normal);
    background-color: var(--white-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(19, 84, 122, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    padding: 1rem;
    color: var(--muted-color);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* =============================================
   ALERTS
============================================= */

.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* =============================================
   SECTIONS
============================================= */

.section {
    padding: 80px 0;
}

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

.section-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    color: var(--white-color);
}

.section-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #5fb8af);
    color: var(--white-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--muted-color);
}

/* =============================================
   HERO SECTION
============================================= */

.hero {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-color) 50%,
        var(--primary-color) 100%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    margin-top: -76px;
    color: var(--white-color);
}

.hero::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='%2380d0c7' 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");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

/* Modern Hero Styles */
.hero-gradient-primary {
    background: linear-gradient(135deg, rgba(19, 84, 122, 0.85) 0%, rgba(15, 59, 89, 0.75) 100%) !important;
}

.hero-gradient-secondary {
    background: linear-gradient(135deg, rgba(15, 59, 89, 0.85) 0%, rgba(19, 84, 122, 0.75) 100%) !important;
}

.hero-gradient-teal {
    background: linear-gradient(135deg, rgba(43, 136, 145, 0.85) 0%, rgba(19, 84, 122, 0.75) 100%) !important;
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Hero Animations */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.1); opacity: 0.08; }
}

@keyframes heroMorph {
    0%, 100% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: scale(1.1) rotate(180deg);
    }
}

.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-pulse {
    animation: heroPulse 4s ease-in-out infinite;
}

.hero-morph {
    animation: heroMorph 8s ease-in-out infinite;
}

/* Hero Button Hover Effects */
.hero .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Card Hover */
.hover-card {
    transition: var(--transition-normal);
}

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

/* Entrance Animations */
.animate-fadeInDown {
    animation: fadeInDown 1s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 1s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 1s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

.animate-delay-1 { animation-delay: 0.3s; }
.animate-delay-2 { animation-delay: 0.6s; }
.animate-delay-3 { animation-delay: 0.9s; }
.animate-delay-4 { animation-delay: 1.2s; }

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* Animate.css-like Animation Classes */
.animate__animated {
    animation-duration: 1s;
}

.animate__delay-1s { animation-delay: 0.3s; }
.animate__delay-2s { animation-delay: 0.6s; }
.animate__delay-3s { animation-delay: 0.9s; }
.animate__delay-4s { animation-delay: 1.2s; }

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__bounce {
    animation-name: bounce;
    animation-duration: 2s;
}

.animate__infinite {
    animation-iteration-count: infinite;
}

/* =============================================
   FEATURE CARDS
============================================= */

.feature-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white-color);
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-color);
    line-height: 1.8;
    margin-bottom: 0;
}

/* =============================================
   STATS SECTION
============================================= */

.stats-section {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    padding: 60px 0;
    color: var(--white-color);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   CTA SECTION
============================================= */

.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), #5fb8af);
    padding: 80px 0;
    text-align: center;
    color: var(--white-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
}

/* =============================================
   LOGIN/AUTH PAGES
============================================= */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(19, 84, 122, 0.03),
        rgba(128, 208, 199, 0.03)
    );
    padding: 100px 0 80px;
}

.auth-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: none;
    overflow: hidden;
}

.auth-card .card-body {
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--muted-color);
    margin-bottom: 0;
}

/* =============================================
   TRANSCRIPT PAGE
============================================= */

.transcript-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
}

.transcript-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: none;
}

.transcript-header {
    text-align: center;
    margin-bottom: 2rem;
}

.transcript-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.transcript-header p {
    color: var(--muted-color);
}

/* =============================================
   FOOTER
============================================= */

.footer-section {
    background-color: var(--primary-color);
    padding: 60px 0 20px;
    color: var(--footer-text);
}

.footer-title {
    color: var(--footer-title-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-text {
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-about p {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--footer-link-hover);
    padding-left: 5px;
    text-decoration: underline;
}

.support-list li {
    font-size: 0.95rem;
    color: var(--footer-text);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-list li i {
    color: var(--footer-title-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.support-list li:hover i {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(128, 208, 199, 0.3);
}

.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
    }
    .social-links {
        justify-content: center;
    }
}

/* =============================================
   ANIMATIONS
============================================= */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* =============================================
   RESPONSIVE DESIGN
============================================= */

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 76px;
        margin-top: 0;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .auth-card .card-body {
        padding: 2rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .feature-card,
    .auth-card .card-body {
        padding: 1.5rem;
    }

    .stat-item {
        padding: 1rem;
    }
}

/* =============================================
   SMOOTH SCROLLING
============================================= */

html {
    scroll-behavior: smooth;
}

/* =============================================
   ACCESSIBILITY
============================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}
