/* Basic Reset and Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #343a40;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    /* Smooth scrolling for general navigation if JS fails */
    scroll-behavior: smooth; 
}

/* Header & Navigation */
header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    transition: color var(--transition-speed);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Section Styling */
.section {
    min-height: 100vh; /* Ensure each section takes up at least the full viewport height */
    padding: 80px 20px;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center;
    text-align: center;
}

.content-wrapper {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Typography */
h1, h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* CTA Button Styling */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.cta-button:hover {
    background-color: #0056b3; /* A darker shade */
    transform: translateY(-2px);
}

/* Projects Section Specifics */
.project-gallery {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.project-card {
    flex: 1 1 300px; /* Flexible width for responsiveness */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: left;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.project-card:hover {
    transform: translateY(-5px); /* Subtle hover animation */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form Styling */
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Skills Section - Basic visual for skill level */
.skill-item {
    background-color: #e9ecef;
    color: var(--secondary-color);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: left;
    /* Initial state for JavaScript animation */
    width: 0; 
    transition: width 1s ease-out; /* CSS transition for skill bar animation */
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .section {
        min-height: auto; /* Allow sections to shrink on mobile */
        padding: 60px 15px;
    }
    nav {
        justify-content: space-around;
    }
    .nav-link {
        margin-left: 0;
        font-size: 0.9rem;
    }
    .project-gallery {
        flex-direction: column;
    }
}
