/* ============================================
   RAGULRAJ PORTFOLIO — SHIVORAA THEME
   ============================================ */

:root {
    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
    --bg-desktop: #f2f2f7;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-solid: #ffffff;
    --bg-elevated: rgba(255, 255, 255, 0.92);
    --bg-window: rgba(255, 255, 255, 0.97);
    --bg-titlebar: rgba(236, 236, 241, 0.95);
    --border-window: rgba(0, 0, 0, 0.09);
    --border-subtle: rgba(0, 0, 0, 0.07);
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-tertiary: #86868b;
    /* Shivoraa Brand Colors */
    --accent-primary: #FE8A0E;
    --accent-secondary: #ff9f0a;
    --accent-green: #5A8324;
    --accent-blue: #FE8A0E;
    --accent-purple: #ff9f0a;
    --accent-orange: #FE8A0E;
    --accent-red: #ff3b30;
    --accent-cyan: #ffb340;
    --accent-yellow: #ffcc00;
    --tl-red: #ff5f57;
    --tl-yellow: #ffbd2e;
    --tl-green: #28c840;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-window: 0 22px 70px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    --blur: blur(40px);
    --blur-light: blur(20px);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
strong, b { font-weight: 700; }
html { scroll-behavior: smooth; scroll-padding-top: 44px; }
body {
    font-family: var(--font-main);
    background: var(--bg-desktop);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ---- macOS Wallpaper Desktop Background ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(254, 138, 14, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(90, 131, 36, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 159, 10, 0.04) 0%, transparent 60%),
        var(--bg-desktop);
    z-index: -1;
    pointer-events: none;
}

/* ---- macOS Menu Bar ---- */
.menubar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 38px;
    background: rgba(248, 248, 250, 0.88);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    font-size: 13px;
    font-weight: 500;
}
.menubar-left { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 20px; width: auto; object-fit: contain; }
.menubar-name { font-weight: 700; letter-spacing: 0.01em; color: var(--text-primary); }
.menubar-center { display: flex; gap: 2px; }
.menu-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}
.menu-item:hover { color: var(--text-primary); background: rgba(0,0,0,0.06); }
.menu-item.active {
    color: var(--accent-primary);
    background: rgba(254, 138, 14, 0.1);
    font-weight: 600;
}
.menubar-right { display: flex; align-items: center; }
.menubar-clock { color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 38px; left: 0; right: 0;
    background: rgba(248, 248, 250, 0.97);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-window);
    z-index: 999;
    flex-direction: column;
    padding: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.mobile-menu-item:hover,
.mobile-menu-item.active { color: var(--accent-primary); background: rgba(254, 138, 14, 0.08); }

/* ---- Hero Section (index.html) ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 38px 20px 90px;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
}
.hero-avatar {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 0 0 3px rgba(254,138,14,0.2), 0 14px 36px rgba(254, 138, 14, 0.18);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.hero-name {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1d1d1f 30%, #515154);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Horizontal designation badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid rgba(254, 138, 14, 0.3);
    color: var(--accent-primary);
    background: rgba(254, 138, 14, 0.08);
    opacity: 0;
    transform: translateY(10px);
    animation: badgeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    white-space: nowrap;
}
.hero-badge:nth-child(1) { animation-delay: 0.1s; }
.hero-badge:nth-child(2) { animation-delay: 0.25s; }
.hero-badge:nth-child(3) { animation-delay: 0.4s; }
.hero-badge:nth-child(4) { animation-delay: 0.55s; }
.hero-badge:nth-child(5) { animation-delay: 0.7s; }
.hero-badge:nth-child(6) { animation-delay: 0.85s; }
@keyframes badgeIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 34px;
    font-weight: 400;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(254, 138, 14, 0.32);
}
.btn-primary:hover { background: #e07a0c; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(254, 138, 14, 0.42); }
.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.1);
}
.btn-secondary:hover { background: rgba(0,0,0,0.09); transform: translateY(-2px); }
.btn-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 16px rgba(254, 138, 14, 0.32);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(254, 138, 14, 0.42); }

/* ---- Content Pages Layout ---- */
.page-body {
    padding-top: 38px;
    padding-bottom: 90px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-content {
    flex: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 20px;
    width: 100%;
}
.page-content.wide {
    max-width: 1100px;
}

/* ---- macOS Window ---- */
.macos-window {
    background: var(--bg-window);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-window);
    box-shadow: var(--shadow-window);
    overflow: hidden;
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
}
.window-titlebar {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 16px;
    background: var(--bg-titlebar);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 12px;
}
.traffic-lights { display: flex; gap: 7px; align-items: center; }
.tl { width: 12px; height: 12px; border-radius: 50%; display: block; }
.tl.red { background: var(--tl-red); }
.tl.yellow { background: var(--tl-yellow); }
.tl.green { background: var(--tl-green); }
.window-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 48px;
}
.window-content { padding: 32px; }

/* Page heading inside window */
.page-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.page-heading h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.page-heading .page-icon {
    font-size: 24px;
}

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 16px; font-weight: 700; color: var(--text-primary); }
.wave { display: inline-block; animation: wave 2.5s infinite; transform-origin: 70% 70%; }
@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}
.about-text p { color: var(--text-secondary); margin-bottom: 14px; font-size: 15px; line-height: 1.75; }
.about-text strong { color: var(--text-primary); font-weight: 600; }
.about-highlight {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(254, 138, 14, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
    margin-top: 20px;
}
.highlight-icon { font-size: 20px; }
.about-highlight em { color: var(--text-secondary); font-size: 14px; line-height: 1.65; font-weight: 500; }
.about-info { display: flex; flex-direction: column; gap: 12px; }
.info-card {
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--blur-light);
}
.info-label { display: block; font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-weight: 600; }
.info-value { font-size: 14px; color: var(--text-primary); font-weight: 600; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -29px; top: 8px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-window);
    box-shadow: 0 0 14px rgba(254, 138, 14, 0.35);
}
.timeline-card {
    padding: 22px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.timeline-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.timeline-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.timeline-badge {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(254, 138, 14, 0.12);
    color: var(--accent-primary);
    border-radius: 980px;
    font-weight: 700;
}
.timeline-company {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.company-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.company-logo svg { width: 100%; height: 100%; display: block; }
.timeline-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.timeline-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.65;
}
.timeline-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-primary); font-size: 12px; }

/* ---- Skills ---- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.skill-category {
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}
.skill-category:hover { border-color: rgba(254, 138, 14, 0.3); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.skill-icon { font-size: 28px; margin-bottom: 10px; }
.skill-category h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.06);
    font-weight: 500;
}

/* ---- Projects ---- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.project-card {
    display: flex; flex-direction: column;
    padding: 24px 22px 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    gap: 12px;
}
.project-card:hover { border-color: rgba(254, 138, 14, 0.3); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-icon { font-size: 30px; flex-shrink: 0; }
.project-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.project-badge {
    font-size: 11px; padding: 3px 10px;
    border-radius: 980px; font-weight: 700;
    background: rgba(254, 138, 14, 0.1);
    color: var(--accent-primary);
    white-space: nowrap;
}
.project-badge.mobile { background: rgba(90, 131, 36, 0.1); color: var(--accent-green); }
.project-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.project-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
    font-size: 11px; padding: 3px 9px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 6px; color: var(--text-secondary);
    font-weight: 500;
}
.project-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: var(--accent-primary); color: #fff;
    font-size: 12.5px; font-weight: 600; text-decoration: none;
    align-self: flex-start; transition: var(--transition);
    margin-top: 4px;
}
.project-link:hover { background: #e07a0c; transform: translateX(2px); }
.project-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---- Certifications ---- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cert-card {
    padding: 26px 22px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: var(--transition);
}
.cert-card:hover { border-color: rgba(254, 138, 14, 0.3); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.cert-badge { font-size: 38px; margin-bottom: 14px; }
.cert-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cert-logo svg { width: 100%; height: 100%; display: block; }
.cert-logo img { width: 100%; height: 100%; object-fit: contain; }
.cert-logo-tall { width: 66px; height: 80px; }
.cert-logo-wide { width: 140px; height: 44px; }
.cert-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.cert-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.cert-issuer { font-size: 11px; color: var(--accent-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Achievements ---- */
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 16px; margin-bottom: 32px; justify-content: center; }
.stat-card {
    padding: 26px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: rgba(90, 131, 36, 0.3); transform: translateY(-2px); }
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}
.stat-plus { font-size: 1.4rem; font-weight: 700; color: var(--accent-primary); }
.stat-label { display: block; font-size: 12px; color: var(--text-tertiary); margin-top: 6px; font-weight: 600; }
.achievements-list h3 { font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; color: var(--text-primary); }
.achievement-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    font-weight: 500;
}
.achievement-item:hover { border-color: rgba(254,138,14,0.2); background: rgba(254,138,14,0.03); }
.ach-icon { font-size: 18px; flex-shrink: 0; }

/* Partners */
.partners-section { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border-subtle); }
.partner-group h3 { font-size: 13px; color: var(--text-tertiary); margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-tag {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
    transition: var(--transition);
}
.partner-tag:hover { border-color: rgba(254, 138, 14, 0.3); color: var(--text-primary); }
.partner-tag.accent { border-color: rgba(254, 138, 14, 0.4); color: var(--accent-primary); background: rgba(254, 138, 14, 0.07); font-weight: 700; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info h2 { font-size: 1.7rem; margin-bottom: 12px; font-weight: 700; color: var(--text-primary); }
.contact-info > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; line-height: 1.75; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: var(--transition);
}
.contact-link:hover { border-color: rgba(254, 138, 14, 0.3); transform: translateX(4px); box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.contact-icon { font-size: 22px; }
.contact-link-label { display: block; font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.contact-link-value { font-size: 14px; color: var(--text-primary); font-weight: 600; }

/* Terminal */
.contact-terminal {
    background: #1c1c1e;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}
.terminal-header { padding: 12px 16px; background: rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.08); }
.terminal-prompt { font-size: 12px; color: #a1a1a6; }
.terminal-body { padding: 16px; font-size: 13px; line-height: 1.9; color: #f5f5f7; }
.terminal-body p { margin-bottom: 2px; }
.t-green { color: #30d158; }
.t-cyan { color: #64d2ff; }
.cursor-blink { animation: blink 1s step-end infinite; color: #30d158; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- macOS Dock ---- */
.dock-wrapper {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}
.dock {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 7px 12px;
    background: rgba(248, 248, 250, 0.88);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 44px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}
.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.dock-item:hover { transform: translateY(-10px) scale(1.3); z-index: 10; }
.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--accent-primary);
    border-radius: 50%;
}
.dock-icon { font-size: 28px; pointer-events: none; }
.dock-icon-svg {
    width: 28px;
    height: 28px;
    pointer-events: none;
    display: block;
    border-radius: 6px;
}
.dock-item[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    font-weight: 600;
    font-family: var(--font-main);
}
.dock-item:hover[data-tooltip]::before { opacity: 1; transform: translateX(-50%) scale(1); }
.dock-divider { width: 1px; height: 32px; background: rgba(0, 0, 0, 0.1); margin: 0 4px; align-self: center; }

/* ---- Page Navigation Cards (Home) ---- */
.home-pages {
    padding: 0 20px 90px;
    max-width: 780px;
    margin: 0 auto;
}
.home-pages-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.page-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.page-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-window);
    border: 1px solid var(--border-window);
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-16px);
    animation: cardSlideIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.page-card:nth-child(1) { animation-delay: 0.05s; }
.page-card:nth-child(2) { animation-delay: 0.12s; }
.page-card:nth-child(3) { animation-delay: 0.19s; }
.page-card:nth-child(4) { animation-delay: 0.26s; }
.page-card:nth-child(5) { animation-delay: 0.33s; }
.page-card:nth-child(6) { animation-delay: 0.40s; }
@keyframes cardSlideIn {
    to { opacity: 1; transform: translateX(0); }
}
.page-card:hover {
    border-color: rgba(254, 138, 14, 0.35);
    transform: translateX(6px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.07);
}
.page-card-icon { font-size: 26px; flex-shrink: 0; }
.page-card-body { flex: 1; }
.page-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.page-card-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}
.page-card-arrow {
    font-size: 18px;
    color: var(--accent-primary);
    opacity: 0.6;
    transition: var(--transition);
}
.page-card:hover .page-card-arrow { opacity: 1; transform: translateX(4px); }

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 36px 20px 12px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

/* ---- Fade-in animation ---- */
.anim-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .page-content { max-width: 100%; }
}

@media (max-width: 768px) {
    .menubar-center { display: none; }
    .hamburger { display: flex; }
    .menubar-right { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .projects-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .achievement-items { grid-template-columns: 1fr; }

    .window-content { padding: 20px 16px; }
    .macos-window { border-radius: var(--radius-md); }

    .hero-avatar { width: 96px; height: 96px; }
    .hero-badges { gap: 8px; }
    .hero-badge { font-size: 12px; padding: 5px 12px; }

    .dock-wrapper { bottom: 8px; left: 8px; right: 8px; transform: none; }
    .dock {
        gap: 2px; padding: 5px 8px;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; border-radius: 16px;
        justify-content: flex-start;
    }
    .dock::-webkit-scrollbar { display: none; }
    .dock-item { width: 40px; height: 40px; flex-shrink: 0; }
    .dock-icon { font-size: 22px; }
    .dock-icon-svg { width: 22px; height: 22px; }

    .page-content { padding: 20px 14px; }

    .timeline { padding-left: 24px; }
    .timeline-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .timeline-badge { align-self: flex-start; }
    .timeline-card { padding: 16px; }

    .partners-section { gap: 16px; margin-top: 20px; padding-top: 20px; }

    .page-heading h1 { font-size: 1.4rem; }
    .page-heading .page-icon { font-size: 20px; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 1.7rem; }
    .hero-tagline { font-size: 0.9rem; }
    .hero-buttons { flex-direction: column; align-items: center; }

    .stats-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .window-content { padding: 16px 14px; }
    .page-content { padding: 16px 12px; }

    .dock-item { width: 36px; height: 36px; }
    .dock-icon { font-size: 20px; }
    .dock-icon-svg { width: 20px; height: 20px; }

    .stat-card { padding: 18px 14px; }
    .stat-number { font-size: 1.8rem; }

    .contact-link { padding: 12px 14px; }
    .contact-icon { font-size: 18px; }

    .info-card { padding: 12px 14px; }

    .achievement-item { padding: 10px 12px; font-size: 12px; }
    .ach-icon { font-size: 16px; }

    .partner-tag { font-size: 12px; padding: 6px 12px; }
    .cert-card { padding: 20px 16px; }
    .cert-badge { font-size: 32px; }
}

/* ── Terminal Widget ── */
.terminal-section {
    display: flex;
    justify-content: center;
    padding: 0 20px 48px;
}
.terminal-window {
    background: #0d1117;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.06);
    width: 100%;
    max-width: 440px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.terminal-titlebar {
    background: #161b22;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-title {
    margin-left: 10px;
    font-size: 11.5px;
    color: #6e7681;
    letter-spacing: 0.2px;
}
.terminal-body { padding: 20px 22px 22px; }
.term-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.term-line:first-child { margin-top: 0; }
.term-arrow { color: #64ffda; font-weight: 700; font-size: 13px; }
.term-cmd { color: #64ffda; font-size: 13.5px; }
.term-out {
    color: #e6edf3; font-size: 13.5px;
    padding-left: 22px; line-height: 1.85;
}
.term-out.green { color: #3fb950; }
.term-cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: #64ffda;
    border-radius: 1px;
    vertical-align: middle;
    animation: term-blink 1.1s step-end infinite;
}
@keyframes term-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
