:root {
    --bg: #0e1117;
    --card: #1c1f26;
    --ink: #e5e7eb;
    --muted: #9ca3af;
    --accent: #3b82f6; /* modern business blue */
}

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

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
    font-size: 18px;
    scroll-behavior: smooth;
}

a {
    color: var(--ink);
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}

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

/* === Header / Nav === */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(14, 17, 23, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #1f2937;
    z-index: 20;
    padding: 0.75rem 0;
}

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

.site-header .brand {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav a {
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
}
.nav a:hover {
    color: var(--ink);
}

/* LinkedIn Icon */
.social-icon img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
}
.social-icon img:hover {
    filter: invert(46%) sepia(95%) saturate(2918%) hue-rotate(202deg) brightness(98%) contrast(95%);
}

/* Hamburger button (hidden by default) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.8rem;
    cursor: pointer;
}

/* === Hero Section === */
.hero {
    padding: 5rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.hero p {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
}
.location, .cta-row {
    margin-top: 1rem;
}
.cta-row .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--muted);
    transition: all 0.2s;
    color: var(--muted);
}
.cta-row .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

/* === Sections === */
.section {
    padding: 3rem 0;
    border-top: 1px solid #1f2937;
}
.section h3 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.section h3::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* === Education Section === */
.education-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.education-content .details {
    flex-grow: 1;
}
.logo-container {
    flex-shrink: 0;
    width: 60px; /* Adjust as needed */
    height: 60px; /* Adjust as needed */
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #2c3340;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === Skills === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.skill-category {
    background: var(--card);
    border: 1px solid #2c3340;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.skill-category h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pill-list li {
    padding: 0.4rem 0.8rem;
    border: 1px solid #2c3340;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.pill-list li:hover {
    background: #2c3340;
    color: var(--ink);
}
.soft-skills-card {
    background: var(--card);
    border: 1px solid #2c3340;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.soft-skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.soft-skills-card h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* === Projects & Certifications === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.card {
    background: var(--card);
    border: 1px solid #2c3340;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.05);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.card:hover::before {
    opacity: 1;
}
.card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.card p {
    color: var(--muted);
    font-size: 0.95rem;
    flex-grow: 1;
}
.card a {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

/* === Experience / Timeline === */
.timeline {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}
.timeline li {
    position: relative;
    padding-left: 1.5rem;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 100%;
    width: 2px;
    background: #2c3340;
}
.timeline li::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.experience-card {
    background: var(--card);
    border: 1px solid #2c3340;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}
.experience-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.experience-card .summary {
    position: relative;
}
.experience-short-text {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.read-more-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: all 0.2s;
}
.read-more-btn:hover {
    text-decoration: underline;
}
.full-text-content {
    margin-top: 1rem;
    border-top: 1px solid #2c3340;
    padding-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.role {
    font-weight: 700;
    font-size: 1.1rem;
}
.org {
    color: var(--muted);
    font-size: 0.95rem;
}
.time {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* === Contact Form === */
.contact-form {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}
.contact-form input,
.contact-form textarea {
    background: #11151d;
    border: 1px solid #2c3340;
    border-radius: 0.5rem;
    padding: 0.8rem;
    color: var(--ink);
    font-size: 1rem;
    width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form button {
    background: var(--accent);
    border: none;
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #2563eb;
}

/* === Footer === */
.site-footer {
    border-top: 1px solid #1f2937;
    padding: 1.5rem 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* show hamburger */
    }
    .nav {
        flex-direction: column;
        background: var(--card);
        position: absolute;
        top: 60px;
        right: 1rem;
        width: 220px;
        padding: 1rem;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        transform: translateX(120%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    .nav.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    .hero h2 {
        font-size: 1.6rem;
    }
    .section {
        padding: 2rem 1.25rem;
    }
    .section h3 {
        font-size: 1.4rem;
    }
    .education-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    .hero {
        padding: 3rem 1rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 1rem;
    }
}
