/* CSS Variables for Theming */
:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --hover-bg: rgba(255, 255, 255, 0.05);
}

html.dark {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --hover-bg: rgba(255, 255, 255, 0.05);
}

html:not(.dark) {
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.7);
    --hover-bg: rgba(0, 0, 0, 0.02);
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

html:not(.dark) .glass-card {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #06b6d4, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0891b2, #7c3aed);
}

/* Smooth transitions for theme switching */
body, .glass-card, .bg-dark, .bg-darker {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Selection Color */
::selection {
    background: #06b6d4;
    color: #ffffff;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(to right, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* Card Hover Effects */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Neon Border Animation */
@keyframes borderGlow {
    0%, 100% { border-color: rgba(6, 182, 212, 0.3); }
    50% { border-color: rgba(6, 182, 212, 0.8); }
}

.neon-border {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

/* Light mode specific adjustments */
html:not(.dark) body {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

html:not(.dark) .text-slate-400 {
    color: #64748b;
}

html:not(.dark) .text-slate-300 {
    color: #475569;
}

html:not(.dark) .text-slate-100 {
    color: #1e293b;
}

html:not(.dark) .bg-slate-800\/50 {
    background-color: rgba(241, 245, 249, 0.8);
}

html:not(.dark) .border-slate-700 {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    #theme-toggle, #back-to-top {
        display: none;
    }
}

/* Page load animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth parallax effect */
.parallax {
    will-change: transform;
    transform: translateZ(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #06b6d4, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0891b2, #7c3aed);
}

/* Reveal Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

/* Skill Bar Animation */
.skill-bar {
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-bar.animate {
    width: var(--target-width);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #06b6d4;
    color: #020617;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(to right, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Timeline Animation */
@keyframes lineGrow {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}
/* Mobile Menu Animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

/* Ensure navbar links are visible and well-spaced */
custom-navbar {
    display: block;
    width: 100%;
}

/* Improved visibility for navigation */
.nav-link {
    position: relative;
    display: inline-block;
}
/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* Card Hover Lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Neon Border Animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(6, 182, 212, 0.3);
    }
    50% {
        border-color: rgba(6, 182, 212, 0.8);
    }
}

.neon-border {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .glass-card {
        background: white;
        border: 1px solid #ccc;
    }
    
    body {
        background: white;
        color: black;
    }
}