* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: white;
    background-color: #121212;
    overflow-x: hidden;
}

/* Timeline Section */
.timeline-section {
    padding: 2rem 1rem;
    background-color: #121212;
}

.timeline-container {
    max-width: 1000px;
    /* margin: 0 auto; */
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 4rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-content {
    position: relative;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    width: 45%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid #5170ff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.timeline-content:hover::before {
    transform: scaleX(1);
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 10px #5170ff;
}

.timeline-date {
    background: var(--gradient);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent-color);
    line-height: 1.3;
}

.timeline-description {
    opacity: 0.9;
    line-height: 1.7;
    font-size: 1.05rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #5170ff;
    z-index: 10;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    left: -13px;
    top: -13px;
    animation: pulse 2.5s infinite;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    left: -23px;
    top: -23px;
    animation: pulse 2.5s infinite 0.5s;
}

/* Timeline connector lines */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    width: 15px;
    height: 2px;
    background: var(--gradient);
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 15px;
    height: 2px;
    background: var(--gradient);
    transform: translateY(-50%);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content {
    background: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: 25px;
    border: 1px solid #5170ff;
    position: relative;
    overflow: hidden;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: #121212;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.contact-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-button:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 10pt;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start !important;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        text-align: left !important;
    }

    .timeline-content::after {
        left: -15px !important;
        right: auto !important;
    }

    .timeline-dot {
        left: 30px;
        transform: translateY(-50%);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.nav-link:focus,
.cta-button:focus,
.contact-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* E-Mail - CTA (Mobile-Version)*/

@media (max-width: 768px) {
.contact-content h2 {
    font-size: 18pt;
}

.contact-content p {
    font-size: 12pt;
}
}