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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Slate-50 */
    --text-primary: #0f172a;
    /* Slate-900 */
    --text-secondary: #64748b;
    /* Slate-500 */
    --accent: #2563eb;
    /* Blue-600 */
    --border-color: #e2e8f0;
    /* Slate-200 */
    --card-hover: #f1f5f9;
    /* Slate-100 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background Gradients */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.03), transparent 25%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    /* Subtle gradient for text */
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

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

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

.subheading {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.text-primary {
    color: var(--accent) !important;
}

/* Specific text highlight for name in header */
.text-highlight {
    color: var(--text-secondary);
    /* Or keep it dark, or use accent */
    -webkit-text-fill-color: var(--text-secondary);
}


/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    transform: translateX(4px);
    font-weight: 600;
}

/* Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
}

section {
    min-height: 100vh;
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

/* Cards / Items */
.resume-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.resume-item:hover {
    background: var(--card-hover);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.resume-content {
    flex: 1;
}

.resume-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    min-width: 150px;
    text-align: left;
    font-weight: 500;
}

@media (min-width: 768px) {
    .resume-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .resume-date {
        text-align: right;
        margin-top: 0;
        margin-left: 2rem;
    }
}

p.lead {
    font-size: 1.15rem;
    max-width: 600px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-icon:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Utility */
.social-icons {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icons a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Helper classes */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 1rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        justify-content: space-between;
    }

    .main-content {
        margin-left: 0;
    }

    .nav-menu {
        display: none;
    }

    .profile-img {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        border-width: 2px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}