/* ======================================
   RESET & BASE STYLES
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #ffd89b;
    --danger-color: #ff6b9d;
    
    /* Text Colors */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #1a202c;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-modal: 1000;
    --z-dropdown: 100;
    --z-header: 50;
    --z-fixed: 10;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ensure content is visible after loading */
body.loaded {
    overflow-x: hidden;
}

/* Arabic Text Support */
[dir="rtl"] {
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================
   LOADING SCREEN
====================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen.force-hide {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Additional fallback for loading screen */
body.loaded .loading-screen {
    display: none !important;
}

/* Emergency fallback */
.loading-screen[style*="display: none"] {
    display: none !important;
}

.loader {
    text-align: center;
    color: var(--text-white);
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--text-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

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

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======================================
   NAVIGATION
====================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-header);
    transition: all var(--transition-normal);
    min-height: 70px;
    /* Safe area support for notched devices */
    padding-top: env(safe-area-inset-top);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    min-height: 70px;
}

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.lang-toggle {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ======================================
   HERO SECTION
====================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Account for fixed navbar */
    padding-top: 70px;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 80%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    transform: rotate(3deg);
    transition: var(--transition-normal);
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 10px;
    box-sizing: border-box;
}

.profile-placeholder {
    font-size: 4rem;
    color: var(--text-white);
}

.profile-main-badge {
    display: none; /* Hide broken image */
}

/* CSS Badge Design */
.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: linear-gradient(45deg, #FFFC00 0%, #FFD700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 10px;
    box-sizing: border-box;
    border: 4px solid #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-image::before {
    content: "👻";
    font-size: 4rem;
    filter: brightness(0);
    margin-bottom: 1rem;
}

.profile-image::after {
    content: "SNAP AR DEVELOPER";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 900;
    color: #333;
    text-align: center;
    line-height: 1;
    letter-spacing: 1px;
}

/* Fallback for badge display */
.profile-main-badge[src$=".svg"] {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Alternative badge display using background */
.badge-fallback {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #FFFC00 0%, #FFD700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid #333;
}

.badge-fallback::before {
    content: "👻";
    font-size: 3rem;
    filter: brightness(0);
}

.badge-fallback::after {
    content: "SNAP AR DEVELOPER";
    position: absolute;
    bottom: 15%;
    font-size: 0.7rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1;
}

.profile-badge {
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.profile-badge-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
}

/* ======================================
   SECTION STYLES
====================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ======================================
   SERVICES SECTION
====================================== */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--text-white);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-tech span {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ======================================
   TOOLS SEARCH BAR
====================================== */
.tools-search-bar {
    margin: 2rem 0 3rem 0;
    display: flex;
    justify-content: center;
}

.search-container {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 1rem;
    flex-shrink: 0;
}

#toolsSearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 1rem 0.5rem;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
}

#toolsSearchInput::placeholder {
    color: var(--text-light);
    font-size: 1rem;
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-btn i {
    font-size: 1.2rem;
}

.tools-search-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-top: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    display: none;
}

.tools-search-result.show {
    display: block;
    animation: slideDown var(--transition-normal) ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search result styles */
.tools-search-result .search-result-item {
    margin: 1rem;
    border: 1px solid #e2e8f0;
}

.tools-search-result .not-found-message {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.tools-search-result .not-found-message i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tools-search-result .available-ids {
    padding: 1rem;
}

.tools-search-result .ids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.tools-search-result .id-item {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.tools-search-result .id-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Mobile responsive for search bar */
@media (max-width: 768px) {
    .tools-search-bar {
        margin: 1.5rem 0 2rem 0;
    }
    
    .search-input-wrapper {
        padding: 0.25rem;
    }
    
    #toolsSearchInput {
        font-size: 1rem;
        padding: 0.875rem 0.5rem;
    }
    
    #toolsSearchInput::placeholder {
        font-size: 0.9rem;
    }
    
    .search-btn {
        width: 45px;
        height: 45px;
    }
    
    .search-btn i {
        font-size: 1.1rem;
    }
    
    .tools-search-result .ids-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ======================================
   TOOLS SECTIONS
====================================== */
.tool-content {
    display: none;
    background: var(--bg-primary);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
}

.tool-section {
    background: var(--bg-primary);
}

.tool-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--radius-md);
    position: relative;
}

.close-tool {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.close-tool:hover {
    background: rgba(255, 255, 255, 0.2);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--bg-primary);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: #e2e8f0;
    border: none;
    border-radius: 3px;
    appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.input-group input[type="color"] {
    height: 50px;
    padding: 0;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.result-area {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-area:empty {
    display: none;
}

.result-area.show {
    display: block;
}

/* Color Picker Specific Styles */
.color-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.color-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
}

.color-values {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-value {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-value label {
    min-width: 50px;
    margin: 0;
    font-weight: 600;
}

.color-value input {
    flex: 1;
    margin: 0;
}

/* Unit Converter Specific Styles */
.converter-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.convert-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

/* Tab Styles for Base64 Tool */
.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.tab-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 120px;
}

/* Tool Note */
.tool-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* Copy Button for Results */
.copy-btn {
    background: var(--success-color);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: #3a8efe;
    transform: translateY(-2px);
}

/* URL Shortener Specific Styles */
.url-shortener-result {
    text-align: center;
    max-width: 100%;
}

.success-header {
    margin-bottom: 1.5rem;
}

.url-comparison {
    text-align: left;
    max-width: 100%;
}

.url-item {
    margin-bottom: 1rem;
}

.url-item div {
    word-break: break-all;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.url-stats {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.url-stats h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.url-stats > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .url-stats > div {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* QR Code Result */
.qr-result {
    text-align: center;
}

.qr-result canvas {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.password-strength.weak {
    background: #fee;
    color: #c53030;
}

.password-strength.medium {
    background: #fef5e7;
    color: #dd6b20;
}

.password-strength.strong {
    background: #f0fff4;
    color: #38a169;
}

/* Age Result Styling */
.age-display {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.age-display .age-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.age-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.age-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.age-item .number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.age-item .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ======================================
   SEARCH INTERFACE STYLES
====================================== */
.search-interface {
    max-width: 100%;
}

.search-help {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.search-help h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.search-help ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-help li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid #e2e8f0;
}

.search-help li:last-child {
    border-bottom: none;
}

.search-help strong {
    color: var(--primary-color);
}

.recent-content {
    margin-top: 2rem;
}

.recent-content h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.recent-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.recent-item:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.recent-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.recent-item:hover i {
    color: var(--text-white);
}

.recent-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Search Results */
.search-result-item {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.search-result-item .result-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-white);
}

.search-result-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.search-result-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.search-result-item .result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.search-result-item .meta-item {
    text-align: center;
}

.search-result-item .meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.search-result-item .meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .btn {
    min-width: 120px;
}

.not-found-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid #ffc107;
}

.not-found-message i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.not-found-message h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Mobile Responsive for Search */
@media (max-width: 768px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }
    
    .search-result-item .result-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

/* Available IDs Display */
.available-ids {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.available-ids h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.ids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.id-item {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.id-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.id-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.id-item span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.id-item small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ======================================
   ABOUT SECTION
====================================== */
.about {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.about-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

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

.info-item span {
    color: var(--text-secondary);
    text-align: right;
}

.achievement-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.achievement-icon i {
    font-size: 1.5rem;
}

.badge-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.achievement-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.achievement-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.achievement-details {
    space-y: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.detail-item strong {
    margin-left: 0.5rem;
}

/* ======================================
   SKILLS SECTION
====================================== */
.skills {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-percent {
    font-weight: 600;
    color: var(--primary-color);
}

.skill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 1s ease-in-out;
}

/* ======================================
   LENSES SECTION
====================================== */
.lenses {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.lenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lens-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.lens-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.lens-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.lens-card.placeholder {
    text-align: center;
    opacity: 0.7;
}

.lens-preview {
    width: 100%;
    height: 200px;
    background: var(--secondary-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.lens-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.lens-preview i {
    font-size: 3rem;
    color: var(--text-light);
}

.lens-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.lens-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.lens-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.lens-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.section-footer .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ======================================
   CONTACT SECTION
====================================== */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.contact-card a:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ======================================
   FOOTER
====================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    color: #a0aec0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Footer Admin Section */
.footer-admin {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-admin h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cpanel-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    max-width: 200px;
}

.cpanel-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cpanel-btn i {
    font-size: 1.1rem;
}

.cpanel-btn span {
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* WhatsApp specific styling */
.contact-card .fa-whatsapp {
    color: #25D366;
}

.footer-social .fa-whatsapp:hover {
    background: #25D366 !important;
}

/* Contact cards hover effects for social platforms */
.contact-card:has(.fa-whatsapp):hover .contact-icon {
    background: rgba(37, 211, 102, 0.1);
}

.contact-card:has(.fa-snapchat-ghost):hover .contact-icon {
    background: rgba(255, 252, 0, 0.1);
}

.contact-card:has(.fa-twitter):hover .contact-icon {
    background: rgba(29, 161, 242, 0.1);
}

.contact-card:has(.fa-youtube):hover .contact-icon {
    background: rgba(255, 0, 0, 0.1);
}

/* Visitor Counter */
.visitor-counter {
    text-align: center;
    margin: 2rem 0 1rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.counter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-white);
}

.counter-content i {
    font-size: 1.3rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.counter-label {
    font-weight: 500;
    color: #a0aec0;
}

.counter-number {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
    display: inline-block;
    text-align: center;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background-color: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: counterGlow 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes counterGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); }
}

/* ======================================
   SNAPCHAT POPUP MODAL
====================================== */



.snapchat-username {
    background: rgba(255, 252, 0, 0.1);
    border: 2px solid rgba(255, 252, 0, 0.3);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.username-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.username-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFFC00;
    font-family: 'Courier New', monospace;
}

.snapchat-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.snapchat-btn {
    background: #FFFC00 !important;
    color: #000 !important;
    border: none;
    flex: 1;
    min-width: 120px;
}

.snapchat-btn:hover {
    background: #e6e300 !important;
    transform: translateY(-2px);
}

.snapchat-qr {
    text-align: center;
}

.snapchat-qr p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.qr-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-placeholder i {
    font-size: 3rem;
    color: var(--text-secondary);
}

.qr-placeholder span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Snapchat Floating Button */
.snapchat-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #FFFC00;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 252, 0, 0.4);
    transition: all 0.3s ease;
    animation: snapPulse 3s infinite;
}

.snapchat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 252, 0, 0.6);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes snapPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 252, 0, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(255, 252, 0, 0.7);
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* ======================================
   BACK TO TOP BUTTON
====================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ======================================
   RESPONSIVE DESIGN
====================================== */
@media (max-width: 768px) {
    .navbar {
        min-height: 60px;
        height: auto;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
        min-height: 60px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
        margin: 0;
        line-height: 1.2;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
        align-items: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 9999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-link {
        font-size: 1.5rem;
        padding: 1rem 0;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu .lang-toggle {
        margin-top: 2rem;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero {
        padding-top: 80px;
        min-height: calc(100vh - 20px);
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        padding: 8px;
    }
    
    .profile-image::before {
        font-size: 3rem;
    }
    
    .profile-image::after {
        font-size: 0.7rem;
        bottom: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .visitor-counter {
        margin: 1.5rem 0 1rem 0;
        padding: 1rem;
    }
    
    .counter-content {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 1.2rem;
        min-width: 60px;
    }
    
    /* Snapchat Modal Mobile */
    .modal-overlay .snapchat-modal {
        width: 95%;
        max-width: 350px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Tools Mobile Responsive */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .color-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .color-preview {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .converter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .convert-arrow {
        transform: rotate(90deg);
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        min-width: auto;
    }
    
    .age-breakdown {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        min-height: 55px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0.5rem 10px;
        min-height: 55px;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .nav-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Keep grid layout on small mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Additional mobile optimizations for tools */
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .tool-section h3 {
        font-size: 1.2rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .checkbox-group {
        gap: 0.5rem;
    }
    
    .age-breakdown {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ======================================
   APPADVICE INTEGRATION ANIMATIONS
====================================== */

/* Pulse animation for AppAdvice status indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AppAdvice status styles */
.appadvice-connected {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 1px solid #c3e6c3;
}

.appadvice-disconnected {
    background: linear-gradient(135deg, #fef5e7 0%, #fdf2e9 100%);
    border: 1px solid #f6d55c;
}

.appadvice-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border: 1px solid #fca5a5;
}

/* Status indicator colors */
.status-connected {
    background: #28a745 !important;
    animation: pulse 2s infinite;
}

.status-warning {
    background: #ffc107 !important;
    animation: pulse 3s infinite;
}

.status-error {
    background: #dc3545 !important;
    animation: pulse 1.5s infinite;
}

/* Time-limited offer badge animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 107, 107, 0.6);
    }
}

.time-limited-badge {
    animation: glow 2s ease-in-out infinite;
}

/* Featured app card enhancement */
.app-card.featured {
    position: relative;
    overflow: hidden;
}

.app-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.app-card.featured:hover::before {
    left: 100%;
}

/* ======================================
   IMAGE ENHANCER STYLES
====================================== */

.image-enhancer-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
}

.upload-section:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.upload-section input[type="file"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.upload-section input[type="file"]:hover {
    background: #f7fafc;
    border-color: var(--secondary-color);
}

.upload-info {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-info i {
    color: var(--primary-color);
}

/* Enhancement Controls */
.enhancement-controls {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    transition: all var(--transition-normal);
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: all var(--transition-normal);
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.control-group span {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    min-width: 60px;
}

.enhancement-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Image Preview Section */
.image-preview-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.preview-tab {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-tab:hover {
    background: #edf2f7;
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.preview-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.preview-container {
    position: relative;
    min-height: 400px;
}

.preview-panel {
    display: none;
    text-align: center;
}

.preview-panel.active {
    display: block;
}

.preview-panel canvas {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.preview-panel canvas:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Compare Panel Styles */
.compare-panel {
    display: none;
}

.compare-panel.active {
    display: block;
}

.compare-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.compare-side {
    text-align: center;
}

.compare-side label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.compare-side:first-child label {
    background: linear-gradient(135deg, #fef5e7 0%, #fdf2e9 100%);
    color: #92400e;
    border-color: #f59e0b;
}

.compare-side:last-child label {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    color: #166534;
    border-color: #10b981;
}

/* Enhancement Success Styles */
.enhancement-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fff4 0%, #f0fdf4 100%);
    border: 2px solid #10b981;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.success-header {
    margin-bottom: 2rem;
}

.enhancement-stats {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.stat-item:last-child {
    border-bottom: none;
}

.applied-settings {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.final-image {
    margin: 2rem 0;
}

.final-image img {
    max-width: 100%;
    max-height: 400px;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    transition: all var(--transition-normal);
}

.final-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.3);
}

.enhancement-tip {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: #92400e;
    margin-top: 2rem;
    border-left: 4px solid #f59e0b;
}

.enhancement-tip i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

/* Responsive Design for Image Enhancer */
@media (max-width: 768px) {
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .compare-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .preview-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .preview-tab {
        justify-content: center;
    }
    
    .enhancement-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .enhancement-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .upload-section {
        padding: 1.5rem;
    }
    
    .enhancement-controls,
    .image-preview-section {
        padding: 1.5rem;
    }
    
    .controls-grid {
        gap: 1rem;
    }
    
    .control-group {
        gap: 0.5rem;
    }
    
    .enhancement-success {
        padding: 1.5rem;
    }
    
    .final-image img {
        max-height: 250px;
    }
    
    /* Mobile Tool Content Optimization */
    .tool-content {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .tool-section {
        padding: 0;
    }
    
    .tool-section h3 {
        font-size: 1.2rem;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-group input,
    .input-group textarea,
    .input-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .result-area {
        padding: 1rem;
        margin-top: 1rem;
        min-height: 80px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .close-tool {
        right: 0.75rem;
        font-size: 1rem;
    }
}

/* ======================================
   SNAPCHAT MODAL STYLES
====================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

.snapchat-modal {
    width: 400px;
    background: linear-gradient(135deg, #FFFC00 0%, #FFD700 100%);
    border: 3px solid #FFFC00;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #FFFC00 0%, #FFD700 100%);
}

.snapchat-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.snapchat-icon i {
    font-size: 2.5rem;
    color: #FFFC00;
}

.modal-header h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.modal-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.modal-body {
    padding: 2rem;
    background: white;
}

.snapcode-container {
    text-align: center;
    margin-bottom: 2rem;
}

.snapcode-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #FFFC00 0%, #FFD700 100%);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #333;
    box-shadow: 0 8px 25px rgba(255, 252, 0, 0.3);
}

.snapcode-placeholder i {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.snapcode-placeholder p {
    color: #333;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.snap-username {
    text-align: center;
    margin-bottom: 2rem;
}

.username-display {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.username {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}

.copy-username {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.copy-username:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.snapchat-btn {
    background: linear-gradient(135deg, #FFFC00 0%, #FFD700 100%);
    color: #333;
    border: 2px solid #333;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.snapchat-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 252, 0, 0.4);
}

.snapchat-btn i {
    font-size: 1.2rem;
}

/* Floating Snapchat Button */
.floating-snapchat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFFC00 0%, #FFD700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 252, 0, 0.3);
    z-index: 1000;
    transition: all var(--transition-fast);
    animation: pulse 2s infinite;
    border: 3px solid white;
}

.floating-snapchat:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 252, 0, 0.5);
}

.floating-snapchat i {
    font-size: 1.8rem;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(255, 252, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 252, 0, 0.6);
    }
    100% {
        box-shadow: 0 8px 25px rgba(255, 252, 0, 0.3);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .snapchat-modal {
        width: 90vw;
        max-width: 350px;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .snapcode-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .snapcode-placeholder i {
        font-size: 2.5rem;
    }
    
    .floating-snapchat {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-snapchat i {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .cpanel-btn {
        max-width: 100%;
        justify-content: center;
    }
}