@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Press+Start+2P&family=Caveat:wght@400;700&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;700;800&display=swap');

/* =========================================
   BASE RESET & VARIABLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, border-radius 0.4s ease, transform 0.2s ease;
}

:root {
    --transition-speed: 0.4s;
    --mesh-opacity: 0;
    --mesh-bg: transparent;
}

/* =========================================
   THEMES DEFINITION
   ========================================= */

/* 1. Skeuomorphism (~2000–2013) */
[data-theme="skeuomorphism"] {
    --bg-color: #d1d5db;
    --bg-image: url('data:image/svg+xml;utf8,<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><rect width="10" height="10" fill="%23d1d5db"/><circle cx="5" cy="5" r="1" fill="%23c4c8cf"/></svg>');
    --text-main: #2b2b2b;
    --text-muted: #555555;
    --accent-color: #0055ff;
    --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    --card-bg: linear-gradient(180deg, #f0f0f0 0%, #dcdcdc 100%);
    --card-border: 1px solid #ffffff;
    --card-radius: 12px;
    --card-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 4px 6px rgba(0,0,0,0.3);
    
    --btn-bg: linear-gradient(180deg, #f8f8f8 0%, #e0e0e0 100%);
    --btn-text: #333333;
    --btn-border: 1px solid #aaaaaa;
    --btn-radius: 8px;
    --btn-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.2);
    --btn-hover-transform: translateY(1px);
    
    --navbar-bg: linear-gradient(180deg, #444 0%, #222 100%);
    --nav-text: #eeeeee;
}

/* 2. Flat Design (~2012–present) */
[data-theme="flat"] {
    --bg-color: #ecf0f1;
    --bg-image: none;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --accent-color: #e74c3c;
    --font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    
    --card-bg: #ffffff;
    --card-border: none;
    --card-radius: 0px;
    --card-shadow: none;
    
    --btn-bg: #3498db;
    --btn-text: #ffffff;
    --btn-border: none;
    --btn-radius: 0px;
    --btn-shadow: none;
    --btn-hover-transform: scale(0.98);
    
    --navbar-bg: #2980b9;
    --nav-text: #ffffff;
}

/* 3. Material Design (~2014–present) */
[data-theme="material"] {
    --bg-color: #fafafa;
    --bg-image: none;
    --text-main: rgba(0,0,0,0.87);
    --text-muted: rgba(0,0,0,0.6);
    --accent-color: #6200ee;
    --font-family: 'Roboto', sans-serif;
    
    --card-bg: #ffffff;
    --card-border: none;
    --card-radius: 4px;
    --card-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
    
    --btn-bg: #03dac6;
    --btn-text: #000000;
    --btn-border: none;
    --btn-radius: 4px;
    --btn-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
    --btn-hover-transform: translateY(-2px);
    
    --navbar-bg: #6200ee;
    --nav-text: #ffffff;
}

/* 4. Neumorphism (~2019–2021) */
[data-theme="neumorphism"] {
    --bg-color: #e0e5ec;
    --bg-image: none;
    --text-main: #4a5568;
    --text-muted: #a0aec0;
    --accent-color: #4299e1;
    --font-family: 'Inter', sans-serif;
    
    --card-bg: #e0e5ec;
    --card-border: none;
    --card-radius: 20px;
    --card-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
    
    --btn-bg: #e0e5ec;
    --btn-text: #4a5568;
    --btn-border: none;
    --btn-radius: 10px;
    --btn-shadow: 5px 5px 10px rgb(163,177,198,0.6), -5px -5px 10px rgba(255,255,255, 0.5);
    --btn-hover-transform: scale(0.98);
    
    --navbar-bg: #e0e5ec;
    --nav-text: #4a5568;
}

/* 5. Glassmorphism (~2020–present) */
[data-theme="glassmorphism"] {
    --bg-color: #0f172a;
    --bg-image: linear-gradient(45deg, #ff00cc, #333399);
    --text-main: #ffffff;
    --text-muted: rgba(255,255,255,0.7);
    --accent-color: #00ffcc;
    --font-family: 'Inter', sans-serif;
    
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: 1px solid rgba(255, 255, 255, 0.2);
    --card-radius: 16px;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    --btn-bg: rgba(255, 255, 255, 0.05);
    --btn-text: #ffffff;
    --btn-border: 1px solid rgba(255, 255, 255, 0.18);
    --btn-radius: 8px;
    --btn-shadow: none;
    --btn-hover-transform: translateY(-2px);
    
    --navbar-bg: rgba(255, 255, 255, 0.05);
    --nav-text: #ffffff;
}

/* 6. Neobrutalism (~2021–present) */
[data-theme="neobrutalism"] {
    --bg-color: #fbd38d;
    --bg-image: none;
    --text-main: #000000;
    --text-muted: #333333;
    --accent-color: #000000;
    --font-family: 'Syne', 'Inter', sans-serif;
    
    --card-bg: #ffffff;
    --card-border: 4px solid #000000;
    --card-radius: 0px;
    --card-shadow: 8px 8px 0px #000000;
    
    --btn-bg: #90cdf4;
    --btn-text: #000000;
    --btn-border: 3px solid #000000;
    --btn-radius: 0px;
    --btn-shadow: 4px 4px 0px #000000;
    --btn-hover-transform: translate(2px, 2px);
    
    --navbar-bg: #ffb6b9;
    --nav-text: #000000;
}

/* 7. Claymorphism (~2021–present) */
[data-theme="claymorphism"] {
    --bg-color: #f1f5f9;
    --bg-image: none;
    --text-main: #334155;
    --text-muted: #64748b;
    --accent-color: #f43f5e;
    --font-family: 'Inter', sans-serif;
    
    --card-bg: #ffffff;
    --card-border: none;
    --card-radius: 32px;
    --card-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff, inset 4px 4px 10px rgba(255,255,255,0.5), inset -4px -4px 10px rgba(0,0,0,0.05);
    
    --btn-bg: #f43f5e;
    --btn-text: #ffffff;
    --btn-border: none;
    --btn-radius: 20px;
    --btn-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff, inset 2px 2px 5px rgba(255,255,255,0.3), inset -2px -2px 5px rgba(0,0,0,0.1);
    --btn-hover-transform: scale(0.95);
    
    --navbar-bg: #ffffff;
    --nav-text: #334155;
}

/* 8. Bento Grid (~2022–present) */
[data-theme="bento"] {
    --bg-color: #000000;
    --bg-image: none;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #3b82f6;
    --font-family: 'Inter', sans-serif;
    
    --card-bg: #111827;
    --card-border: 1px solid #1f2937;
    --card-radius: 24px;
    --card-shadow: none;
    
    --btn-bg: #1f2937;
    --btn-text: #f3f4f6;
    --btn-border: none;
    --btn-radius: 12px;
    --btn-shadow: none;
    --btn-hover-transform: scale(0.98);
    
    --navbar-bg: #000000;
    --nav-text: #f3f4f6;
}

/* 9. Aurora / Mesh Gradients (~2022–present) */
[data-theme="aurora"] {
    --bg-color: #0f0c29;
    --mesh-opacity: 1;
    --mesh-bg: radial-gradient(circle at 20% 30%, rgba(131,58,180,0.5) 0%, transparent 50%),
               radial-gradient(circle at 80% 70%, rgba(253,29,29,0.5) 0%, transparent 50%),
               radial-gradient(circle at 50% 50%, rgba(252,176,69,0.5) 0%, transparent 50%);
    --bg-image: none;
    --text-main: #ffffff;
    --text-muted: rgba(255,255,255,0.7);
    --accent-color: #fff;
    --font-family: 'Inter', sans-serif;
    
    --card-bg: rgba(255,255,255,0.03);
    --card-border: 1px solid rgba(255,255,255,0.1);
    --card-radius: 24px;
    --card-shadow: 0 8px 32px 0 rgba(0,0,0,0.2);
    
    --btn-bg: rgba(255,255,255,0.1);
    --btn-text: #ffffff;
    --btn-border: 1px solid rgba(255,255,255,0.2);
    --btn-radius: 20px;
    --btn-shadow: none;
    --btn-hover-transform: translateY(-2px);
    
    --navbar-bg: transparent;
    --nav-text: #ffffff;
}

/* 10. Dark Mode / Dark UI */
[data-theme="dark"] {
    --bg-color: #121212;
    --bg-image: none;
    --text-main: #e0e0e0;
    --text-muted: #9e9e9e;
    --accent-color: #bb86fc;
    --font-family: 'Inter', sans-serif;
    
    --card-bg: #1e1e1e;
    --card-border: 1px solid #2c2c2c;
    --card-radius: 8px;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.5);
    
    --btn-bg: #2d2d2d;
    --btn-text: #e0e0e0;
    --btn-border: 1px solid #404040;
    --btn-radius: 4px;
    --btn-shadow: none;
    --btn-hover-transform: translateY(-1px);
    
    --navbar-bg: #1f1f1f;
    --nav-text: #e0e0e0;
}

/* 11. Cyberpunk / Futurism */
[data-theme="cyberpunk"] {
    --bg-color: #0b0f19;
    --bg-image: linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, .1) 25%, rgba(0, 255, 255, .1) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, .1) 75%, rgba(0, 255, 255, .1) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, .1) 25%, rgba(0, 255, 255, .1) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, .1) 75%, rgba(0, 255, 255, .1) 76%, transparent 77%, transparent);
    --bg-size: 50px 50px;
    --text-main: #00ffff;
    --text-muted: #ff00ff;
    --accent-color: #fcee0a;
    --font-family: 'Roboto Mono', monospace;
    
    --card-bg: rgba(11, 15, 25, 0.8);
    --card-border: 1px solid #00ffff;
    --card-radius: 0px;
    --card-shadow: 0 0 10px rgba(0,255,255,0.5);
    
    --btn-bg: transparent;
    --btn-text: #fcee0a;
    --btn-border: 1px solid #fcee0a;
    --btn-radius: 0px;
    --btn-shadow: 0 0 5px #fcee0a;
    --btn-hover-transform: scale(1.05);
    
    --navbar-bg: #000000;
    --nav-text: #00ffff;
}

/* 12. Y2K / Tech Nostalgia */
[data-theme="y2k"] {
    --bg-color: #d1e8ff;
    --bg-image: repeating-linear-gradient(45deg, #e6f2ff 0px, #e6f2ff 10px, #d1e8ff 10px, #d1e8ff 20px);
    --text-main: #000080;
    --text-muted: #555555;
    --accent-color: #ff00ff;
    --font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    
    --card-bg: linear-gradient(135deg, #ffffff 0%, #dcdcdc 100%);
    --card-border: 2px outset #ffffff;
    --card-radius: 15px;
    --card-shadow: 3px 3px 5px rgba(0,0,0,0.3);
    
    --btn-bg: linear-gradient(to bottom, #ff99ff 0%, #ff00ff 100%);
    --btn-text: #ffffff;
    --btn-border: 2px outset #ffccff;
    --btn-radius: 20px;
    --btn-shadow: 0 0 10px rgba(255,0,255,0.5);
    --btn-hover-transform: scale(1.1);
    
    --navbar-bg: #c0c0c0;
    --nav-text: #000080;
}

/* 13. Vaporwave */
[data-theme="vaporwave"] {
    --bg-color: #ffb3ff;
    --bg-image: linear-gradient(180deg, #ffb3ff 0%, #99ccff 100%);
    --text-main: #00ffff;
    --text-muted: #ffffff;
    --accent-color: #ff00ff;
    --font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 0px #ff00ff;
    
    --card-bg: rgba(255,255,255,0.2);
    --card-border: 2px solid #00ffff;
    --card-radius: 0px;
    --card-shadow: 5px 5px 0px #ff00ff;
    
    --btn-bg: #00ffff;
    --btn-text: #ff00ff;
    --btn-border: 2px solid #ff00ff;
    --btn-radius: 0px;
    --btn-shadow: 3px 3px 0px #ffffff;
    --btn-hover-transform: translate(-2px, -2px);
    
    --navbar-bg: rgba(255,179,255,0.8);
    --nav-text: #00ffff;
}

/* 14. Swiss / Typographic Style */
[data-theme="swiss"] {
    --bg-color: #ffffff;
    --bg-image: none;
    --text-main: #111111;
    --text-muted: #555555;
    --accent-color: #ff0000;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --card-bg: #ffffff;
    --card-border: none;
    --card-radius: 0px;
    --card-shadow: none;
    
    --btn-bg: #111111;
    --btn-text: #ffffff;
    --btn-border: none;
    --btn-radius: 0px;
    --btn-shadow: none;
    --btn-hover-transform: translateX(5px);
    
    --navbar-bg: #ffffff;
    --nav-text: #111111;
}

/* 15. Brutalism (Web) */
[data-theme="brutalism"] {
    --bg-color: #0000ff;
    --bg-image: none;
    --text-main: #ffffff;
    --text-muted: #ffff00;
    --accent-color: #ff0000;
    --font-family: 'Times New Roman', serif;
    
    --card-bg: transparent;
    --card-border: 2px dashed #ffffff;
    --card-radius: 0px;
    --card-shadow: none;
    
    --btn-bg: #ff0000;
    --btn-text: #ffffff;
    --btn-border: none;
    --btn-radius: 0px;
    --btn-shadow: none;
    --btn-hover-transform: none;
    
    --navbar-bg: #0000ff;
    --nav-text: #ffffff;
}

/* 16. Memphis Design */
[data-theme="memphis"] {
    --bg-color: #ffffff;
    --bg-image: radial-gradient(#000000 2px, transparent 2px);
    --bg-size: 20px 20px;
    --text-main: #000000;
    --text-muted: #ff0066;
    --accent-color: #00ccff;
    --font-family: 'Syne', sans-serif;
    
    --card-bg: #ffff00;
    --card-border: 4px solid #000000;
    --card-radius: 0px;
    --card-shadow: 10px 10px 0px #ff0066;
    
    --btn-bg: #00ccff;
    --btn-text: #000000;
    --btn-border: 4px solid #000000;
    --btn-radius: 50px;
    --btn-shadow: 5px 5px 0px #000000;
    --btn-hover-transform: rotate(-5deg) scale(1.1);
    
    --navbar-bg: #ff0066;
    --nav-text: #ffffff;
}

/* 17. Minimalism */
[data-theme="minimalism"] {
    --bg-color: #fafafa;
    --bg-image: none;
    --text-main: #1a1a1a;
    --text-muted: #999999;
    --accent-color: #1a1a1a;
    --font-family: 'Inter', sans-serif;
    
    --card-bg: transparent;
    --card-border: none;
    --card-radius: 0px;
    --card-shadow: none;
    
    --btn-bg: transparent;
    --btn-text: #1a1a1a;
    --btn-border: 1px solid #1a1a1a;
    --btn-radius: 0px;
    --btn-shadow: none;
    --btn-hover-transform: scale(0.95);
    
    --navbar-bg: transparent;
    --nav-text: #1a1a1a;
}

/* 18. Maximalism */
[data-theme="maximalism"] {
    --bg-color: #ff0000;
    --bg-image: repeating-linear-gradient(45deg, #ffff00, #ffff00 20px, #ff00ff 20px, #ff00ff 40px);
    --text-main: #0000ff;
    --text-muted: #000000;
    --accent-color: #00ff00;
    --font-family: 'Impact', 'Syne', sans-serif;
    font-size: 1.2rem;
    
    --card-bg: #00ffff;
    --card-border: 10px solid #0000ff;
    --card-radius: 50px;
    --card-shadow: 15px 15px 0px #ff0000, -15px -15px 0px #00ff00;
    
    --btn-bg: #ff00ff;
    --btn-text: #ffff00;
    --btn-border: 5px dotted #000000;
    --btn-radius: 0px;
    --btn-shadow: 10px 10px 0px #0000ff;
    --btn-hover-transform: rotate(10deg) scale(1.2);
    
    --navbar-bg: #ffff00;
    --nav-text: #ff0000;
}

/* 19. Pixel Art UI */
[data-theme="pixel"] {
    --bg-color: #222222;
    --bg-image: none;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent-color: #ff0000;
    --font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    
    --card-bg: #444444;
    --card-border: 4px solid #ffffff;
    --card-radius: 0px;
    --card-shadow: inset -4px -4px 0px #222222, inset 4px 4px 0px #888888;
    
    --btn-bg: #aaaaaa;
    --btn-text: #000000;
    --btn-border: 4px solid #ffffff;
    --btn-radius: 0px;
    --btn-shadow: inset -4px -4px 0px #555555, inset 4px 4px 0px #ffffff;
    --btn-hover-transform: translateY(4px);
    
    --navbar-bg: #000000;
    --nav-text: #ffffff;
}

/* 20. Hand-drawn / Sketch UI */
[data-theme="sketch"] {
    --bg-color: #fdf5e6;
    --bg-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.05"/></svg>');
    --text-main: #2a2a2a;
    --text-muted: #5a5a5a;
    --accent-color: #d9534f;
    --font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    
    --card-bg: transparent;
    --card-border: 3px solid #2a2a2a;
    --card-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    --card-shadow: none;
    
    --btn-bg: transparent;
    --btn-text: #2a2a2a;
    --btn-border: 2px solid #2a2a2a;
    --btn-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    --btn-shadow: 3px 3px 0 #2a2a2a;
    --btn-hover-transform: translate(-2px, -2px);
    
    --navbar-bg: transparent;
    --nav-text: #2a2a2a;
}

/* 21. Retro / Vintage */
[data-theme="retro"] {
    --bg-color: #eaddcf;
    --bg-image: none;
    --text-main: #3e2723;
    --text-muted: #5d4037;
    --accent-color: #bf360c;
    --font-family: 'Playfair Display', serif;
    
    --card-bg: #fff3e0;
    --card-border: 1px solid #8d6e63;
    --card-radius: 2px;
    --card-shadow: 5px 5px 15px rgba(62, 39, 35, 0.2);
    
    --btn-bg: #d7ccc8;
    --btn-text: #3e2723;
    --btn-border: 2px solid #5d4037;
    --btn-radius: 2px;
    --btn-shadow: 2px 2px 0px #5d4037;
    --btn-hover-transform: translate(2px, 2px);
    
    --navbar-bg: #8d6e63;
    --nav-text: #fff3e0;
}

/* 22. Motion-first / Kinetic Design */
[data-theme="kinetic"] {
    --bg-color: #111111;
    --bg-image: none;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-color: #00ffaa;
    --font-family: 'Syne', sans-serif;
    
    --card-bg: #222222;
    --card-border: none;
    --card-radius: 30px;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.5);
    
    --btn-bg: #00ffaa;
    --btn-text: #000000;
    --btn-border: none;
    --btn-radius: 50px;
    --btn-shadow: 0 10px 20px rgba(0,255,170,0.3);
    --btn-hover-transform: scale(1.05) rotate(2deg);
    
    --navbar-bg: transparent;
    --nav-text: #ffffff;
}

/* 23. Data-ink / Info Design */
[data-theme="dataink"] {
    --bg-color: #ffffff;
    --bg-image: none;
    --text-main: #000000;
    --text-muted: #555555;
    --accent-color: #000000;
    --font-family: 'Courier Prime', monospace;
    
    --card-bg: #ffffff;
    --card-border: 1px solid #dddddd;
    --card-radius: 0px;
    --card-shadow: none;
    
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --btn-border: 1px solid #000000;
    --btn-radius: 0px;
    --btn-shadow: none;
    --btn-hover-transform: none;
    
    --navbar-bg: #f9f9f9;
    --nav-text: #000000;
    --nav-border: 1px solid #dddddd;
}

/* =========================================
   LAYOUT & COMPONENTS
   ========================================= */

body {
    background-color: var(--bg-color);
    background-image: var(--bg-image);
    background-size: var(--bg-size, auto);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--mesh-bg);
    opacity: var(--mesh-opacity);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--navbar-bg);
    color: var(--nav-text);
    border-radius: var(--card-radius);
    margin-top: 20px;
    border-bottom: var(--nav-border, none);
    box-shadow: var(--card-shadow);
}

[data-theme="flat"] .navbar,
[data-theme="material"] .navbar,
[data-theme="cyberpunk"] .navbar,
[data-theme="brutalism"] .navbar {
    border-radius: 0;
    margin-top: 0;
    padding: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
}

/* Hero Section */
.apple-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 0 20px;
    text-align: center;
    width: 100%;
}

.apple-hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.apple-massive-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--text-main);
}

.apple-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0;
}

.apple-cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.apple-hero-btn {
    height: 56px;
    border-radius: var(--btn-radius, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    border: var(--btn-border, none);
    transition: all 0.2s ease;
    box-shadow: var(--btn-shadow, 0 4px 12px rgba(0,0,0,0.1));
}

.apple-hero-btn:hover {
    transform: var(--btn-hover-transform, translateY(-2px));
    box-shadow: var(--btn-shadow, 0 6px 16px rgba(0,0,0,0.15));
}

.apple-btn-large {
    width: 240px;
    background: var(--btn-bg, var(--text-main));
    color: var(--btn-text, var(--bg-color));
}

.apple-btn-small {
    width: 64px;
    background: var(--card-bg);
    color: var(--text-main);
    border: var(--card-border);
}

.apple-sandbox-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 60px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.premium-components-section {
    padding: 120px 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.apple-footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.apple-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.hero-card, .about-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    position: relative;
    z-index: 1;
}

[data-theme="kinetic"] .hero-card {
    transform: perspective(1000px) rotateX(var(--mouse-y, 0deg)) rotateY(var(--mouse-x, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.profile-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="pixel"] .profile-badge {
    border-radius: 0;
}

.name {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -1px;
}

[data-theme="vaporwave"] .name,
[data-theme="cyberpunk"] .name {
    text-transform: uppercase;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: var(--btn-border);
    border-radius: var(--btn-radius);
    box-shadow: var(--btn-shadow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.social-btn svg {
    stroke: currentColor;
}

[data-theme="glassmorphism"] .social-btn.primary,
[data-theme="claymorphism"] .social-btn.primary {
    background: var(--accent-color);
    color: #fff;
}

.social-btn:hover {
    transform: var(--btn-hover-transform);
    filter: brightness(1.1);
}

/* Theme Controls */
.theme-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.control-header {
    margin-bottom: 30px;
}

.control-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modern-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: var(--btn-border);
    border-radius: var(--btn-radius);
    box-shadow: var(--btn-shadow);
    cursor: pointer;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.modern-toggle.clicked {
    transform: scale(0.95);
    filter: brightness(0.9);
}

.modern-toggle:hover {
    transform: var(--btn-hover-transform);
}

.theme-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.next-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.divider {
    height: 1px;
    background: var(--text-muted);
    opacity: 0.2;
    margin: 40px 0;
}

.social-links-minimal a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.social-links-minimal a:hover {
    text-decoration: underline;
}

/* Glassmorphism specific fixes */
[data-theme="glassmorphism"] body {
    backdrop-filter: blur(10px);
}
[data-theme="glassmorphism"] .hero-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Brutalism specific fixes */
[data-theme="brutalism"] * {
    font-family: "Courier New", Courier, monospace;
}
[data-theme="brutalism"] .name {
    text-transform: uppercase;
    text-decoration: underline;
}

/* Swiss typography specifics */
[data-theme="swiss"] .name {
    font-size: 4rem;
    letter-spacing: -2px;
}
[data-theme="swiss"] .description {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* =========================================
   INTERACTIVE SANDBOX UI
   ========================================= */

.interactive-sandbox {
    margin-top: 0;
}

.ui-elements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .ui-elements-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ui-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.ui-group.full-width {
    grid-column: 1 / -1;
    align-items: center;
    margin-top: 10px;
}

.ui-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Base UI Input */
.ui-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: var(--btn-border);
    border-radius: var(--btn-radius);
    box-shadow: var(--btn-shadow);
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.ui-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color), 0.2), var(--btn-shadow);
}

.ui-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Custom Checkbox */
.checkbox-group {
    justify-content: center;
}

.ui-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: var(--text-main) !important;
}

.ui-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ui-checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: var(--btn-bg);
    border: var(--btn-border);
    border-radius: var(--btn-radius);
    box-shadow: var(--btn-shadow);
    transition: all 0.2s ease;
}

.ui-checkbox-container:hover input ~ .ui-checkmark {
    filter: brightness(0.9);
}

.ui-checkbox-container input:checked ~ .ui-checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.ui-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.ui-checkbox-container input:checked ~ .ui-checkmark:after {
    display: block;
}

/* Custom Toggle Switch */
.toggle-group {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.ui-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.ui-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ui-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--btn-bg);
    border: var(--btn-border);
    box-shadow: var(--btn-shadow);
    transition: .4s;
    border-radius: 34px;
}

.ui-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: calc(50% - 10px);
    background-color: var(--text-main);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .ui-slider {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

input:checked + .ui-slider:before {
    transform: translateX(22px);
    background-color: var(--bg-color);
}

.ui-toggle-label {
    font-weight: bold;
    color: var(--text-main);
}

/* Custom Range Slider */
.ui-range {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: var(--btn-radius);
    background: var(--btn-bg);
    border: var(--btn-border);
    box-shadow: var(--btn-shadow);
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
}

.ui-range:hover {
    opacity: 1;
}

.ui-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.ui-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--bg-color);
}

/* Action Button with Loading State */
.ui-btn {
    padding: 12px 30px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: var(--btn-border);
    border-radius: var(--btn-radius);
    box-shadow: var(--btn-shadow);
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    min-height: 48px;
    transition: all 0.3s ease;
}

.ui-btn:hover {
    transform: var(--btn-hover-transform);
    filter: brightness(1.1);
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ui-btn.loading .btn-text {
    visibility: hidden;
}

.ui-btn.loading .btn-loader {
    display: block;
}

/* =========================================
   THEME SPECIFIC UI FIXES
   ========================================= */

/* Skeuomorphism specifics */
[data-theme="skeuomorphism"] .ui-slider:before {
    background: linear-gradient(180deg, #f0f0f0, #a0a0a0);
    box-shadow: inset 0 1px 1px white, 0 2px 3px rgba(0,0,0,0.5);
    border: 1px solid #777;
}
[data-theme="skeuomorphism"] .ui-range::-webkit-slider-thumb {
    background: linear-gradient(180deg, #e0e0e0, #888);
    box-shadow: inset 0 1px 1px white, 0 2px 4px rgba(0,0,0,0.6);
}

/* Neumorphism specifics */
[data-theme="neumorphism"] .ui-input {
    box-shadow: inset 5px 5px 10px rgb(163,177,198,0.6), inset -5px -5px 10px rgba(255,255,255, 0.5);
    background: var(--bg-color);
}

/* Brutalism specifics */
[data-theme="brutalism"] .ui-input,
[data-theme="brutalism"] .ui-btn {
    border: 2px solid #ffffff;
    border-radius: 0;
    box-shadow: 5px 5px 0 #ffff00;
}
[data-theme="brutalism"] .ui-checkbox-container input:checked ~ .ui-checkmark {
    background: #ff0000;
}
[data-theme="brutalism"] .ui-range::-webkit-slider-thumb {
    border-radius: 0;
    background: #ffff00;
    border: 2px solid #fff;
}

/* Pixel Art specifics */
[data-theme="pixel"] .ui-slider,
[data-theme="pixel"] .ui-slider:before,
[data-theme="pixel"] .ui-range::-webkit-slider-thumb,
[data-theme="pixel"] .ui-checkmark {
    border-radius: 0;
}

/* Vaporwave specifics */
[data-theme="vaporwave"] .ui-input {
    background: rgba(0,255,255,0.1);
    color: #ff00ff;
}
[data-theme="vaporwave"] .ui-slider:before {
    border-radius: 0;
    background: #ff00ff;
}

/* Sketch specifics */
[data-theme="sketch"] .ui-slider,
[data-theme="sketch"] .ui-checkmark,
[data-theme="sketch"] .ui-input,
[data-theme="sketch"] .ui-range {
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

/* =========================================
   UIVERSE.IO COMPLEX COMPONENTS
   ========================================= */

/* --- 1. Complex Action Button (vinodjangid07) Base --- */
.complex-btn {
  display: flex;
  width: 170px;
  height: 45px;
  background-color: var(--btn-bg);
  border-radius: var(--btn-radius, 40px);
  box-shadow: var(--btn-shadow);
  justify-content: space-between;
  align-items: center;
  border: var(--btn-border);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}
.complex-btn .btn-icon {
  width: 45px;
  height: 100%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 var(--btn-radius, 40px) var(--btn-radius, 40px) 0;
  color: var(--bg-color);
  transition: all 0.3s ease;
}
[data-theme="skeuomorphism"] .complex-btn .btn-icon,
[data-theme="retro"] .complex-btn .btn-icon {
  border-radius: 0;
}
.complex-btn .btn-text {
  width: calc(100% - 45px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-text);
  font-size: 1rem;
  font-weight: bold;
}
.complex-btn:hover .btn-icon svg {
  animation: arrow 1s linear infinite;
}
.complex-btn .btn-loader {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--btn-text);
    animation: spin 1s ease-in-out infinite;
}
.complex-btn.loading .btn-text, .complex-btn.loading .btn-icon {
    visibility: hidden;
}
.complex-btn.loading .btn-loader {
    display: block;
}

/* --- 2. Radio Input Base (m1her) adapted --- */
.radio-input {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: rgba(0,0,0,0.1);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
}
[data-theme="pixel"] .radio-input { border-radius: 0; }

.radio-input input {
  display: none;
}
.radio-label {
  width: 80px;
  height: 40px;
  background: var(--btn-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.1s linear;
  position: relative;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  border: var(--btn-border);
}
.radio-label:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.radio-label:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
[data-theme="pixel"] .radio-label { border-radius: 0; }

.radio-label .text {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 0.1s linear;
}
.radio-label:has(input[type="radio"]:checked) {
  background: var(--accent-color);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}
.radio-label:has(input[type="radio"]:checked) .text {
  color: var(--bg-color);
}

/* --- 3. Complex Switch Base --- */
.complex-switch {
  position: relative;
  width: 60px;
  height: 30px;
}
.complex-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.complex-switch .complex-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--btn-bg);
  border-radius: 34px;
  border: var(--btn-border);
  transition: 0.4s;
}
.complex-switch .complex-slider:before {
  position: absolute;
  content: "";
  height: 22px; width: 22px;
  left: 4px; bottom: 3px;
  background-color: var(--text-main);
  border-radius: 50%;
  transition: 0.4s;
}
.complex-switch input:checked + .complex-slider {
  background-color: var(--accent-color);
}
.complex-switch input:checked + .complex-slider:before {
  transform: translateX(30px);
  background-color: var(--bg-color);
}
.complex-switch .complex-slider i { display: none; } /* Hide the custom inner ticks by default */


/* =========================================
   UIVERSE THEME SPECIFIC OVERRIDES
   ========================================= */

/* Skeuomorphism Toggle (elijahgummer) */
[data-theme="skeuomorphism"] .complex-switch {
  width: 100px; height: 40px;
  background: #0d0d0d;
  border-radius: 6px;
  box-shadow: inset 0 1px 1px 1px rgba(0, 0, 0, 0.5), 0 1px 0 0 rgba(255, 255, 255, 0.1);
  padding: 3px;
  box-sizing: border-box;
}
[data-theme="skeuomorphism"] .complex-switch .complex-slider {
  width: 50%; height: 100%;
  background: #1b1c1c;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  border: none;
  left: 0;
}
[data-theme="skeuomorphism"] .complex-switch .complex-slider:before {
  width: 5px; height: 5px;
  margin-left: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px 2px rgba(165, 15, 15, 0.9), 0 0 3px 1px rgba(165, 15, 15, 0.9);
  left: auto; bottom: auto;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transform: none;
}
[data-theme="skeuomorphism"] .complex-switch input:checked + .complex-slider {
  left: 50%; background: #1b1c1c;
}
[data-theme="skeuomorphism"] .complex-switch input:checked + .complex-slider:before {
  box-shadow: 0 0 5px 2px rgba(15, 165, 70, 0.9), 0 0 3px 1px rgba(15, 165, 70, 0.9);
  transform: none; background: #fff;
}
[data-theme="skeuomorphism"] .complex-switch .complex-slider i {
  display: block; position: absolute;
  top: 50%; left: 50%; width: 3px; height: 24px;
  margin-top: -12px; margin-left: -1.5px;
  border-radius: 2px; background: #0d0d0d;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3);
}
[data-theme="skeuomorphism"] .complex-switch .complex-slider i:before,
[data-theme="skeuomorphism"] .complex-switch .complex-slider i:after {
  content: ""; display: block; position: absolute;
  width: 100%; height: 100%; border-radius: 2px;
  background: #0d0d0d; box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3);
}
[data-theme="skeuomorphism"] .complex-switch .complex-slider i:before { left: -7px; }
[data-theme="skeuomorphism"] .complex-switch .complex-slider i:after { left: 7px; }


/* Dark Mode Toggle (satyamchaudharydev) */
[data-theme="dark"] .complex-switch {
  --width-of-switch: 3.5em;
  --height-of-switch: 2em;
  --size-of-icon: 1.4em;
  --slider-offset: 0.3em;
  width: var(--width-of-switch);
  height: var(--height-of-switch);
}
[data-theme="dark"] .complex-switch .complex-slider {
  background-color: #f4f4f5;
  border-radius: 30px; border: none;
}
[data-theme="dark"] .complex-switch .complex-slider:before {
  height: var(--size-of-icon);
  width: var(--size-of-icon);
  border-radius: 20px;
  left: var(--slider-offset);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(40deg,#ff0080,#ff8c00 70%);
}
[data-theme="dark"] .complex-switch input:checked + .complex-slider {
  background-color: #303136;
}
[data-theme="dark"] .complex-switch input:checked + .complex-slider:before {
  left: calc(100% - (var(--size-of-icon) + var(--slider-offset)));
  background: #303136;
  box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
  transform: translateY(-50%);
}

/* Skeuomorphism / Neumorphism Radio (m1her adapted) */
[data-theme="skeuomorphism"] .radio-input,
[data-theme="neumorphism"] .radio-input {
  background-color: #000;
}
[data-theme="skeuomorphism"] .radio-label,
[data-theme="neumorphism"] .radio-label {
  background: linear-gradient(to bottom, #333333, rgb(36, 35, 35));
  border-top: 1px solid #4e4d4d;
  box-shadow: 0px 17px 5px 1px rgba(0, 0, 0, 0.2);
}
[data-theme="skeuomorphism"] .radio-label:has(input[type="radio"]:checked),
[data-theme="neumorphism"] .radio-label:has(input[type="radio"]:checked) {
  box-shadow: 0px 17px 5px 1px rgba(0, 0, 0, 0);
  background: linear-gradient(to bottom, #1d1d1d, #1d1d1d);
  border-top: none;
}
[data-theme="skeuomorphism"] .radio-label .text,
[data-theme="neumorphism"] .radio-label .text {
  color: #fff;
  text-shadow: -1px -1px 1px rgb(224, 224, 224, 0.1), 0px 2px 3px rgb(0, 0, 0, 0.3);
}
[data-theme="skeuomorphism"] .radio-label:has(input[type="radio"]:checked) .text,
[data-theme="neumorphism"] .radio-label:has(input[type="radio"]:checked) .text {
  color: rgb(202, 226, 253);
  text-shadow: 0px 0px 12px #cae2fd;
}
