/* Basic Reset & Global Styles */
:root {
    --primary-color: #997f76; /* A vibrant blue */
    --secondary-color: #6c757d; /* A muted gray */
    --background-color: #f8f9fa; /* Light gray background */
    --dark-color: #343a40; /* Dark text color */
    --light-color: #ffffff; /* White */
    --font-family-headings: 'Montserrat', sans-serif;
    --font-family-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h1, h2 {
    font-family: var(--font-family-headings);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }

p { margin-bottom: 1rem; }

section {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav-brand {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--dark-color);
}

.navbar .nav-menu {
    list-style: none;
    display: flex;
}

.navbar .nav-menu li a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar .nav-menu li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--background-color);
}

.hero .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--primary-color);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-family: var(--font-family-body);
}

.hero .tagline {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.hero .hero-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* About Section */
.about {
    background: var(--light-color);
}
.about .container {
    max-width: 800px;
    text-align: center;
}

/* Skills Section */
.skills {
    background-color: var(--background-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-size: 1rem;
    font-weight: bold;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
     padding-left: 60px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    right: -10px;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 6px;
}
.timeline-content h3 { font-size: 1.2rem; }
.timeline-content .date { font-style: italic; color: var(--secondary-color); display: block; margin-top: 5px; }

/* Contact & Footer */
.contact { text-align: center; }
footer {
    text-align: center;
    padding: 20px;
    background: var(--secondary-color);
    color: var(--light-color);
}


/* Responsive Design */
@media(max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .navbar .nav-menu { display: none; } /* Simple hiding for mobile, can be replaced with a hamburger menu */

    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after {
        left: 10px;
    }
}