/* 
 * TechLand Templates - Main Stylesheet
 * Theme: Tech, Dark Mode, Neon, Glassmorphism
 */

:root {
    --bg-dark: #0a0a12;
    --bg-card: rgba(20, 20, 35, 0.7);
    --primary: #00f3ff;
    --secondary: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #8b8b9e;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(189, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 40%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* Header */
header {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

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

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

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.search-bar form {
    position: relative;
}

.search-bar input {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards (Glassmorphism) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.template-card {
    position: relative;
    overflow: hidden;
}

.template-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.template-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.template-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Filter Sidebar */
.filter-section {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    color: var(--text-muted);
}

.filter-group input {
    margin-right: 10px;
}

/* Footer */
footer {
    background: #050508;
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-muted);
}

/* Search Modal */
.desktop-search-trigger {
    color: #fff;
    transition: var(--transition);
}

.desktop-search-trigger:hover {
    color: var(--primary);
}

.search-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.search-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.search-modal input {
    width: 100%;
    padding: 20px;
    font-size: 2rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary);
    color: #fff;
    outline: none;
    text-align: center;
}

.search-modal button {
    display: none;
    /* Hide submit button, enter key works */
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-search:hover {
    color: var(--primary);
}
.introtit{
    grid-template-columns: 1fr 1fr;
}
/* Animations */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary);
    }

    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 10px var(--secondary);
    }

    100% {
        box-shadow: 0 0 5px var(--primary);
    }
}

/* Mobile Visibility */
.mobile-only {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        height: 80px;
        padding: 0 20px;
        position: relative;
    }

    .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Hamburger */
    .hamburger {
        display: block;
        cursor: pointer;
        color: #fff;
        font-size: 1.5rem;
    }

    /* List Page Sidebar */
    .container>div {
        flex-direction: column;
    }

    aside {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .search-bar,
    .auth-buttons,
    .desktop-search-trigger {
        display: none;
    }

    .mobile-only {
        display: block;
    }
    .hero h1{
        font-size:2rem;
    }
    .introtit{
        grid-template-columns: none;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}