/* ===================================================
   Landing Page Styles – Attendance Clock System
   =================================================== */

/* ---------- Base ---------- */
:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --accent: #4f8cff;
    --gradient-main: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4f8cff 100%);
    --gradient-hero: linear-gradient(160deg, #0f2346 0%, #1e3c72 40%, #2a5298 100%);
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fc;
    --bg-alt: #f0f2f8;
    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(30,60,114,0.12);
    --shadow-lg: 0 8px 40px rgba(30,60,114,0.18);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ---------- Navbar ---------- */
#mainNav {
    background: transparent;
    padding: 16px 0;
    transition: all 0.35s ease;
}
#mainNav.scrolled {
    background: rgba(15, 35, 70, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
#mainNav .navbar-brand {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}
#mainNav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 8px 14px;
    transition: color 0.2s;
}
#mainNav .nav-link:hover {
    color: #fff;
}
#mainNav .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 1.3rem;
}
.btn-nav-cta {
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 24px;
}

/* ---------- Hero ---------- */
.hero-section {
    background: var(--gradient-hero);
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(79,140,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.min-vh-80 { min-height: 70vh; }

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #4fc3f7, #81d4fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-cta { margin-bottom: 30px; }
.btn-hero-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42,82,152,0.4);
    color: #fff;
}
.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.2s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.badge-item {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge-item i { color: #4fc3f7; }

/* Hero visual card */
.hero-visual {
    display: flex;
    justify-content: center;
}
.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 0;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-card-header {
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-card-body { padding: 30px 24px; }
.hero-stat { text-align: center; margin-bottom: 24px; }
.hero-stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #4fc3f7;
    font-family: 'Courier New', monospace;
}
.hero-stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.hero-stats-row {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
.hero-mini-stat { text-align: center; }
.mini-stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.mini-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* ---------- Sections ---------- */
.section-light {
    background: var(--bg-light);
    padding: 80px 0;
}
.section-light-alt {
    background: var(--bg-alt);
    padding: 80px 0;
}
.section-gradient {
    background: var(--gradient-main);
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.section-header.text-white h2 { color: #fff; }
.section-header.text-white p { color: rgba(255,255,255,0.7); }

/* ---------- Benefits ---------- */
.benefit-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.bg-primary-soft { background: rgba(30,60,114,0.1); color: var(--primary); }
.bg-success-soft { background: rgba(40,167,69,0.1); color: #28a745; }
.bg-info-soft    { background: rgba(23,162,184,0.1); color: #17a2b8; }
.bg-warning-soft { background: rgba(255,193,7,0.1);  color: #e6a800; }
.bg-danger-soft  { background: rgba(220,53,69,0.1);  color: #dc3545; }
.bg-purple-soft  { background: rgba(111,66,193,0.1); color: #6f42c1; }

.benefit-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}
.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- How It Works (Steps) ---------- */
.step-item {
    text-align: center;
    color: #fff;
    position: relative;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}
.step-item:hover .step-icon { transform: scale(1.08); }
.step-item h6 {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1rem;
}
.step-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ---------- Features Accordion ---------- */
.feature-accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.feature-accordion-item .accordion-button {
    font-weight: 600;
    font-size: 1rem;
}
.feature-accordion-item .accordion-button:not(.collapsed) {
    background: rgba(30,60,114,0.05);
    color: var(--primary);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stars {
    color: #f4c430;
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.stars i { margin-left: 2px; }
.testimonial-text {
    flex: 1;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 16px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author small { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- FAQ ---------- */
.faq-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-item .accordion-button {
    font-weight: 600;
}
.faq-item .accordion-button:not(.collapsed) {
    background: rgba(30,60,114,0.05);
    color: var(--primary);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--gradient-hero);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(79,140,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.cta-buttons {
    margin-bottom: 30px;
}
.btn-cta-primary {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 12px;
    padding: 14px 36px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: var(--primary);
}
.btn-cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    padding: 14px 36px;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.2s;
}
.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
    color: #fff;
}
.cta-badges {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.cta-badges i { color: #4fc3f7; margin-left: 6px; }

/* ---------- Contact ---------- */
.contact-form .form-control {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
}
.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(30,60,114,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-info-card strong { display: block; margin-bottom: 2px; }
.contact-info-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.landing-footer {
    background: #0c1a32;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer-brand h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
.landing-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}
.landing-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.landing-footer ul li { margin-bottom: 8px; }
.landing-footer ul a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.landing-footer ul a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-visual { margin-top: 40px; }
    .hero-card { max-width: 100%; }
    #mainNav .navbar-collapse {
        background: rgba(15, 35, 70, 0.98);
        border-radius: 12px;
        padding: 16px;
        margin-top: 10px;
    }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta .btn { display: block; width: 100%; margin-bottom: 10px; }
    .hero-cta .btn-hero-secondary { margin-right: 0; }
    .hero-badges { justify-content: center; }
    .cta-buttons .btn { display: block; width: 100%; margin-bottom: 10px; }
    .cta-buttons .btn-cta-secondary { margin-right: 0; }
    .section-header h2 { font-size: 1.7rem; }
    .cta-section h2 { font-size: 1.8rem; }
}
