@charset "UTF-8";
/*!
* Start Bootstrap - Resume v7.0.6 (https://startbootstrap.com/theme/resume)
* Peter Ku Custom Theme - Modern Newspaper / Monochrome Pro
*/

/* =========================================
   1. VARIABLES & COLOR PALETTE
   ========================================= */
:root {
  /* Apple Pro Palette (Monochrome) */
  --bs-primary: #1d1d1f;       /* Apple Black */
  --bs-primary-rgb: 29, 29, 31;
  --bs-secondary: #86868b;     /* Apple Gray */
  --bs-body-bg: #fdfaf6;       /* Warm Paper / Off-White */
  --bs-body-color: #2c2c2c;    /* Charcoal Text */
  --bs-light: #f5f5f7;         /* Apple Light Gray */
  --bs-dark: #000000;          /* True Black */
  
  --card-bg: #f5f5f7;          /* Light Gray Cards (Contrast) */
  --text-main: #1d1d1f;        /* SF Pro Black */
  --text-muted: #86868b;       /* SF Pro Gray */
  --border-color: #d2d2d7;     /* Divider Gray */
  
  /* Typography Stack (New Yorker x Apple) */
  --font-heading: "Playfair Display", "Times New Roman", serif; /* Editorial Headings */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; /* Clean Sans Body */

  --bs-link-color: #000000;
  --bs-link-hover-color: #555555;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
body {
    font-family: var(--font-body);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    line-height: 1.6;
    letter-spacing: -0.011em;
    padding-top: 3.375rem;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

/* Links */
a {
    color: var(--text-main); /* Black links */
    text-decoration: underline;
    text-decoration-color: var(--bs-secondary);
    transition: all 0.2s ease;
}

a:hover {
    color: #000; 
    text-decoration-color: #000;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

*:focus { outline: none !important; }
*:focus-visible {
  outline: 2px solid rgba(128, 128, 128, 0.5);
  outline-offset: 2px;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

h1, .h1 { 
    font-family: var(--font-heading); 
    font-size: 4rem !important; 
    line-height: 1.05 !important;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--bs-dark);
}

h2, .h2 { 
    font-family: var(--font-body) !important;
    font-size: 2.5rem !important; 
    margin-bottom: 2rem;
    color: var(--bs-dark) !important; /* Stark black for headlines */
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    border-bottom: 3px double #e0e0e0;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

h3, .h3 { 
    font-family: var(--font-body) !important;
    font-size: 1.5rem !important; 
    font-weight: 600 !important;
}

h4, .h4 {
    font-family: var(--font-body) !important;
}

.subheading {
    font-family: var(--font-body) !important;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase !important; 
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

p.lead {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.5;
  color: #2c2c2c;
  max-width: 42rem;
}

/* Text Utilities */
.text-primary { color: #666 !important; font-family: var(--font-heading); font-style: italic; }
.text-secondary { color: #86868b !important; }
.tracking-wide { letter-spacing: 0.1em !important; }

.resume-section-content p, .experience-description, .education-description {
    line-height: 1.75;
    text-align: justify; /* Newspaper column look */
    hyphens: auto;       /* Prevents unsightly gaps */
}

/* =========================================
   4. NAVIGATION (SIDEBAR)
   ========================================= */
#sideNav {
    padding-left: 1rem;
    padding-right: 1rem;
    background: linear-gradient(rgba(0,0,0,0.92), rgba(0,0,0,0.85)), url('../assets/img/sidebar-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-blend-mode: overlay;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: all 0.5s ease;
    filter: grayscale(100%) contrast(1.1); /* B&W Editorial Look */
}

#sideNav .navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}
#sideNav .navbar-toggler:hover { transform: rotate(90deg); }
#sideNav .navbar-toggler:focus { outline-color: #d48a6e; }

/* Nav Links */
#sideNav .nav-link {
    position: relative;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: #a1a1a6; /* Apple Gray */
    text-transform: none; /* Sentence case menu */
    text-decoration: none !important;
    border-radius: 8px;
    margin: 0.1rem 1rem;
    border: none;
    transition: all 0.2s ease;
}

#sideNav .nav-link:hover, #sideNav .nav-link:focus {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: none;
}

#sideNav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* Profile Image */
#sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#sideNav .navbar-brand .img-profile:hover {
    transform: scale(1.02);
    border-color: transparent;
}

@media (min-width: 992px) {
  #sideNav {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }
  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item { display: block; }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link { display: block; }
}

@media (max-width: 991.98px) {
    #sideNav {
        height: auto;
        position: relative;
        width: 100%;
        padding: 1rem;
    }
    .resume-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    h1.mb-0 { font-size: 3rem; }
}


/* =========================================
   5. COMPONENTS & SECTIONS
   ========================================= */

/* Social Icons */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 100%;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    background-color: #000000;
    color: #ffffff;
    transition: all 0.4s ease-in-out;
}
.social-icons .social-icon:last-child { margin-right: 0; }
.social-icons .social-icon:hover {
    transform: translateY(-6px) scale(1.1);
    background-color: #6c757d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Primary Button */
.btn-primary {
    background-color: #1d1d1f !important;
    border-color: #1d1d1f !important;
    color: #ffffff !important;
    background-image: none !important;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Sections */
section.resume-section {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 75rem;
}
section.resume-section .resume-section-content { width: 100%; }

@media (min-width: 768px) {
  section.resume-section { min-height: 100vh; }
}
@media (min-width: 992px) {
  section.resume-section {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Experience / Education Cards (Minimalist Timeline) */
.experience-card, .education-card {
    position: relative;
    padding-left: 2rem !important;
    border-left: 1px solid #e5e5e5;
    margin-left: 1rem;
}

.experience-card::before, .education-card::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 3.5rem;
    width: 9px;
    height: 9px;
    background-color: #000;
    border-radius: 50%;
    border: 2px solid #fff;
}

.experience-card:hover::before, .education-card:hover::before {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.experience-card:hover, .education-card:hover { 
    border-color: #000000 !important;
    background: transparent !important;
}

/* Headers & Details */
.experience-header, .education-header { margin-bottom: 1.5rem; }
.experience-icon, .education-icon { display: none !important; }

.experience-info, .education-info {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 2rem;
    width: 100%;
}

.experience-info h4, .education-info h4 {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.1rem;
    color: #1d1d1f;
}

.company-info, .degree-info {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.1rem;
    color: #1d1d1f;
    font-weight: 400;
}

.experience-period, .education-period {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #86868b;
    white-space: nowrap;
    font-weight: 500;
}

.experience-details, .education-details { padding-left: 0; }

.experience-achievements h6, .education-details h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #86868b;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.experience-achievements ul li {
    font-size: 0.95rem;
    color: #424245;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.25rem;
}

/* Tags/Pills */
.tech-tag, .experience-skills span, .project-tech span, .skill-tag {
    display: inline-block;
    background: transparent !important;
    border: 1px solid #d2d2d7;
    color: #1d1d1f !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px !important; /* Apple minimal radius */
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.tech-tag:hover, .experience-skills span:hover, .project-tech span:hover, .skill-tag:hover {
    border-color: #000;
    background: #000 !important;
    color: #fff !important;
}

.fa-ul > li { margin-bottom: 0.75rem; color: var(--text-main); }
.fa-li { color: var(--bs-primary); }

/* Mobile Experience */
@media (max-width: 768px) {
    .experience-header, .education-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .experience-info, .education-info {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .experience-period, .education-period {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .company-info, .degree-info { grid-row: 3; }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bs-light);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#loading-screen.fade-out { opacity: 0; visibility: hidden; }

.spinner-ring {
    width: 60px; height: 60px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(10px);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Refactored Inline Styles for Code Optimization */
.highlight-title {
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.highlight-desc {
    max-width: 48rem;
    color: #424245;
    line-height: 1.6;
}

.highlight-meta {
    color: var(--text-muted);
}

.education-icon.transparent-bg {
    background: transparent !important;
}

.education-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.skill-list-item {
    color: var(--bs-primary);
    font-weight: 400;
    font-size: 1.25rem;
}


/* =========================================
   MODERN POLISH & MICRO-INTERACTIONS
   ========================================= */

/* 1. Custom Text Selection (Apple Editorial Style) */
::selection {
    background: rgba(29, 29, 31, 0.15); /* Soft Charcoal */
    color: #000;
}

/* 2. Sleek Scrollbar (Minimalist) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 3. Editorial Link Underline Animation */
a.link-editorial {
    position: relative;
    text-decoration: none;
    color: var(--bs-primary);
    padding-bottom: 2px;
}

a.link-editorial::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--bs-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a.link-editorial:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 4. Smooth Content Fade In */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section.resume-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 5. Print Optimization (Newspaper Mode) */
@media print {
    body {
        background-color: #fff !important;
        color: #000 !important;
    }
    
    #sideNav {
        display: none !important; /* Hide sidebar in print */
    }
    
    .resume-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        page-break-inside: avoid;
    }

    /* Ensure links are printed */
    a {
        text-decoration: underline !important;
        color: #000 !important;
    }
}

