﻿/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-start: #f0f9ff;
    --gradient-end: #e0f2fe;
    /* Footer colors (semantic) */
    --footer-bg: #111827; /* dark footer on light theme */
    --footer-text: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-text-muted: #d1d5db;
    --footer-social-bg: #ffffff;
    --footer-social-color: #6b7280;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --text-dark: #f3f4f6;
    --text-gray: #d1d5db;
    --text-light: #9ca3af;
    --bg-light: #1f2937;
    --bg-white: #111827;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    --gradient-start: #1f2937;
    --gradient-end: #111827;
    /* Dark theme footer overrides */
    --footer-bg: #0b1220; /* slightly different dark tone for dark theme */
    --footer-text: #e5e7eb;
    --footer-border: rgba(255, 255, 255, 0.06);
    --footer-text-muted: #9ca3af;
    --footer-social-bg: #0f1724;
    --footer-social-color: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===========================
   Container
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background: rgba(17, 24, 39, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

    .logo img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

    .nav-link:hover {
        color: var(--primary-color);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .nav-link:hover::after {
        width: 100%;
    }

.btn-admin {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

    .btn-admin:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

    .theme-toggle:hover {
        background: var(--border-color);
        transform: scale(1.1);
    }

    .theme-toggle .sun-icon,
    .theme-toggle .moon-icon {
        position: absolute;
        transition: var(--transition);
        color: var(--text-gray);
    }

[data-theme="light"] .theme-toggle .moon-icon,
[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="light"] .theme-toggle .sun-icon,
[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition);
    width: 100%;
}

    .theme-toggle-mobile:hover {
        background: var(--border-color);
    }

    .theme-toggle-mobile .sun-icon,
    .theme-toggle-mobile .moon-icon {
        transition: var(--transition);
    }

[data-theme="light"] .theme-toggle-mobile .moon-icon,
[data-theme="dark"] .theme-toggle-mobile .sun-icon {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        transition: var(--transition);
    }

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 20px;
}

    .mobile-menu.active {
        display: flex;
    }

.mobile-nav-link {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .hero-background {
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-secondary:hover {
        background: var(--primary-color);
        color: white;
    }

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.qr-code-container {
    position: relative;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.qr-image,
.qr-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 12px;
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
    }

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===========================
   How It Works Section
   =========================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.step-card {
    flex: 1;
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.step-arrow {
    color: var(--primary-color);
    opacity: 0.3;
}

/* ===========================
   Gallery Section
   =========================== */
.gallery {
    padding: 100px 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 24px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    font-size: 18px;
    font-weight: 600;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 64px;
}

.contact-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-description {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.contact-card {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

    .contact-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

.contact-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
}

.contact-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.contact-card-link {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
    word-break: break-word;
}

    .contact-card-link:hover {
        color: var(--primary-dark);
    }

.contact-card-description {
    font-size: 14px;
    color: var(--text-gray);
}

.contact-social {
    text-align: center;
    margin-bottom: 64px;
}

.contact-social-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .social-link:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .social-link:nth-child(1):hover {
        color: #1877f2;
        background: #e7f3ff;
    }

    .social-link:nth-child(2):hover {
        color: #e4405f;
        background: #ffe5ec;
    }

    .social-link:nth-child(3):hover {
        color: #1da1f2;
        background: #e5f4fd;
    }

    .social-link:nth-child(4):hover {
        color: #0a66c2;
        background: #e8f3fc;
    }

.contact-cta {
    background: var(--bg-white);
    padding: 48px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.contact-cta-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-cta-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-primary-large {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
}

    .btn-primary-large:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--footer-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--footer-text-muted);
    font-size: 15px;
    margin-bottom: 12px;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--primary-light);
        padding-left: 8px;
    }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: var(--footer-text-muted);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

    .footer-bottom-links a {
        color: var(--text-light);
        font-size: 14px;
        transition: var(--transition);
    }

        .footer-bottom-links a:hover {
            color: white;
        }

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .contact-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        justify-content: space-around;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .how-it-works {
        padding: 60px 0;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .gallery {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-cta {
        padding: 32px 24px;
    }

    .contact-cta-title {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-title {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .contact-cta {
        padding: 24px 20px;
    }

    .contact-cta-title {
        font-size: 20px;
    }

    .social-links {
        gap: 12px;
    }
}
