/* --- APP-LIKE IT SERVICES THEME --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-main: #0b0e14;
    --bg-card: #151a23;
    --primary: #3b82f6;
    /* Tech Blue */
    --accent: #10b981;
    /* Success Green */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    /* Subtle border */
    --glass: rgba(21, 26, 35, 0.85);
    --glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --nav-height: 70px;
    --bottom-nav-height: 65px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
    /* Space for bottom nav on mobile */
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* --- HEADER (Desktop) --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary);
}

.nav-links-desktop {
    display: flex;
    gap: 30px;
}

.nav-links-desktop a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links-desktop a:hover,
.nav-links-desktop a.active {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
    background: radial-gradient(circle at 50% 20%, #1c2533 0%, var(--bg-main) 60%);
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: inline-block;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

/* --- SKILLS GRID (App Style) --- */
.skills-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 5%;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.skills-scroll::-webkit-scrollbar {
    display: none;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-card i {
    color: var(--primary);
    font-size: 18px;
}

.skill-card span {
    font-weight: 600;
    font-size: 14px;
}

/* --- SECTIONS --- */
.section {
    padding: 60px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 5px;
}

/* --- PROJECT CARDS (Premium) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-card {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-add {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.btn-add:hover {
    background: var(--primary);
    color: #fff;
}

.btn-view {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-view:hover {
    color: #fff;
    border-color: #fff;
}

/* --- CART DRAWER (Bottom Sheet Style on Mobile) --- */
.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background: #1a1f29;
    z-index: 2000;
    padding: 25px;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.cart-title {
    font-size: 18px;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
}

.cart-item img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.item-info {
    flex-grow: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.item-cat {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.remove-btn {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
}

/* --- BOTTOM NAV (Mobile Only) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
    width: 60px;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-fab {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    transform: translateY(-15px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    border: 4px solid var(--bg-main);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links-desktop {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    .hero {
        padding-top: 80px;
        text-align: left;
        align-items: flex-start;
        min-height: auto;
    }

    .hero h1 {
        font-size: 42px;
    }

    .cta-group {
        justify-content: flex-start;
        width: 100%;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-panel {
        width: 100%;
        border-radius: 20px 20px 0 0;
        top: auto;
        bottom: 0;
        height: 85vh;
        transform: translateY(100%);
        right: 0;
        transition: transform 0.3s;
    }

    .cart-panel.open {
        transform: translateY(0);
    }
}