/* Birthday Tracker+ - Common Styles & Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-main: #FFF8F8;
    --surface-card: #FFFFFF;
    --text-primary: #0F172A; /* Deep slate */
    --text-secondary: #475569; /* Medium slate */
    --text-muted: #94A3B8; /* Light slate */
    
    --brand-primary: #FF5A60; /* Coral Red */
    --brand-secondary: #8b5cf6; /* Violet Purple */
    --brand-accent: #FFA500; /* Warm Gold */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF3B70, #8A2387);
    --gradient-secondary: linear-gradient(135deg, #FF8A00, #DA1B60);
    --gradient-bg: radial-gradient(circle at 10% 20%, rgba(255, 90, 96, 0.05) 0%, rgba(138, 35, 135, 0.03) 90.1%);
    --gradient-card-hover: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 248, 248, 0.8));
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(255, 90, 96, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(255, 90, 96, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 90, 96, 0.3);
    
    /* Layout & Borders */
    --border-light: 1px solid rgba(255, 90, 96, 0.08);
    --border-hover: 1px solid rgba(255, 90, 96, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--brand-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 96, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 90, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 96, 0); }
}

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

@keyframes balloonFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Shared Components & Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-light);
    padding: 16px 0;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(255, 90, 96, 0.2));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(255, 59, 112, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 59, 112, 0.4);
    color: #FFFFFF;
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--brand-primary);
    border: 1px solid rgba(255, 90, 96, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

/* Play Store Badge Specifics */
.play-store-badge {
    height: 48px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.play-store-badge:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 90, 96, 0.08);
    color: var(--brand-primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 90, 96, 0.15);
}

.hero-title {
    font-size: 3.8rem;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: var(--border-light);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Phone Frame Mockup */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.phone-container {
    position: relative;
    width: 290px;
    height: 590px;
    background: #000000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid #1e293b;
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #FFF5F5;
    border-radius: 32px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Side Info Floating Cards (matching mockup references in the user's image) */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fc-1 {
    top: 20%;
    left: -40px;
    animation: float 5s ease-in-out infinite;
}

.fc-2 {
    bottom: 25%;
    right: -40px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.fc-icon {
    font-size: 1.5rem;
}

/* Decorative balloons in background */
.balloon-bg {
    position: absolute;
    z-index: -1;
    font-size: 3.5rem;
    opacity: 0.2;
    animation: balloonFloat 8s ease-in-out infinite;
}

.b1 { top: 15%; right: 5%; animation-delay: 0.2s; }
.b2 { bottom: 10%; left: 5%; animation-delay: 1.5s; }

/* Features Section */
.features {
    padding: 100px 0;
    background: #FFFFFF;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--surface-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 90, 96, 0.15);
    background: var(--gradient-card-hover);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 90, 96, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 90, 96, 0.1);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works (App Walkthrough/Features detail) */
.how-it-works {
    padding: 100px 0;
}

.step-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.step-row:last-child {
    margin-bottom: 0;
}

.step-row.reverse {
    direction: rtl;
}

.step-row.reverse .step-content {
    direction: ltr;
}

.step-content {
    animation: fadeIn 0.8s ease-out;
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 90, 96, 0.15);
    line-height: 1;
    margin-bottom: 12px;
}

.step-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.step-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.step-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-features-list li i {
    color: var(--brand-primary);
}

.step-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-mockup-wrapper {
    width: 250px;
    padding: 8px;
    background: #000000;
    border-radius: 36px;
    box-shadow: var(--shadow-md);
    border: 3px solid #1e293b;
}

.step-mockup-img {
    border-radius: 28px;
    overflow: hidden;
}

/* Call To Action (Download Section) */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.decor-item {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
}

.d1 { top: 20%; left: 10%; animation: float 6s infinite; }
.d2 { top: 60%; right: 12%; animation: float 8s infinite 1s; }
.d3 { bottom: 15%; left: 25%; animation: float 5s infinite 2s; }
.d4 { top: 15%; right: 28%; animation: float 7s infinite 0.5s; }

/* General Content Pages (Privacy, Terms, Contact) */
.page-header {
    padding: 140px 0 60px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 90, 96, 0.04) 0%, rgba(255, 248, 248, 0) 100%);
}

.page-header h1 {
    font-size: 3.2rem;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.content-page-card {
    background: #FFFFFF;
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    margin-bottom: 100px;
}

.policy-block {
    margin-bottom: 40px;
}

.policy-block h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-block p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.policy-block ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.policy-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.policy-block ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 65px;
    align-items: start;
}

.contact-info-card {
    background: var(--surface-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 90, 96, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-text p, .contact-text a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-text a:hover {
    color: var(--brand-primary);
}

.contact-form-wrapper {
    background: #FFFFFF;
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 90, 96, 0.15);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: #FFFDFD;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(255, 90, 96, 0.1);
    background: #FFFFFF;
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* Footer */
.footer {
    background: #0F172A; /* Dark slate */
    color: #94A3B8;
    padding: 80px 0 30px 0;
    border-top: var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo span {
    color: #FFFFFF;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-links h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: #94A3B8;
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: #FFFFFF;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #94A3B8;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* Response message block after submit */
.form-success {
    display: none;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.2rem; }
    .hero-grid { gap: 40px; }
}

@media (max-width: 900px) {
    .navbar { padding: 12px 0; }
    .nav-links { display: none; } /* Could build simple mobile menu if needed, keep standard links in footer */
    .hero { padding: 130px 0 60px 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; width: 100%; }
    .hero-mockup { order: -1; margin-bottom: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .step-row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .step-row.reverse { direction: ltr; }
    .step-features-list { align-items: center; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.5rem; }
    .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
    .cta-section h2 { font-size: 2.2rem; }
    .content-page-card { padding: 30px 20px; }
    .contact-form-wrapper { padding: 25px 20px; }
}
