/* ==========================================
   The Nerd Herd - Main Stylesheet
   Dark Theme with Red Accents
   ========================================== */

/* CSS Variables */
:root {
    --background: 0 0% 7%;
    --foreground: 0 0% 95%;
    --card: 0 0% 11%;
    --card-foreground: 0 0% 95%;
    --popover: 0 0% 11%;
    --popover-foreground: 0 0% 95%;
    --primary: 0 85% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 15%;
    --secondary-foreground: 0 0% 90%;
    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 55%;
    --accent: 0 85% 50%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 18%;
    --input: 0 0% 18%;
    --ring: 0 85% 50%;
    --radius: 0.5rem;
    --hero-gradient: linear-gradient(135deg, hsl(0 0% 5%) 0%, hsl(0 0% 10%) 40%, hsl(0 50% 12%) 100%);
    --card-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.3);
    --card-shadow-hover: 0 10px 30px -5px hsl(0 85% 50% / 0.2), 0 4px 6px -2px hsl(0 0% 0% / 0.3);
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.btn-primary:hover {
    background-color: hsl(0 85% 45%);
    border-color: hsl(0 85% 45%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px hsl(0 85% 50% / 0.3);
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.btn-outline:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
    padding: 0.25rem 1rem;
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: 100px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.section-description {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: hsl(var(--background) / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    height: var(--header-height);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    color: hsl(var(--foreground));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--foreground));
    background-color: hsl(var(--secondary));
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: hsl(var(--foreground));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient);
    padding-top: var(--header-height);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: hsl(0 85% 50%);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: hsl(0 50% 30%);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: hsl(0 85% 50%);
    bottom: 20%;
    right: 20%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.25rem;
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: 100px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.2rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background-color: hsl(var(--background));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: hsl(var(--primary) / 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    color: hsl(var(--primary));
}

.service-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.service-description {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* ==========================================
   SHOP SECTION
   ========================================== */
.shop {
    background-color: hsl(var(--secondary));
    text-align: center;
}

.shop-cta {
    margin-top: 2rem;
}

/* ==========================================
   LOCATION SECTION
   ========================================== */
.location {
    background-color: hsl(var(--background));
}

.location-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.location-icon {
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location-info p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background-color: hsl(var(--secondary));
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: hsl(var(--primary) / 0.3);
}

.contact-icon {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.contact-card p,
.contact-card a {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: hsl(var(--primary));
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: hsl(0 0% 5%);
    border-top: 1px solid hsl(var(--border));
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: hsl(var(--primary));
}

.footer-copyright p {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: hsl(var(--card));
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 100;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    /* Hero */
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
