/* 
 * styles.css
 * Calm, feel-good, modern theme
 */

:root {
    /* Calm Colors */
    --calm-bg-1: #e0f2fe; /* light blue */
    --calm-bg-2: #f3e8ff; /* light purple */
    --calm-primary: #3b82f6; /* soft blue */
    --calm-primary-hover: #2563eb;
    --calm-accent: #8b5cf6; /* soft purple */
    
    /* Base Colors */
    --bg-white: #ffffff;
    --text-dark: #1e293b; /* slate 800 */
    --text-muted: #64748b; /* slate 500 */
    
    /* Layout */
    --container-width: 1200px;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--calm-primary);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-smooth);
}

/* Animated Download Button */
.btn-primary {
    background: linear-gradient(135deg, var(--calm-primary), var(--calm-accent), var(--calm-primary));
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    animation: btnPulse 3s infinite ease-in-out, bgPan 4s infinite linear;
}

@keyframes bgPan {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05); /* Keeps it lifted on hover */
    animation-play-state: paused; /* Pause pulsing on hover to make it feel tangible */
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
}

.mt-4 {
    margin-top: 30px;
}

/* Hero Section with Calm Animated Background */
.hero-calm {
    position: relative;
    padding-top: 100px; /* Reduced space below navbar */
    padding-bottom: 120px;
    background: linear-gradient(-45deg, var(--calm-bg-1), var(--calm-bg-2), #dbeafe, #fdf4ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.3);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(236, 72, 153, 0.2);
    top: 30%;
    left: 40%;
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

.hero-content-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

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

.text-highlight {
    background: linear-gradient(135deg, var(--calm-primary), var(--calm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-mild {
    color: var(--calm-primary);
    font-size: 1.2rem;
}

.badge-calm {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--calm-primary);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    background-color: #fff;
    padding: 12px;
}

.floating-img {
    animation: floatingImg 6s ease-in-out infinite;
}

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

/* SVG Wave at bottom of hero */
.wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-white);
}

/* Features Section */
.features-calm {
    background-color: var(--bg-white);
    padding: 20px 0 100px 0;
    position: relative;
    z-index: 4;
    flex-grow: 1;
}

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

/* Highlighted Feature Cards */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    /* Soft gradient background to separate from white body */
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    /* Stronger, softer shadows for depth */
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.08), 0 2px 10px rgba(0,0,0,0.04);
    /* Distinct light blue border to define edges clearly */
    border: 1px solid rgba(59, 130, 246, 0.15); 
    transition: all var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15), 0 4px 15px rgba(0,0,0,0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.feat-icon {
    width: 64px;
    height: 64px;
    background: var(--calm-bg-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--calm-primary);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.feature-item:hover .feat-icon {
    background: var(--calm-primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer Section */
.footer-calm {
    background-color: var(--bg-white);
    padding: 30px 0;
    border-top: 1px solid #f1f5f9;
}

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

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--calm-primary);
}

/* Entrance Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
    opacity: 0;
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content-new {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h2 {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}
