/* 
 * Blah Digital - Premium Agency CSS
 * Modern, sophisticated, and tech-driven aesthetic.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-bg: #0F172A;
    --secondary-bg: #1E293B;
    --accent-color: #6366F1; /* Electric Indigo */
    --accent-light: #818CF8;
    --accent-cyan: #22D3EE;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan-gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navbar Upgrade --- */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent-cyan) !important;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent);
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--accent-light);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin: 1.5rem 0;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
}

/* --- Buttons --- */
.btn-premium {
    background: linear-gradient(135deg, var(--accent-color), #4F46E5);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-outline-premium {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-light);
    color: var(--text-primary);
}

/* --- Service Cards --- */
.service-card {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 1);
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.service-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 2rem;
}

/* --- Portfolio --- */
.portfolio-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.portfolio-tab-btn.active {
    background: var(--accent-color);
    color: white;
}

.portfolio-card-premium {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    aspect-ratio: 16/10;
}

.portfolio-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card-premium:hover .portfolio-content {
    opacity: 1;
}

.portfolio-card-premium:hover img {
    transform: scale(1.1);
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
}

/* --- Pricing --- */
.pricing-card {
    background: var(--secondary-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
    transform: scale(1.05);
}

.featured-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
}


/* --- Animations & Effects --- */
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-illustration {
    width: 110%;
    max-width: 650px;
    height: auto;
    animation: floating 6s ease-in-out infinite;
    filter: drop-shadow(0 25px 50px rgba(99, 102, 241, 0.4));
    z-index: 2;
    position: relative;
    user-select: none;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* --- Forms & Inputs --- */
.form-control {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.form-control:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--accent-light) !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25) !important;
    transform: translateY(-2px);
}

/* Fix for Floating Labels in Dark Theme */
.form-floating > .form-control::placeholder {
    color: transparent !important;
}

.form-floating > label,
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    background: transparent !important;
    backdrop-filter: none !important;
}

.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background: transparent !important;
    content: none !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent-cyan) !important;
    transform: scale(0.8) translateY(-1.2rem) translateX(0.15rem) !important;
    opacity: 1 !important;
}

.form-floating > label {
    color: var(--text-secondary) !important;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.form-floating > label i {
    font-size: 0.9rem;
    color: var(--accent-light);
}

.form-floating > .form-control {
    padding-top: 2rem;
    padding-bottom: 0.6rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .pricing-card.featured {
        transform: scale(1);
        margin-bottom: 2rem;
    }
    .hero-illustration {
        width: 100%;
        margin-top: 3rem;
    }
}
