/* ========================================
   TAGGRO THEME - Professional Gruvbox
   ======================================== */

/* Gruvbox Color Palette */
:root {
    /* Dark backgrounds */
    --gb-bg0-h: #1d2021;
    --gb-bg0: #282828;
    --gb-bg0-s: #32302f;
    --gb-bg1: #3c3836;
    --gb-bg2: #504945;
    --gb-bg3: #665c54;
    --gb-bg4: #7c6f64;

    /* Light foreground */
    --gb-fg0: #fbf1c7;
    --gb-fg1: #ebdbb2;
    --gb-fg2: #d5c4a1;
    --gb-fg3: #bdae93;
    --gb-fg4: #a89984;

    /* Gray */
    --gb-gray: #928374;

    /* Accent colors */
    --gb-red: #cc241d;
    --gb-red-bright: #fb4934;
    --gb-green: #98971a;
    --gb-green-bright: #b8bb26;
    --gb-yellow: #d79921;
    --gb-yellow-bright: #fabd2f;
    --gb-blue: #458588;
    --gb-blue-bright: #83a598;
    --gb-purple: #b16286;
    --gb-purple-bright: #d3869b;
    --gb-aqua: #689d6a;
    --gb-aqua-bright: #8ec07c;
    --gb-orange: #d65d0e;
    --gb-orange-bright: #fe8019;

    /* Shadows - subtle and professional */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--gb-bg0-h);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gb-bg0-h);
}

::-webkit-scrollbar-thumb {
    background: var(--gb-bg2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gb-bg3);
}

/* Selection */
::selection {
    background-color: var(--gb-orange);
    color: white;
}

::-moz-selection {
    background-color: var(--gb-orange);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--gb-orange);
    color: white;
}

.btn-primary:hover {
    background-color: var(--gb-orange-bright);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--gb-bg1);
    color: var(--gb-fg0);
}

.btn-secondary:hover {
    background-color: var(--gb-bg2);
}

.btn-outline {
    background-color: transparent;
    color: var(--gb-orange);
    border: 2px solid var(--gb-orange);
}

.btn-outline:hover {
    background-color: var(--gb-orange);
    color: white;
}

/* Tagg Software Button */
.tagg_software-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(40, 40, 40, 0.1);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.tagg_software-btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.tagg_software-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--gb-orange);
    box-shadow: var(--shadow-md);
}

.card-dark {
    background: var(--gb-bg1);
    border: 1px solid var(--gb-bg2);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gb-bg0-h);
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

/* Select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%23665c54'%3E%3Cpath d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
    cursor: pointer;
}

select:hover {
    border-color: var(--gb-orange);
}

select option {
    padding: 0.5rem;
    background-color: white;
    color: var(--gb-bg0-h);
}

select option:hover,
select option:checked {
    background-color: var(--gb-orange);
    color: white;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gb-orange);
    box-shadow: 0 0 0 3px rgba(214, 93, 14, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Links */
a {
    color: var(--gb-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gb-orange-bright);
}

/* Hero Section Styles */
.hero-gradient {
    background: linear-gradient(180deg, var(--gb-bg0) 0%, var(--gb-bg0-s) 100%);
}

/* Dark Section Styles */
.dark-section {
    background-color: var(--gb-bg0);
    color: var(--gb-fg0);
}

/* CTA Gradient */
.cta-gradient {
    background: linear-gradient(135deg, var(--gb-bg0) 0%, var(--gb-bg0-s) 100%);
}

/* Stats Banner */
.stats-banner {
    background-color: var(--gb-bg0-h);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.badge-orange {
    background-color: var(--gb-orange);
    color: white;
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--gb-orange);
    color: var(--gb-orange);
}

/* Utilities */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--gb-orange) 0%, var(--gb-orange-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--gb-orange);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Code Blocks */
code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    background-color: var(--gb-bg1);
    color: var(--gb-fg0);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
    background-color: var(--gb-bg1);
    border-radius: 0.5rem;
    line-height: 1.6;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    color: var(--gb-bg0-h);
}

/* Borders */
.border-gb {
    border-color: var(--gb-bg2);
}

.border-gb-light {
    border-color: #e5e7eb;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Disabled States */
:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
