/* assets/css/style.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.client-logo-placeholder:hover {
    filter: grayscale(0%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero-bg {
    background: radial-gradient(circle at center, #003366 0%, #000428 100%);
    background-size: cover;
    background-clip: border-box;
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    /* Full Height */
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 60%);
    animation: pulse-glow 10s infinite alternate;
}

.hero-bg .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Typography & Animation */
.typing-container {
    display: inline-block;
}

.typing-effect {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0;
    animation: typing 3.5s steps(12, end), blink-caret .75s step-end infinite;
    display: inline-block;
    vertical-align: bottom;
    color: white;
    width: 0;
    /* Start at 0 */
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 12ch;
        /* Approximate width of "We Develop." */
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: orange;
    }
}

.text-gradient-animate {
    background: linear-gradient(90deg, #00d4ff, #ffffff, #007bff);
    background-size: 200% auto;
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 3s linear infinite;
    /* Stronger glowing effect combination */
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
    display: block;
    margin-top: 10px;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.hero-bg p {
    color: #e0e0e0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Global Link Reset */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none !important;
    /* Force no underline globally */
    font-family: var(--font-heading);
    /* Use Inter for buttons */
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background-color: #0056b3;
    text-decoration: none !important;
}

/* Modern Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Increased gap */
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    text-decoration: none !important;
}

.hero-buttons .btn:hover,
.hero-buttons .btn:focus,
.hero-buttons .btn:active,
.hero-buttons .btn:visited {
    text-decoration: none !important;
    color: white !important;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    border: none;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
    /* Stronger initial glow */
    position: relative;
    overflow: hidden;
}

/* Enhanced Shine Effect */
.hero-buttons .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    animation: sheen 3s infinite;
}

@keyframes sheen {
    0% {
        transform: rotate(45deg) translate(-100%, -100%);
    }

    20% {
        transform: rotate(45deg) translate(100%, 100%);
    }

    /* Quick swipe */
    100% {
        transform: rotate(45deg) translate(100%, 100%);
    }

    /* Wait */
}

.hero-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.hero-buttons .btn-primary:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* Standard Grid & Cards */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Testimonials Desktop */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Mobile Optimizations */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
        max-width: 100%;
        padding: 0 10px;
    }

    /* Better Touch Targets */
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .card:hover {
        transform: none;
    }

    .hero-bg {
        padding: 100px 0 60px;
        min-height: auto;
        /* Auto height on mobile */
    }

    .hero-bg h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .hero-bg p {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .sticky-buy-bar {
        display: block;
    }

    .bottom-nav.visible {
        display: flex;
    }

    body.has-bottom-nav {
        padding-bottom: 70px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .testimonials-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .testimonials-slider::-webkit-scrollbar {
        display: none;
    }

    .testimonials-slider .card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-right: 0;
    }
}

/* Nav & Sticky Bar */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    z-index: 9999;
    padding: 10px 0;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
    color: #aaa;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

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

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.sticky-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    padding: 15px;
    border-top: 1px solid #333;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}


/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    background-color: #333;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #aaa;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Desktop Layouts (moved from inline) */
.product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.cart-layout {
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #222 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);

    /* --- MOBILE RESPONSIVENESS --- */
    @media (max-width: 768px) {

        /* Grids become single column */
        .grid,
        .grid-cols-2,
        .grid-cols-3,
        .grid-cols-4,
        .product-layout,
        .cart-layout {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 20px !important;
        }

        /* Modify specific layouts */
        .container {
            padding: 0 20px !important;
        }

        /* Cart Page items */
        /* Ensure card content layout */
        .card[style*="display: flex"] {
            flex-direction: row;
            /* Keep row if possible */
            flex-wrap: wrap;
            /* Allow wrap */
            align-items: flex-start !important;
        }

        /* Constrain Image Size on Mobile */
        .card[style*="display: flex"] img {
            width: 80px !important;
            height: 80px !important;
            flex-shrink: 0;
            margin-right: 15px;
            /* Gap between image and text */
            margin-bottom: 0;
        }

        /* Help text container */
        .card[style*="display: flex"]>div {
            flex: 1;
            min-width: 150px;
            /* Force wrap if too small */
        }

        /* "Proceed to Checkout" Button */
        .btn {
            padding: 10px 20px !important;
            /* Smaller padding */
            font-size: 1rem !important;
            white-space: normal;
            /* Allow text wrap if needed */
        }

        /* Admin Sidebar */
        .admin-layout {
            flex-direction: column;
        }

        .sidebar {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid #333;
            padding: 10px;
        }

        .main-content {
            padding: 20px;
        }
    }/* ADMIN PANEL STYLES (Desktop Base) */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #1a1a1a;
    padding: 20px;
    border-right: 1px solid #333;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    padding: 40px;
    color: #ddd;
}

.nav-link {
    display: block;
    padding: 12px;
    color: #ddd;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-layout .card {
    background-color: #222;
    border: 1px solid #333;
}