:root {
    --primary-color: #fff;
    --secondary-color: #B985FF;
    --background-color: #1A0B2E;
    --card-background: #fff;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-radius: 8px;
    --box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --section-background: #F8F9FC;
    --max-width: 1440px;
    --content-padding: 60px;
    --heading-size: 56px;
    --gradient-bg: linear-gradient(180deg, rgba(248, 249, 252, 0) 0%, #F8F9FC 100%);
    --overlay-color: rgba(26, 11, 46, 0.3);
    --card-bg: rgba(26, 11, 46, 0.6);
    --border-glow: rgba(185, 133, 255, 0.2);
    --scroll-blur: 0px;
    --scroll-transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--background-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    transition: var(--scroll-transition);
}

/* Lighter overlay for better visibility of the background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-color);
    z-index: 0;
    transition: var(--scroll-transition);
    backdrop-filter: blur(var(--scroll-blur));
    -webkit-backdrop-filter: blur(var(--scroll-blur));
}

/* Ensure content stays above overlay */
.hero-section,
.container,
.footer {
    position: relative;
    z-index: 1;
    display: block;
}

/* Update hero section for better contrast with background */
.hero-section {
    padding: var(--content-padding) 0;
    background: transparent;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: var(--heading-size);
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(185, 133, 255, 0.3);
    background: none;
    -webkit-text-fill-color: initial;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.container {
    max-width: var(--max-width);
    padding: 0 40px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 0;
    width: 100%;
    padding: 0 0 var(--content-padding);
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(185, 133, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(185, 133, 255, 0.2);
    box-shadow: 0 12px 40px rgba(185, 133, 255, 0.15);
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 32px;
}

.convert-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

input[type="text"], select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(185, 133, 255, 0.1);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    height: 48px;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(185, 133, 255, 0.1);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

button {
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    padding: 0 32px;
    background: linear-gradient(90deg, #B985FF 0%, #9D66FF 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 15px rgba(185, 133, 255, 0.2);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(185, 133, 255, 0.3);
}

.timestamp-display {
    padding: 24px;
    background: rgba(26, 11, 46, 0.4);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(185, 133, 255, 0.1);
    margin: 12px 0;
}

.timestamp-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.error {
    color: #FF85B3;
    font-size: 14px;
    margin-top: 8px;
}

/* Update animation styles for a more subtle effect */
.conversion-result.animate {
    animation: fadeIn 0.3s ease-out forwards;
    background: var(--card-bg);
    border: 1px solid rgba(185, 133, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 24px;
}

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

/* Remove glossy animations */
.conversion-result::after {
    display: none;
}

.conversion-result h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.conversion-result p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.conversion-result .timestamp-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    :root {
        --content-padding: 80px;
        --heading-size: 40px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .card {
        padding: 24px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Add these new styles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.footer {
    background: rgba(26, 11, 46, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(185, 133, 255, 0.1);
    padding: 20px;
    color: var(--text-secondary);
    margin-top: 30px;
    width: 100%;
    text-align: center;
}

/* Update existing styles */
main {
    min-height: 70vh;
}

/* Add subtle glow effect to cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, rgba(185, 133, 255, 0.1), transparent);
    pointer-events: none;
}

/* Update conversion result styles */
.conversion-result {
    color: var(--text-primary);
}

.conversion-result h3 {
    color: var(--primary-color);
}

.conversion-result p {
    color: var(--text-secondary);
}

/* Update the class name and blur amount */
body.scroll-down::before {
    --scroll-blur: 15px;
    background: rgba(26, 11, 46, 0.5);
}

/* Update the blur animation class */
body.blur-active::before {
    --scroll-blur: 15px;
    background: rgba(26, 11, 46, 0.5);
}

/* Features Section Styles */
.features-section {
    padding: 40px 0;
    background: rgba(26, 11, 46, 0.4);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(185, 133, 255, 0.1);
    margin-top: 20px;
    width: 100%;
}

.features-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.features-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(185, 133, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(185, 133, 255, 0.2);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }

    .features-title {
        font-size: 28px;
    }

    .features-description {
        font-size: 16px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card h3 {
        font-size: 20px;
    }
}

.footer a {
    color: white;
    text-decoration: none;
}

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