@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Dark mode color variables */
:root {
    --color-primary-light: rgb(211,84,0);
    --color-primary-dark: rgb(255,138,76);
}

/* System dark mode detection */
@media (prefers-color-scheme: dark) {
    body:not(.light-theme) {
    color-scheme: dark;
    }
    
    html:not(.light-theme) {
    @apply dark;
    }
}
/* Custom syntax highlighting for code blocks */
.keyword { color: #f56565; }
.string { color: #68d391; }
.comment { color: #a0aec0; font-style: italic; }
.function { color: #63b3ed; }
.variable { color: #fbb6ce; }
.number { color: #f6ad55; }

/* Ensure smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode styles with improved contrast */
.dark {
    --bg-primary: #121212;
    --bg-secondary: #1e293b; /* Bluish dark tone */
    --bg-tertiary: #2a3441;
    --text-primary: #f3f4f6;
    --text-secondary: #e5e7eb;
    --text-tertiary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --card-bg: #1e293b;
    --highlight-bg: #2e3c4d;
    --shadow-color: rgba(0, 0, 0, 0.5);
  }

/* Apply dark mode styles */
.dark {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

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

.dark .bg-white\/90 {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(8px);
}

.dark .bg-gray-50 {
    background-color: var(--bg-secondary);
}

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

.dark .bg-orange-50 {
    background-color: rgba(211, 84, 0, 0.15);
}

.dark .text-gray-400 {
    color: var(--text-muted);
}

.dark .text-gray-500 {
    color: var(--text-muted);
}

.dark .text-gray-600 {
    color: var(--text-secondary);
}

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

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

.dark .border-gray-100,
.dark .border-gray-200 {
    border-color: var(--border-color);
}

.dark .work-item,
.dark .passion-card,
.dark .p-6.bg-gray-50, 
.dark .education-item, 
.dark .looking-forward-item, 
.dark .contact-item {
    background-color: #1e293b;
}

.dark .px-3.py-1.bg-gray-100 {
    background-color: var(--highlight-bg);
    color: var(--text-secondary);
}

.dark .work-item:hover,
.dark .passion-card:hover {
    box-shadow: 0 10px 25px -5px var(--shadow-color);
}

.dark .social-icon {
    color: var(--text-secondary);
}

/* Make timeline elements visible in dark mode */
.dark .border-l.border-gray-200 {
    border-color: var(--border-color);
}

.dark .bg-white.rounded-full.border-2 {
    background-color: var(--bg-tertiary);
}

.dark .border-primary {
    border-color: var(--color-primary-dark);
}

/* Make primary color more visible in dark mode */
.dark .text-primary {
    color: var(--color-primary-dark);
}

.dark .hover\:text-primary:hover {
    color: var(--color-primary-dark);
}

.dark .border-b.border-primary {
    border-color: var(--color-primary-dark);
}

.dark .hover\:border-primary:hover {
    border-color: var(--color-primary-dark);
}

/* Animation delay utilities */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* Section fade animation */
.section-fade {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.section-fade.visible {
    opacity: 1;
}

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

/* Card and interactive element styles */
.work-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: rgb(211,84,0);
}

.dark .social-icon:hover {
    color: var(--color-primary-dark);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .image-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

.passion-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.5rem;
}

.passion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.passion-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.passion-card:hover img {
    transform: scale(1.05);
}

/* Theme toggle button styling */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(211, 84, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    background: rgb(211, 84, 0);
}

.dark .theme-toggle {
    background: rgba(255, 138, 76, 0.8);
}

.dark .theme-toggle:hover {
    background: rgb(255, 138, 76);
}

.theme-toggle i {
    color: white;
    font-size: 1.5rem;
}

.component-list {
    list-style: none;
    margin-bottom: 2rem;
}

.component-list li {
    margin-bottom: 0.75rem;
}

.component-list a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.component-list a:hover {
    color: #D35400;
}

.component-list a svg {
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.component-list a:hover svg {
    opacity: 1;
}

/* Components Grid */
.components-section {
    margin-top: 6rem;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.component-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.component-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.component-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.component-card-content {
    padding: 1.5rem;
}

.component-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.component-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.component-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.view-component {
    color: #D35400;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.view-component:hover {
    color: #B44300;
}

.view-component svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.view-component:hover svg {
    transform: translateX(2px);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: #f8f9fa;
    font-size: 0.875rem;
    color: #666;
}
@media print {
    .print-mode {
        background: white !important;
        color: black !important;
    }
    
    .print-mode * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .print-mode header,
    .print-mode button,
    .print-mode .sticky {
        display: none !important;
    }
    
    .print-mode main {
        padding: 0 !important;
        max-width: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border-gray-200,
    .dark .border-gray-700 {
        border-color: currentColor !important;
    }
    
    .bg-gray-50,
    .dark .bg-gray-800 {
        background: transparent !important;
        border: 1px solid currentColor !important;
    }
}

/* Reduced motion support */
@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;
    }
    
    .group-hover\\:translate-x-1,
    .group-hover\\:-translate-x-1,
    .hover\\:translate-x-1,
    .hover\\:-translate-x-1 {
        transform: none !important;
    }
}

/* Focus visible improvements */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid rgb(211,84,0) !important;
    outline-offset: 2px !important;
}

/* Better mobile touch targets */
@media (max-width: 768px) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}



