/* ===================================
   INVISIBLE PENGUIN - 2025 LIQUID GLASS DESIGN
   Modern, Responsive, Privacy-Focused
   =================================== */

/* CSS Variables for Easy Customization */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #000000;
    --text-secondary: #000000;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.glass-subcard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all var(--transition-speed);
}

/* Header Styles */
header {
    padding: 40px 20px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 300;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin: 40px 0;
    padding: 40px;
    animation: fadeIn 0.6s ease-out;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 25px;
    text-align: center;
}

.section-intro, .lead {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Privacy Highlights */
.privacy-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.highlight-item {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all var(--transition-speed);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.highlight-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.app-card {
    padding: 30px;
    text-align: center;
    transition: all var(--transition-speed);
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform var(--transition-speed);
}

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

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.app-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-card p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Liquid Glass Buttons */
.liquid-glass-btn {
    position: relative;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.liquid-glass-btn:hover::before {
    left: 100%;
}

.liquid-glass-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.liquid-glass-btn:active {
    transform: translateY(-1px);
}

.liquid-glass-btn.primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    border-color: rgba(255, 255, 255, 0.3);
}

.liquid-glass-btn.primary:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

/* Privacy Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tip-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
    text-align: center;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tip-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.tip-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Game Styles */
.game {
    text-align: center;
}

.game-instructions {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.controls-info {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

#game-area {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 25px auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.6), rgba(42, 82, 152, 0.6));
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3), var(--shadow-md);
}

#player, #target {
    position: absolute;
    font-size: 2.5rem;
    transition: all 0.05s linear;
    user-select: none;
    cursor: grab;
}

#player:active {
    cursor: grabbing;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.control-row {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
}

.control-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* CTA Section */
.cta {
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Footer */
footer {
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
}

footer p {
    margin: 5px 0;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 25px 20px;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .privacy-highlights,
    .apps-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #game-area {
        height: 300px;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .game-stats {
        gap: 20px;
    }
    
    .stat {
        padding: 12px 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .liquid-glass-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 15px;
    }
    
    section {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    #game-area {
        height: 250px;
    }
    
    #player, #target {
        font-size: 2rem;
    }
    
    .control-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-card,
    .glass-subcard {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .liquid-glass-btn {
        border: 2px solid rgba(255, 255, 255, 0.6);
    }
}

/* Focus Styles for Keyboard Navigation */
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .mobile-controls,
    .game,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
 


.footer-favicon {
    width: 16px;  /* Adjust the width to make the image smaller */
    height: auto;  /* Maintain the aspect ratio */
    vertical-align: middle;  /* Align the image with the text */
    margin-left: 4px;  /* Space between the text and image */
}


#joystick {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  touch-action: none; /* critical for mobile dragging */
  z-index: 9999;
}

#joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.35);
}


