:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --background: #0A0F1C;
    --text: #FFFFFF;
    --text-secondary: #9CA3AF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

#navbar.scrolled {
    background-color: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        gap: 3rem;
    }
    
    .desktop-menu a {
        font-size: 2rem;
    }
}

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

.desktop-menu a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 20vh;
    padding: 8rem 0 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
}

.welcome-tag {
    display:inline-block;
    padding: 0.75rem 1.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Mobile First: Smaller size for mobile devices */
.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Larger screens: Increased font size */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 6rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--text);
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    padding: 3rem 0;
}

.projects h2, .about h2, .work-experience h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.underline {
    width: 120px;
    height: 4px;
    background-color: var(--primary);
    margin-bottom: 4rem;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 400px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    background: linear-gradient(to right, rgba(10, 15, 28, 0.95), rgba(10, 15, 28, 0.8), transparent);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.project-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.project-card p {
    font-size: 1.5rem;
    color: var(black);
    margin-bottom: 2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

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

/* Work Experience Section */
.work-experience {
    /* background: #2B2D42; Dark background for better contrast */
    color: #FFFFFF;
    padding: 40px 0;
    font-family: system-ui, -apple-system, sans-serif
    /* font-family: 'Arial', sans-serif; */
}
@media(max-width: 768px) {
    .work-experience .timeline-content {
        padding: 15px;  /* Reduces padding to fit content better */
        font-size: 0.9rem;
}
.work-experience .timeline-content h3 {
    font-size: 1.5rem;  /* Slightly larger font for headings to maintain hierarchy */
}

.work-experience .timeline-content .date {
    font-size: 1rem;  /* Ensures dates are still legible but not too large */
}

.work-experience ul {
    padding-left:0px;  /* Ensures bullet points align nicely */
}

.timeline-content {
    margin: 0;  /* Removes any additional margin for a cleaner layout */
}
}


.container {
    max-width: 960px;
    margin: auto;
    padding: 10px;
}

.timeline {
    position: relative;
    padding-left: 50px; /* Space for the timeline */
}

/* .timeline-dot { */
    /* position: absolute;
    left: 0;
    background-color: #8D99AE; /* Contrast dot */
    /* border: 4px solid #EDF2F4; /* White border for visibility */
    /* width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 10px; */ */ */
/* } */

.timeline-block {
    display: flex;
    margin-bottom: 40px; /* More space between entries */
    clear: both;
}

.timeline-content {
    /*background: #44475A; /* Slightly lighter for readability */
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transition: transform 0.3s ease-in-out;
}

.timeline-content h3 {
    font-size: 1.5rem; /* Larger font size for job titles */
    margin: 10px 0;
    color: bisque;
}

.timeline-content .date {
    font-size: 1.5rem;
    color: #BDD4E7; /* Light blue for a soft contrast */
    margin-bottom: 10px;
}

ul {
    list-style: disc inside;
    font-size: 1.3rem; /* Larger font size for readability */
}

a {
    color: #EF233C; /* Bright link color for emphasis */
    text-decoration: none;
    font-size: 1.5rem;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .left, .right {
        margin: 0;
    }
    .timeline-content {
        width: 90%;
        margin: auto;
    }
    .timeline {
        padding-left: 10px;
    }
    .timeline-dot {
        left: 10px;
    }
}


/* About Section */
.about {
    padding: 3rem 0;
}

.about-content {
    display:contents;
    gap: 4rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: left;
}

/* Ensuring the entire About section is well padded */
.about {
    padding: 2rem 1rem;  /* More padding for smaller screens */
}

/* These styles kick in for larger screens */
@media (min-width: 768px) {
    .about-text p {
        font-size: 1.5rem;  /* Larger font size for desktops */
        margin-bottom: 2rem;  /* More spacing for readability */
    }

    .about {
        padding: 3rem;  /* Adjust padding for larger screens */
    }
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 1.7rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    position: relative;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.contact-content p {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    padding: 1rem;
    background-color: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem;
    font-size: 1.2rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}