/* Reset y Variables */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base Colors */
    --white: #ffffff;
    --black: #101828;

    /* Brand Colors (Azul Principal) */
    --brand-25: #f2f7ff;
    --brand-50: #ecf3ff;
    --brand-100: #dde9ff;
    --brand-200: #c2d6ff;
    --brand-300: #9cb9ff;
    --brand-400: #7592ff;
    --brand-500: #465fff;
    --brand-600: #3641f5;
    --brand-700: #2a31d8;
    --brand-800: #252dae;
    --brand-900: #262e89;
    --brand-950: #161950;

    /* Gray Scale */
    --gray-25: #fcfcfd;
    --gray-50: #f9fafb;
    --gray-100: #f2f4f7;
    --gray-200: #e4e7ec;
    --gray-300: #d0d5dd;
    --gray-400: #98a2b3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1d2939;
    --gray-900: #101828;
    --gray-950: #0c111d;
    --gray-dark: #1a2231;

    /* Blue Light */
    --blue-light-300: #7cd4fd;
    --blue-light-400: #36bffa;
    --blue-light-500: #0ba5ec;

    /* Success */
    --success-500: #12b76a;
    --success-600: #039855;

    /* Warning */
    --warning-500: #f79009;

    /* Theme Colors */
    --pink-500: #ee46bc;
    --purple-500: #7a5af8;

    /* Unity Website Colors */
    --unity-purple: #9333ea;
    --unity-purple-light: #a855f7;
    --unity-purple-dark: #7e22ce;
    --unity-purple-50: #faf5ff;
    --unity-gold: #fbbf24;

    /* Semantic Variables */
    --primary-color: var(--unity-purple);
    --secondary-color: var(--unity-purple-dark);
    --accent-color: var(--unity-purple-light);
    --dark-bg: var(--gray-900);
    --card-bg: var(--gray-800);
    --text-light: var(--gray-50);
    --text-gray: var(--gray-400);
    --gradient: linear-gradient(135deg, var(--unity-purple), var(--unity-purple-light));
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    padding: 40px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    animation: fadeIn 0.6s ease-out;
}

.hero-logo svg {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out 0.1s backwards;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Watermark Logo */
.watermark-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 180px;
    height: auto;
    z-index: 999;
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body:hover .watermark-logo {
    opacity: 0.08;
}

/* Timeline Section - Roadmap Vertical Style */
.timeline-section {
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: ambientGlow 8s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.timeline {
    position: relative;
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Roadmap Vertical Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--gradient);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.8) 100%
    );
    animation: roadFlow 3s linear infinite;
    border-radius: 2px;
}

@keyframes roadFlow {
    0% {
        transform: translateX(-50%) translateY(-100%);
    }
    100% {
        transform: translateX(-50%) translateY(100%);
    }
}

/* Milestone - Vertical Roadmap Style */
.milestone {
    position: relative;
    width: 100%;
    max-width: 420px;
    cursor: pointer;
    opacity: 0;
    margin-bottom: 80px;
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone.animate-in {
    opacity: 1;
}

/* Alternating left and right positioning */
.milestone:nth-child(even) {
    margin-left: auto;
    padding-left: 60px;
    transform: translateX(100px);
}

.milestone:nth-child(odd) {
    margin-right: auto;
    padding-right: 60px;
    transform: translateX(-100px);
}

.milestone.animate-in:nth-child(even) {
    transform: translateX(0);
}

.milestone.animate-in:nth-child(odd) {
    transform: translateX(0);
}

.milestone:nth-child(2).animate-in { transition-delay: 0.1s; }
.milestone:nth-child(3).animate-in { transition-delay: 0.2s; }
.milestone:nth-child(4).animate-in { transition-delay: 0.3s; }
.milestone:nth-child(5).animate-in { transition-delay: 0.4s; }
.milestone:nth-child(6).animate-in { transition-delay: 0.5s; }
.milestone:nth-child(7).animate-in { transition-delay: 0.6s; }
.milestone:nth-child(8).animate-in { transition-delay: 0.7s; }
.milestone:nth-child(9).animate-in { transition-delay: 0.8s; }
.milestone:nth-child(10).animate-in { transition-delay: 0.9s; }
.milestone:nth-child(11).animate-in { transition-delay: 1.0s; }

/* Milestone Dot/Number - Vertical */
.milestone-dot {
    position: absolute;
    top: 50%;
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 50%;
    border: 5px solid var(--dark-bg);
    z-index: 15;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.6), 0 0 0 0 rgba(147, 51, 234, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

/* Position dot on the left for odd items */
.milestone:nth-child(odd) .milestone-dot {
    right: -32px;
    transform: translateY(-50%);
}

/* Position dot on the right for even items */
.milestone:nth-child(even) .milestone-dot {
    left: -32px;
    transform: translateY(-50%);
}

.milestone-dot::before {
    content: attr(data-number);
}

.milestone:hover .milestone-dot {
    width: 74px;
    height: 74px;
    animation: pulse 1.5s infinite;
}

/* Milestone Card */
.milestone-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--gray-700);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.milestone-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(147, 51, 234, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone:hover .milestone-card::before {
    transform: rotate(45deg) translateX(100%);
}

/* Connector line from card to dot - Vertical */
.milestone-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    opacity: 0.7;
    transform: translateY(-50%);
}

.milestone:nth-child(odd) .milestone-card::after {
    right: -40px;
}

.milestone:nth-child(even) .milestone-card::after {
    left: -40px;
}

.milestone:hover .milestone-card {
    transform: translateY(-8px);
    border-color: var(--unity-purple);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(147, 51, 234, 0.08) 100%);
}

.milestone-date {
    font-size: 0.85rem;
    color: var(--unity-purple-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.milestone-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.milestone-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}

.milestone-icon {
    font-size: 2.5rem;
    text-align: center;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 4px 8px rgba(147, 51, 234, 0.3));
}

.milestone:hover .milestone-icon {
    transform: scale(1.25) rotate(8deg) translateY(-4px);
    opacity: 1;
    filter: drop-shadow(0 8px 16px rgba(147, 51, 234, 0.5));
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: scale(1.25) rotate(8deg) translateY(-4px);
    }
    50% {
        transform: scale(1.25) rotate(8deg) translateY(-8px);
    }
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-gray);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

/* Responsive Design - Roadmap */
@media (max-width: 1024px) {
    .milestone {
        width: 300px;
    }

    .milestone-card {
        min-height: 220px;
        padding: 24px;
    }

    .milestone-title {
        font-size: 1.5rem;
    }

    .milestone-icon {
        font-size: 3rem;
    }

    .milestone-dot {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .milestone:hover .milestone-dot {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-logo svg {
        width: 200px;
    }

    .watermark-logo {
        width: 120px;
        top: 10px;
        right: 10px;
    }

    .timeline-section {
        padding: 60px 20px;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        min-height: auto;
        gap: 80px;
    }

    /* Vertical road for mobile */
    .timeline-line {
        width: 120px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-line svg {
        transform: rotate(90deg);
        height: 100%;
        width: auto;
    }

    /* Stack milestones vertically */
    .milestone {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 90%;
        max-width: 320px;
    }

    .milestone-card {
        padding: 20px;
    }

    .milestone-card::after {
        display: none;
    }

    .milestone-dot {
        bottom: auto;
        left: 50%;
        top: -30px;
        width: 50px;
        height: 50px;
    }

    .milestone-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .milestone-card {
        padding: 20px;
    }

    .milestone-title {
        font-size: 1.2rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 17, 29, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gray-700);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gray-700);
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-600);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-700);
}

.modal-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 12px rgba(70, 95, 255, 0.3));
}

.modal-header-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-header-text .modal-quarter {
    font-size: 0.85rem;
    color: var(--brand-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.modal-details {
    background: var(--gray-900);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid var(--gray-700);
}

.modal-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.modal-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-details li {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
}

.modal-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--brand-500);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.modal-btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(70, 95, 255, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 95, 255, 0.4);
}

.modal-btn-secondary {
    background: var(--gray-700);
    color: var(--text-light);
}

.modal-btn-secondary:hover {
    background: var(--gray-600);
    transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 640px) {
    .modal-content {
        padding: 30px 24px;
    }

    .modal-header-text h2 {
        font-size: 1.4rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        min-width: 100%;
    }
}
