/* ==========================================================================
   GLOBAL STYLES - APIHUB
   ========================================================================== */

/*@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800;900&display=swap');*/

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/shared/fonts/space-grotesk-v22-latin-300.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/shared/fonts/space-grotesk-v22-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/shared/fonts/space-grotesk-v22-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/shared/fonts/space-grotesk-v22-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/shared/fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
}

/* lato-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('/shared/fonts/lato-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  src: url('/shared/fonts/lato-v24-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('/shared/fonts/lato-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: url('/shared/fonts/lato-v24-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('/shared/fonts/lato-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: url('/shared/fonts/lato-v24-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: url('/shared/fonts/lato-v24-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#profile-container {
    position: relative;
    display: inline-block;
}

#profile-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

#profile-dropdown.hidden {
    display: none;
}

#profile-dropdown a,
#profile-dropdown button {
    padding: 0.5rem 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
}

#profile-dropdown a:hover,
#profile-dropdown button:hover {
    background-color: var(--hover-bg);
}
#profile-dropdown button#logout-btn {
    font-family: 'Space Grotesk';
    font-size:var(--font-size-base) ;
    color: var(--color-danger, #e74c3c); /* red color for logout */
}

#profile-dropdown button#logout-btn:hover {
    background-color: rgba(231, 76, 60, 0.1); /* light red hover */
}

:root {
    /* Colors - Light Theme */
    --color-primary: #0070f3;
    --color-primary-hover: #0056b3;
    --color-secondary: #1e40af;
    --color-accent: #2563eb;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-modal: rgba(0, 0, 0, 0.4);
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    
    /* Border & Shadow */
    --border-primary: #dfd4d4;
    --border-secondary: #d1d5db;
    --border-focus: var(--color-primary);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-focus: 0 0 0 3px rgba(0, 112, 243, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0070f3, #1e40af, #2563eb);
    --gradient-button: linear-gradient(45deg, #0070f3, #1e40af);
    --gradient-text: linear-gradient(135deg, #0070f3, #1e40af, #2563eb);
    
    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Spacing */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Typography */
    --font-family: 'Space Grotesk', sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 2rem;      /* 32px */
    --font-size-4xl: 2.5rem;    /* 40px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Old style variables for compatibility */
    --header-bg: #ffffff;
    --link-color: #374151;
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    --gradient-lower: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --shadow-color: rgba(0, 112, 243, 0.1);
    --hover-shadow: rgba(0, 112, 243, 0.3);
    --feature-bg: #ffffff;
    --footer-bg: #f8fafc;
    --footer-border: #f8fafc;
    --glitch-color-1: #0070f3;
    --glitch-color-2: #3b82f6;
    --dot-gradient: radial-gradient(circle, rgba(0, 112, 243, 0.4), rgba(30, 64, 175, 0.2));
    --new-light-bg: #f4f7fc;
    --new-card-bg: #ffffff;
    --new-border: #e2e8f0;
    --new-text-header: #333333;
    --new-text-sub: #666666;
    --new-text-muted-light: #999999;
    --background: #ffffff;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    
    --bg-primary: #000000;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-card: #000000;
    --bg-modal: rgba(0, 0, 0, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    --border-primary: #374151;
    --border-secondary: #4b5563;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #ff0080, #7928ca, #0070f3);
    --gradient-button: linear-gradient(45deg, #7928ca, #ff0080);
    --gradient-text: linear-gradient(135deg, #ff0080, #7928ca, #0070f3);

    /* Dark theme old style variables */
    --header-bg: black;
    --link-color: rgba(255, 255, 255, 0.7);
    --gradient-bg: transparent;
    --gradient-lower: transparent;
    --shadow-color: rgba(255, 0, 128, 0.3);
    --hover-shadow: rgba(255, 0, 128, 0.3);
    --feature-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.8));
    --footer-bg: transparent;
    --footer-border: black;
    --glitch-color-1: #ff0080;
    --glitch-color-2: #00ffff;
    --dot-gradient: radial-gradient(circle, rgba(255, 0, 128, 0.6), rgba(121, 40, 202, 0.3));
    --new-light-bg: #000000;
    --new-card-bg: #2d2d2d;
    --new-border: #444444;
    --new-text-header: #ffffff;
    --new-text-sub: #cccccc;
    --new-text-muted-light: #999999;
    --background: #000000;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-slow), color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   INDEX.HTML SPECIFIC STYLES
   ========================================================================== */

#container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

/* Header Styles - Using old style */
#header {
    display: flex;
    flex-wrap: wrap;
    padding: 0.2rem 1.5rem 0.2rem 1rem;
    justify-content: space-between;
    background: var(--header-bg);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
}



#header #title p {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease-in-out infinite;
    background-size: 400% 400%;
}

#header #links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    flex-wrap: wrap;
}

#header #links p,
#header #links a {
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

#header #links #bt1{
    color: white;
}

#header #links p:hover,
#header #links a:hover {
    color: #0070f3;
}

/* Hero Section - Using old style */
#content {
    flex: 1;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem 2rem 1rem;
    background-color: var(--new-light-bg);
    transition: background-color 0.3s ease;
    position: relative;
}

#introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 800px;
    width: 100%;
}

#introduction #bigTitle {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease-in-out infinite;
    background-size: 400% 400%;
}

[data-theme="dark"] #introduction #bigTitle {
    background: linear-gradient(45deg, #ffffff, #ff0080, #7928ca, #0070f3, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease-in-out infinite;
    background-size: 400% 400%;
}

#introduction #description {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color 0.3s ease;
    margin-top: 20px;
}

#introduction #sub-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

/* Search Bar - Using old style */
#search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    background-color: var(--new-card-bg);
    border: 1px solid var(--new-border);
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

#search-bar input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

#search-bar input::placeholder {
    color: var(--text-muted);
}

#search-bar button {
    background: #0070f3;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] #search-bar button {
    background: #ff0080;
}

/* Hero Buttons */
#hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#hero-buttons button {
    padding: 12px 24px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

#hero-buttons #bt1 {
    background: var(--gradient-button);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.2);
}

#hero-buttons #bt2 {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] #hero-buttons #bt2 {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* API Sections - Using old style for cards */
#api-sections {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.see-all-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.see-all-link:hover {
    color: var(--color-primary-hover);
}

/* API Grid - Using old style */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.api-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.api-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-button);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.api-card:hover::before {
    opacity: 1;
}

.api-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #0043d1;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.api-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.api-card-title {
    flex: 1;
}

.api-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    word-break: break-all;
}

.api-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.api-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.api-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-last-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.category-card .logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    border-radius: var(--radius-lg);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.api-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer - Using old style */
#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--footer-bg);
    transition: all 0.3s ease;
}

#footerContent {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border: 10px solid var(--footer-border);
    padding: 60px;
    gap: 60px;
}

.footerelemnt .footerElmntTitle {
    padding-top: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #0070f3, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .footerelemnt .footerElmntTitle {
    background: linear-gradient(45deg, #ff0080, #0070f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footerelemnt p {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 2;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-theme="dark"] .footerelemnt p {
    font-weight: 300;
}

.footerelemnt p:hover {
    color: #0070f3;
}

#footer #footerCopyright p {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 5px;
    padding-right: 5px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

#footer #footerCopyright p:hover {
    color: var(--text-muted);
}

[data-theme="dark"] #footer #footerCopyright p {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Theme Toggle */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Buttons */
#auth-buttons{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.register-btn, .btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.register-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
}

.register-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.login-btn, .auth-btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Subtle look */
    background: transparent;
    color: var(--text-secondary);
     border: 2px solid var(--border-primary);
}

.login-btn:hover, .auth-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: underline;
}




.btn-primary, .create-api-btn {
    background: var(--gradient-button);
    color: white;
}

.btn-primary:hover, .create-api-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* User Actions and Login - Using old style */
#login-btn {
    padding: 12px 24px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 18px;
    background: var(--gradient-button);
    border: none;
    color: white;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#login-btn:hover {
    transform: scale(1.05);
}

#user-actions {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.hidden {
    display: none !important;
}





#profile-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-button);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#profile-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--hover-shadow);
}

#profile-icon i {
    color: white;
    font-size: 18px;
}

[data-theme="dark"] #login-btn:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--color-primary-hover);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Spacing */
.m-0 { margin: 0; }
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

/* Display */
.hidden { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Animation utilities */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes float3 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-25px) translateX(20px) scale(1.2);
        opacity: 0.2;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    #header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    #links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #bigTitle {
        font-size: 2.5rem;
    }
    
    #description {
        font-size: 1.25rem;
    }
    
    #hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    #bt1, #bt2 {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .api-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    #footerContent {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 30px;
        border: 5px solid var(--footer-border);
    }

    #api-sections {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    #api-sections {
        padding: 2rem 1rem;
    }
    
    #introduction {
        padding: 1rem;
    }
    
    #bigTitle {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .api-card, .category-card {
        padding: 1rem;
    }

    .theme-switch {
        width: 50px;
        height: 30px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
    }

    input:checked + .slider:before {
        transform: translateX(20px);
    }
}
@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* settings.css or global.css */
body.preload-hidden #header {
  display: none;
}

/* Fullscreen loader */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary, #fff);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Hide loader when done */
#global-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Spinning circle */
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db; /* spinner color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Animation classes */
.fade-in {
    animation: fade-in 0.6s ease forwards;
}

.scale-in {
    animation: scale-in 0.4s ease forwards;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease-in-out infinite;
}

/* Floating points - Using old style */
.floating-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dot {
    position: absolute;
    background: var(--dot-gradient);
    border-radius: 50%;
    opacity: 0.6;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-5px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(-10px);
        opacity: 0.7;
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-30px) translateX(-15px) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-15px) translateX(15px) rotate(240deg);
        opacity: 0.3;
    }
}

/*Here are the CSS styles to add for the language selector that will fit perfectly with your design:*/
/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-selector select {
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    min-width: 60px;
}

.language-selector select:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

/* Custom dropdown arrow */
.language-selector::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.language-selector:hover::after {
    border-top-color: var(--color-primary);
}

/* Dark theme adjustments */
[data-theme="dark"] .language-selector select {
    background: var(--bg-card);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .language-selector select:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

[data-theme="dark"] .language-selector::after {
    border-top-color: var(--text-secondary);
}

[data-theme="dark"] .language-selector:hover::after {
    border-top-color: var(--color-primary);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .language-selector select {
        font-size: var(--font-size-xs);
        padding: 0.4rem 1.5rem 0.4rem 0.5rem;
        min-width: 50px;
    }
    
    .language-selector::after {
        right: 0.5rem;
        border-left-width: 3px;
        border-right-width: 3px;
        border-top-width: 4px;
    }
}

.see-all-link::after {
    content: " →";
}