:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --bg-dark: #0a0b10;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
    --text-dim: #909090;
    --accent-red: #ff3e3e;
    --accent-green: #00ff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.glass-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #1a1c2e 0%, #0a0b10 100%);
    z-index: -1;
}

.glass-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
}

.breadcrumb {
    padding: 2rem 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Portal Styles */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
}

.tool-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.tool-icon {
    color: var(--primary);
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.tool-card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 1rem;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(150px circle at var(--x, 0) var(--y, 0), rgba(0, 242, 255, 0.15), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover .card-glow {
    opacity: 1;
}

/* Converter Box */
.converter-box {
    width: 100%;
    max-width: 800px;
    height: 350px;
    background: var(--glass);
    border: 2px dashed var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.converter-box:hover,
.converter-box.drag-over {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.03);
    box-shadow: 0 0 30px var(--primary-glow);
}

.upload-area {
    text-align: center;
    pointer-events: none;
}

.icon-pulse {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.converter-box:hover .icon-pulse {
    animation: bounce 1s infinite;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    pointer-events: auto;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

/* Icons Options */
.icon-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    width: 100%;
}

.option-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 2rem;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.option-card.active {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px var(--primary-glow);
}

.option-card h4 {
    color: #fff;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.option-card span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Processing View */
.processing-view {
    width: 100%;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

#icons-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.image-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: scaleIn 0.4s ease-out;
    position: relative;
}

.ai-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 0 10px var(--primary-glow);
}

.thumb-container {
    height: 150px;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.card-info {
    font-size: 0.8rem;
}

.file-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
}

/* Icon Preview Card specific */
.icon-preview-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.icon-preview-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.icon-size-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Global Controls */
.global-controls {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.target-indicator {
    background: rgba(0, 242, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 242, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
    }
}

.btn-download-all {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-download-all:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.download-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-download-zip {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-download-zip:hover {
    background: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.modal-content {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crop-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.preset-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-preset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-preset:hover,
.btn-preset.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

#crop-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
}

/* Cropper Circular Mask Overlay */
.cropper-circle .cropper-view-box,
.cropper-circle .cropper-face {
    outline: none !important;
    border: 2px solid var(--primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.8) !important;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }

    .global-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        width: 90%;
    }

    .icon-options {
        flex-direction: column;
        align-items: center;
    }
}
/* Footer Styles */
.footer {
    margin-top: 4rem;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-logo {
    font-size: 1.2rem;
}

.footer-brand a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-brand a:hover {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Legal Pages Styles */
.breadcrumb {
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.legal-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.legal-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-section h3 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.legal-section ul, .legal-section ol {
    margin-left: 1.5rem;
    line-height: 1.8;
    color: var(--text-dim);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: #fff;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.last-updated {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 2rem;
}
