/* =========================================
   1. Base & Light Blue Theme Variables 
========================================= */
:root {
    --primary-blue: #0ea5e9;       /* Main Light Blue */
    --light-blue-bg: #e0f2fe;      /* Very soft blue for backgrounds */
    --text-dark: #0f172a;          /* Dark slate for text */
    --text-muted: #64748b;         /* Gray for paragraphs */
    --white: #ffffff;
    --shadow-soft: 0 10px 40px -10px rgba(14, 165, 233, 0.15);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #f8fafc; /* Slightly off-white background */
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. Header & Floating Notes Animation
========================================= */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.floating-notes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-notes .note {
    position: absolute;
    bottom: -50px;
    font-size: 24px;
    opacity: 0.15;
    animation: flyUp linear infinite;
}

.floating-notes .note:nth-child(1) { left: 10%; animation-duration: 12s; font-size: 20px; }
.floating-notes .note:nth-child(2) { left: 30%; animation-duration: 15s; font-size: 30px; animation-delay: 2s; }
.floating-notes .note:nth-child(3) { left: 50%; animation-duration: 10s; font-size: 25px; animation-delay: 4s; }
.floating-notes .note:nth-child(4) { left: 70%; animation-duration: 18s; font-size: 35px; animation-delay: 0s; }
.floating-notes .note:nth-child(5) { left: 90%; animation-duration: 14s; font-size: 22px; animation-delay: 3s; }

@keyframes flyUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* =========================================
   3. Hero Section & Floating Cards
========================================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content h1 .highlight {
    color: var(--primary-blue);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary-blue);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
    position: absolute;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(14, 165, 233, 0.05);
}

.floating-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.floating-card.card-1 { top: 20px; right: 10%; animation-delay: 0s; }
.floating-card.card-1 .icon-box { background: #e0f2fe; color: #0ea5e9; }

.floating-card.card-2 { bottom: 20px; right: 30%; animation-delay: 2s; }
.floating-card.card-2 .icon-box { background: #dcfce7; color: #22c55e; }

.floating-card.card-3 { top: 40%; right: -5%; animation-delay: 4s; z-index: 2; }
.floating-card.card-3 .icon-box { background: #fef3c7; color: #f59e0b; }

.fc-text h4 { margin: 0; font-size: 16px; color: var(--text-dark); }
.fc-text p { margin: 0; font-size: 12px; color: var(--text-muted); }

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

/* =========================================
   4. Features / Tool Grid
========================================= */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.tool-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tool-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
    border-color: var(--light-blue-bg);
}

.tool-card .icon {
    font-size: 30px;
    background: var(--light-blue-bg);
    padding: 15px;
    border-radius: 12px;
}

.tool-content h3 { margin: 0 0 5px 0; font-size: 18px; color: var(--text-dark); }
.tool-content p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* =========================================
   5. Authentication Pages (Login/Register)
========================================= */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--light-blue-bg);
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    color: var(--text-dark);
    margin: 0 0 5px 0;
    font-size: 24px;
}

.auth-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

.input-group {
    margin-bottom: 18px;
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background-color: #f8fafc;
    color: var(--text-dark);
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.auth-btn {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

/* =========================================
   6. Advanced Registration Form UI (Password)
========================================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    padding-right: 40px; 
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-password:hover { opacity: 1; }

.strength-meter {
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
}

.strength-text, .match-text {
    font-size: 12px;
    margin-top: 5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   7. Footer (Light Blue Theme)
========================================= */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--light-blue-bg);
    padding: 30px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.support-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.support-link a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.25);
}

/* =========================================
   8. Responsive Media Queries (Mobile Fixes)
========================================= */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }

    /* Features Grid */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    .grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 40px;
    }
    .tool-card {
        padding: 15px;
        gap: 12px;
        align-items: center;
    }
    .tool-card .icon {
        font-size: 22px;
        padding: 12px;
        border-radius: 10px;
    }
    .tool-content h3 { font-size: 15px; margin-bottom: 4px; }
    .tool-content p { font-size: 12px; line-height: 1.4; }

    /* Footer */
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    .support-link { width: 100%; }
    .support-link a {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        box-sizing: border-box;
    }
}
