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

:root {
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --phone-bg: #0f0f1e;
    --phone-border: rgba(255, 255, 255, 0.1);
    --icon-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --icon-hover-glow: rgba(102, 126, 234, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow-phone: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-icon: 0 4px 15px rgba(0, 0, 0, 0.3);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ========================================
   Layout
   ======================================== */
.header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    z-index: 1;
}

.logo {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-width: 400px;
    width: clamp(250px, 80vw, 400px);
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
}

.ads-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adsbygoogle {
    display: block;
    margin: 0 auto;
}

.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    z-index: 1;
}

.footer-nav {
    margin-top: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--text-primary);
    outline: none;
}

.footer-separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.copyright {
    margin-bottom: 0.25rem;
}

/* ========================================
   Phone Frame
   ======================================== */
.phone-frame {
    background: var(--phone-bg);
    border-radius: 2.5rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-phone);
    border: 1px solid var(--phone-border);
    max-width: 100%;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

/* ========================================
   Icons Grid
   ======================================== */
.icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    list-style: none;
    width: 100%;
}

.icon-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.icon-link:not(.coming-soon):hover,
.icon-link:not(.coming-soon):focus {
    transform: scale(1.05);
    outline: none;
}

.icon-link:not(.coming-soon):active {
    transform: scale(0.98);
}

.coming-soon {
    cursor: default;
    opacity: 0.6;
    filter: grayscale(0.3);
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* ========================================
   Icons
   ======================================== */
.icon {
    width: 100%;
    aspect-ratio: 1;
    min-width: 60px;
    min-height: 60px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-icon);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: var(--icon-bg);
}

.icon-link:not(.coming-soon):hover .icon,
.icon-link:not(.coming-soon):focus .icon {
    box-shadow: 0 6px 20px var(--icon-hover-glow);
}

.icon-emoji {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
}

.icon-image {
    width: 85%;
    height: 85%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* Individual icon color variations */
.drone-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.usaid-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.border-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.sombrero-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.dogeman-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dogeman-icon .icon-image {
    width: 55%;
    height: 55%;
}

.soon-icon {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.soon-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-label {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
}

.coming-soon .icon-label {
    color: var(--text-secondary);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet: 4 columns */
@media (min-width: 600px) and (max-width: 1023px) {
    .icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .phone-frame {
        max-width: 600px;
        padding: 2.5rem 2rem;
    }
}

/* Desktop: centered with more space */
@media (min-width: 1024px) {
    .icons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .phone-frame {
        max-width: 500px;
        padding: 3rem 2.5rem;
    }
    
    .header {
        padding: 3rem 1rem 2rem;
    }
    
    .footer {
        padding: 2.5rem 1rem;
    }
}

/* Large desktop: prevent phone from getting too large */
@media (min-width: 1440px) {
    .phone-frame {
        max-width: 550px;
    }
}

/* Small mobile: ensure icons are still tappable */
@media (max-width: 374px) {
    .icons-grid {
        gap: 1rem;
    }
    
    .phone-frame {
        padding: 1.5rem 1rem;
        border-radius: 2rem;
    }
    
    .icon {
        min-width: 60px;
        min-height: 60px;
    }
}

/* Focus styles for accessibility */
.icon-link:focus-visible {
    outline: 2px solid var(--icon-hover-glow);
    outline-offset: 4px;
    border-radius: 1.5rem;
}

.footer-link:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

