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

body {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    background: #0a0e1a;
    min-height: 100vh;
    color: #64b5f6;
    overflow-x: hidden;
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 144, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 144, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a237e 50%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 122, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.project-title {
    font-size: 4rem;
    font-weight: 700;
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out, glow 2s ease-in-out infinite alternate;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.project-title::before {
    content: '> ';
    color: #1e88e5;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 229, 255, 0.8), 0 0 40px rgba(0, 229, 255, 0.3); }
}

.project-subtitle {
    font-size: 1.5rem;
    color: #64b5f6;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.2s both;
    font-family: 'Courier New', monospace;
    opacity: 0.9;
}

.project-subtitle::before {
    content: '// ';
    color: #90a4ae;
}

.hero-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.video-container {
    width: 400px;
    height: 800px;
    background: rgba(13, 71, 161, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 3px solid #1e88e5;
    box-shadow: 0 0 30px rgba(30, 136, 229, 0.3), inset 0 0 20px rgba(30, 136, 229, 0.1);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 23px; /* Slightly smaller than container to account for border */
    display: block;
}

.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 229, 255, 0.2);
    border: 2px solid #00e5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.custom-play-btn:hover {
    background: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-play-btn span {
    color: #00e5ff;
    font-size: 2rem;
    font-weight: bold;
    margin-left: 3px; /* Slight offset for play icon */
}

.video-placeholder {
    color: #00e5ff;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    font-family: 'Courier New', monospace;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(30, 136, 229, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #1e88e5;
    position: relative;
}

.play-btn:hover {
    background: rgba(30, 136, 229, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.5);
}

.play-btn::after {
    content: '▶';
    font-size: 2rem;
    color: #00e5ff;
    margin-left: 5px;
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1a2e 50%, #0f0f23 100%);
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header h2 {
    font-size: 3rem;
    color: #00e5ff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    letter-spacing: 1px;
}

.timeline-header h2::before {
    content: '</ ';
    color: #1e88e5;
}

.timeline-header h2::after {
    content: ' />';
    color: #1e88e5;
}

.timeline-header p {
    font-size: 1.2rem;
    color: #64b5f6;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

.timeline-header p::before {
    content: '/* ';
    color: #90a4ae;
}

.timeline-header p::after {
    content: ' */';
    color: #90a4ae;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e88e5, #00e5ff, #0d47a1);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.5);
    animation: lineGlow 3s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    from { box-shadow: 0 0 10px rgba(30, 136, 229, 0.5); }
    to { box-shadow: 0 0 20px rgba(30, 136, 229, 0.8), 0 0 30px rgba(30, 136, 229, 0.3); }
}

.timeline-item {
    position: relative;
    margin: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.timeline-item:nth-child(even) .timeline-card {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-left: 0;
    margin-right: auto;
}

.timeline-card {
    width: 45%;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(30, 136, 229, 0.2);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #1e88e5;
    backdrop-filter: blur(10px);
}

.timeline-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(0, 229, 255, 0.05) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.timeline-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(30, 136, 229, 0.4);
    border-color: #00e5ff;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-card::before {
    right: -30px;
    border-left-color: #1a237e;
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: -30px;
    border-right-color: #1a237e;
}

.timeline-number {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e88e5, #00e5ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e1a;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.5);
    z-index: 10;
    border: 2px solid #00e5ff;
    animation: numberPulse 2s ease-in-out infinite alternate;
}

@keyframes numberPulse {
    from { box-shadow: 0 0 20px rgba(30, 136, 229, 0.5); }
    to { box-shadow: 0 0 30px rgba(30, 136, 229, 0.8), 0 0 40px rgba(0, 229, 255, 0.3); }
}

.card-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00e5ff;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.card-date {
    color: #64b5f6;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

.card-date::before {
    content: '[';
    color: #1e88e5;
}

.card-date::after {
    content: ']';
    color: #1e88e5;
}

.card-content {
    color: #90caf9;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 2;
}

.card-content a {
    color: #90caf9;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.card-content a:hover {
    color: #00e5ff;
}

.card-features {
    list-style: none;
    position: relative;
    z-index: 2;
}

.card-features li {
    padding: 8px 0;
    color: #81c784;
    position: relative;
    padding-left: 25px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.card-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00e5ff;
    font-weight: bold;
    font-size: 1.5rem;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #00e5ff;
    animation: bounce 2s infinite;
    z-index: 100;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

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

    .video-container {
        width: 320px;
        height: 520px;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .timeline-card::before {
        left: -30px !important;
        border-right-color: #1a237e !important;
        border-left-color: transparent !important;
    }

    .timeline-number {
        left: 30px;
    }
}

/* Additional tech styling */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: #1e88e5;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: matrixFall 10s linear infinite;
    opacity: 0.3;
}

@keyframes matrixFall {
    to {
        transform: translateY(100vh);
    }
}
