/* Custom styles that extend Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg-dark: #1a1a2e;
    --bg-light: #f8fafc;
    --text-dark: #e2e8f0;
    --text-light: #1e293b;
    --card-bg-dark: rgba(26, 32, 44, 0.7);
    --card-bg-light: rgba(255, 255, 255, 0.9);
}

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

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

body.light-mode .bg-white {
    background: var(--card-bg-light) !important;
    color: var(--text-light) !important;
}

body.light-mode .text-gray-800 {
    color: var(--text-light) !important;
}

body.light-mode .text-gray-600 {
    color: #64748b !important;
}

/* Particles container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animation for stats cards */
.stats-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}
/* Project card hover effect */
.project-card {
    transition: all 0.3s ease;
    background: rgba(26, 32, 44, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Stats cards */
.bg-white {
    background: rgba(26, 32, 44, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

.text-gray-800 {
    color: #e2e8f0 !important;
}

.text-gray-600 {
    color: #a0aec0 !important;
}

.border-gray-100 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
/* Game elements in background */
.game-elements-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.game-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Custom underline for section headings */
.section-heading {
    position: relative;
    display: inline-block;
}
.section-heading:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 2px;
}

/* Glowing button effect */
.bg-indigo-600 {
    position: relative;
    overflow: hidden;
}

.bg-indigo-600::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(99, 102, 241, 0),
        rgba(168, 85, 247, 0.3),
        rgba(99, 102, 241, 0)
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(30deg) translate(-30%, -30%); }
    100% { transform: rotate(30deg) translate(30%, 30%); }
}
