/* Basic Reset & Variables (Optional) */
:root {
    --primary-color: #0056b3; /* Example Blue */
    --secondary-color: #f4f7f6; /* Light gray background */
    --text-color: #333;
    --heading-font: 'Arial', sans-serif; /* Choose appropriate fonts */
    --body-font: 'Georgia', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.container {
    max-width: 900px; /* Adjust width as needed */
    margin: 0 auto;
    padding: 0 20px; /* Add padding on sides */
}

/* Header / Hero Section */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 2.8em;
    margin-bottom: 10px;
}

.hero h2 {
    font-family: var(--heading-font);
    font-size: 1.4em;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero .profile-pic { /* Style if you add a picture */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #fff;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Main Content & Cards */
main.container {
    padding-bottom: 40px; /* Space before footer */
}

.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

h2 { /* Section Titles */
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

h3 { /* Job Titles, Project Names etc. */
    font-family: var(--heading-font);
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #444; /* Slightly darker than body text */
}

/* Specific Section Styling */
#about p {
    font-size: 1.1em;
}

#skills h3 { /* Sub-headings within Skills */
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex; /* Arrange skills nicely */
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list li {
    background-color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 15px; /* Pill shape */
    font-size: 0.9em;
    border: 1px solid #ddd;
}

 .skills-list.soft-skills li {
    background-color: #e7f0e9; /* Different color for soft skills */
    border-color: #c8e6c9;
 }


#experience article,
#projects article,
#education article {
    margin-bottom: 25px; /* Space between entries */
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee; /* Separator */
}
#experience article:last-child,
#projects article:last-child,
#education article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}


#experience .company-date {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

#experience ul, #projects ul {
    margin-left: 20px; /* Indent bullet points */
    margin-top: 10px;
}
 #experience ul li, #projects ul li {
    margin-bottom: 8px;
 }

 #projects p {
     margin-bottom: 10px;
 }
 #projects a {
     color: var(--primary-color);
     text-decoration: none;
     margin-right: 10px;
 }
  #projects a:hover {
     text-decoration: underline;
  }

/* Footer */
footer {
    background-color: #e9ecef; /* Slightly different background */
    color: #6c757d;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px; /* Ensure space above footer */
    font-size: 0.9em;
}

/* Basic Responsiveness */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2em; }
    .hero h2 { font-size: 1.2em; }
    .card { padding: 20px; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.2em; }
    .container { padding: 0 15px; }
}

@media (max-width: 480px) {
     .hero h1 { font-size: 1.8em; }
     .hero h2 { font-size: 1em; }
     .contact-info a { display: block; margin: 5px 0;} /* Stack contact links */
     .skills-list { justify-content: center; } /* Center skills tags */
}
/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2c3e50;    /* Midnight Blue */
    --secondary-color: #ecf0f1;  /* Clouds */
    --accent-color: #e74c3c;     /* Alizarin Red */
    --text-color: #34495e;       /* Wet Asphalt */
    --light-text-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #dde1e2;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2.5rem;   /* 40px */
    --spacing-xl: 4rem;     /* 64px */

    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

h1 { font-size: 3rem; font-weight: 700; } /* 48px */
h2 { font-size: 2.25rem; margin-bottom: var(--spacing-lg); } /* 36px */
h3 { font-size: 1.5rem; } /* 24px */

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    text-decoration: underline;
    color: #c0392b; /* Darker accent */
}

ul {
    list-style: disc;
    margin-left: var(--spacing-md);
}
ul li {
    margin-bottom: var(--spacing-xs);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* Pill shape */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-decoration: none !important; /* Override link underline */
    margin: var(--spacing-xs);
}
.btn i { margin-right: var(--spacing-xs); }
.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text-color); /* Base text color is white */
    border-color: var(--accent-color);
}
.btn-primary:hover {
    background-color: #c0392b; /* Darker accent */
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-light);
    color: var(--light-text-color); /* <<< ADD THIS LINE - Ensure text stays white */
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--light-text-color); /* Base text color is white */
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: #1f2b38; /* Darker primary */
    border-color: #1f2b38;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-light);
    color: var(--light-text-color); /* <<< ADD THIS LINE - Ensure text stays white */
}

/* .btn-outline:hover already correctly sets the color, so it's fine */
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color); /* This one was already correct */
    transform: translateY(-2px);
}

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--light-text-color);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none !important;
}
.nav-brand:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: var(--spacing-md);
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    position: relative;
    text-decoration: none !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { /* Add 'active' class with JS if needed */
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e5771 100%); /* Gradient example */
    /* Or use a background image:
       background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/your-background.jpg') no-repeat center center/cover;
    */
    color: var(--light-text-color);
    padding: var(--spacing-xl) 0;
    text-align: center;
    min-height: 80vh; /* Make hero taller */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--light-text-color);
    font-size: 3.5rem; /* Larger hero H1 */
    margin-bottom: var(--spacing-xs);
}

.hero h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

.hero .profile-pic { /* Style if you add a picture */
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md) auto;
    border: 5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-contact {
    margin: var(--spacing-md) 0;
}

.hero-contact a {
    color: var(--light-text-color);
    font-size: 1.8rem;
    margin: 0 var(--spacing-sm);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: inline-block; /* Needed for transform */
}

.hero-contact a:hover {
    opacity: 1;
    transform: translateY(-3px);
    text-decoration: none; /* Remove underline on icons */
}

/* --- Content Sections --- */
.content-section {
    padding: var(--spacing-xl) 0;
}

.content-section h2 {
    text-align: center;
    position: relative;
    display: inline-block; /* Allows centering with auto margins */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--spacing-xl); /* More space after heading */
}
/* Optional underline effect for section headings */
.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-content {
    max-width: 850px; /* Slightly narrower content within container */
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-text-color); /* Use white for alternating sections */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.icon-L {
    margin-right: var(--spacing-sm);
    color: var(--accent-color); /* Icon color */
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-lg);
}
.skills-grid h3 {
    margin-bottom: var(--spacing-md);
    text-align: center;
     border-bottom: 2px solid var(--secondary-color);
     padding-bottom: var(--spacing-sm);
}
.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-left: 0;
    justify-content: center;
}
.skills-list span {
    background-color: var(--secondary-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 5px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    cursor: default; /* Indicate they aren't clickable */
}
.skills-list span:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.skills-list.soft-skills span {
    background-color: #eafaf1; /* Light green example */
    border-color: #c8e6c9;
}
.skills-list.soft-skills span:hover {
     background-color: #27ae60; /* Green accent */
     border-color: #27ae60;
     color: var(--light-text-color);
}

/* --- Experience Section (Timeline) --- */
.timeline {
    position: relative;
    padding: var(--spacing-md) 0;
}
/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: var(--secondary-color); /* Light background for line */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: 55px; /* Space for the icon and line */
}
/* The circle on the timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px; /* Adjust vertical alignment */
    width: 24px;
    height: 24px;
    background: var(--light-text-color);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: box-shadow var(--transition-speed) ease;
}
.timeline-content:hover {
    box-shadow: 0 6px 20px var(--shadow-medium);
}
.timeline-content h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}
.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d; /* Silver */
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}
.timeline-date i { margin-right: var(--spacing-xs); }

.timeline-company {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}
.timeline-content ul {
    margin-top: var(--spacing-sm);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}
.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden; /* Contain image if added */
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; /* Allow content to fill height */
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.project-image { /* If using images */
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    display: block;
}
.project-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Makes content fill remaining space */
    display: flex;
    flex-direction: column;
}
.project-content h3 { margin-top: 0; }
.project-content p { flex-grow: 1; } /* Pushes links to bottom */

.tech-tags {
    margin: var(--spacing-sm) 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}
.tech-tags span {
    background-color: var(--secondary-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.project-links {
    margin-top: auto; /* Pushes to bottom */
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--secondary-color);
    text-align: right;
}
.project-links .btn {
    padding: 0.6rem 1.2rem; /* Slightly smaller buttons */
    font-size: 0.9rem;
}

/* --- Education Section --- */
.education-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px dashed var(--border-color);
}
.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.education-item h3 {
    font-size: 1.25rem; /* Slightly smaller */
    margin-bottom: var(--spacing-xs);
}
.education-item p { margin-bottom: var(--spacing-xs); }
.education-item strong { color: var(--primary-color); }
.education-item em { color: #7f8c8d; font-style: normal; font-size: 0.9em;} /* Date */

/* --- Contact Section --- */
.contact-content {
    text-align: center;
}
.contact-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}
.social-links-footer {
    margin-top: var(--spacing-lg);
}
.social-links-footer a {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0 var(--spacing-sm);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: inline-block;
}
.social-links-footer a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    text-decoration: none;
}

.project-card .tech-tags {
    margin-top: 0.8rem; /* Add some space above the tags */
    line-height: 1.6;   /* Adjust line height if tags wrap */
  }
  
  .project-card .tech-tags span {
    display: inline-block; /* Needed for padding and margin */
    font-size: 0.8rem;     /* Smaller font size */
    padding: 0.2em 0.6em;   /* Reduced padding (adjust as needed) */
    margin: 2px;            /* Add small margin between tags */
    background-color: #f0f2f5; /* Lighter background */
    color: #555;           /* Slightly darker text for contrast */
    border-radius: 4px;     /* Keep rounded corners */
    white-space: nowrap;    /* Prevent tags from breaking mid-word */
    /* Reset any potentially inherited large styles */
    font-weight: normal;
  }
  
  /* Optional: Hover effect for the tags */
  .project-card .tech-tags span:hover {
    background-color: #e2e6ea;
  }

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
    font-size: 0.9rem;
}
footer .container {
    max-width: 100%; /* Full width */
    padding: 0 var(--spacing-md);
}
footer p { margin-bottom: 0; }
footer i.fa-heart { color: var(--accent-color); }

/* --- Responsiveness --- */
@media (max-width: 992px) {
    html { font-size: 15px; } /* Slightly smaller base font */
    .container { max-width: 90%; }
    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 1.5rem; }
    .content-section { padding: var(--spacing-lg) 0; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; /* Show hamburger */ }
    .nav-links {
        display: none; /* Hide links by default */
        position: absolute;
        top: 100%; /* Position below navbar */
        left: 0;
        width: 100%;
        background-color: var(--light-text-color);
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-sm) 0;
        box-shadow: 0 5px 10px var(--shadow-light);
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; /* Show when toggled */ }
    .nav-links li { margin: var(--spacing-sm) 0; }

    .hero { min-height: 70vh; padding: var(--spacing-lg) 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.25rem; }
    .hero-subtitle { font-size: 1rem; }

    .timeline::before { left: 15px; } /* Adjust line position */
    .timeline-item { padding-left: 45px; }
    .timeline-item::before { left: 5px; width: 20px; height: 20px; }

    .projects-grid { grid-template-columns: 1fr; } /* Stack projects */
    .skills-grid { grid-template-columns: 1fr; } /* Stack skills */
}

@media (max-width: 576px) {
    html { font-size: 14px; }
    .hero { min-height: 60vh; }
    .hero h1 { font-size: 2rem; }
    .hero h2 { font-size: 1.1rem; }
    .hero-contact a { font-size: 1.5rem; margin: 0 var(--spacing-xs); }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}