:root {
    --bg-dark: #0D1117; /* GitHub dark background */
    --bg-light: #161B22; /* GitHub dark lighter shade */
    --primary: #58A6FF; /* GitHub dark blue */
    --primary-glow: rgba(88, 166, 255, 0.3);
    --text-main: #C9D1D9; /* GitHub dark text */
    --text-secondary: #8B949E; /* GitHub dark secondary text */
    --text-readable: #B1BCC7; /* Slightly brighter for readability */
    --border-color: #30363D;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-readable); /* Changed to readable */
}

.text-readable {
    color: var(--text-readable); /* New class for readable text */
}

.bg-light-alt {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Floating Navbar */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.floating-navbar .navbar-brand .brand-text {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary);
}

.floating-navbar .nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-main) !important;
}

.floating-navbar .nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

#hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* tsParticles canvas will go here */
}

.hero-content h1 {
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 166, 255, 0.1);
}

/* About & Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--primary);
}

.timeline-content .timeline-date {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-content .timeline-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-content .timeline-company {
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
.footer-section {
    padding: 80px 0;
}

.footer-section .email-link {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.footer-section .email-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.footer-section .email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin: 0 15px;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-section hr {
    max-width: 400px;
    margin: 40px auto;
    border-color: var(--border-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .floating-navbar {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .footer-section .email-link {
        font-size: 1.2rem;
    }
}