/* ============================================
   ggaji.com -- Glassmorphism Frosted SaaS
   Colors: #667eea, #764ba2, #ffffff, #f0f0ff, #22c55e, #fbbf24
   Fonts: Poppins 700, Inter 400, Fira Code
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #f0f0ff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---- Background Orbs ---- */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #667eea;
    top: -100px;
    left: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #764ba2;
    top: 40%;
    right: -80px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #fbbf24;
    bottom: 10%;
    left: 20%;
    animation: orbFloat3 22s ease-in-out infinite;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: #22c55e;
    top: 60%;
    left: 60%;
    animation: orbFloat4 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 80px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -70px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -60px); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 50px); }
}

/* ---- Glass Panel ---- */
.glass-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

/* ---- Sections ---- */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #f0f0ff;
    text-align: center;
    margin-bottom: 50px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-panel {
    max-width: 700px;
    width: 100%;
    padding: 60px 50px;
    text-align: center;
    animation: panelMaterialize 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

@keyframes panelMaterialize {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brand-icon {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4)); }
    50% { filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.8)); }
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.2rem;
    color: #f0f0ff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.brand-tagline {
    font-size: 1.05rem;
    color: rgba(240, 240, 255, 0.7);
    margin-bottom: 40px;
}

/* ---- Countdown Display ---- */
.hero-countdown,
.nextgoal-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.countdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-value {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 3rem;
    color: #fbbf24;
    line-height: 1;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.countdown-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(240, 240, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.countdown-separator {
    font-family: 'Fira Code', monospace;
    font-size: 2.4rem;
    color: rgba(251, 191, 36, 0.5);
    padding-bottom: 18px;
}

.hero-goal-name {
    font-size: 1rem;
    color: rgba(240, 240, 255, 0.7);
}

.hero-goal-name strong {
    color: #fbbf24;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint span {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   GOALS SECTION
   ============================================ */
.goals-section {
    padding-top: 100px;
    padding-bottom: 60px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 80px;
}

.goal-card {
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.goal-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.goal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.goal-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #f0f0ff;
}

.goal-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: rgba(240, 240, 255, 0.6);
}

.icon-calendar {
    flex-shrink: 0;
}

.goal-countdown-mini {
    margin-bottom: 16px;
}

.countdown-mini-value {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #fbbf24;
}

/* ---- Progress Bars ---- */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #22c55e;
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

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

.progress-label {
    font-size: 0.8rem;
    color: rgba(240, 240, 255, 0.6);
}

/* ---- Circular Progress ---- */
.progress-circles {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.circle-card {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 160px;
    opacity: 0;
    transform: scale(0.85);
}

.circle-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.progress-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(
        #22c55e 0% 0%,
        rgba(255, 255, 255, 0.1) 0% 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 1.5s ease-out;
}

.progress-circle.animated {
    background: conic-gradient(
        #22c55e 0% var(--progress),
        rgba(255, 255, 255, 0.1) var(--progress) 100%
    );
}

.circle-value {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    color: #f0f0ff;
    background: rgba(102, 126, 234, 0.6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(240, 240, 255, 0.7);
    text-align: center;
}

/* ============================================
   MILESTONES SECTION
   ============================================ */
.milestones-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 20px;
    width: 28px;
    height: 28px;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    padding: 24px;
}

.timeline-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: rgba(240, 240, 255, 0.5);
    display: block;
    margin-bottom: 6px;
}

.timeline-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #f0f0ff;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: rgba(240, 240, 255, 0.65);
    margin-bottom: 12px;
}

.celebration-dots {
    display: flex;
    gap: 6px;
}

.celebration-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0;
}

.timeline-item.visible .dot {
    animation: dotPop 0.4s ease forwards;
}

.timeline-item.visible .dot:nth-child(1) { animation-delay: 0.3s; }
.timeline-item.visible .dot:nth-child(2) { animation-delay: 0.5s; }
.timeline-item.visible .dot:nth-child(3) { animation-delay: 0.7s; }

@keyframes dotPop {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* ============================================
   NEXT GOAL SECTION
   ============================================ */
.nextgoal-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.nextgoal-panel {
    max-width: 650px;
    width: 100%;
    padding: 60px 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.nextgoal-panel.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.nextgoal-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: #f0f0ff;
    margin-bottom: 16px;
}

.nextgoal-subtext {
    font-size: 1.05rem;
    color: rgba(240, 240, 255, 0.65);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.nextgoal-inspire {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #fbbf24;
    margin-top: 30px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .goals-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .brand-name {
        font-size: 2.4rem;
    }

    .countdown-value {
        font-size: 2.2rem;
    }

    .countdown-separator {
        font-size: 1.8rem;
        padding-bottom: 14px;
    }

    .countdown-group {
        min-width: 54px;
    }

    .hero-panel,
    .nextgoal-panel {
        padding: 40px 28px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 36px;
    }

    .progress-circles {
        gap: 16px;
    }

    .circle-card {
        min-width: 140px;
        padding: 20px 16px;
    }

    .progress-circle {
        width: 90px;
        height: 90px;
    }

    .circle-value {
        width: 64px;
        height: 64px;
        font-size: 1.1rem;
    }

    .nextgoal-heading {
        font-size: 1.8rem;
    }

    .timeline {
        padding-left: 36px;
    }
}

@media (max-width: 480px) {
    .hero-countdown,
    .nextgoal-countdown {
        gap: 4px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-separator {
        font-size: 1.4rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .progress-circles {
        flex-direction: column;
        align-items: center;
    }
}
