* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Behind-the-site background for Safari chrome/overscroll */
    background: #000 !important; /* pure black behind the site */
    color-scheme: dark; /* hint UA for dark UI (scrollbars, form controls) */
}

/* Root overscroll hint (do not lock scrolling globally) */
html, body {
    overscroll-behavior: none;
}

/* Improve button layout inside cards (e.g., Channels dual buttons) */
.project-card .hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.project-card .hero-buttons .btn {
    flex: 1 1 180px;
    justify-content: center;
}

@media (max-width: 520px) {
  .project-card .hero-buttons .btn { flex-basis: 100%; }
}

/* Treat medium/half window sizes like mobile to prevent squishing */
@media (max-width: 1300px) {
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    .nav-container { padding: 0 1rem; }

    .container { padding: 1.25rem; }

    .hero { 
        flex-direction: column; 
        text-align: center; 
        min-height: auto; 
        padding: 1.5rem 0; 
        margin-bottom: 2rem; 
        gap: 1.25rem;
    }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { justify-content: center; }
    .hero-graphic { width: 240px; height: 240px; }
    .graphic-element { width: 80px; height: 80px; }

    .links-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .tools-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0b2e23 5%, #1a4a34 20%, #1e3a5f 60%, #2d1b69 90%, #1a0f3d 100%);
    min-height: 100vh; /* fallback */
    min-height: 100svh; /* cover safe areas on mobile */
    color: white;
    line-height: 1.6;
}

/* iOS status-bar overlay (for black-translucent) to match navbar tone */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px; /* force solid black strip under Safari status bar on mobile web */
    background: #000; /* pure black to match status bar */
    z-index: 2100;
    pointer-events: none;
}

/* Scroll container below fixed navbar */
.page-main {
    height: 100svh; /* fill viewport */
    padding-top: calc(72px + env(safe-area-inset-top, 0px)); /* desktop comfortable offset */
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); /* keep footer clear of home indicator */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; /* stop chaining/bounce */
}

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

/* Reduce extra top padding on the first container inside page-main */
.page-main > .container:first-child {
    padding-top: 0.5rem;
}

/* Fallback: pages without .page-main (older pages) */
/* Apply padding to the first content container that appears anywhere after the fixed navbar
   (handles a rotate-lock element between nav and content) */
body > nav.navbar ~ .container:first-of-type {
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
}
@media (max-width: 900px) {
    body > nav.navbar ~ .container:first-of-type {
        /* Extra buffer for viewport zoom and larger titles on phones */
        padding-top: calc(104px + env(safe-area-inset-top, 0px));
    }

    /* Additionally pad the first page header under that container so large H1s don't clip */
    body > nav.navbar ~ .container:first-of-type .page-header:first-of-type,
    body > nav.navbar ~ .container:first-of-type .hero:first-of-type {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000; /* solid black to match status bar */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3000; /* Above menu (2200) and status overlay (2100) so toggle/logo stay tappable */
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 1rem;
}

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

/* Keep logo and toggle above the dropdown overlay */
.nav-logo, .nav-toggle {
    position: relative;
    z-index: 4000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Clickable Home link (logo + brand) */
.nav-home-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.nav-home-link:hover .nav-brand {
    color: #7fff00;
}

/* Prevent intrusive focus ring on mouse click; keep focus-visible for keyboard */
.nav-home-link:focus { outline: none; }
.nav-home-link:focus-visible { outline: none; }
.nav-home-link:active { outline: none; }
.nav-logo-img { outline: none; }

.nav-logo-img {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(127, 255, 0, 0.3));
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

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

.nav-link {
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #7fff00;
    background: rgba(127, 255, 0, 0.12);
    box-shadow: 0 6px 18px rgba(127, 255, 0, 0.12);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    z-index: 1100; /* Above nav menu */
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    display: block;
}

.nav-toggle:focus-visible {
    outline: 2px solid #7fff00;
    outline-offset: 2px;
}

/* Adjust body for fixed navbar - handled by .page-main now */
body {
    padding-top: 0;
}

/* Footer spacing handled below in unified Footer Styles */

/* Header Styles (legacy) */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(127, 255, 0, 0.3));
}

/* Description Section */
/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 2.25rem 0; /* desktop comfortable spacing */
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 720px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(45deg, #7fff00, #00ff88, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0 auto 1.75rem;
    max-width: 680px;
    text-align: center;
}

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

.hero-buttons.center {
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(45deg, #7fff00, #00ff88);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 255, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(127, 255, 0, 0.2), rgba(0, 255, 136, 0.2));
    border: 2px solid rgba(127, 255, 0, 0.3);
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.graphic-element:nth-child(1) {
    animation-delay: 0s;
    transform: rotate(15deg);
}

.graphic-element:nth-child(2) {
    animation-delay: 2s;
    transform: rotate(-15deg) scale(0.8);
}

.graphic-element:nth-child(3) {
    animation-delay: 4s;
    transform: rotate(45deg) scale(0.6);
}

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

/* Legacy description styles for compatibility */
.description {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.description p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-description {
    font-size: 1rem;
    opacity: 0.8;
    color: #d0d0d0;
    max-width: 500px;
    margin: 0 auto;
}

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

/* Quick Links Section */
.quick-links {
    padding: 3rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 0.5rem;
}

/* Constrain quick links content width for better balance */
.quick-links > .container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.quick-link-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.05), rgba(0, 255, 136, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(127, 255, 0, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(127, 255, 0, 0.1);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.1), rgba(0, 255, 136, 0.1));
    border-radius: 20px;
    transition: all 0.3s ease;
}

.quick-link-icon svg {
    width: 32px;
    height: 32px;
    z-index: 1;
    position: relative;
    color: #ffffff; /* Always readable */
    transition: all 0.3s ease;
}

.quick-link-icon.gaming {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.quick-link-icon.entertainment {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.quick-link-icon.apps {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.3);
}

.quick-link-icon.design {
    background: linear-gradient(135deg, #7fff00, #00ff88);
    box-shadow: 0 8px 32px rgba(127, 255, 0, 0.3);
}

/* New, clearer colorways */
.quick-link-icon.services {
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.32);
}

.quick-link-icon.contact {
    background: linear-gradient(135deg, #ff8a00, #ff3d77);
    box-shadow: 0 8px 32px rgba(255, 61, 119, 0.3);
}

.quick-link-card:hover .quick-link-icon {
    transform: translateY(-5px) scale(1.1);
}

.quick-link-card:hover .quick-link-icon svg {
    color: white;
}

.quick-link-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.quick-link-card p {
    opacity: 0.8;
    color: #d0d0d0;
}

/* Featured Projects Section */
.featured-projects {
    padding: 4rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.featured-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-card.large {
    grid-row: span 2;
}

.featured-image {
    height: 200px;
    background: rgba(127, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.featured-card.large .featured-image {
    height: 300px;
}

.featured-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(127, 255, 0, 0.3));
}

.featured-card.large .featured-image img {
    width: 120px;
    height: 120px;
}

.featured-content {
    padding: 2rem;
}

.featured-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.featured-content p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    color: #d0d0d0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

/* Page Styles */
.page-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

/* Breadcrumbs removed sitewide */

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #d0d0d0;
    max-width: 600px;
    margin: 0 auto;
}

.projects-section {
    padding: 2rem 0 4rem;
}

/* Filter controls removed */

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

.project-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(127, 255, 0, 0.2);
}

.project-card.featured {
    grid-column: span 2;
}

.project-image {
    height: 200px;
    background: rgba(127, 255, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
}

/* Channel avatars (Channels page) */
.project-image img.channel-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.project-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.project-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #7fff00, #00ff88);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #000;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.project-content p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    color: #d0d0d0;
    line-height: 1.6;
}

.app-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.ios {
    background: linear-gradient(45deg, #007AFF, #5856D6);
    color: white;
}

.badge.mac {
    background: linear-gradient(45deg, #333, #666);
    color: white;
}

.badge.coming-soon {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.stats-section {
    padding: 4rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #7fff00;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    color: #d0d0d0;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Main Grid (legacy support) */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

/* Card Styles */
.card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Clickable Card Styles */
.clickable-card {
    cursor: pointer;
    user-select: none;
}

.clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(127, 255, 0, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(127, 255, 0, 0.1);
}

.clickable-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Ensure hero buttons don't overlap on small screens */
@media (max-width: 900px) {
    .page-main { padding-top: calc(68px + env(safe-area-inset-top, 0px)); }
    .btn { width: auto; }
}

/* Reinforce hamburger breakpoint for cramped widths */
@media (max-width: 1100px) {
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
}

/* Green Alien Squad card - special styling */
.green-alien-squad {
    background: rgba(0, 0, 0, 0.4);
}

.green-alien-squad .card-icon {
    background: rgba(127, 255, 0, 0.2);
    color: #7fff00;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(127, 255, 0, 0.3);
}

/* 357webdesign card */
.webdesign .card-icon.number {
    background: linear-gradient(45deg, #7fff00, #00ff88);
    color: #000;
    font-weight: 800;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sketch & Tell card */
.sketch-tell {
    position: relative;
}

.sketch-tell::before {
    content: "Beta - Use at Own Risk";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 165, 0, 0.9);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sketch-tell .card-icon {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* THE GREEN ALIEN MAN card */
.green-alien-man .card-icon {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TabbyTimeTV card */
.tabby-time {
    position: relative;
}

.tabby-time::before {
    content: "🔴 LIVE";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tabby-time .card-icon {
    background: linear-gradient(45deg, #fa709a, #fee140);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SpeakClean card */
.speakclean .card-icon {
    background: linear-gradient(45deg, #00bfff, #1e90ff);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mochi AI card */
.mochi-ai .card-icon {
    background: linear-gradient(45deg, #9333ea, #7c3aed);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* World's Tallest Website card */
.worlds-tallest .card-icon {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* In Development card */
.in-development .card-icon {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.card p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d0d0d0;
}

.card-link {
    color: #7fff00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: #00ff88;
}

/* Tools Section */
.tools-section {
    margin-bottom: 5rem;
}

.tools-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    background: rgba(127, 255, 0, 0.15);
    color: #7fff00;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(127, 255, 0, 0.3);
}

.tools-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.tools-header p {
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.85;
    font-size: 1.1rem;
    color: #e0e0e0;
}

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

/* Tool Card Styles */
.tool-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-icon-img {
    border-radius: 12px;
    overflow: hidden;
}

.tool-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.tool-card > p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #d0d0d0;
}

.promotion {
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.promotion strong {
    color: #7fff00;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.discount {
    background: linear-gradient(45deg, #7fff00, #00ff88);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.promotion p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #e0e0e0;
}

.tool-link {
    color: #7fff00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-link:hover {
    color: #00ff88;
}

/* Footer Styles */
.footer {
    margin-top: 5rem;
    padding-top: 3rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Constrain footer inner content and add side padding on mobile */
.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #e0e0e0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    color: #d0d0d0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.aliens-link {
    color: #7fff00;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.aliens-link:hover {
    color: #00ff88;
    text-decoration: underline;
}

/* Add to Home Screen Banner */
.add-to-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    max-width: 300px;
    display: none;
    z-index: 1000;
}

.add-to-home.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.add-to-home-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.add-to-home-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.add-to-home-text strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #7fff00;
}

.add-to-home-text p {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
    color: #e0e0e0;
}

.close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Navigation */
.nav-menu.mobile-open {
    display: flex;
    position: fixed;
    top: 0; /* start at very top */
    left: 0;
    right: 0;
    background: #000; /* solid black to match navbar and status bar */
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: calc(80px + env(safe-area-inset-top, 0px)) 2rem 2rem; /* push content below navbar */
    gap: 1rem;
    border-top: none; /* remove divider line */
    z-index: 2200; /* Landscape lock overlay */
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#rotate-lock {
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3000;
    padding: 2rem;
}

@media screen and (orientation: landscape) and (max-width: 900px) {
    #rotate-lock { display: flex; }
}

.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);
}

/* Ensure the toggle stays visible and tappable above the overlay when open */
.nav-toggle.active {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 4001; /* above everything */
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* no extra gap under fixed navbar on mobile */
    }

    .container {
        padding: 1rem;
    }

    /* Re-apply top offset for the first container after the fixed navbar
       (mobile shorthand above would otherwise collapse the specific padding-top) */
    body > nav.navbar ~ .container:first-of-type {
        padding-top: calc(116px + env(safe-area-inset-top, 0px));
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        margin-bottom: 1.4rem;
        padding: 1.4rem 0; /* add breathing room under navbar on mobile */
    }

    .hero-content {
        max-width: 100%;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .quick-link-card {
        padding: 2.5rem 1.5rem;
    }

    .quick-links {
        padding: 3rem 0;
    }

    .featured-projects {
        padding: 3rem 0;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-card.large {
        grid-row: span 1;
    }

    .page-header {
        padding: 2rem 0 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-graphic {
        width: 250px;
        height: 250px;
    }

    .graphic-element {
        width: 80px;
        height: 80px;
    }

    .logo h1 {
        font-size: 3rem;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .category-section {
        margin-bottom: 3rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tools-header h2 {
        font-size: 2rem;
    }

    .add-to-home {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .hero-graphic {
        width: 200px;
        height: 200px;
    }

    .graphic-element {
        width: 60px;
        height: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .quick-link-card {
        padding: 2rem 1rem;
    }

    .quick-link-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .quick-link-icon svg {
        width: 28px;
        height: 28px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-logo-img {
        width: 35px;
    }

    .tools-header h2 {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.6rem;
    }
} 

/* Card Icon Images */
.card-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.green-alien-squad .card-icon-img {
    background: rgba(127, 255, 0, 0.2);
    border: 2px solid rgba(127, 255, 0, 0.5);
    padding: 8px;
}

.green-alien-man .card-icon-img {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: 2px solid rgba(79, 172, 254, 0.5);
    padding: 8px;
}

.green-alien-records .card-icon-img {
    background: linear-gradient(45deg, #7fff00, #00ff88);
    border: 2px solid rgba(127, 255, 0, 0.5);
    padding: 6px;
    border-radius: 8px;
}

.tabby-time .card-icon-img {
    background: linear-gradient(45deg, #fa709a, #fee140);
    border: 2px solid rgba(250, 112, 154, 0.5);
    padding: 6px;
    border-radius: 8px;
}

.tipsy-turvy .card-icon-img {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border: 2px solid rgba(255, 107, 107, 0.5);
    padding: 6px;
    border-radius: 8px;
}

.dino-tea .card-icon-img {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    border: 2px solid rgba(255, 182, 159, 0.5);
    padding: 6px;
    border-radius: 8px;
}

.speakclean .card-icon-img {
    background: linear-gradient(45deg, #00bfff, #1e90ff);
    border: 2px solid rgba(0, 191, 255, 0.5);
    padding: 8px;
}

.mochi-ai .card-icon-img {
    background: linear-gradient(45deg, #9333ea, #7c3aed);
    border: 2px solid rgba(147, 51, 234, 0.5);
    padding: 8px;
}

.worlds-tallest .card-icon-img {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    border: 2px solid rgba(245, 158, 11, 0.5);
    padding: 8px;
}

.in-development .card-icon-img {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    border: 2px solid rgba(255, 215, 0, 0.5);
    padding: 8px;
}

/* Link Icons */
.link-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
    filter: brightness(1.2);
}

/* Tool Icon Images */
.tool-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.bolt-new .tool-icon-img {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: 2px solid rgba(79, 172, 254, 0.5);
    padding: 8px;
    border-radius: 12px;
} 

.hostinger .tool-icon-img {
    background: linear-gradient(45deg, #673de6, #7c3aed);
    border: 2px solid rgba(103, 61, 230, 0.5);
    padding: 8px;
    border-radius: 12px;
}

.iracing .tool-icon-img {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: 2px solid rgba(255, 107, 53, 0.5);
    padding: 8px;
    border-radius: 12px;
}

.lovable .tool-icon-img {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border: 2px solid rgba(139, 92, 246, 0.5);
    padding: 8px;
    border-radius: 12px;
} 

.visible .tool-icon-img {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border: 2px solid rgba(59, 130, 246, 0.5);
    padding: 8px;
    border-radius: 12px;
} 