@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    overflow-x: hidden;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-mobile-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -10px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.glass-card-green:hover {
    box-shadow: 0 15px 35px -10px rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Accents */
.text-cyan-glow {
    color: #22d3ee;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.bg-cyan-glow {
    background-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transition: all 0.3s ease;
}

.bg-cyan-glow:hover {
    background-color: #0891b2;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.8);
}

.text-green-glow {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* positive translate for RTL */
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* Product Catalog Hover Reveal */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-image-container {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container {
    transform: scale(1.05);
}

.product-specs {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

.product-card:hover .product-specs {
    opacity: 1;
    transform: translateY(0);
}

/* Masonry for Projects */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}
@media (min-width: 768px) {
    .masonry-grid { column-count: 2; }
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Bottom Nav Spacing */
.pb-mobile-nav {
    padding-bottom: 80px; /* Space for bottom nav on mobile */
}
@media (min-width: 768px) {
    .pb-mobile-nav {
        padding-bottom: 0;
    }
}
