/* ithub Design System - Professional & Sophisticated */

:root {
    /* Brand Colors - Based on ithub strategy */
    --background: 0 0% 97%; /* #F7F9FB - Off-white */
    --foreground: 215 25% 17%; /* #2B3442 - Charcoal */

    --card: 0 0% 100%;
    --card-foreground: 215 25% 17%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 17%;

    --primary: 215 25% 17%; /* #2B3442 - Charcoal */
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 97%; /* #F7F9FB - Off-white */
    --secondary-foreground: 215 25% 17%;

    --muted: 220 13% 91%;
    --muted-foreground: 215 16% 47%; /* #4A5568 - Body text */

    --accent: 211 100% 50%; /* #007BFF - Bright Blue */
    --accent-foreground: 0 0% 100%;

    --tech-green: 168 100% 39%; /* #00C49A - Alternative accent */
    --tech-green-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;

    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 211 100% 50%;

    --radius: 0.75rem;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)), hsl(215 25% 12%));
    --gradient-accent: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--tech-green)));
    --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(220 13% 95%));

    /* Shadows */
    --shadow-soft: 0 4px 20px -2px hsl(var(--primary) / 0.1);
    --shadow-medium: 0 10px 40px -10px hsl(var(--primary) / 0.2);
    --shadow-strong: 0 20px 60px -10px hsl(var(--primary) / 0.3);

    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Color Utilities */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-tech-green { background-color: hsl(var(--tech-green)); }
.bg-gradient-subtle { background: var(--gradient-subtle); }
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-gradient-accent { background: var(--gradient-accent); }

.text-foreground { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.text-tech-green { color: hsl(var(--tech-green)); }

.border-border { border-color: hsl(var(--border)); }

/* Professional Button Variants */
.btn-hero {
    background: var(--gradient-accent);
    color: white;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    box-shadow: var(--shadow-medium);
    transform: scale(1.05);
}

.btn-outline-hero {
    border: 2px solid hsl(var(--accent));
    color: hsl(var(--accent));
    background: transparent;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-outline-hero:hover {
    background: hsl(var(--accent));
    color: white;
}

.btn-primary-elegant {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary-elegant:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: var(--shadow-medium);
}

/* Section Layouts */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 0 2rem;
    }
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Professional Cards */
.card-elegant {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.card-elegant:hover {
    box-shadow: var(--shadow-medium);
}

.card-feature {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.card-feature:hover {
    box-shadow: var(--shadow-medium);
    border-color: hsl(var(--accent) / 0.3);
}

/* Typography Utilities */
.text-hero {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .text-hero {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .text-hero {
        font-size: 3.75rem;
    }
}

.text-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .text-section-title {
        font-size: 2.25rem;
    }
}

.text-subsection {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .text-subsection {
        font-size: 1.5rem;
    }
}

.text-body-large {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Gradient Text */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Interactive Elements */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    box-shadow: var(--shadow-strong);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Responsive Utilities */
.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:text-5xl {
        font-size: 3rem;
    }
}

/* Spacing Utilities */
.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

/* Sizing Utilities */
.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-12 {
    width: 3rem;
}

.w-auto {
    width: auto;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-24 {
    height: 6rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Text Utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-heading {
    font-family: 'Poppins', sans-serif;
}

.font-heading-it {
    font-family: 'Arial black', sans-serif;
}

.font-heading-hub {
    font-family: 'Arial', sans-serif;
}

.font-color-hub {
    color: red;
}


.font-body {
    font-family: 'Inter', sans-serif;
}

/* Position Utilities */
.relative {
    position: relative;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

/* Border Utilities */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.rounded-lg {
    border-radius: var(--radius);
}

.rounded-full {
    border-radius: 9999px;
}

/* Opacity Utilities */
.opacity-60 {
    opacity: 0.6;
}

.grayscale {
    filter: grayscale(100%);
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* Transition Utilities */
.transition-colors {
    transition: color var(--transition-quick);
}

.transition-all {
    transition: all var(--transition-smooth);
}

/* Backdrop Utilities */
.backdrop-blur {
    backdrop-filter: blur(8px);
}

.bg-background\/95 {
    background-color: hsl(var(--background) / 0.95);
}

.bg-background\/60 {
    background-color: hsl(var(--background) / 0.6);
}

.bg-muted\/30 {
    background-color: hsl(var(--muted) / 0.3);
}

.bg-accent\/10 {
    background-color: hsl(var(--accent) / 0.1);
}

.bg-tech-green\/10 {
    background-color: hsl(var(--tech-green) / 0.1);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
    z-index: 40;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-quick);
}

.mobile-menu a:hover {
    color: hsl(var(--foreground));
}

@supports (backdrop-filter: blur(8px)) {
    .supports-backdrop-blur {
        background-color: hsl(var(--background) / 0.6);
    }
}