/* Font Families */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Cookie Popup Styles */
.cookie-popup {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 1px solid #e5e7eb;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 2px solid #111827;
}

.btn-primary:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    font-size: 15px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.btn-primary-lg:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary-sm {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary-sm:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-circle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

/* Card Styles */
.card-interactive {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card Flip Animation */
.card-flip {
    perspective: 1000px;
    cursor: pointer;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip.flipped .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    border-radius: 1.5rem;
}

/* Form Error States */
input.border-red-500,
textarea.border-red-500 {
    border-color: #ef4444 !important;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

a,
button {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

/* Gradient Text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backdrop Blur Support */
.backdrop-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Selection */
::selection {
    background: #3b82f6;
    color: #ffffff;
}

::-moz-selection {
    background: #3b82f6;
    color: #ffffff;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Loading State */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Responsive Text */
@media (max-width: 640px) {
    .font-serif {
        font-size: 0.95em;
    }
}

/* Smooth Page Transitions */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .cookie-popup,
    header,
    footer {
        display: none;
    }
}

/* Dark Mode Text Contrast */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Interactive Elements */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Card Shadow Variants */
.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.shadow-glow-purple {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.shadow-glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* Utility Classes */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}
