/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header styles */
header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    padding: clamp(3rem, 8vw, 6rem) 1.5rem 3rem;
    background: linear-gradient(rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Download buttons */
.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.store-icon {
    width: 24px;
    height: 24px;
}

.download-button .button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-button span {
    font-size: 0.75rem;
    opacity: 0.9;
}

.download-button strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-store {
    background: #000;
    color: white;
}

.app-store:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.play-store {
    background: #414141;
    color: white;
}

.play-store:hover {
    background: #515151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Features section */
.features {
    padding: 3rem clamp(1rem, 4vw, 1.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.feature-icon .icon {
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.25rem;
}

.feature-card p {
    color: #666;
    margin: 0;
}

/* SMART Goals section */
.smart-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.smart-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 999px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.smart-tag:hover {
    transform: translateY(-2px);
}

/* Categories and feature tags */
.categories,
.note-features,
.countdown-features,
.routine-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.category-tag {
    font-size: 1.0rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 500;
}

.category-tag.health { background: #e0f2fe; color: #0369a1; }
.category-tag.career { background: #f1f5f9; color: #475569; }
.category-tag.relationships { background: #fce7f3; color: #be185d; }
.category-tag.money { background: #dcfce7; color: #166534; }
.category-tag.self-improvement { background: #ede9fe; color: #6d28d9; }
.category-tag.hobbies { background: #fff7ed; color: #c2410c; }

.feature-tag {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    border-radius: 999px;
    color: #4b5563;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-tag:hover {
    transform: translateY(-2px);
    background-color: #e5e7eb;
}

/* Countdown and Routines specific styles */
.feature-card.countdowns .feature-icon,
.feature-card.routines .feature-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Contact section */
.contact {
    padding: 3rem clamp(1rem, 4vw, 1.5rem);
    background: #f9fafb;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background: #6366f1;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #4f46e5;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.hidden {
    display: none !important;
  }
  
  #successMessage {
    background: #dcfce7;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
  }
  
  #successMessage h3 {
    color: #166534;
    margin-bottom: 0.5rem;
  }
  
  #successMessage p {
    color: #166534;
    margin-bottom: 0.5rem;
  }
  
  #successMessage .small {
    font-size: 0.875rem;
  }
  
  #errorMessage {
    background: #fee2e2;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 1rem;
    color: #991b1b;
  }
  
  .contact-form form {
    width: 100%;
  }

/* Responsive styles */
@media screen and (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-card.countdowns,
    .feature-card.routines {
        grid-column: span 1;
    }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .download-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Small screen adjustments */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    button {
        width: 100%;
    }
}