/* Milestone Page Styles */
:root {
    --primary-color: #00325D;
    --secondary-color: #004975;
    --primary-rgb: 21, 87, 174;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --heading-color: #1A1A1A;
    --text-color: #1e1e1e;
    --light-bg: #F8F9FA;
    --border-color: #E9ECEF;
    --white: #fff;
    --blueprint-color: #00a8ff;
    --blueprint-grid: rgba(0, 168, 255, 0.1);
    --blueprint-line: rgba(0, 168, 255, 0.3);
}

/* Hero Section */
.milestone-hero {
    position: relative;
    min-height: 50vh;
    padding: 120px 0;
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--blueprint-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 2;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.blueprint-element {
    position: absolute;
    opacity: 0.3;
}

@keyframes rotateAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.blueprint-element.element-1 {
    top: 15%;
    right: 10%;
    animation: rotateAnimation 20s infinite linear;
}

.blueprint-element.element-2 {
    bottom: 20%;
    left: 5%;
    animation: rotateAnimation 25s infinite linear reverse;
}

.blueprint-circle,
.blueprint-rect,
.blueprint-line {
    fill: none;
    stroke: var(--blueprint-color);
    stroke-width: 1;
    opacity: 0.3;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-wrapper {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
}

.section-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--blueprint-color);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.title-decoration .line {
    width: 50px;
    height: 2px;
    background: var(--blueprint-color);
}

.title-decoration .dot {
    width: 8px;
    height: 8px;
    background: var(--blueprint-color);
    border-radius: 50%;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    max-width: 600px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .milestone-hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .milestone-hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .blueprint-element {
        transform: scale(0.8);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blueprint-element {
        animation: none;
    }
}

/* Timeline Section */
.milestone-timeline {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.timeline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 168, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.05;
    background: var(--primary-color);
}

.shape.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: floatAnimation 8s infinite ease-in-out;
}

.shape.square {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: floatAnimation 10s infinite ease-in-out reverse;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173.2px solid var(--primary-color);
    top: 40%;
    right: 15%;
    animation: floatAnimation 12s infinite ease-in-out;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.timeline-wrapper {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateX(-50%);
    z-index: 1;
}

.line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 1s ease;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.line-dots {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line-dots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-4px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        transform: translateX(-4px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-4px) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-4px) scale(1);
        opacity: 1;
    }
}

.timeline-items {
    position: relative;
    z-index: 3;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    margin-bottom: 60px;
    position: relative;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-badge {
    position: absolute;
    left: 50%;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 4;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-badge::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
}

.timeline-badge .year {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    position: relative;
    z-index: 5;
}

.badge-ring {
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spinAnimation 10s linear infinite;
    background: linear-gradient(45deg, var(--primary-color), transparent) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

@keyframes spinAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.timeline-card {
    width: calc(100% - 90px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 2;
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-rgb), 0.3), transparent);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
    z-index: 2;
}

.icon-wrapper i {
    transform: rotate(45deg);
}

.timeline-card:hover .icon-wrapper {
    transform: rotate(0deg);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), 
                rgba(var(--primary-rgb), 0.05) 0%,
                transparent 50%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.timeline-card:hover .card-overlay {
    opacity: 1;
}

.decoration-line {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transform-origin: right;
    transition: all 0.3s ease;
}

.decoration-dot {
    position: absolute;
    bottom: 19px;
    right: 20px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-card:hover .decoration-line {
    width: 50px;
    transform: rotate(-45deg);
}

.timeline-card:hover .decoration-dot {
    transform: scale(1.5);
}

.timeline-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tech-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    top: 10%;
    right: -250px;
    animation: rotateAnimation 30s linear infinite;
}

.tech-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(var(--primary-rgb), 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.glow-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    animation: floatAnimation 10s ease-in-out infinite;
}

/* Touch Device Styles */
@media (hover: none) {
    .timeline-card {
        transform: none !important;
    }

    .timeline-card:active {
        transform: scale(0.98);
    }

    .timeline-card:active .icon-wrapper {
        transform: rotate(0deg);
    }

    .timeline-card:active .card-overlay {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .timeline-badge {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }

    .timeline-card {
        width: calc(100% - 70px);
        padding: 25px;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .timeline-item,
    .timeline-item.right {
        justify-content: flex-start;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-line {
        left: 50px;
    }

    .timeline-badge {
        left: 30px;
        transform: none;
    }

    .timeline-card {
        width: 100%;
    }

    .shape {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .timeline-item,
    .timeline-item.right {
        padding-left: 60px;
    }

    .timeline-badge {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }

    .timeline-card {
        padding: 20px;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    .tech-ring {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-item,
    .timeline-item.right {
        transition: none;
    }

    .shape {
        animation: none;
    }

    .tech-ring,
    .card-decoration {
        transition: none;
    }
} 