:root {
    --bg-color: #0B0E14;
    --surface-color: #151A22;
    --surface-glass: rgba(11, 14, 20, 0.6);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --accent-primary: #00F0FF; 
    --accent-secondary: #0088FF; 
    --accent-glow: rgba(0, 240, 255, 0.2);
    --border-color: rgba(0, 240, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--bg-color); 
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(11, 14, 20, 0.8) 100%);
    z-index: -1;
}

h1, h2, h3, h4, .nav-brand {
    font-family: 'Playfair Display', serif;
}

.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 14, 20, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    color: var(--accent-primary) !important;
    transition: all 0.3s ease !important;
    background: rgba(0, 240, 255, 0.05);
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: #000 !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 4rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.2;
    padding-right: 2rem;
}

.hero-greeting {
    font-family: 'Inter', sans-serif;
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--accent-primary);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.1rem;
    color: #D1D5DB;
    max-width: 80%;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2), 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px var(--accent-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 24px;
    z-index: 1;
}

.image-accent-border {
    position: absolute;
    inset: 15px -15px -15px 15px;
    border: 2px solid var(--accent-primary);
    border-radius: 24px;
    z-index: -1;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.image-wrapper:hover .image-accent-border {
    transform: translate(-10px, -10px);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    background-color: rgba(0,0,0,0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.cv-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.section-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Timeline Container for Alternating Layout */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Background static line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* The dynamic glowing progress line controlled by JS */
.timeline-progress-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0%;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent-primary);
    z-index: 1;
}

.timeline {
    position: relative;
    width: 100%;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem;
    margin-bottom: 4rem;
    z-index: 2;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Floating Dots on the center line */
.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: #0B0E14;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 3;
    transition: all 0.4s ease;
}

.timeline-item.left .timeline-dot {
    right: -10px; /* Aligns dot exactly to the center line */
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

/* Light up the dot when item is visible */
.timeline-item.is-visible .timeline-dot {
    background: var(--accent-primary);
    border-color: #fff;
    box-shadow: 0 0 20px var(--accent-primary);
}

.timeline-content {
    padding: 2rem;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(0, 240, 255, 0.1);
}

.timeline-item.left:hover .timeline-content {
    transform: translateX(-10px);
}

.timeline-item.right:hover .timeline-content {
    transform: translateX(10px);
}

.timeline-date {
    font-family: 'Inter', sans-serif;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.timeline-role {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-text {
    color: #D1D5DB;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.5);
}

.skill-category {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.8rem;
    color: #D1D5DB;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li::before {
    content: '▹';
    color: var(--accent-primary);
    font-size: 1.2rem;
    text-shadow: 0 0 5px var(--accent-primary);
}

/* Footer */
.footer-section {
    padding: 6rem 5% 2rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.footer-text {
    color: #D1D5DB;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

.fade-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-60px);
}

.fade-in-right {
    transform: translateX(60px);
}

.slide-down {
    transform: translateY(-100%);
}

.is-visible {
    opacity: 1;
    transform: translate(0) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-top: 3rem;
    }
    
    .hero-description {
        max-width: 100%;
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-title {
        font-size: 2.5rem;
    }
    
    /* Timeline Mobile Override - Single Column */
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-progress-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
        left: 10px;
        right: auto;
    }
    
    .timeline-item.left:hover .timeline-content, .timeline-item.right:hover .timeline-content {
        transform: translateX(10px);
    }
}
