/* Custom styles for modernity and pure grey dark mode */
:root {
    --font-family: "Inter", sans-serif;
    
    /* Shadcn light mode colors */
    --bg-color: hsl(0, 0%, 100%);
    --text-color: hsl(240, 10%, 3.9%);
    --heading-color: hsl(240, 6%, 10%);
    --section-bg: hsl(0, 0%, 100%);
    --tag-bg: hsl(240, 5%, 96%);
    --border-color: hsl(240, 6%, 90%);
    
    --spacing-xs: 0.05rem;
    --spacing-sm: 0.3rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 0.75rem;
    --spacing-xl: 1rem;
    --spacing-2xl: 1.5rem;
    --uniform-padding: 0.5rem;
    --section-inner-padding: 1rem;
    --link-color: hsl(221, 83%, 53%);
    --link-hover-color: hsl(221, 83%, 59%);
    
    /* Shadcn color scheme */
    --shadcn-bg: hsl(0, 0%, 100%);
    --shadcn-fg: hsl(240, 10%, 3.9%);
    --shadcn-card: hsl(0, 0%, 100%);
    --shadcn-card-fg: hsl(240, 10%, 3.9%);
    --shadcn-primary: hsl(240, 5.9%, 10%);
    --shadcn-primary-fg: hsl(0, 0%, 98%);
    --shadcn-secondary: hsl(240, 4.8%, 95.9%);
    --shadcn-secondary-fg: hsl(240, 5.9%, 10%);
    --shadcn-muted: hsl(240, 4.8%, 95.9%);
    --shadcn-muted-fg: hsl(240, 3.8%, 46.1%);
    --shadcn-accent: hsl(240, 4.8%, 95.9%);
    --shadcn-accent-fg: hsl(240, 5.9%, 10%);
    --shadcn-border: hsl(240, 5.9%, 90%);
    --shadcn-ring: hsl(240, 5.9%, 10%);
}

body.dark, html.dark {
    /* Shadcn dark mode colors */
    --bg-color: hsl(240, 10%, 3.9%);
    --text-color: hsl(0, 0%, 98%);
    --heading-color: hsl(0, 0%, 98%);
    --section-bg: hsl(240, 6%, 10%);
    --tag-bg: hsl(240, 4%, 16%);
    --border-color: hsl(240, 4%, 16%);
    
    /* Shadcn dark mode colors */
    --shadcn-bg: hsl(240, 10%, 3.9%);
    --shadcn-fg: hsl(0, 0%, 98%);
    --shadcn-card: hsl(240, 10%, 3.9%);
    --shadcn-card-fg: hsl(0, 0%, 98%);
    --shadcn-primary: hsl(0, 0%, 98%);
    --shadcn-primary-fg: hsl(240, 5.9%, 10%);
    --shadcn-secondary: hsl(240, 3.7%, 15.9%);
    --shadcn-secondary-fg: hsl(0, 0%, 98%);
    --shadcn-muted: hsl(240, 3.7%, 15.9%);
    --shadcn-muted-fg: hsl(240, 5%, 64.9%);
    --shadcn-accent: hsl(240, 3.7%, 15.9%);
    --shadcn-accent-fg: hsl(0, 0%, 98%);
    --shadcn-border: hsl(240, 3.7%, 15.9%);
    --shadcn-ring: hsl(240, 4.9%, 83.9%);
    
    --link-color: hsl(217, 91%, 60%);
    --link-hover-color: hsl(214, 100%, 77%);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Heading with gradient styles */
.dark-heading {
    background-image: linear-gradient(to right, hsl(210, 40%, 98%), hsl(210, 20%, 80%)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

html:not(.dark) h1 {
    background-image: linear-gradient(to right, hsl(220, 14%, 10%), hsl(220, 14%, 30%)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.font-inter {
    font-family: var(--font-family);
}

/* Section styling */
section {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: var(--section-inner-padding);
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--heading-color);
}

/* Text colors for dark mode */
body.dark h1, body.dark h2, body.dark h3 {
    color: var(--heading-color);
}

body.dark .text-gray-700 {
    color: var(--text-color);
}

body.dark .text-gray-600 {
    color: hsl(240, 5%, 64.9%);
}

body.dark .text-gray-900 {
    color: var(--heading-color);
}

body.dark .text-gray-500 {
    color: hsl(240, 5%, 54.9%);
}

body.dark .bg-white {
    background-color: var(--section-bg);
}

/* Sticky skills column */
aside {
    min-width: 200px;
}

/* Basic layout */
.max-w-6xl {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

/* Spacing */
.p-8 {
    padding: var(--uniform-padding);
}

.py-12 {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.mb-6 {
    margin-bottom: var(--spacing-sm);
}

.mb-12 {
    margin-bottom: var(--spacing-md);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-2 {
    margin-top: var(--spacing-xs);
}

.mt-3 {
    margin-top: 0.5rem;
}

.mt-1 {
    margin-top: 0.15rem;
}

.mb-4 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: 0.5rem;
}

.p-6 {
    padding: var(--uniform-padding);
}

.pl-4 {
    padding-left: var(--spacing-sm);
}

/* Text styles */
.text-center {
    text-align: center;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 0;
}

.text-sm {
    font-size: 0.875rem;
    margin: auto;
}

.font-extrabold {
    font-weight: 800;
}

.font-semibold {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

.text-transparent {
    color: transparent;
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-gray-900 {
    --tw-gradient-from: #111827;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(17, 24, 39, 0));
}

.to-gray-700 {
    --tw-gradient-to: #374151;
}

/* Colors */
.bg-gray-50 {
    background-color: var(--bg-color);
}

.text-gray-800 {
    color: var(--text-color);
}

.text-gray-900 {
    color: var(--heading-color);
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.bg-white {
    background-color: var(--section-bg);
}

.bg-gray-100 {
    background-color: var(--tag-bg);
}

.bg-gray-800 {
    background-color: #1f2937;
}

.text-gray-100 {
    color: #f3f4f6;
}

/* Images */
.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.wh-1 {
	height: 1.5rem;
	width: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.object-cover {
    object-fit: cover;
}

/* Borders */
.rounded-xl {
    border-radius: 0.75rem;
    overflow: hidden;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.border-green-500 {
    border-color: #10b981;
}

/* Lists */
.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: var(--spacing-sm);
}

.space-y-6 > * + * {
    margin-top: var(--spacing-md);
}

/* More compact job entries for better screen fit */
.job-entry {
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: var(--spacing-lg);
    transition: background-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.job-entry:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

body.dark .job-entry:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.job-entry h3 {
    color: var(--heading-color);
}

/* Padding and shadow */
.px-3 {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.py-1 {
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
}

.px-4 {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.py-2 {
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4b5563;
}

a.hover\:text-gray-700:hover {
    color: #374151;
}

a.text-blue-600 {
    color: var(--link-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

a.text-blue-600:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

body.dark a.text-blue-600 {
    color: #60a5fa;
}

body.dark a.text-blue-600:hover {
    color: #93c5fd;
}

/* Button */
.fixed {
    position: fixed;
}

.bottom-6 {
    bottom: 1.5rem;
}

.right-6 {
    right: 1.5rem;
}

/* Improved dark mode toggle button */
#dark-mode-toggle {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #f3f4f6;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

#dark-mode-toggle:hover {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.transition-colors {
    transition-property: color, background-color, border-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Skills tags */
.bg-gray-100 {
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.bg-gray-100:hover {
    transform: translateY(-1px);
    background-color: #e5e7eb;
}

/* Uniform spacing and padding */
.p-uniform {
    padding: var(--uniform-padding);
    margin-top: 3rem;
}

.section-padding {
    padding: var(--section-inner-padding);
}

.mb-section {
    margin-bottom: var(--spacing-md);
}

.tag {
    background-color: var(--tag-bg);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--spacing-sm);
    font-size: 0.9rem;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-color);
    border: none;
}

.icons {
    width: 1.0rem !important;
    height: 1.0rem !important;
}

.tag:hover {
    transform: translateY(-1px);
    background-color: var(--shadcn-accent);
}

body.dark .tag {
    background-color: var(--tag-bg);
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.25rem;
    }
    
    .p-8, .p-6 {
        padding: var(--spacing-xs);
    }
    
    .py-12 {
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }
    
    .w-32, .h-32 {
        width: 6rem;
        height: 6rem;
    }
}

.space-y-3 > * + * {
    margin-top: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-xs);
}

/* Action buttons */
.action-buttons {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.action-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--shadcn-secondary);
    color: var(--shadcn-secondary-fg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shadcn-border);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    position: relative;
}

.action-button:hover {
    transform: translateY(-2px);
    background: var(--shadcn-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark .action-button {
    background: var(--shadcn-secondary);
    color: var(--shadcn-secondary-fg);
    border-color: var(--shadcn-border);
}

body.dark .action-button:hover {
    background: var(--shadcn-accent);
}

/* Theme toggle specific - handles icon animation */
.theme-toggle i {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .light-icon {
    opacity: 0;
    transform: scale(0.5);
}

.theme-toggle .dark-icon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle.dark .light-icon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle.dark .dark-icon {
    opacity: 0;
    transform: scale(0.5);
}

/* Last updated text positioning */
.last-updated {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 10;
    text-align: right;
}
