/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --bg-color: #ffffff;
    --text-color: #2d3436;
    --container-width: 1200px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    height: 4rem;  /* Fixed height */
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    height: 100%;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: clamp(0.875rem, 2vw, 1.125rem);  /* Responsive font size */
}

nav a:hover {
    color: var(--secondary-color);
}

/* Sections */
section {
    padding: 5rem 0;
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0984e3 0%, #2d3436 100%);
    color: white;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-card:hover {
    transform: scale(1.02);
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.tags span {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.img-1 {
    content: url('images/sandbox_static.gif');
}

.img-2 {
    content: url('images/energytracker_static.gif');
}

.card-1:hover .img-1 {
    content: url('images/sandbox_live.gif');
}

.card-2:hover .img-2 {
    content: url('images/energytracker_live.gif');
}

/* Course Reviews */
#course-reviews {
    background-color: #f4f4f4;
}

.course-reviews-scroll {
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: auto;
    scrollbar-color: var(--secondary-color) #e0e0e0;
}

.course-reviews-scroll::-webkit-scrollbar {
    height: 8px;
}

.course-reviews-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.course-reviews-scroll::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.course-reviews-grid {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    min-width: 100%;
    padding: 1rem 0;
}

.course-review-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.course-review-card:hover {
    transform: scale(1.02);
}

.course-review-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.course-review-card h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Contact */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}