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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Navbar Shadow */
nav {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Smooth Transitions */
button, a {
    transition: all 0.3s ease;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Image Hover Effects */
img {
    transition: transform 0.4s ease;
}

/* Loading State */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Gradient Backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.15;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Selection Color */
::selection {
    background-color: #3b82f6;
    color: white;
}

::-moz-selection {
    background-color: #3b82f6;
    color: white;
}

/* Button Active States */
button:active {
    transform: scale(0.98);
}

/* Card Shadow Variations */
.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Mobile Optimization */
@media (max-width: 640px) {
    /* Optimize touch targets */
    button, a {
        min-height: 44px;
    }
    
    /* Prevent text overflow */
    p, span, div {
        word-wrap: break-word;
    }
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
}
