/* ============================================
   DHIRAJ DHUNGANA — PORTFOLIO CSS
   Dark, professional, and animated
   ============================================ */

:root {
    --bg: #0a0c10;
    --surface: #12151c;
    --accent: #4ecdc4;
    --text-main: #e8edf3;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

/* ============ NAVIGATION ============ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.5rem; 
    font-weight: 600;
    color: var(--accent); 
}

.nav-links a { 
    color: var(--text-dim); 
    text-decoration: none; 
    margin-left: 2rem; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    font-weight: 400;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--accent); 
}

/* ============ HERO SECTION ============ */
.hero { 
    padding: 8rem 0 4rem 0; 
}

.tag { 
    color: var(--accent); 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block;
    margin-bottom: 1rem;
}

h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(3rem, 8vw, 5rem); 
    margin: 1rem 0; 
    line-height: 1.1;
}

h1 i { 
    color: var(--accent); 
    font-style: italic;
}

.subtitle { 
    font-size: 1.2rem; 
    color: var(--text-dim); 
    max-width: 650px; 
    margin-bottom: 2rem;
}

.hero-contact { 
    margin-bottom: 3rem; 
    display: flex; 
    gap: 2rem; 
    color: var(--text-dim); 
    font-size: 0.9rem; 
}

/* ============ BUTTONS ============ */
.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn { 
    display: inline-block; 
    padding: 0.8rem 2rem; 
    background: var(--accent); 
    color: var(--bg); 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: 600; 
    transition: 0.3s; 
}

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

.btn:hover { 
    opacity: 0.9; 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.2);
}

/* ============ CONTENT SECTIONS ============ */
.section { 
    padding: 6rem 0; 
}

.section-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.2rem; 
    margin-bottom: 3rem; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 1rem; 
}

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

.skill-item { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 0.6rem 1.2rem; 
    border-radius: 4px; 
    color: var(--accent); 
    font-size: 0.9rem; 
}

/* Timeline */
.timeline-item { 
    border-left: 1px solid var(--accent); 
    padding: 0 0 3rem 2rem; 
    position: relative; 
}

.time-meta { 
    font-size: 0.85rem; 
    color: var(--accent); 
    margin-bottom: 0.5rem; 
    font-weight: 600;
}

.time-content h3 { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.role {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-item ul { 
    margin-top: 1rem; 
    list-style: none; 
}

.timeline-item li {
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.timeline-item li::before { 
    content: "→"; 
    color: var(--accent); 
    margin-right: 0.8rem; 
}

/* Education Cards */
.edu-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
}

.edu-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 2rem; 
    border-radius: 8px; 
    transition: 0.3s; 
}

.edu-card:hover { 
    border-color: var(--accent); 
}

.year {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* ============ ANIMATIONS ============ */
.fade-in {
    animation: fadeInPage 0.8s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ============ FOOTER ============ */
footer { 
    text-align: center; 
    padding: 4rem 2rem; 
    color: var(--text-dim); 
    font-size: 0.8rem; 
    border-top: 1px solid var(--border); 
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .edu-grid { grid-template-columns: 1fr; }
    .hero-contact { flex-direction: column; gap: 0.5rem; }
    .nav-links { display: none; } /* Simplified for mobile */
    h1 { font-size: 3rem; }
}
/* Custom Profile Image Styling */
.profile-img {
    /* Step 1: Make the circle bigger */
    width: 250px; 
    height: 250px;
    
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: block;
    margin: 0 auto 2rem auto;
    background-color: var(--surface);
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.3);
    transition: transform 0.3s ease;

    /* Step 2: Zoom and Shift the image */
    /* object-fit: cover ensures it fills the circle */
    object-fit: cover; 
    
    /* object-position: [horizontal] [vertical] */
    /* 50% centers it horizontally. 
       Adjust the % value (e.g., 20% or 30%) to shift the image down 
       until only the nose and below are visible. */
    object-position: 85% -15%; 
}

.profile-img:hover {
    transform: scale(1.02);
}
