:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --accent-pink: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --darker: #161b33;
    --success: #4cc9f0;
    --warning: #f9c74f;
    --phase1: #7209b7;
    --phase2: #3a0ca3;
    --phase3: #4361ee;
    --phase4: #4cc9f0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c2d 0%, #1d2671 100%);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle fill="%23ffffff" cx="25" cy="25" r="1.5"/><circle fill="%23ffffff" cx="75" cy="75" r="1"/><circle fill="%23ffffff" cx="75" cy="25" r="2"/><circle fill="%23ffffff" cx="25" cy="75" r="1.7"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loading-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-logo {
    width: 150px;
    height: 150px;
    position: relative;
    animation: pulse 2s infinite ease-in-out;
}

.loading-progress {
    position: absolute;
    width: 200px;
    height: 200px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.5s;
    stroke: url(#logo-gradient);
    stroke-width: 6;
    fill: transparent;
}

.loading-text {
    color: white;
    margin-top: 30px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
}

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Animated background elements */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    animation: float 15s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 20%;
    right: -75px;
    animation-delay: 4s;
    animation-duration: 15s;
}

.shape:nth-child(4) {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: -125px;
    animation-delay: 6s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translate(20px, 40px) rotate(90deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        transform: translate(-30px, 20px) rotate(180deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    75% {
        transform: translate(10px, -30px) rotate(270deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    transition: opacity 1s ease;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease 0.5s forwards;
    opacity: 0;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    color: #b8b8ff;
    max-width: 800px;
    margin: 0 auto 20px;
}

.motivation {
    text-align: center;
    margin: 20px 0;
    color: #4cc9f0;
    font-size: 1.2rem;
    padding: 15px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    font-weight: 500;
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--phase1), var(--phase2), var(--phase3), var(--phase4));
    z-index: 1;
    border-radius: 3px;
}

.timeline-phase {
    text-align: center;
    width: 23%;
    position: relative;
    z-index: 2;
}

.timeline-point {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--dark);
    border: 4px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.timeline-point:hover {
    transform: scale(1.1);
}

.phase-1 .timeline-point { border-color: var(--phase1); }
.phase-2 .timeline-point { border-color: var(--phase2); }
.phase-3 .timeline-point { border-color: var(--phase3); }
.phase-4 .timeline-point { border-color: var(--phase4); }

.timeline-phase h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.timeline-phase p {
    color: #b8b8ff;
    font-size: 1rem;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 1.2s forwards;
    opacity: 0;
}

.card:nth-child(2) {
    animation-delay: 1.3s;
}

.card:nth-child(3) {
    animation-delay: 1.4s;
}

.card:nth-child(4) {
    animation-delay: 1.5s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    font-family: 'Montserrat', sans-serif;
}

.card h2 i {
    margin-right: 12px;
}

.phase-1 .card h2 { color: var(--phase1); border-color: var(--phase1); }
.phase-2 .card h2 { color: var(--phase2); border-color: var(--phase2); }
.phase-3 .card h2 { color: var(--phase3); border-color: var(--phase3); }
.phase-4 .card h2 { color: var(--phase4); border-color: var(--phase4); }

.day {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.day-title {
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
}

.day-content {
    padding-left: 20px;
}

.day-content ul {
    list-style-type: none;
}

.day-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.day-content li.visible {
    opacity: 1;
    transform: translateY(0);
}

.day-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: bold;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    height: 300px;
    animation: fadeIn 1s ease 1.6s forwards;
    opacity: 0;
}

.data-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--card-border);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-text {
    color: #b8b8ff;
    font-size: 1rem;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--phase1), var(--phase2), var(--phase3), var(--phase4));
    border-radius: 5px;
    transition: width 1s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #b8b8ff;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    color: #b8b8ff;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    animation: fadeIn 1s ease 1.7s forwards;
    opacity: 0;
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline::before {
        top: 0;
        bottom: 0;
        left: 35px;
        width: 6px;
        height: 100%;
    }
    
    .timeline-phase {
        display: flex;
        align-items: center;
        margin-bottom: 40px;
        width: 100%;
        text-align: left;
    }
    
    .timeline-point {
        margin: 0 25px 0 0;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .data-visualization {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

.additional-sections {
    margin-top: 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--accent);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.tool-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.tool-card ul {
    list-style-type: none;
}

.tool-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tool-card li:before {
    content: "•";
    color: var(--accent);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--phase1), var(--phase2));
    border-radius: 15px;
    margin: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    cursor: pointer;
}

.cta-button:hover {
    background: transparent;
    color: var(--accent);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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