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

body {
    font-family: 'poppins', 'sans-serif';
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.nav-logo a:hover .nav-logo-img {
    border-color: rgba(102, 126, 234, 0.8);
    transform: scale(1.05);
}

.nav-logo span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d2d5f 100%);
    color: white;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.welcome-text {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #b8b8d1;
    margin-bottom: 2rem;
}

.hero-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-contact span {
    font-size: 0.9rem;
    color: #b8b8d1;
}

.hero-contact i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* Section Styles */
section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b8b8d1;
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: #1a1a3e;
    position: relative;
    margin-top: 0;
}

.about-text {
    font-size: 1.1rem;
    color: #b8b8d1;
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Skills & Tools Section */
.skills-section {
    padding: 6rem 0;
    background: #0f0f23;
    position: relative;
}

.skills-container {
    display: flex;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
}

.tech-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-item span {
    color: #b8b8d1;
    text-align: center;
}

/* Timeline Section */
.timeline-section {
    background: #1a1a3e;
    padding: 6rem 0;
    position: relative;
}

.timeline-container {
    position: relative;
    background: linear-gradient(to bottom, #1a1a3e, #2d2d5f);
    padding: 4rem 0;
    width: 100%;
    max-width: 100vw;
    opacity: 1;
    transition: all 0.5s ease-in-out;
}

/* Timeline Controls */
.timeline-controls {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem 0;
}

.timeline-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.timeline-toggle-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.timeline-toggle-btn:active {
    transform: translateY(0);
}

/* Timeline Container Hidden State */
.timeline-container.hidden {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

/* Ladder Styles */
.ladder {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100%;
}

.ladder-rail {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 8px;
    background: linear-gradient(to bottom, #8B5CF6, #06B6D4);
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Timeline Events */
.timeline-event {
    position: relative;
    margin: 4rem 0;
    transform: translateY(50px);
}

.timeline-event.left {
    text-align: right;
}

.timeline-event.right {
    text-align: left;
}

/* Event Content */
.event-content {
    display: inline-block;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    max-width: 400px;
    position: relative;
    border: 2px solid transparent;
}

.timeline-event.left .event-content {
    margin-right: calc(50% + 40px);
}

.timeline-event.right .event-content {
    margin-left: calc(50% + 40px);
}

/* Event Icons */
.event-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.timeline-event.left .event-icon {
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-event.right .event-icon {
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

/* Event Details */
.event-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2D3748;
}

.event-date {
    font-size: 1rem;
    color: #8B5CF6;
    margin-bottom: 1rem;
}

.event-description {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.6;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Ladder Rungs */
.ladder-rung {
    position: absolute;
    width: 60px;
    height: 8px;
    background: linear-gradient(90deg, #8B5CF6, #06B6D4);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: #1a1a3e;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #b8b8d1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #b8b8d1;
}

.contact-item i {
    color: #667eea;
    width: 20px;
}

.social-section {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links .social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
}

.social-links .social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    transform: translateY(-3px);
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    color: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
}

.form-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: #0f0f23;
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-info p {
    color: #b8b8d1;
    line-height: 1.6;
}

.footer-contact p {
    color: #b8b8d1;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
}
