:root {
    --primary-color: #5271ff;
    --primary-dark: #3857d6;
    --primary-light: #eef1ff;
    --secondary-color: #6c757d;
    --dark-color: #1a202c;
    --light-color: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-default: all 0.3s ease;
    --shadow-sm: 0 2px 8px 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);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Background colors */
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-modal: #ffffff;
    
    /* Text colors */
    --text-main: #1a202c;
    --text-secondary: #6c757d;
    
    /* Other colors */
    --icon-stroke: #1a202c;
}

/* Dark mode variables */
body.dark-mode {
    --primary-color: #6d8cff;
    --primary-dark: #5271ff;
    --primary-light: #1f2b3e;
    
    /* Background colors */
    --bg-main: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #252525;
    --bg-modal: #252525;
    
    /* Text colors */
    --text-main: #f8f9fa;
    --text-secondary: #adb5bd;
    
    /* Border colors */
    --border-color: #2d2d2d;
    
    /* Other colors */
    --icon-stroke: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Add RGB versions of colors for rgba usage */
:root {
    --text-main-rgb: 26, 32, 44;
    --bg-card-rgb: 255, 255, 255;
}

body.dark-mode {
    --text-main-rgb: 248, 249, 250;
    --bg-card-rgb: 37, 37, 37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-default);
}

a:hover {
    color: var(--primary-dark);
}

/* Header Styles */
header {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-default);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: var(--radius-sm);
    color: white;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0;
}

.logo h1 span {
    color: var(--primary-color);
}

.logo p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-default);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -4px;
    left: 0;
    transition: var(--transition-default);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-default);
}

.search-bar {
    display: flex;
    width: 100%;
    max-width: 300px;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition-default);
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(82, 113, 255, 0.15);
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 16px;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition-default);
}

.search-bar button:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-main) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%235271ff" fill-opacity="0.05" d="M45.5,-53.5C56.6,-42.6,61.8,-26.5,66.2,-9.4C70.6,7.7,74.3,25.9,67.3,38.4C60.3,50.9,42.6,57.5,25.6,61.8C8.5,66,-7.8,67.9,-23.8,64C-39.9,60,-55.6,50.3,-64.6,35.8C-73.5,21.3,-75.6,2,-71.5,-14.9C-67.4,-31.9,-57.1,-46.4,-43.6,-56.7C-30.2,-67,-15.1,-73.1,0.9,-74.1C16.9,-75.2,34.4,-64.4,45.5,-53.5Z" transform="translate(100 100)"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 25px;
    color: var(--text-main);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero h2 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(82, 113, 255, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.hero p {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-default);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn i {
    font-size: 18px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(82, 113, 255, 0.3);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(82, 113, 255, 0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.stats::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%235271ff" fill-opacity="0.03" d="M39.9,-65.7C51.1,-55.9,59,-42.8,65.7,-28.9C72.4,-15,77.8,-0.3,74.5,12C71.2,24.4,59.2,34.4,47.7,43.5C36.3,52.6,25.4,60.7,11.9,66.5C-1.7,72.3,-17.8,75.6,-30.8,70.9C-43.8,66.1,-53.6,53.2,-61.4,39.6C-69.1,26,-74.7,11.7,-73.1,-1.6C-71.5,-15,-62.7,-27.4,-52.9,-37.8C-43.1,-48.3,-32.2,-56.8,-20,-66.1C-7.7,-75.3,5.9,-85.4,19.1,-83.4C32.3,-81.4,45.1,-67.5,51.5,-55.3C57.9,-43.1,57.9,-32.5,63.3,-20.2C68.7,-7.9,79.5,6,77.2,16.6C74.9,27.3,59.3,34.6,46.6,42.5C33.9,50.4,24,59,11.7,62.9C-0.7,66.9,-15.4,66.1,-28.9,62.1C-42.5,58.2,-54.8,51.1,-62.4,40.3C-70,29.5,-72.9,15.1,-73.3,0.5C-73.8,-14.1,-71.9,-29,-64.7,-40.8C-57.5,-52.6,-44.9,-61.3,-31.8,-68.9C-18.8,-76.4,-5.3,-82.9,5.6,-79.9C16.4,-76.9,25.6,-64.5,34.9,-56.4C44.3,-48.4,53.8,-44.7,64.1,-36.3C74.4,-27.9,85.4,-15,83.4,-3.5C81.4,7.9,66.4,18.2,56.2,29.4C46,40.6,40.7,52.6,31.9,61.3C23.1,70.1,10.9,75.4,-0.9,76.9C-12.8,78.5,-24.2,76.3,-36.7,72.2C-49.1,68.1,-62.6,62.2,-72.8,51.4C-83.1,40.7,-90.2,25.1,-89.9,10.1C-89.6,-4.9,-82,-19.4,-73.5,-32.7C-65.1,-46.1,-55.7,-58.4,-43.4,-65.8C-31.1,-73.3,-15.5,-75.9,-0.4,-75.3C14.8,-74.7,29.5,-70.9,39.9,-65.7Z" transform="translate(100 100)"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
    z-index: 0;
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.stats-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.stats-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.stats .container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.stat-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    transition: var(--transition-default);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stat-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.stat-content {
    margin-bottom: 20px;
    flex-grow: 1;
}

.stat-item .number {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.stat-item .text {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-progress {
    height: 4px;
    background-color: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.stat-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    animation: loadProgress 2s forwards;
}

@keyframes loadProgress {
    from { width: 0; }
    to { width: var(--width, 100%); }
}

@media screen and (max-width: 768px) {
    .stats {
        padding: 60px 0;
    }
    
    .stats-header h2 {
        font-size: 28px;
    }
    
    .stat-item {
        padding: 25px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }
    
    .stat-icon i {
        font-size: 24px;
    }
    
    .stat-item .number {
        font-size: 36px;
    }
}

@media screen and (max-width: 480px) {
    .stats-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item .number {
        font-size: 32px;
    }
}

/* Filters Section */
.filters {
    padding: 30px 0 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.filters .container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.filter-group label {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.filter-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition-default);
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%236c757d" d="M8 10.5L3 5h10l-5 5.5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--bg-card);
}

/* Icons Display Section */
.icons-display {
    padding: 60px 0;
    background-color: var(--bg-main);
}

.icons-display h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: var(--text-main);
    text-align: center;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 30px 20px;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-default);
    position: relative;
    background-color: var(--bg-card);
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.icon-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(82, 113, 255, 0.05), transparent);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: var(--transition-default);
    z-index: -1;
}

.icon-card:hover::before {
    opacity: 1;
}

.icon-display {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-default);
}

.icon-display svg {
    width: 100%;
    height: 100%;
    stroke: var(--icon-stroke);
    transition: var(--transition-default);
}

/* Override for colored icons to preserve their original colors */
.icon-display.colored-icon svg,
.icon-display.colored-icon svg * {
    stroke: unset !important;
    fill: unset !important;
}

/* Ensure monochrome icons still respond to theme */
.icon-display.monochrome-icon svg {
    stroke: var(--icon-stroke);
}

/* Handle raster images in icon display */
.icon-display.raster-icon {
    background-color: transparent;
}

.icon-display.raster-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-card:hover .icon-display svg {
    stroke: var(--primary-color);
}

/* Don't change colors on hover for colored icons */
.icon-card:hover .icon-display.colored-icon svg,
.icon-card:hover .icon-display.colored-icon svg * {
    stroke: unset !important;
    fill: unset !important;
}

/* Only apply hover effect to monochrome icons */
.icon-card:hover .icon-display.monochrome-icon svg {
    stroke: var(--primary-color);
}

.icon-name {
    font-size: 14px;
    text-align: center;
    color: var(--text-main);
    font-weight: 500;
    margin-top: 5px;
    transition: var(--transition-default);
}

.icon-card:hover .icon-name {
    color: var(--primary-color);
}

/* Modal Styles */
.icon-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-modal);
    margin: 50px auto;
    width: 90%;
    max-width: 700px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media screen and (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--text-main-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-modal:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.1);
    color: var(--danger-color);
}

.icon-preview {
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    flex: 1;
    position: relative;
    min-height: 280px;
}

.preview-large {
    width: 130px;
    height: 130px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.preview-large:hover {
    transform: scale(1.05);
}

.preview-large svg {
    width: 70%;
    height: 70%;
    stroke: var(--primary-color);
}

/* Override for colored SVGs in modal preview */
.preview-large.colored-preview svg,
.preview-large.colored-preview svg * {
    stroke: unset !important;
    fill: unset !important;
}

/* Ensure monochrome SVGs in modal use theme color */
.preview-large.monochrome-preview svg {
    stroke: var(--primary-color);
}

/* Handle raster images in modal preview */
.preview-large.raster-preview {
    background-color: var(--bg-secondary);
}

.preview-large.raster-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-preview h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 700;
}

.icon-preview p {
    font-size: 15px;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.icon-details {
    padding: 40px;
    flex: 1.5;
}

.detail-row {
    margin-bottom: 30px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 16px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: var(--light-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--secondary-color);
    transition: var(--transition-default);
    font-weight: 500;
}

.tag:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.download-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 120px;
}

.option-group label {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 0;
    font-weight: 500;
}

.format-select, .size-select {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition-default);
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%236c757d" d="M8 10.5L3 5h10l-5 5.5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.download-btn-main {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-default);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(82, 113, 255, 0.3);
}

.download-btn-main:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 113, 255, 0.4);
}

.download-btn-main i {
    font-size: 18px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-header p {
    font-size: 17px;
    color: var(--secondary-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    background-color: var(--primary-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 80px 0 20px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-info {
    padding-right: 20px;
}

.footer-info h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info h3 span {
    color: var(--primary-color);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-newsletter p {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: var(--transition-default);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 25px;
    color: #fff;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-default);
    font-size: 15px;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition-default);
    font-size: 18px;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 60px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Download Notification */
.download-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 3000;
}

.download-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.download-notification.error {
    background-color: var(--danger-color);
}

.download-notification i {
    font-size: 20px;
}

.download-notification span {
    font-size: 15px;
    font-weight: 500;
}

/* Icon placeholder for lazy loading */
.icon-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.icon-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -100%;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
    transform: translateX(0);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Loading indicators */
.icon-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Loading and error states for different icon types */
.icon-error {
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 100%;
    height: 100%;
}

.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    color: var(--primary-color);
}

/* Dark mode adaptation */
body.dark-mode .icon-placeholder::after {
    background-image: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(0, 0, 0, 0)
    );
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero h2 {
        font-size: 40px;
    }
    
    footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: var(--shadow-md);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-default);
        z-index: 999;
        visibility: hidden;
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 16px;
    }
    
    .hero h2 {
        font-size: 35px;
    }
    
    .icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .filters .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        max-width: none;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    footer .container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .icon-details {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .stat-item .number {
        font-size: 32px;
    }
    
    .stat-item .text {
        font-size: 15px;
    }

    .download-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        text-align: center;
        justify-content: center;
    }
}

/* Dark mode toggle */
.dark-mode-toggle {
    width: 50px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
    justify-content: space-between;
    transition: var(--transition-default);
    margin-left: 15px;
}

.dark-mode-toggle i {
    font-size: 12px;
    z-index: 1;
}

.dark-mode-toggle .fa-sun {
    color: #f1c40f;
}

.dark-mode-toggle .fa-moon {
    color: #2c3e50;
}

.dark-mode-toggle .toggle-ball {
    position: absolute;
    width: 19px;
    height: 19px;
    background-color: white;
    border-radius: 50%;
    left: 3px;
    transition: var(--transition-default);
    z-index: 0;
}

/* Dark mode specific toggle styles */
body.dark-mode .dark-mode-toggle {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .dark-mode-toggle .toggle-ball {
    transform: translateX(25px);
    background-color: var(--dark-color);
}

body.dark-mode .dark-mode-toggle .fa-moon {
    color: #f1c40f;
}

body.dark-mode .dark-mode-toggle .fa-sun {
    color: #f8f9fa;
}

/* Additional elements */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-default);
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Fixing mobile menu in dark mode */
body.dark-mode nav {
    background-color: var(--bg-main);
}

/* Make features section respect theme */
.features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

/* Fix newsletter form in dark mode */
body.dark-mode .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Add hover states for cards in dark mode */
body.dark-mode .icon-card:hover {
    border-color: var(--primary-color);
}

body.dark-mode .feature-card:hover {
    border-color: var(--primary-color);
}

/* Fix for dropdowns in dark mode */
body.dark-mode .filter-group select {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23adb5bd" d="M8 10.5L3 5h10l-5 5.5z"/></svg>');
}

body.dark-mode .format-select, 
body.dark-mode .size-select {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23adb5bd" d="M8 10.5L3 5h10l-5 5.5z"/></svg>');
}

/* Fix tag hover in dark mode */
body.dark-mode .tag:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Popular Icons Section */
.popular-icons {
    padding: 80px 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.popular-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.section-cta {
    align-items: center;
    align-content: center;
    align-self: center;
    text-align: center;
    margin-top: 20px;
}

/* Redesigned Explore Categories Section */
.explore-categories {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-default);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-icon-wrapper {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: var(--transition-default);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    transition: var(--transition-default);
}

.category-content {
    padding: 20px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.category-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-main);
    transition: var(--transition-default);
}

.category-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.category-card:hover .category-content h3 {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .popular-icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 20px;
    }
    
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .popular-icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-icon-wrapper {
        padding: 20px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .category-content {
        padding: 15px 10px;
    }
    
    .category-content h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .category-content p {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
}
