/* style.css */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --text-primary: #000000;
    --text-secondary: #525252;
    --border: #e5e5e5;
    --accent: #000000;
}

.dark {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --border: #262626;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.doc-border { border-color: var(--border); }
.doc-text-secondary { color: var(--text-secondary); }
.doc-bg-secondary { background-color: var(--bg-secondary); }

/* Dark mode utilities */
.dark-block { display: none; }
.dark .dark-block { display: block; }
.dark .dark-hidden { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-secondary); }

/* Selection */
::selection {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Scroll Progress */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--text-primary);
    z-index: 100;
    transition: width 0.1s;
    width: 0%;
}

/* Navigation */
.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--text-primary);
    transition: height 0.3s ease;
}

.nav-item.active::before,
.nav-item:hover::before {
    height: 100%;
}

.nav-item.active,
.nav-item:hover {
    color: var(--text-primary);
    padding-left: 10px;
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.dark .hover-lift:hover {
    box-shadow: 0 20px 40px -15px rgba(255, 255, 255, 0.1);
}

/* Section Animations */
.section-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Certificate Card */
.cert-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.dark .cert-card:hover {
    box-shadow: 0 20px 40px -15px rgba(255, 255, 255, 0.1);
}

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

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

.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover::after {
    opacity: 1;
}

.cert-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-card-content {
    opacity: 1;
    transform: translateY(0);
}

.cert-card-content h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-card-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

/* Category Badge on Card */
.cert-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    z-index: 5;
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-primary);
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 1.5rem;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Modal */
.gallery-overlay {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

/* Modal Content Styles */
#modalSkillsList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .lg\\:ml-80 {
        margin-left: 0;
    }
    
    .lg\\:translate-x-0 {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    #certModal > div {
        flex-direction: column;
        max-height: 95vh;
    }
    
    #certModal > div > div:first-child {
        height: 50vh;
    }
    
    #certModal > div > div:last-child {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

/* Utility classes */
.hidden { display: none; }
.block { display: block; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }

.w-full { width: 100%; }
.w-80 { width: 20rem; }
.w-px { width: 1px; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.min-h-screen { min-height: 100vh; }

.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-full { max-width: 100%; }
.max-h-\\[70vh\\] { max-height: 70vh; }
.max-h-\\[90vh\\] { max-height: 90vh; }
.max-h-\\[95vh\\] { max-height: 95vh; }

.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-x-full { --tw-translate-x: -100%; }
.-translate-y-1\\/2 { --tw-translate-y: -50%; }
.translate-y-\\[20px\\] { --tw-translate-y: 20px; }
.translate-y-0 { --tw-translate-y: 0; }
.translate-y-1 { --tw-translate-y: 0.25rem; }
.translate-y-\\[10px\\] { --tw-translate-y: 10px; }

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

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-r { border-right-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-l-2 { border-left-width: 2px; }

.border-white\\/20 { border-color: rgba(255, 255, 255, 0.2); }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-32 { padding-bottom: 8rem; }

.pl-12 { padding-left: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.ml-80 { margin-left: 20rem; }

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

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-24 > * + * { margin-top: 6rem; }

.text-center { text-align: center; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }

.bg-black { background-color: #000000; }
.bg-white { background-color: #ffffff; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\\/80 { --tw-gradient-from: rgba(0, 0, 0, 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.to-transparent { --tw-gradient-to: transparent; }

.backdrop-blur { --tw-backdrop-blur: blur(8px); backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); }
.backdrop-blur-10 { --tw-backdrop-blur: blur(10px); }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

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

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.cursor-pointer { cursor: pointer; }

.visible { visibility: visible; }
.invisible { visibility: hidden; }

.group:hover .group-hover\\:translate-y-1 { --tw-translate-y: 0.25rem; }
.group:hover .group-hover\\:opacity-100 { opacity: 1; }

.hover\\:bg-\\[var\\(--bg-secondary\\)\\]:hover { background-color: var(--bg-secondary); }
.hover\\:bg-\\[var\\(--text-primary\\)\\]:hover { background-color: var(--text-primary); }
.hover\\:text-\\[var\\(--bg-primary\\)\\]:hover { color: var(--bg-primary); }
.hover\\:text-\\[var\\(--text-primary\\)\\]:hover { color: var(--text-primary); }

.hover\\:opacity-100:hover { opacity: 1; }

.focus\\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

.scroll-mt-20 { scroll-margin-top: 5rem; }

/* Responsive breakpoints */
@media (min-width: 640px) {
    .sm\\:block { display: block; }
}

@media (min-width: 768px) {
    .md\\:translate-x-0 { transform: translateX(0); }
    .md\\:block { display: block; }
    .md\\:flex { display: flex; }
    .md\\:grid { display: grid; }
    .md\\:hidden { display: none; }
    .md\\:w-1\\/3 { width: 33.333333%; }
    .md\\:w-2\\/3 { width: 66.666667%; }
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\\:flex-row { flex-direction: row; }
    .md\\:p-12 { padding: 3rem; }
    .md\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\\:ml-80 { margin-left: 20rem; }
    .lg\\:block { display: block; }
    .lg\\:hidden { display: none; }
    .lg\\:translate-x-0 { transform: translateX(0); }
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Responsive Navigation - Sidebar always visible on desktop */
@media (max-width: 767px) {
    /* Hide sidebar on mobile */
    #sidebar {
        display: none;
    }

    /* Remove left margin on mobile */
    main {
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) {
    /* Show sidebar on desktop - always visible */
    #sidebar {
        display: block !important;
        transform: none !important;
    }

    /* Ensure main content has left margin on desktop */
    main {
        margin-left: 20rem !important;
    }
}
