/* General Styling */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #1e1e1e;
    --text-color: #ecf0f1;
    --light-bg-color: #252525;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    align-items: center;
}

.logo .profile-pic {
    width: 70px;          /* Sets the width */
    height: 70px;         /* Sets the height */
    border-radius: 50%;   /* This is what makes the image round */
    margin-right: 15px;   /* Adds some space between the picture and your name */
    object-fit: cover;    /* Prevents the image from being stretched or distorted */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

#about,
#experience,
#education,
#projects,
#contact {
  scroll-margin-top: 80px; /* Adjust this value to match your header's height */
}

/* Main Content and Sections */
main {
    padding-top: 70px; /* Height of the header */
}

.content-section {
    padding: 4rem 10%;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--light-bg-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-text p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Work History (Timeline) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Projects Section */
#projects {
    background-color: black;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 1rem 1.5rem 0.5rem;
}

.project-card p {
    padding: 0 1.5rem 1rem;
    color: #bdc3c7;
}

.project-tags {
    padding: 0 1.5rem 1rem;
}

.project-tags span {
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-top: 5px;
}

.project-links {
    padding: 0 1.5rem 1rem;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 1rem;
    font-weight: bold;
}

/* Contact Section */
.content-section {
    background-color: #333;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--secondary-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--secondary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    
    .nav-links li {
        margin-left: 0;
        opacity: 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }
}

/* ===== Project Screenshot Carousel ===== */
.screenshot-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.screenshot-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.screenshot-carousel img.active {
  opacity: 1;
}

/* Optional: subtle shadow and rounded top for polish */
.project-card .screenshot-carousel {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: inset 0 -2px 10px rgba(0,0,0,0.3);
}
