/* Apple-inspired Custom Styles */

* {
    box-sizing: border-box;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Navigation blur effect */
.nav-blur {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Smooth reveal animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

/* Hero image hover effect */
.hero-image {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Project card enhancements */
.project-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Skill bar animation */
.skill-progress {
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Language bar fill animation */
.language-bar {
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: flex;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

/* Loading animation for page */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: fadeIn 0.5s ease-in-out;
}

/* Ensure images don't skew */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo Marquee - two horizontal revolving rows */
.logo-marquee {
    overflow: hidden;
    padding: 4rem 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.logo-track {
    display: flex;
    gap: 5rem;
    animation: marquee 100s linear infinite;
    width: max-content;
}

.logo-track + .logo-track {
    animation-delay: 0s;
    margin-top: 3rem;
}

.logo-track img {
    height: 72px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

.logo-track img:hover {
    transform: scale(1.15);
}

/* Enlarged logos */
.logo-track img.logo-xl {
    height: 108px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Dark Mode - Purple/Violet Theme */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] body {
    background-color: #0a0a0a !important;
    color: #fafafa !important;
}

[data-theme="dark"] .bg-white {
    background-color: #0a0a0a !important;
}

[data-theme="dark"] .bg-gray-50 {
    background-color: #141414 !important;
}

[data-theme="dark"] .bg-gray-900 {
    background-color: #0a0a0a !important;
}

[data-theme="dark"] .text-gray-900 {
    color: #fafafa !important;
}

[data-theme="dark"] .text-gray-600 {
    color: #a1a1aa !important;
}

[data-theme="dark"] .text-gray-400 {
    color: #71717a !important;
}

[data-theme="dark"] .text-gray-500 {
    color: #a1a1aa !important;
}

[data-theme="dark"] .text-blue-200 {
    color: #e9d5ff !important;
}

[data-theme="dark"] .border-gray-100 {
    border-color: #27272a !important;
}

[data-theme="dark"] .border-gray-200 {
    border-color: #27272a !important;
}

[data-theme="dark"] .border-gray-800 {
    border-color: #27272a !important;
}

[data-theme="dark"] .bg-gray-200 {
    background-color: #27272a !important;
}

/* Blue → Purple/Violet accents */
[data-theme="dark"] .text-blue-600,
[data-theme="dark"] .hover\:text-blue-600:hover {
    color: #a855f7 !important;
}

[data-theme="dark"] .bg-blue-600 {
    background-color: #a855f7 !important;
}

[data-theme="dark"] .hover\:bg-blue-700:hover {
    background-color: #9333ea !important;
}

[data-theme="dark"] .bg-blue-500/10 {
    background-color: rgba(168, 85, 247, 0.1) !important;
}

[data-theme="dark"] .bg-blue-500/20 {
    background-color: rgba(168, 85, 247, 0.2) !important;
}

[data-theme="dark"] .border-blue-200/50 {
    border-color: rgba(168, 85, 247, 0.3) !important;
}

[data-theme="dark"] .border-blue-500/20 {
    border-color: rgba(168, 85, 247, 0.2) !important;
}

[data-theme="dark"] .shadow-blue-600/30 {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3) !important;
}

[data-theme="dark"] .hover\:shadow-blue-600/40:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4) !important;
}

[data-theme="dark"] .selection\:bg-blue-500::selection {
    background-color: #a855f7 !important;
}

[data-theme="dark"] .text-indigo-600 {
    color: #c084fc !important;
}

[data-theme="dark"] .bg-indigo-600 {
    background-color: #a855f7 !important;
}

[data-theme="dark"] .bg-indigo-500/10 {
    background-color: rgba(168, 85, 247, 0.1) !important;
}

[data-theme="dark"] .bg-purple-600\/10,
[data-theme="dark"] .bg-purple-500\/10 {
    background-color: rgba(168, 85, 247, 0.1) !important;
}

[data-theme="dark"] .border-purple-200\/50,
[data-theme="dark"] .border-pink-200\/50 {
    border-color: rgba(168, 85, 247, 0.2) !important;
}

[data-theme="dark"] .bg-pink-500\/10 {
    background-color: rgba(168, 85, 247, 0.1) !important;
}

/* Dark mode buttons */
[data-theme="dark"] .bg-gray-900 {
    background-color: #141414 !important;
}

[data-theme="dark"] .hover\:bg-gray-800:hover {
    background-color: #1e1e1e !important;
}

[data-theme="dark"] .bg-gray-100 {
    background-color: #1e1e1e !important;
}

[data-theme="dark"] .hover\:bg-gray-200:hover {
    background-color: #27272a !important;
}

[data-theme="dark"] .shadow-gray-900\/20 {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2) !important;
}

[data-theme="dark"] .bg-white\/80 {
    background-color: rgba(168, 85, 247, 0.15) !important;
}

[data-theme="dark"] .border-white\/20 {
    border-color: rgba(168, 85, 247, 0.2) !important;
}

[data-theme="dark"] .bg-white\/50 {
    background-color: rgba(168, 85, 247, 0.1) !important;
}

[data-theme="dark"] .text-white {
    color: #fafafa !important;
}

[data-theme="dark"] .hover\:text-white:hover {
    color: #fafafa !important;
}

/* Contact section already dark - adjust accents */
[data-theme="dark"] #contact .bg-blue-600\/20 {
    background-color: rgba(168, 85, 247, 0.2) !important;
}

/* Dark mode blur elements */
[data-theme="dark"] .blur-\\[120px\\] {
    filter: blur(120px) opacity(0.3) !important;
}

/* Toggle button dark state */
[data-theme="dark"] #theme-toggle {
    background-color: #374151 !important;
}

[data-theme="dark"] #toggle-thumb {
    transform: translateX(0) !important;
}

[data-theme="dark"] #theme-toggle .fa-moon {
    color: #fbbf24 !important;
}

[data-theme="dark"] #theme-toggle .fa-sun {
    color: #9ca3af !important;
}

#theme-toggle .fa-moon {
    color: #9ca3af !important;
}

#theme-toggle .fa-sun {
    color: #fbbf24 !important;
}

/* Header scroll color in dark mode */
[data-theme="dark"] .nav-blur {
    background: rgba(10, 10, 10, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Hero name gradient in dark mode - purple/violet */
[data-theme="dark"] .bg-gradient-to-r.from-blue-600.to-indigo-600 {
    background-image: linear-gradient(to right, #a855f7, #c084fc) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Keep "Available for opportunities" badge blue in dark mode */
[data-theme="dark"] .keep-blue {
    color: #0071e3 !important;
    background-color: rgba(0, 113, 227, 0.1) !important;
    border-color: rgba(0, 113, 227, 0.2) !important;
}
[data-theme="dark"] .keep-blue .w-2 {
    background-color: #0071e3 !important;
}

/* Keep language status colors and bars unchanged in dark mode */
[data-theme="dark"] .keep-colors.text-blue-600 {
    color: #2563eb !important;
}
[data-theme="dark"] .keep-colors.bg-blue-600 {
    background-color: #2563eb !important;
}
[data-theme="dark"] .keep-colors.text-indigo-600 {
    color: #4f46e5 !important;
}
[data-theme="dark"] .keep-colors.bg-indigo-600 {
    background-color: #4f46e5 !important;
}
[data-theme="dark"] .keep-colors.text-purple-600 {
    color: #9333ea !important;
}
[data-theme="dark"] .keep-colors.bg-purple-600 {
    background-color: #9333ea !important;
}
[data-theme="dark"] .keep-colors.text-pink-600 {
    color: #db2777 !important;
}
[data-theme="dark"] .keep-colors.bg-pink-600 {
    background-color: #db2777 !important;
}

/* Certifications sub-cards - dark mode variants */
[data-theme="dark"] .bg-blue-50 {
    background-color: rgba(0, 113, 227, 0.15) !important;
}
[data-theme="dark"] .bg-purple-50 {
    background-color: rgba(168, 85, 247, 0.15) !important;
}
[data-theme="dark"] .bg-green-50 {
    background-color: rgba(34, 197, 94, 0.15) !important;
}
[data-theme="dark"] .bg-amber-50 {
    background-color: rgba(245, 158, 11, 0.15) !important;
}
[data-theme="dark"] .bg-indigo-50 {
    background-color: rgba(99, 102, 241, 0.15) !important;
}
[data-theme="dark"] .border-blue-100 {
    border-color: rgba(0, 113, 227, 0.3) !important;
}
[data-theme="dark"] .border-purple-100 {
    border-color: rgba(168, 85, 247, 0.3) !important;
}
[data-theme="dark"] .border-green-100 {
    border-color: rgba(34, 197, 94, 0.3) !important;
}
[data-theme="dark"] .border-amber-100 {
    border-color: rgba(245, 158, 11, 0.3) !important;
}
[data-theme="dark"] .border-indigo-100 {
    border-color: rgba(99, 102, 241, 0.3) !important;
}
[data-theme="dark"] .bg-blue-100 {
    background-color: rgba(0, 113, 227, 0.2) !important;
}
[data-theme="dark"] .bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.2) !important;
}
[data-theme="dark"] .bg-green-100 {
    background-color: rgba(34, 197, 94, 0.2) !important;
}
[data-theme="dark"] .bg-amber-100 {
    background-color: rgba(245, 158, 11, 0.2) !important;
}
[data-theme="dark"] .bg-indigo-100 {
    background-color: rgba(99, 102, 241, 0.2) !important;
}

/* Abstract Scrollbar - Depth Parallax Dots */
.abstract-scrollbar {
    position: fixed;
    top: 0;
    right: 20px;
    width: 80px;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.parallax-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100vh;
}

.parallax-dot {
    width: 6px;
    height: 6px;
    background: #0071e3;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.6);
    will-change: transform, opacity;
}

/* Depth-based opacity - closer dots are more visible */
.parallax-column[data-depth="3"] .parallax-dot { opacity: 0.9; }
.parallax-column[data-depth="2"] .parallax-dot { opacity: 0.6; }
.parallax-column[data-depth="1"] .parallax-dot { opacity: 0.35; }

/* Dark mode - depth parallax dots */
[data-theme="dark"] .parallax-dot {
    background: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

/* Dots over footer section - only bottom dots change color */
.abstract-scrollbar.dots-over-footer .parallax-column .parallax-dot:nth-last-child(-n+11) {
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .abstract-scrollbar.dots-over-footer .parallax-column .parallax-dot:nth-last-child(-n+11) {
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}

/* Fuzzy page-wide line above Technical Skills section */
.skills-top-line {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0071e3 0%, transparent 12%, transparent 28%, #0071e3 50%, transparent 72%, transparent 88%, #0071e3 100%);
    filter: blur(1px);
    opacity: 1;
    z-index: 11;
    pointer-events: none;
}

[data-theme="dark"] .skills-top-line {
    background: linear-gradient(90deg, #a855f7 0%, transparent 12%, transparent 28%, #a855f7 50%, transparent 72%, transparent 88%, #a855f7 100%);
}

/* Certification titles - lighter colors for dark mode legibility */
[data-theme="dark"] .text-blue-900 {
    color: #60a5fa !important;
}

/* Navigation dark mode - dark gray with purple glow */
[data-theme="dark"] #navbar {
    background: rgba(20, 20, 20, 0.85) !important;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

[data-theme="dark"] #navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    opacity: 0.6;
}

/* Navigation light mode - white with blue glow */
[data-theme="light"] #navbar::before,
#navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0071e3, transparent);
    opacity: 0.6;
}
[data-theme="dark"] .text-purple-900 {
    color: #c084fc !important;
}
[data-theme="dark"] .text-green-900 {
    color: #4ade80 !important;
}
[data-theme="dark"] .text-amber-900 {
    color: #fbbf24 !important;
}
[data-theme="dark"] .text-indigo-900 {
    color: #a5b4fc !important;
}

/* ============ MOBILE ONLY (max-width: 767px) ============ */

/* ============ PC-ONLY CHANGES ============ */
@media (min-width: 768px) {

    /* "Available for opportunities" badge - sakura pink in dark mode (PC only) */
    [data-theme="dark"] .keep-blue {
        color: #FFB7C2 !important;
        background-color: rgba(255, 183, 194, 0.1) !important;
        border-color: rgba(255, 183, 194, 0.2) !important;
    }
    [data-theme="dark"] .keep-blue .w-2 {
        background-color: #FFB7C2 !important;
    }

    /* Experience section above parallax dots (PC only) */
    #experience {
        z-index: 10 !important;
    }

    /* Interests icons larger on PC */
    #about [data-aos-delay="300"] .w-8.h-8 {
        width: 3rem !important;
        height: 3rem !important;
    }
    #about [data-aos-delay="300"] .w-8.h-8 i {
        font-size: 1.25rem !important;
    }
}