:root {
    --color-primary: #1C398E;
    --color-black: #000000;
    --color-white: #ffffff;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --border-radius: 1.5rem;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: var(--color-white);
    color: var(--color-white);
    min-height: 100vh;
    position: relative; 
}

#landing-stage {
    background: url('assets/ocean.jpeg') center center / cover no-repeat fixed;
    color: var(--color-white);
    position: fixed;
    inset: 0;
}

#landing-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 30, 0.50);
    z-index: 0;
}

#ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.ripple {
    position: fixed;
    border: 2px solid;
    border-radius: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    animation: ripple-expand 1.8s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}
  
.stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 10;
    padding: var(--spacing-md);
}

.stage.active {
    opacity: 1;
    visibility: visible;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* ===================================
   LANDING STAGE
   =================================== */

.main-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.subtitle {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 100;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.1px;
    line-height: 25px;
}

/* ===================================
   BUTTONS
   =================================== */
.ripple-btn {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    border: 2px solid;
    border-radius: 8px;
    background: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.1px;    
    justify-content: center; 
    gap: 0.5rem;            
    width: 240px;            
    text-align: center;
    padding: 1rem;
}

.primary-btn {
    background: var(--color-white);
    border-color: var(--color-white);
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.primary-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.secondary-btn {
    background: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.secondary-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.secondary-btn:hover svg path {
    stroke: var(--color-white);
}

.tertiary-btn {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.tertiary-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

/* ===================================
   ACTIONS STAGE
   =================================== */

#actions-stage {
    background: var(--color-white);
}
  
.stage-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xxl);  
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1150px;
    margin: 0 auto;
    overflow: visible;
}

.action-card {
    position: relative;
    padding: var(--spacing-xl);
    background: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: var(--border-radius);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease;
}

.action-card:hover {
    transform: scale(1.05) !important;
    opacity: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.action-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    margin-bottom: -1.5rem;
}

.action-icon svg {
    width: 50%;
    height: 50%;
}

.action-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
}

.action-description {
    margin-top: var(--spacing-lg);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
}

/* ===================================
   IMPACT STAGE
   =================================== */

.impact-icon-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-xl);
}

.ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 4px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    border-color: var(--color-white);
}

.impact-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 10px auto 0;
    z-index: 10;
}

.impact-icon svg {
    width: 100%;
    height: 100%;
}

.impact-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xxl);
    color: var(--color-primary);
}

.impact-story {
    font-size: 0.9rem;
    color: var(--color-black);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   NETWORK STAGE
   =================================== */

#network-stage {
    background: url("assets/map.png") center center / cover no-repeat fixed;
}
.network-canvas {
    position: relative;
    width: 100%;
    height: 70vh;
}

/* Groups */
.ripple-group {
    position: absolute;
    width: 1px;
    height: 1px;
}

/* The ripple rings */
.ripple-ring {
    position: absolute;
    width: 0px;
    height: 0px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: ripple 4s infinite ease-out;
}

@keyframes ripple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.7;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}
#network-stage .impact-title {
    margin-bottom: 2rem;
    margin-top: -5rem;
}


/* ===================================
   FINAL STAGE
   =================================== */

#final-stage {
    background: url("assets/ripple.jpeg") center center / cover no-repeat fixed;
}

#final-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 30, 0.7);
    z-index: 0;
}

.final-title {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    margin-top: 8rem;
}

.final-message {
    font-size: 1rem;
    color: var(--color-white);
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    line-height: 25px;
    
}

.final-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

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

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

.fade-in {
    animation: fade-in 0.8s ease-out forwards;
    opacity: 0;
}

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

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes ripple-expand {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ===================================
   RESPONSIVE LAYOUTS
   =================================== */

/* Tablet Layout (768px and up) */
@media screen and (min-width: 768px) {
    .main-title {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stage-title {
        font-size: 1rem;
    }

    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }

    .action-icon {
        width: 100px;
        height: 100px;
    }

    .action-title {
        font-size: 1rem;
    }

    .impact-title {
        font-size: 1rem;
    }

    .impact-story {
        font-size: 0.9rem;
    }

    .final-title {
        font-size: 1rem;
    }

    .final-message {
        font-size: 1rem;
    }

    .final-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Desktop Layout (1024px and up) */
@media screen and (min-width: 1024px) {
    .main-title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stage-title {
        font-size: 1rem;
    }

    .impact-title {
        font-size: 1rem;
    }

    .final-title {
        font-size: 1rem;
    }
}

/* Mobile-specific optimizations */
@media screen and (max-width: 767px) {
    .stage {
        padding: 1rem;
    }

    .ripple-btn {
        width: 100%;
        justify-content: center;
    }

    .action-card {
        padding: var(--spacing-lg);
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


