/* === GOOGLE FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === ROOT & BODY === */
:root {
    --bg-dark: #0a192f;        /* Deep Navy */
    --bg-light: #112240;       /* Lighter Navy */
    --text-light: #ccd6f6;     /* Light Bluish-Gray (for body) */
    --text-bright: #e6f1ff;   /* Brightest White (for headers) */
    --accent: #64ffda;         /* Bright Mint/Cyan */
    --accent-dark: #00bfa5;   /* Darker Teal (for hovers) */
    --card-bg: rgba(23, 42, 69, 0.65); /* Semi-transparent card bg */
    --card-border: rgba(100, 255, 218, 0.2);
    --card-border-hover: rgba(100, 255, 218, 0.5);
}

body {
    font-family: "Inter", "system-ui", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--accent-dark);
}

/* === HEADER & NAVIGATION === */
header {
    background: rgba(10, 25, 47, 0.85); /* Semi-transparent dark bg */
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-bright);
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 25px;
}

header nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

header nav a:hover {
    color: var(--accent);
}

/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    background-color: var(--bg-dark);
}

.hero img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.2);
    margin-bottom: 2rem;
}

.hero h2 {
    margin: 0 0 0.75rem 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-bright);
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-style: normal;
    font-weight: 400;
}

/* === MAIN CONTENT SECTIONS === */
section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--bg-light);
}

/* Alternate section backgrounds */
#about, #experience {
    background-color: var(--bg-light);
}

section:last-of-type {
    border-bottom: none;
}

section h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 3rem;
    position: relative;
    display: block;
}

/* Accent underline for section titles */
section h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* --- About Section --- */
#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: var(--card-border-hover);
}

.skill-category h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-bright);
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-category ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Modern list style */
.skill-category li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    position: relative;
    padding-left: 1.75rem;
}

.skill-category li::before {
    content: '▹'; /* Triangle bullet */
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1;
}

/* --- Experience & Education --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical timeline bar */
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background-color: var(--accent);
    opacity: 0.2;
    border-radius: 2px;
}

.timeline-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    position: relative;
    padding-left: 3.5rem; /* Space for the icon */
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-hover);
}

/* Timeline dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 38px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-item h3 {
    margin: 0 0 0.25rem 0;
    color: var(--text-bright);
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-item .subheading {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-item .date {
    font-style: italic;
    color: var(--text-light);
    opacity: 0.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.timeline-item ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    list-style-type: '▸  ';
}
.timeline-item ul li {
    margin-bottom: 0.5rem;
}

.timeline-item p {
    margin: 0;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 1rem;
    background: #020c1b; /* Even darker for footer */
    color: var(--text-light);
    margin-top: 0;
    border-top: 1px solid var(--bg-light);
}

footer img {
    width: 160px;
    margin-bottom: 1rem;
    filter: invert(1);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
footer img:hover {
    opacity: 0.5;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.6;
}