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

:root {
    /* gator group primary color of the theme */
    --primary-color: #3d9e60; /* Dark Green */
    /* gator group secondary color for gradients and highlights */
    --secondary-color: #2d887a; /* Teal Green */
    /* gator group accent color for subtle highlights and details */
    --accent-color: #8ce34e; /* Bright Green */
    /* gator group darkest background color */
    --background-dark: #0f1f1e; /* Very Dark Green-Gray */
    /* gator group medium background color */
    --background-medium: #1a2b29; /* Dark Green-Gray */
    /* gator group light background color */
    --background-light: #223b39; /* Slightly Lighter Green-Gray */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    /* gator group default border color for containers and separators */
    --border-color: #3c554e; /* Changed to green for general borders */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* gator group RGB components of the primary color for alpha blending */
    --primary-color-rgb: 61, 158, 96; /* Matches #3d9e60 */
    /* gator group RGB components of the secondary color for alpha blending */
    --secondary-color-rgb: 45, 136, 122; /* Matches #2d887a */
    /* gator group RGB components of the accent color for alpha blending */
    --accent-color-rgb: 140, 227, 78; /* Matches #8ce34e */
    
    /* gator group subtle highlight/glow color based on primary color */
    --highlight-color-rgba: rgba(var(--primary-color-rgb), 0.1);
    /* gator group medium highlight/glow color based on primary color */
    --highlight-color-strong-rgba: rgba(var(--primary-color-rgb), 0.15);
    /* gator group prominent highlight/glow color based on primary color */
    --highlight-color-subtle-rgba: rgba(var(--primary-color-rgb), 0.2);
    /* gator group dark highlight/glow color based on primary color */
    --highlight-color-dark-rgba: rgba(var(--primary-color-rgb), 0.3);

    /* gator group opacity for the primary radial gradient in hero background */
    --hero-gradient-opacity-primary: 0.3;
    /* gator group opacity for the secondary radial gradient in hero background */
    --hero-gradient-opacity-secondary: 0.3;
    /* gator group opacity for the accent radial gradient in hero background */
    --hero-gradient-opacity-accent: 0.2;
    
    /* gator group spacing and sizing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    /* gator group animation timings */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* gator group font family for the hero title */
    --hero-title-font: 'Jura', sans-serif;
    /* gator group font family for the hero description */
    --hero-description-font: 'Jura', sans-serif;
    /* gator group font family for general body text */
    --body-font: 'Kode Mono', monospace;
    /* gator group font family for paragraph text */
    --paragraph-font: 'Kode Mono', monospace;

    /* gator group Controls the vertical floating animation amplitude of the hero background. Set to 0px for no vertical movement. */
    --hero-background-float-amplitude: 0px;
    /* gator group Controls the rotation animation amplitude of the hero background in degrees. Set to 0deg for no rotation. */
    --hero-background-rotate-amplitude: 0deg;
    /* gator group Controls the duration of the hero background animation in seconds. */
    --hero-background-animation-duration: 6s;
    /* gator group Controls the timing function of the hero background animation (e.g., ease-in-out, linear). */
    --hero-background-animation-timing: ease-in-out;

    /* gator group Gap between social media badges in the hero section */
    --hero-badge-gap: var(--spacing-md);
    /* gator group Controls the minimum height of the hero section, determining how much of the viewport it covers. Set to 100vh for full screen height. */
    --hero-min-height: 100vh;
    /* gator group Controls the width of the hero section. Set to 100vw for full viewport width. */
    --hero-width: 100vw;
}

body {
    font-family: var(--body-font);
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* gator group hero full width settings */
    width: var(--hero-width);
    margin-left: calc(50% - var(--hero-width) / 2);
    margin-right: calc(50% - var(--hero-width) / 2);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* gator group opacity and position for primary radial gradient in hero background */
        radial-gradient(circle at 20% 50%, rgba(var(--primary-color-rgb), var(--hero-gradient-opacity-primary)) 0%, transparent 50%),
        /* gator group opacity and position for secondary radial gradient in hero background */
        radial-gradient(circle at 80% 20%, rgba(var(--secondary-color-rgb), var(--hero-gradient-opacity-secondary)) 0%, transparent 50%),
        /* gator group opacity and position for accent radial gradient in hero background */
        radial-gradient(circle at 40% 80%, rgba(var(--accent-color-rgb), var(--hero-gradient-opacity-accent)) 0%, transparent 50%);
    /* Use tweakable variables for animation properties */
    animation: float var(--hero-background-animation-duration) var(--hero-background-animation-timing) infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    /* Use tweakable amplitude variables for the 50% state */
    50% { transform: translateY(var(--hero-background-float-amplitude)) rotate(var(--hero-background-rotate-amplitude)); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-lg);
    /* gator group hero content centering */
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    font-family: var(--hero-title-font);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.hero-subtitle {
    display: block;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: var(--spacing-sm);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--hero-description-font);
}

/* gator group Gap between social media badges in the hero section */
--hero-badge-gap: var(--spacing-md);

.hero-actions {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center the badges */
    gap: var(--hero-badge-gap); /* Use the tweakable gap */
    margin-top: var(--spacing-lg); /* Space from description */
}

/* Adjust .hero-badge to be an anchor tag */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--highlight-color-rgba);
    border: 1px solid var(--highlight-color-dark-rgba);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
    text-decoration: none; /* Remove underline from anchor */
    color: var(--text-primary); /* Ensure text color is primary */
    white-space: nowrap; /* Prevent badge text from wrapping */
}

.hero-badge:hover {
    background: var(--highlight-color-subtle-rgba);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 1.1rem;
}

/* Navigation */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    /* gator group navigation bar background color */
    background: var(--background-dark); 
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    overflow-x: auto;
    /* gator group alignment of navigation items and search bar */
    justify-content: space-between; /* To push search to the right */
    align-items: center; /* Vertically align items */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--highlight-color-rgba);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--highlight-color-strong-rgba);
}

/* Search Bar Styles */
/* gator group search bar container margin for positioning */
.search-container {
    margin-left: auto; /* Pushes the search box to the right */
    /* gator group search bar container padding */
    padding: 0 var(--spacing-md); /* Add some padding if needed */
}

/* gator group search input field width */
.search-input {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    width: var(--search-input-width);
    max-width: 100%;
    transition: all var(--transition-medium);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

/* Main Content */
.main-content {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.section {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--section-heading-font); /* Apply Jura font */
}

.section-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Cards */
.content-card {
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

.content-card:hover {
    /* gator group content card border hover color */
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    font-family: var(--paragraph-font);
}

.content-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    font-family: var(--card-heading-font); /* Apply Jura font */
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-item {
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px var(--highlight-color-subtle-rgba);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    font-family: var(--card-heading-font); /* Apply Jura font */
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    font-family: var(--paragraph-font);
}

/* Code Examples */
.code-example {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: var(--spacing-md) 0;
    font-family: 'JetBrains Mono', monospace;
}

.code-example.small {
    font-size: 0.85rem;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.code-lang {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.85rem;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.code-example pre {
    padding: var(--spacing-md);
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Syntax Rules */
.syntax-rules {
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-lg);
}

.syntax-rules h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--card-heading-font); /* Apply Jura font */
}

.syntax-rules ul {
    list-style: none;
    padding: 0;
}

.syntax-rules li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-family: var(--paragraph-font);
}

.syntax-rules li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.syntax-rules code {
    background: var(--background-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
}

/* Example Grid */
.example-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .example-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .example-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Use Cases */
.use-case {
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.use-case h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    font-family: var(--card-heading-font); /* Apply Jura font (treating h4 like h3 here) */
}

/* Type Grid */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.type-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all var(--transition-medium);
}

.type-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--highlight-color-strong-rgba);
}

.type-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.type-icon {
    font-size: 1.5rem;
}

.type-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
    font-family: var(--card-heading-font); /* Apply Jura font */
}

.type-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    font-family: var(--paragraph-font);
}

.type-example {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-dark);
    padding: var(--spacing-sm);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.type-example code {
    color: var(--primary-color);
}

.control-type {
    color: var(--accent-color);
    font-weight: 500;
}

/* NEW: Color Chart Section Styles */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--color-item-gap);
    margin-top: var(--spacing-lg);
}

.color-item {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--color-item-border-radius);
    padding: var(--color-item-padding);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-medium);
}

.color-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--highlight-color-strong-rgba);
}

.color-circle {
    width: var(--color-circle-size);
    height: var(--color-circle-size);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}

.color-item:hover .color-circle {
    border-color: var(--primary-color);
}

.color-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-variable-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.color-value-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Best Practices */
.practices-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.practice-item {
    display: flex;
    gap: var(--spacing-md);
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.practice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.practice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.practice-icon.good {
    color: var(--success-color);
}

.practice-icon.warning {
    color: var(--warning-color);
}

.practice-icon.bad {
    color: var(--danger-color);
}

.practice-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    font-family: var(--card-heading-font); /* Apply Jura font */
}

.practice-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    font-family: var(--paragraph-font);
}

/* Tips Section */
.tips-section {
    /* gator group pro tips section background color */
    background: var(--background-dark);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    /* gator group pro tips section border color */
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium); /* Added for hover effects */
}

.tips-section:hover { /* Added hover effects */
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tips-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    font-family: var(--card-heading-font); /* Apply Jura font */
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    font-family: var(--paragraph-font);
}

.tips-list li:before {
    content: "💡";
    position: absolute;
    left: 0;
    top: var(--spacing-sm);
}

.tips-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--background-medium);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0;
    font-family: var(--paragraph-font);
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-md);
        /* Allow items to wrap on smaller screens */
        flex-wrap: wrap; 
        /* Align to start on wrap */
        justify-content: flex-start; 
    }
    
    .search-container {
        /* Remove auto margin on small screens */
        margin-left: 0; 
        /* Full width for search on small screens */
        width: 100%; 
        /* Adjust padding */
        padding: var(--spacing-xs) 0; 
    }

    .search-input {
        /* Make search input full width on small screens */
        width: 100%; 
    }
    
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .content-card {
        padding: var(--spacing-md);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .practice-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .type-grid {
        grid-template-columns: 1fr;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }

    .color-grid { /* Responsive for new color grid */
        grid-template-columns: 1fr;
    }
    .color-item {
        flex-direction: row; 
        align-items: center;
        padding: var(--spacing-md);
    }
}

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

/* Selection styles */
::selection {
    background: var(--highlight-color-dark-rgba);
    color: var(--text-primary);
}

/* Focus styles for accessibility */
.nav-link:focus,
.copy-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animation for code blocks */
.code-example {
    position: relative;
    overflow: hidden;
}

.code-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hover effects for interactive elements */
.content-card,
.feature-item,
.type-card,
.practice-item,
.color-item { /* Added .color-item */
    cursor: pointer;
}

/* Enhanced mobile touch targets */
@media (max-width: 768px) {
    .nav-link,
    .copy-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}