/* ================================
   BASE STYLES & RESET
   ================================ */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* ================================
   RESPONSIVE NAVIGATION
   ================================ */

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
    }
}

/* ================================
   SECTION BASE STYLES
   ================================ */

.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    scroll-snap-align: start;
}

.section-content {
    max-width: 1400px;
    width: 100%;
    z-index: 2;
}

/* ================================
   HERO SECTION
   ================================ */

.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 180px;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.primary-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.secondary-button:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
}

/* ================================
   HERO VISUAL & FLOATING CARDS
   ================================ */

.hero-visual {
    position: relative;
    height: 400px;
    min-height: 300px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    opacity: 0;
    transform: translate(-100px, -100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    max-width: 280px;
}

.floating-card.animate-entrance {
    opacity: 1;
    transform: translate(0, 0);
}

.card-1 {
    top: 20%;
    left: 22%;
    animation-delay: 0s;
    transform: translate(-150px, -100px);
}

.card-1.animate-entrance {
    transform: translate(0, 0);
}

.card-2 {
    top: 40%;
    right: 40%;
    animation-delay: -2s;
    transform: translate(150px, -100px);
}

.card-2.animate-entrance {
    transform: translate(0, 0);
}

.card-3 {
    bottom: 13%;
    left: 35%;
    animation-delay: -4s;
    transform: translate(-120px, 100px);
}

.card-3.animate-entrance {
    transform: translate(0, 0);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.card-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* ================================
   HERO RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .floating-card {
        padding: 1.25rem;
        min-width: 180px;
        max-width: 240px;
    }
    
    .card-1 {
        left: 15%;
        top: 15%;
    }
    
    .card-2 {
        right: 30%;
        top: 35%;
    }
    
    .card-3 {
        left: 25%;
        bottom: 10%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1rem;
        min-height: auto;
        padding-top: 5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        height: auto;
        position: relative;
        order: -1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .floating-card {
        position: relative !important;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 280px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        display: block;
        animation: none !important;
    }
    
    .floating-card.animate-entrance {
        transform: none !important;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .primary-button,
    .secondary-button {
        min-width: 150px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card {
        padding: 1rem;
        margin: 0.75rem auto;
    }
    
    .card-content {
        gap: 0.75rem;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-value {
        font-size: 1.1rem;
    }
}

/* ================================
   INSIGHTS SECTION
   ================================ */

.insights-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.insights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.insights-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.insights-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.insights-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.insights-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.insights-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   INSIGHTS VISUAL & CARDS
   ================================ */

.insights-visual {
    position: relative;
    height: 600px;
    min-height: 400px;
}

.insight-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translate(-100px, -100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 320px;
    min-width: 260px;
}

.insight-card.animate-entrance {
    opacity: 1;
    transform: translate(0, 0);
}

/* Budget Card Positioning */
.budget-card {
    top: 0%;
    left: 0%;
    width: 280px;
    transform: translate(-150px, -100px);
    z-index: 2;
}

.budget-card.animate-entrance {
    transform: translate(0, 0);
}

/* Spending Card Positioning */
.spending-card {
    bottom: 0%;
    right: 0%;
    width: 300px;
    transform: translate(150px, 100px);
    z-index: 2;
}

.spending-card.animate-entrance {
    transform: translate(0, 0);
}

/* Background Image Element */
.insights-background-image {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 600px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.insights-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
    transition: background 0.8s ease;
    pointer-events: none;
}

.insights-background-image.add-overlay::before {
    background: rgba(0, 0, 0, 0.6);
}

.insights-background-image.animate-entrance {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.insights-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.9) contrast(1.1);
    position: relative;
    z-index: 1;
}

/* ================================
   CARD CONTENT STYLES
   ================================ */

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card-header .card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.card-info .card-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.card-amount {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: white;
}

.card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Budget Progress Styles */
.budget-progress {
    margin-top: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spent-amount {
    color: #ff6b6b;
    font-weight: 600;
}

.remaining-amount {
    color: #51cf66;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa500 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 2s ease-in-out;
}

.progress-fill.animate {
    width: var(--progress);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Spending Categories Styles */
.spending-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 120px;
}

.category-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.category-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-left: 2rem;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

.category-fill.animate {
    width: var(--progress);
}

/* ================================
   INSIGHTS RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1200px) {
    .insights-background-image {
        width: 240px;
        height: 320px;
        top: 8%;
        right: 4%;
    }
    
    .budget-card {
        width: 260px;
        left: 3%;
    }
    
    .spending-card {
        width: 280px;
        right: 3%;
    }
}

@media (max-width: 1024px) {
    .insights-content {
        gap: 3rem;
    }
    
    .insights-visual {
        height: 500px;
    }
    
    .insights-background-image {
        width: 200px;
        height: 280px;
        top: 10%;
        right: 3%;
    }
    
    .insight-card {
        padding: 1.25rem;
        min-width: 220px;
        max-width: 260px;
    }
    
    .budget-card {
        width: 240px;
        top: 15%;
        left: 2%;
    }
    
    .spending-card {
        width: 250px;
        bottom: 15%;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .insights-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .insights-visual {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        order: -1;
    }
    
    .insights-background-image {
        position: relative;
        width: 100%;
        max-width: 300px;
        height: 280px;
        margin: 0 auto 2rem auto;
        top: auto;
        right: auto;
        transform: none;
    }
    
    .insights-background-image.animate-entrance {
        transform: none;
    }
    
    .insight-card {
        position: relative;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    .budget-card.animate-entrance,
    .spending-card.animate-entrance {
        transform: none !important;
    }
    
    .insights-stats {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .insights-visual {
        gap: 1rem;
    }
    
    .insights-background-image {
        height: 240px;
        max-width: 280px;
    }
    
    .insight-card {
        padding: 1rem;
        max-width: 100%;
    }
    
    .card-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .card-header .card-icon {
        font-size: 1.5rem;
    }
    
    .category-bar {
        margin-left: 1rem;
    }
    
    .insights-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 60px;
    }
}

/* ================================
   GOALS SECTION
   ================================ */

.goals-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.goals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.goals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.goals-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.goals-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.goals-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.goals-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ================================
   GOALS VISUAL & CARDS
   ================================ */

.goals-visual {
    position: relative;
    height: 600px;
    min-height: 400px;
}

.goal-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 320px;
    max-width: 320px;
    min-width: 280px;
    opacity: 0;
    transform: translate(-100px, -100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.goal-card.animate-entrance {
    opacity: 1;
    transform: translate(0, 0);
}

.goal-card.completed {
    border: 1px solid rgba(81, 207, 102, 0.4);
    background: rgba(81, 207, 102, 0.1);
}

/* Background Image Element for Goals */
.goals-background-image {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 600px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.goals-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
    transition: background 0.8s ease;
    pointer-events: none;
}

.goals-background-image.add-overlay::before {
    background: rgba(0, 0, 0, 0.6);
}

.goals-background-image.animate-entrance {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.goals-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.9) contrast(1.1);
    position: relative;
    z-index: 1;
}

/* Goal Card Positions */
.trip-goal {
    top: 0%;
    left: 0%;
    transform: translate(200px, -100px);
    z-index: 3;
}

.trip-goal.animate-entrance {
    transform: translate(0, 0);
}

.phone-goal {
    bottom: 0%;
    right: 0%;
    transform: translate(200px, 100px);
    z-index: 3;
}

.phone-goal.animate-entrance {
    transform: translate(0, 0);
}





/* ================================
   GOAL CARD CONTENT STYLES
   ================================ */

.goal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.goal-header .goal-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.goal-info .goal-title {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.goal-target {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.goal-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    white-space: nowrap;
}

.goal-progress {
    margin-top: 1rem;
}

.goal-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.amount-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 700;
}

.amount-value.saved {
    color: #51cf66;
}

.amount-value.remaining {
    color: #ffa500;
}

.amount-value.target {
    color: #667eea;
}

.goal-progress-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 2.5s ease-in-out;
    background: linear-gradient(90deg, #51cf66 0%, #40c057 100%);
}

.goal-card:not(.completed) .goal-progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.goal-progress-fill.animate {
    width: var(--progress);
}

.completion-badge {
    color: #51cf66;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ================================
   GOALS RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1200px) {
    .goals-background-image {
        width: 240px;
        height: 320px;
        top: 8%;
        left: 4%;
    }
    
    .goal-card {
        width: 280px;
        min-width: 260px;
    }
    
    .trip-goal {
        top: 8%;
        right: 4%;
    }
    
    .phone-goal {
        bottom: 8%;
        right: 4%;
    }
}

@media (max-width: 1024px) {
    .goals-content {
        gap: 3rem;
    }
    
    .goals-visual {
        height: 500px;
    }
    
    .goals-background-image {
        width: 200px;
        height: 280px;
        top: 10%;
        left: 3%;
    }
    
    .goal-card {
        width: 260px;
        min-width: 240px;
        padding: 1.25rem;
    }
    
    .trip-goal {
        top: 10%;
        right: 3%;
    }
    
    .phone-goal {
        bottom: 10%;
        right: 3%;
    }
}

@media (max-width: 768px) {
    .goals-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .goals-visual {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .goals-background-image {
        position: relative;
        width: 100%;
        max-width: 300px;
        height: 280px;
        margin: 0 auto 2rem auto;
        top: auto;
        left: auto;
        transform: none;
    }
    
    .goals-background-image.animate-entrance {
        transform: none;
    }
    
    .goal-card {
        position: relative;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    .trip-goal.animate-entrance,
    .phone-goal.animate-entrance {
        transform: none !important;
    }
    
    .goals-stats {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .goals-visual {
        gap: 1rem;
    }
    
    .goals-background-image {
        height: 240px;
        max-width: 280px;
    }
    
    .goal-card {
        padding: 1rem;
        max-width: 100%;
        min-width: auto;
    }
    
    .goal-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .goal-header .goal-icon {
        font-size: 2rem;
    }
    
    .goal-amounts {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .amount-item {
        gap: 0.2rem;
    }
    
    .amount-label {
        font-size: 0.75rem;
    }
    
    .goals-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 60px;
    }
}

/* ================================
   CHAT SECTION
   ================================ */

.chat-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.chat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 60% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.chat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.chat-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.chat-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.chat-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.chat-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ================================
   CHAT VISUAL & WINDOW
   ================================ */

.chat-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.chat-window {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    height: 480px;
    max-height: 500px;
    min-height: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chat-window.animate-entrance {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ================================
   CHAT HEADER
   ================================ */

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.chat-avatar {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-details {
    min-width: 0;
    flex: 1;
}

.chat-name {
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chat-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* ================================
   CHAT MESSAGES
   ================================ */

.chat-messages {
    flex: 1;
    padding: 1rem;
    background: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
    min-height: 200px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: messageSlideIn 0.5s ease-out;
}

.message.ai-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.hidden-message {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.message.hidden-message.show {
    opacity: 1;
    transform: translateY(0);
}

.message-avatar {
    font-size: 1.2rem;
    background: #667eea;
    color: white;
    padding: 0.4rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #64748b;
}

.message-content {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 0;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.user-message .message-text {
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: #64748b;
    text-align: right;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   CHAT INPUT
   ================================ */

.chat-input {
    background: white;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f1f5f9;
    border-radius: 25px;
    padding: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.input-container:focus-within {
    border-color: #667eea;
}

.chat-input-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #1a1a1a;
    outline: none;
    min-width: 0;
}

.chat-input-field::placeholder {
    color: #64748b;
}

.send-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.send-button:hover {
    transform: scale(1.05);
}

.send-icon {
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

/* ================================
   TYPING INDICATOR
   ================================ */

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.typing-indicator.show {
    opacity: 1;
}

.typing-dots {
    display: flex;
    gap: 0.2rem;
}

.typing-dots .dot {
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
    animation: typingDots 1.5s infinite;
}

.typing-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

.typing-text {
    font-size: 0.8rem;
    color: #64748b;
}

/* ================================
   CHAT RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .chat-content {
        gap: 3rem;
    }
    
    .chat-visual {
        height: 450px;
        min-height: 350px;
    }
    
    .chat-window {
        max-width: 350px;
        height: 420px;
        max-height: 450px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .chat-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .chat-visual {
        height: auto;
        min-height: 350px;
        order: -1;
        padding: 0 1rem;
    }
    
    .chat-window {
        width: 100%;
        max-width: 100%;
        height: 350px;
        max-height: 400px;
        min-height: 300px;
    }
    
    .chat-header {
        padding: 0.75rem 1rem;
    }
    
    .chat-messages {
        padding: 0.75rem;
        min-height: 180px;
    }
    
    .message {
        max-width: 95%;
    }
    
    .message-content {
        padding: 0.6rem 0.8rem;
    }
    
    .chat-stats {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .chat-visual {
        min-height: 350px;
    }
    
    .chat-window {
        height: 350px;
        max-height: 400px;
        min-height: 300px;
        margin: 0 0.5rem;
    }
    
    .chat-header {
        padding: 0.75rem 1rem;
    }
    
    .chat-avatar {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .chat-messages {
        padding: 0.75rem;
        gap: 0.75rem;
        min-height: 150px;
    }
    
    .message {
        gap: 0.5rem;
        max-width: 90%;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .message-content {
        padding: 0.6rem 0.8rem;
    }
    
    .chat-input {
        padding: 0.75rem;
    }
    
    .input-container {
        padding: 0.4rem;
    }
    
    .send-button {
        width: 35px;
        height: 35px;
    }
    
    .chat-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 60px;
    }
}

/* ================================
   CHAT ANIMATIONS
   ================================ */

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

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ================================
   FEATURES SECTION
   ================================ */

.features-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1a1a1a;
    position: relative;
    z-index: 10;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.features-section.active {
    transform: translateY(0);
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.features-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-bg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.features-cta {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.features-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   FEATURES RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .features-header {
        margin-bottom: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto 3rem auto;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .icon-bg {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .features-header {
        margin-bottom: 2rem;
    }
    
    .features-grid {
        margin-bottom: 2rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .icon-bg {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    scroll-snap-align: start;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-main {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* ================================
   FOOTER COMPANY INFO
   ================================ */

.footer-logo h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* ================================
   FOOTER NAVIGATION
   ================================ */

.footer-title {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-links a:hover {
    color: #667eea;
}

/* ================================
   FOOTER NEWSLETTER
   ================================ */

.newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.newsletter-button:hover {
    transform: translateY(-2px);
}

.newsletter-icon {
    font-size: 1.2rem;
}

.footer-trust {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    font-size: 1rem;
}

.trust-text {
    font-size: clamp(0.8rem, 1.4vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   FOOTER BOTTOM
   ================================ */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #667eea;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    font-size: clamp(0.75rem, 1.4vw, 0.85rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: nowrap;
}

/* ================================
   FOOTER RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
    
    .footer-main {
        padding: 3rem 1.5rem 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 1rem 1rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: auto;
        margin-bottom: 0;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0.75rem 1.5rem 0.75rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-button {
        width: 100%;
        height: 45px;
    }
    
    .footer-trust {
        align-items: center;
    }
    
    .legal-links {
        gap: 1rem;
    }
    
    .footer-badges {
        gap: 0.75rem;
    }
    
    .badge {
        padding: 0.4rem 0.8rem;
    }
}

/* ================================
   GLOBAL ANIMATIONS & UTILITIES
   ================================ */

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

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

/* ================================
   IMPROVED SCROLLING
   ================================ */

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.section {
    scroll-snap-align: start;
}

.footer {
    scroll-snap-align: start;
}

body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Better mobile touch scrolling */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    
    .section {
        scroll-snap-align: none;
    }
    
    .footer {
        scroll-snap-align: none;
    }
}

/* ================================
   REDUCED MOTION SUPPORT
   ================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.cta-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    hyphens: auto;
}

/* Better responsive text sizing */
@media (max-width: 1200px) {
    .cta-title {
        font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: clamp(1.3rem, 4vw, 2rem);
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
}

.highlight-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-social-proof {
    margin-bottom: 3rem;
}

.social-proof-text {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.user-counter {
    font-weight: 700;
    color: #667eea;
}

/* ================================
   CTA FEATURES (FLOATING)
   ================================ */

.cta-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    white-space: nowrap;
}

.cta-feature-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.floating-feature {
    animation: ctaFloat 6s ease-in-out infinite;
}

.floating-feature:nth-child(1) { animation-delay: 0s; }
.floating-feature:nth-child(2) { animation-delay: -1.5s; }
.floating-feature:nth-child(3) { animation-delay: -3s; }
.floating-feature:nth-child(4) { animation-delay: -4.5s; }

.cta-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.feature-icon-small {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ================================
   CTA BUTTON
   ================================ */

.cta-button-container {
    margin-bottom: 3rem;
}

.cta-primary-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.cta-primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.cta-primary-button:hover::before {
    left: 100%;
}

.cta-primary-button:active {
    transform: translateY(-1px);
}

/* ================================
   TRUST BADGES
   ================================ */

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.trust-badge.animate {
    opacity: 1;
    transform: translateY(0);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: nowrap;
}

/* ================================
   CTA ANIMATIONS
   ================================ */

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

/* ================================
   CTA RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .cta-features {
        gap: 1.5rem;
    }
    
    .cta-feature-item {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .cta-features {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .cta-feature-item {
        justify-content: center;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .cta-primary-button {
        padding: 1.25rem 2.5rem;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .chat-window {
        margin: 0 0.5rem;
        height: 320px;
        max-height: 350px;
    }
    
    .chat-messages {
        min-height: 150px;
        padding: 0.5rem;
    }
    
    .message-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .chat-avatar {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cta-features {
        gap: 0.75rem;
    }
    
    .cta-feature-item {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .feature-icon-small {
        font-size: 1.25rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .trust-badge {
        padding: 0.6rem 1rem;
        max-width: 250px;
        margin: 0 auto;
    }
}