/* ============================================
   ATTENDANCE MANAGEMENT - CSS STYLES
   ============================================ */

/* Color Variables */
:root {
    /* Primary Gradient Colors */
    --primary-start: #1d4ed8;
    --primary-mid: #2563eb;
    --primary-end: #3b82f6;

    /* Accent Colors */
    --accent-1: #06b6d4;
    --accent-2: #10b981;
    --accent-3: #f59e0b;
    --accent-4: #ef4444;

    /* Neutral Colors */
    --background: linear-gradient(90deg, #EAF2FF 0%, #F8FAFF 50%, #FFF1E8 100%);
    --surface: #ffffff;
    --surface-light: #f0f4ff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #6b7280;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #06b6d4;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Typography */
    --font-display: 'Jost', sans-serif;
    --font-body: 'Jost', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(90deg, #EAF2FF 0%, #F8FAFF 50%, #FFF1E8 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
    background: linear-gradient(90deg, #EAF2FF 0%, #F8FAFF 50%, #FFF1E8 100%);
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-start) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-end) 0%, transparent 70%);
    top: 20%;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    bottom: -100px;
    left: 50%;
    animation-delay: 10s;
}

.orb-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--primary-mid) 0%, transparent 70%);
    top: -150px;
    right: -200px;
    animation-delay: 3s;
}

.orb-5 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary-start) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Hero Content */
.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 50px;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.hero-visual .hero-image{
    max-width: 130%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: var(--primary-mid);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.badge-icon {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.title-line {
    display: block;
    animation: fadeIn 1s ease-out backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.gradient-text {
    background: linear-gradient(
        90deg,
        #2D5BFF 0%,
        #9B3FD8 50%,
        #F0468A 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 540px;
    animation: fadeIn 1s ease-out 0.7s backwards;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-mid));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-arrow,
.btn-play {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    animation: fadeIn 1s ease-out 1.1s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    background: rgba(99, 102, 241, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard-preview {
    background: var(--surface);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1), 0 0 40px rgba(139, 92, 246, 0.1);
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.preview-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: var(--error);
}

.dot-yellow {
    background: var(--warning);
}

.dot-green {
    background: var(--success);
}

.preview-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.preview-content {
    display: grid;
    gap: var(--spacing-md);
}

.attendance-card {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out backwards;
}

.card-1 {
    animation-delay: 0.2s;
}

.card-2 {
    animation-delay: 0.4s;
}

.card-3 {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attendance-card:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(5px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-1 .card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.card-2 .card-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.card-3 .card-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.card-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(90deg, #EAF2FF 0%, #F8FAFF 50%, #FFF1E8 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-title span {
    display: block;
}

.title-accent {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--surface);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-mid);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-mid));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.2rem;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(90deg, #EAF2FF 0%, #F8FAFF 50%, #FFF1E8 100%);
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.trust-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.trust-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.trust-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1.2rem;
}

.check-icon {
    color: var(--success);
    flex-shrink: 0;
}

/* Trust Visual */
.trust-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-card {
    background: var(--surface);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    width: 100%;
    max-width: 400px;
}

.stat-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-md);
    height: 200px;
    margin-bottom: var(--spacing-md);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-start), var(--primary-mid));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    height: var(--height);
    animation: growBar 1s ease-out backwards;
    animation-delay: var(--delay);
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
}

@keyframes growBar {
    from {
        height: 0;
    }
    to {
        height: var(--height);
    }
}

.stat-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(90deg, #EAF2FF 0%, #F8FAFF 50%, #FFF1E8 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--surface);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    margin-bottom: 8px;
}

.benefit-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.2rem;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(90deg, #EAF2FF 0%, #F8FAFF 50%, #FFF1E8 100%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.cta-note {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-section .container,
    .trust-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-visual {
        order: -1;
    }

    .hero-section .container {
        padding: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-2xl: 3.5rem;
        --spacing-3xl: 5rem;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-section .container {
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .hero-description,
    .section-description {
        font-size: 1rem;
    }

    .feature-description,
    .benefit-description,
    .trust-description,
    .trust-feature {
        font-size: 1rem;
    }

    .card-label {
        font-size: 0.85rem;
    }

    .cta-note {
        font-size: 0.9rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .stat-chart {
        height: 160px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }

    .hero-section .container {
        padding: 24px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn,
    .btn-large {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

    .benefit-number {
        font-size: 2.25rem;
    }

    .stat-chart {
        height: 130px;
        gap: var(--spacing-sm);
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Scroll-triggered animations */
.feature-card,
.benefit-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card[data-index="1"] { animation-delay: 0.1s; }
.feature-card[data-index="2"] { animation-delay: 0.2s; }
.feature-card[data-index="3"] { animation-delay: 0.3s; }
.feature-card[data-index="4"] { animation-delay: 0.4s; }
.feature-card[data-index="5"] { animation-delay: 0.5s; }
.feature-card[data-index="6"] { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}