/* ==================== */
/* CSS Variables - Dark Theme */
/* ==================== */

:root {
  --color-dark-bg: #0a0a0a;
  --color-dark-surface: #1a1a1a;
  --color-dark-border: #2a2a2a;
  --color-cyan-accent: #00D9FF;
  --color-cyan-hover: #00C9EF;
  --color-blue-accent: #3b82f6;
  --color-text-primary: #f9fafb;
  --color-text-secondary: #d1d5db;
  --color-text-muted: #9ca3af;
}

/* ==================== */
/* Animations */
/* ==================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==================== */
/* Utility Classes */
/* ==================== */

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up.delay-100 {
    animation-delay: 100ms;
}

.fade-in-up.delay-200 {
    animation-delay: 200ms;
}

.fade-in-up.delay-300 {
    animation-delay: 300ms;
}

.fade-in-up.delay-400 {
    animation-delay: 400ms;
}

/* Skill Cards */
.skill-card {
    @apply p-6 bg-dark-surface border border-dark-border rounded-xl hover:border-cyan-accent/50 hover:shadow-lg transition transform hover:scale-105 hover:-translate-y-2 duration-300 cursor-pointer text-center;
}

.skill-card > p:first-of-type {
    @apply text-white;
}

.skill-card > p:last-of-type {
    @apply text-gray-400;
}

.skill-badge {
    @apply w-16 h-16 bg-gradient-to-br from-cyan-accent/20 to-blue-500/20 rounded-lg flex items-center justify-center mx-auto mb-4;
}

/* Project Cards */
.project-card {
    @apply transition transform hover:scale-105 hover:shadow-2xl duration-300;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.project-card.delay-100 {
    animation-delay: 100ms;
}

.project-card.delay-200 {
    animation-delay: 200ms;
}

/* Experience Items */
.experience-item {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.experience-item.delay-100 {
    animation-delay: 100ms;
}

.experience-item.delay-200 {
    animation-delay: 200ms;
}

/* ==================== */
/* Scroll Animations */
/* ==================== */

/* Elements that will be animated on scroll */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== */
/* Hover Effects */
/* ==================== */

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

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Link Hover */
.link-hover {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: left 0.3s ease;
}

.link-hover:hover::after {
    left: 0;
}

/* ==================== */
/* Navigation Styles */
/* ==================== */

/* Active Navigation Link */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--color-cyan-accent);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-cyan-accent), var(--color-blue-accent));
    border-radius: 2px;
}

/* ==================== */
/* Section Styles */
/* ==================== */

/* Section Headings */
section h2 {
    @apply text-4xl font-bold text-gray-900 mb-12;
}

section h3 {
    @apply text-2xl font-semibold text-gray-800 mb-6;
}

/* ==================== */
/* Card Styles */
/* ==================== */

.card {
    @apply bg-white rounded-xl shadow-lg hover:shadow-2xl transition duration-300;
}

.card-hover {
    @apply transition transform hover:scale-105 hover:shadow-2xl duration-300;
}

/* ==================== */
/* Gradient Backgrounds */
/* ==================== */

.gradient-text {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent;
}

.gradient-bg {
    @apply bg-gradient-to-br from-blue-500 to-purple-600;
}

/* ==================== */
/* Text Styles */
/* ==================== */

/* Large Text */
.text-display {
    @apply text-5xl sm:text-6xl font-bold text-gray-900;
}

/* Subtitle */
.text-subtitle {
    @apply text-lg text-gray-600 leading-relaxed;
}

/* Badge */
.badge {
    @apply px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium;
}

.badge.purple {
    @apply bg-purple-100 text-purple-800;
}

.badge.green {
    @apply bg-green-100 text-green-800;
}

/* ==================== */
/* Responsive Fixes */
/* ==================== */

@media (max-width: 768px) {
    section h2 {
        @apply text-3xl;
    }

    section h3 {
        @apply text-xl;
    }

    .text-display {
        @apply text-3xl sm:text-4xl;
    }
}

/* ==================== */
/* Smooth Scroll */
/* ==================== */

html {
    scroll-behavior: smooth;
}

/* ==================== */
/* Accessibility */
/* ==================== */

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    @apply outline-2 outline-blue-600 outline-offset-2;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== */
/* Premium Card Shadows */
/* ==================== */

.premium-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 10px 24px rgba(0, 0, 0, 0.12);
}

.premium-shadow:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 10px 24px rgba(0, 0, 0, 0.15),
                0 20px 48px rgba(0, 0, 0, 0.18);
}

/* ==================== */
/* Custom Scrollbar */
/* ==================== */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-dark-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan-accent);
}

/* ==================== */
/* Loading Animation */
/* ==================== */

.skeleton {
    @apply bg-gray-200 rounded;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* ==================== */
/* Print Styles */
/* ==================== */

@media print {
    nav,
    footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ==================== */
/* Dark Mode Support (Future) */
/* ==================== */

@media (prefers-color-scheme: dark) {
    /* Placeholder for future dark mode implementation */
}
