/* 
 * Pretadev Premium Theme - Bootstrap 5 Refactor
 * Dark Mode + Glassmorphism + Tech Aesthetic
 */

:root {
    --bs-body-bg: #050505;
    --bs-body-color: #f8f9fa;
    --primary-color: #10b981;
    /* Emerald Green */
    --secondary-color: #0f766e;
    /* Teal */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fonts */
body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Outfit', sans-serif;
}

.font-monospace {
    font-family: 'Fira Code', monospace !important;
}

/* Background Gradients */
.bg-gradient-dark {
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #34d399 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid Pattern */
.bg-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Blur Utilities */
.blur-xl {
    filter: blur(80px);
}

.blur-2xl {
    filter: blur(120px);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Glass Components */
.glass-nav {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
}

/* --- Scroll Animations --- */
.scroller {
    max-width: 100%;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1.5rem));
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #0f766e 100%);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Terminal Card */
.terminal-window {
    background: rgba(10, 10, 10, 0.9);
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* 3D Tilt placeholder class (handled by JS) */
.tilt-card {
    transform-style: preserve-3d;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

.hover-white:hover {
    color: #fff !important;
}

/* Utilities */
.py-10 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.ls-wider {
    letter-spacing: 0.1em;
}