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

:root {
    --bg-color: #f7f7f7; /* Clean off-white background */
    --card-bg: #ffffff; /* Pure white cards */
    --text-color: #1a1a1a; /* Deep charcoal text */
    --text-muted: #666666; /* Subtle gray */
    --accent-color: #0055ff; /* Cobalt Blue accent */
    --border-radius: 0px; /* Sharp corners */
    --border-color: #eeeeee;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft, subtle structural shadow */
    --card-hover-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    
    /* Typography stacks (Unifying under Inter) */
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-ui: 'Inter', system-ui, sans-serif;
    
    --transition-fast: 0.15s ease-out;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-body); line-height: 1.6; font-size: 1.05rem; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; color: var(--text-color); margin-bottom: 1rem; line-height: 1; letter-spacing: -0.04em; }
h1 { font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: 0.5rem; text-transform: uppercase; }
h2 { font-size: clamp(2.5rem, 4vw, 3rem); margin-bottom: 1.5rem; border-bottom: 6px solid var(--accent-color); display: inline-block; padding-bottom: 0.25rem; }
p { color: var(--text-color); margin-bottom: 1.25rem; font-weight: 400; font-size: 1.15rem; line-height: 1.6; }
a { color: var(--accent-color); text-decoration: none; font-weight: 700; transition: color var(--transition-fast); }
a:hover { color: #0033cc; text-decoration: underline; }
strong { font-weight: 800; color: var(--text-color); }

/* Layout Base */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3rem 0; }

/* Header & Nav (Removed external header styles, moved to Inner Navbar) */

/* Buttons */
.btn { font-family: var(--font-ui); display: inline-block; padding: 1.2rem 2.5rem; font-weight: 800; border-radius: 0; transition: all var(--transition-fast); cursor: pointer; border: none; margin-right: 1rem; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent-color); color: #fff; }
.primary-btn { background: var(--accent-color); color: white; }
.primary-btn:hover { background: #0033cc; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 85, 255, 0.2); }
.secondary-btn { background: var(--text-color); color: #fff; }
.secondary-btn:hover { background: #000; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }

/* Bento Cards Common */
.bento-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: none;
    display: flex;
    flex-direction: column;
}
.bento-card h2 { margin-bottom: 2rem; display: block; }

/* Container Layout (vCard Style) */
.layout-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Sidebar Wrapper */
.sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 4rem;
    z-index: 100;
}

/* Sidebar Internals */
.sidebar-info { display: flex; flex-direction: column; align-items: flex-start; text-align: left; margin-bottom: 2rem; }
.avatar-box img { width: 100%; max-width: 200px; border-radius: 0 !important; margin-bottom: 1.5rem; border: none; box-shadow: 8px 8px 0 var(--accent-color); }
.info-content h1.name { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; color: var(--text-color); margin-bottom: 0.5rem; line-height: 0.9; }
.info-content p.title { font-family: var(--font-ui); background: var(--accent-color) !important; display: inline-block; padding: 0.5rem 1rem !important; color: #fff !important; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.5rem; }

.separator { width: 100%; height: 4px; background: var(--border-color); margin: 2rem 0; border: none; }
.sidebar-contacts { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon { font-family: var(--font-ui); width: 40px; height: 40px; background: var(--text-color); display: flex; justify-content: center; align-items: center; font-size: 1.25rem; color: #000; border-radius: 0; }
.contact-info { display: flex; flex-direction: column; }
.contact-title { font-family: var(--font-ui); font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 800; margin-bottom: 0.1rem; letter-spacing: 0.05em; }
.contact-link, address { font-family: var(--font-ui); font-size: 1rem; color: var(--text-color); font-weight: 600; font-style: normal; text-decoration: none; }
.social-list { display: flex; justify-content: center; gap: 1rem; }
.social-link { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; transition: color var(--transition-fast); }
.social-link:hover { color: var(--accent-color); }

/* Main Content Area */
.main-content {
    flex: 1;
    min-width: 0; /* Prevents overflow */
    position: relative;
    padding-top: 5rem; /* Space for absolute navbar */
}
/* Inner Navbar */
.navbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: var(--bg-color);
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}
.nav-links { list-style: none; display: flex; gap: 3rem; margin: 0; padding: 0; justify-content: flex-end; }
.nav-links a { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; text-decoration: none; padding-bottom: 0.5rem; border-bottom: 4px solid transparent; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-color); border-bottom-color: var(--accent-color); }

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.content-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-title { font-size: 2rem; margin-bottom: 2rem; display: inline-block; position: relative; padding-bottom: 0.5rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 4px; background: var(--accent-color); border-radius: 2px; }
.subsection-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1rem; }

/* Stats Section */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; width: 100%; align-items: start; margin-top: 1rem; }
.stat-item { padding: 1rem 0; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: transparent; border-right: 2px solid var(--border-color); border-radius: 0; }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; color: var(--accent-color); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 800; color: var(--text-color); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.stat-detail { font-family: var(--font-ui); font-size: 0.75rem; color: var(--text-muted); margin: 0; }
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(n+3) { border-top: 2px solid var(--border-color); padding-top: 1.5rem; }
}

/* Timeline */
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; border-left: 4px solid var(--border-color); margin-bottom: 4rem; position: relative; padding-left: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -14px; top: 0px; width: 24px; height: 24px; border-radius: 0; background: var(--accent-color); border: none; }
.timeline-year { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--text-color); margin: 0; line-height: 1.1; }
.timeline-role { font-family: var(--font-heading); font-size: 2rem; color: var(--text-color); margin-bottom: 0.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.timeline-company { font-family: var(--font-ui); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-color); margin-bottom: 1.5rem; display: block; border-bottom: 2px solid var(--border-color); padding-bottom: 1rem; display: inline-block; }
.timeline-desc { font-size: 1.15rem; margin-bottom: 1rem; color: var(--text-color); font-weight: 400; }
.timeline-thumbnails { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.timeline-thumbnail { width: 160px; height: 90px; object-fit: cover; border-radius: 0; border: none; transition: transform var(--transition-fast); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.timeline-thumbnail:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.8); }

/* Projects Grid */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.project-card { display: flex; flex-direction: column; background: var(--card-bg); padding: 2.5rem; border: none; border-radius: 0; transition: all var(--transition-fast); box-shadow: var(--card-shadow); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--card-hover-shadow); }
.project-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; border: none; margin-bottom: 2rem; transition: transform var(--transition-fast); }
.project-card:hover .project-image img { transform: translateY(-2px); }
.project-content h3 { font-family: var(--font-heading); font-size: 2.25rem; margin-bottom: 0.5rem; color: var(--text-color); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
.project-company { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 800; color: var(--accent-color); margin-bottom: 1rem; display: block; text-transform: uppercase; letter-spacing: 0.1em;}
.project-role { font-family: var(--font-ui); display: inline-block; background: var(--text-color); color: #fff; padding: 0.4rem 0.8rem; border-radius: 0; font-weight: 800; font-size: 0.8rem; margin-bottom: 1.5rem; border: none; text-transform: uppercase; letter-spacing: 0.05em; }
.project-points { padding-left: 1.5rem; margin: 1.5rem 0; font-size: 1.05rem; color: var(--text-color); }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; border-top: 2px solid var(--border-color); padding-top: 2rem; }
.tech-tag { font-family: var(--font-ui); display: inline-block; background: var(--border-color); color: var(--text-color); font-size: 0.8rem; font-weight: 800; padding: 0.4rem 0.8rem; border-radius: 0; white-space: nowrap; transition: background var(--transition-fast); border: none; text-transform: uppercase; letter-spacing: 0.05em; }
.project-card:hover .tech-tag { background: var(--accent-color); color: #fff; }

/* Skills Section */
.skills-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.skill-group { background: var(--card-bg); padding: 2rem; border-radius: 0; border: none; box-shadow: var(--card-shadow); }
.skill-group h3 { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; color: var(--text-color); margin-bottom: 1.5rem; border-bottom: 4px solid var(--accent-color); display: inline-block; padding-bottom: 0.25rem; }
.skill-item { display: block; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 600; padding: 0.75rem 0; color: var(--text-color); border-bottom: 1px dashed var(--border-color); }
.skill-item:last-child { border-bottom: none; }

/* Carousel/Media */
.carousel-container { position: relative; border-radius: 0; background: var(--card-bg); border: none; box-shadow: var(--card-shadow); margin-bottom: 4rem; overflow: hidden; }
.carousel-btn { font-family: var(--font-heading); background: var(--text-color); color: #fff; border: none; width: 48px; height: 48px; border-radius: 0; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all var(--transition-fast); }
.carousel-btn:hover { background: var(--accent-color); color: #fff; transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }
.carousel-track-container { overflow: hidden; border-radius: 0; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1); list-style: none; padding: 0; margin: 0; }
.carousel-slide { min-width: 100%; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: #000; overflow: hidden; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.carousel-caption { padding: 1.5rem 2rem; background: var(--card-bg); }
.carousel-caption h3 { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--text-color); letter-spacing: -0.04em; }
.carousel-caption p { font-size: 1rem; color: var(--text-muted); margin: 0; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .layout-container { flex-direction: column; margin: 0; padding: 0; }
    .sidebar { flex: none; width: 100%; position: static; box-shadow: none; border-bottom: 4px solid var(--border-color); }
    .sidebar-info { flex-direction: row; text-align: left; gap: 2rem; align-items: center; padding: 2rem; margin-bottom: 0; }
    .avatar-box img { width: 80px; margin-bottom: 0; box-shadow: 4px 4px 0 var(--accent-color); }
    .sidebar-contacts { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; padding: 0 2rem 2rem; }
    .contact-item { width: auto; }
    .navbar { position: sticky; top: 0; border-radius: 0; border: none; border-bottom: 1px solid var(--border-color); margin-bottom: 0; padding: 1rem 2rem; width: 100%; }
    .main-content { padding-top: 0; box-shadow: none; border-top: 8px solid var(--bg-color); }
}

@media (max-width: 768px) {
    .sidebar-info { padding: 1.5rem; }
    .info-content h1.name { font-size: 2rem; }
    .sidebar-contacts { padding: 0 1.5rem 1.5rem; gap: 1rem; }
    .nav-links { gap: 1.5rem; justify-content: center; }
    .nav-links a { font-size: 0.9rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-value { font-size: 2.5rem; }
    .timeline-item { grid-template-columns: 1fr; padding-left: 1.5rem; gap: 0.5rem; margin-bottom: 3rem; }
    .timeline-item::before { left: -7px; }
    .timeline-role { font-size: 1.5rem; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { padding: 1.5rem; }
}
