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

:root {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --secondary: #64748b;
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --background: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border: #f1f5f9;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

/* Subtle background pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e2e8f0 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
}

.hero h1 {
    font-size: clamp(2.75rem, 8vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1.1;
}

.hero .job-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.hero .subtitle {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.btn.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
}

.btn.primary:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn.secondary:hover {
    background-color: var(--border);
    transform: translateY(-3px);
}

/* Content Sections */
.section {
    padding: 120px 0;
}

.section.gray {
    background-color: #f8fafc;
    /* Darker gray for better contrast with white cards */
    position: relative;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.03em;
    color: var(--primary);
}

/* Professional Experience Card Design */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.08);
    transform: translateY(-8px);
}

.project-header {
    margin-bottom: 2rem;
}

.project-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.org-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-list {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f8fafc;
}

.project-list li {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.925rem;
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.5;
}

.project-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
    top: -2px;
}

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

.stack-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    /* More visible border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.stack-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05);
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: #f1f5f9;
    /* Non-white background for tags */
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition);
}

.skill-tag:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 6rem 1.5rem;
    text-align: center;
    background: #0f172a;
    color: #94a3b8;
}

footer p {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .section {
        padding: 80px 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}