/* Custom Typography and Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #374151;
}

.container {
    max-width: 1000px;
}

h1 {
    letter-spacing: -0.5px;
    font-weight: 700;
}

h2 {
    letter-spacing: -0.3px;
    font-weight: 600;
    color: #1f2937;
}

h3 {
    letter-spacing: -0.2px;
    font-weight: 500;
    color: #1f2937;
}

/* Link Styles */
a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Reduce visual noise */
strong {
    font-weight: 500;
    color: #1f2937;
}

/* Subtle section dividers - old code commented out after transition to a more semantic CSS focus
.section-border {
    border-bottom: 1px solid #e5e7eb;
}
*/

/* ============================================
   LAYOUT COMPONENTS - NEW
   ============================================ */

/* Container Background - White Porcelain */
.cv-container {
    background-color: #F8F8F8;
}

/* Profile Image Border */
.profile-image {
    border-color: #DCDDDD;
}


/* ============================================
   SECTION HEADERS
   ============================================ */

/* Main content section headers (Education, Experience, etc.) */
.section-title {
    font-size: 1.875rem;        /* text-3xl */
    font-weight: 700;            /* font-bold */
    border-bottom: 2px solid #9ca3af;  /* border-b-2 border-gray-400 */
    padding-bottom: 0.75rem;     /* pb-3 */
    margin-bottom: 1.25rem;      /* mb-5 */
}

/* Sidebar section headers (Contact, Skills, etc.) */
.sidebar-section-title {
    font-size: 1.5rem;           /* text-2xl */
    font-weight: 600;            /* font-semibold */
    border-bottom: 2px solid #60a5fa;  /* border-b-2 border-blue-400 */
    padding-bottom: 0.5rem;      /* pb-2 */
    margin-bottom: 1rem;         /* mb-4 */
    color: #111827;              /* text-gray-900 */
}


/* ============================================
   CONTENT ENTRIES (Jobs, Education, etc.)
   ============================================ */

/* Entry container spacing */
.entry {
    margin-bottom: 1.5rem;       /* mb-6 */
}

/* Entry title (job title, school name) */
.entry-title {
    font-size: 1.25rem;          /* text-xl */
    font-weight: 700;            /* font-bold */
    color: #111827;              /* text-gray-900 */
}

/* Entry metadata (company, dates, degree info) */
.entry-meta {
    font-weight: 500;            /* font-medium */
    color: #4b5563;              /* text-gray-600 */
    font-size: 1rem;             /* text-base */
}

/* Entry description lists */
.entry-list {
    list-style-type: disc;       /* list-disc */
    list-style-position: inside; /* list-inside */
    margin-top: 0.5rem;          /* mt-2 */
    color: #374151;              /* text-gray-700 */
    font-size: 0.875rem;         /* text-sm */
}

.entry-list li {
    margin-bottom: 0.25rem;      /* space-y-1 */
}


/* ============================================
   TEXT UTILITIES
   ============================================ */

/* Standard body text */
.text-body {
    color: #374151;              /* text-gray-700 */
    font-size: 1rem;             /* text-base */
}

/* Body text with relaxed line height */
.text-body-relaxed {
    color: #374151;              /* text-gray-700 */
    font-size: 1rem;             /* text-base */
    line-height: 1.625;          /* leading-relaxed */
}

/* Small text */
.text-small {
    font-size: 0.875rem;         /* text-sm */
    color: #374151;              /* text-gray-700 */
}

/* Detail text (for concentration, specialization labels) */
.text-detail {
    color: #374151;              /* text-gray-700 */
    margin-top: 0.5rem;          /* mt-2 */
    font-size: 0.875rem;         /* text-sm */
}

.text-detail:not(:first-child) {
    margin-top: 0;               /* Remove mt-2 for subsequent items */
}


/* ============================================
   SECTION SPACING
   ============================================ */

.section {
    margin-bottom: 2.5rem;       /* mb-10 */
}

.sidebar-section {
    margin-bottom: 2rem;         /* mb-8 */
}


/* ============================================
   LISTS
   ============================================ */

/* Sidebar lists (contact, certifications, etc.) */
.sidebar-list {
    list-style-type: disc;       /* list-disc */
    list-style-position: inside; /* list-inside */
    font-size: 0.875rem;         /* text-sm */
    color: #374151;              /* text-gray-700 */
}

.sidebar-list li {
    margin-bottom: 0.5rem;       /* space-y-2 */
}

/* Contact list (no bullets) */
.contact-list {
    font-size: 0.875rem;         /* text-sm */
    color: #374151;              /* text-gray-700 */
}

.contact-list li {
    margin-bottom: 0.5rem;       /* space-y-2 */
}


/* ============================================
   SKILLS SECTION
   ============================================ */

.skill-category {
    font-size: 1rem;             /* text-base */
    font-weight: 600;            /* font-semibold */
    margin-bottom: 0.5rem;       /* mb-2 */
    color: #1f2937;              /* text-gray-800 */
}

.skill-list {
    color: #374151;              /* text-gray-700 */
    margin-bottom: 1rem;         /* mb-4 */
    font-size: 0.875rem;         /* text-sm */
    line-height: 1.625;          /* leading-relaxed */
}

.skill-list:last-child {
    margin-bottom: 0;            /* Remove mb-4 for last item */
}


/* ============================================
   ACCESSIBILITY ENHANCEMENTS - Added as complementary features to the cv project, for better accessibility.
   ============================================ */

/* Skip to main content link (for screen readers and keyboard navigation) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 0.25rem 0;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Focus visible (only show outline for keyboard, not mouse clicks) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced motion support - respects user's OS preference */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        color: #000;
    }
    
    .cv-container {
        background-color: #fff;
        border: 2px solid #000;
    }
    
    a {
        color: #0000ff;
        text-decoration: underline;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* Remove background colors and shadows for better printing */
    body {
        background: white !important;
        color: black !important;
    }
    
    .cv-container {
        background: white !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0.5in !important;
        max-width: 100% !important;
    }
    
    /* Ensure links show their URLs */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Don't show URLs for email and tel links */
    a[href^="mailto:"]:after,
    a[href^="tel:"]:after {
        content: "";
    }
    
    /* Page break control */
    .section,
    .entry {
        page-break-inside: avoid;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
    
    /* Adjust colors for print */
    .section-title,
    .sidebar-section-title {
        border-bottom-color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    /* Hide skip link in print */
    .skip-link {
        display: none;
    }
}


/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Ensure text remains readable on small screens */
@media (max-width: 640px) {
    .section-title {
        font-size: 1.5rem;       /* Smaller on mobile */
    }
    
    .sidebar-section-title {
        font-size: 1.25rem;
    }
    
    .entry-title {
        font-size: 1.125rem;
    }
    
    /* Ensure adequate touch targets (min 44x44px for accessibility) */
    a {
        min-height: 44px;
        display: inline-block;
        padding: 0.25rem 0;
    }
}

/* Dark mode support (optional, respects user's OS preference) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    body {
        background: #1f2937;
        color: #e5e7eb;
    }
    
    .cv-container {
        background-color: #374151;
    }
    
    h1, h2, h3, strong {
        color: #f9fafb;
    }
    
    a {
        color: #60a5fa;
    }
    
    a:hover {
        color: #93c5fd;
    }
    */
}
