/* General Styling & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2, h3 {
    line-height: 1.2;
}

/* Header & Navigation */
header {
    background: transparent;
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

header.scrolled {
    background-color: var(--card-background);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allows links to wrap if they don't fit */
}

.nav-links li {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-links li a {
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease-in-out;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

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

.hero-image-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

/* General Section Styling */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: #222;
}

/* About Section */
.about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Experience Section */
.experience-item {
    background: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-item .company {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style-type: none;
    padding-left: 0;
}

.experience-item li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.experience-item li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Projects Section */
.projects {
    background-color: var(--background-color);
}

.project-card {
    background: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Education Section */
.education-item {
    background: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.education-item .school {
    font-style: italic;
    color: #666;
}

/* Skills Section */
.skills {
    background-color: var(--card-background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.skill-item {
    background: var(--background-color);
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.skill-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 6rem 2rem;
}

.contact-links {
    margin-top: 2rem;
}

.contact-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 1.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: var(--card-background);
}

.contact-link i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}