/* Font Definition */
@font-face {
    font-family: "pixelmix";
    src: url("assets/pixelmix.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Theme Variables */
:root {
    --bg-light: #a7c7e7;
    --fg-light: #0f172a;
    --card-bg-light: rgba(255, 255, 255, 0.5);
    --card-border-light: rgba(255, 255, 255, 0.7);

    --bg-dark: #2d3c53;
    --fg-dark: #e2e8f0;
    --card-bg-dark: rgba(15, 23, 42, 0.5);
    --card-border-dark: rgba(15, 23, 42, 0.7);

    --background: var(--bg-light);
    --foreground: var(--fg-light);
    --card-background: var(--card-bg-light);
    --card-border: var(--card-border-light);
}

.dark {
    --background: var(--bg-dark);
    --foreground: var(--fg-dark);
    --card-background: var(--card-bg-dark);
    --card-border: var(--card-border-dark);
}

/* Base and Reset Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevents scrolling */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Main Layout */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 4rem 1rem; /* Symmetrical vertical padding */
}

/* Branding */
.branding {
    /* No margin change needed with new layout */
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 0.75rem;
}

.title {
    font-family: "pixelmix", sans-serif;
    font-size: 3.5rem;
    letter-spacing: 2px;
}

.tagline {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--foreground);
    opacity: 0.9;
}

/* Ecosystem Card */
.ecosystem-card {
    background: var(--card-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    /* Remove border-radius for clip-path */
    border-radius: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.card-title {
    font-family: "pixelmix", sans-serif;
    font-size: 1.75rem;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* App Buttons */
.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.app-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 1rem;
    padding: 0;
    text-decoration: none;
    color: var(--foreground);
    transition: transform 0.2s ease;
    font-weight: 500;
}

.app-button:hover {
    transform: translateY(-5px);
    background-color: transparent;
}

.app-button .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.app-button .label {
    font-size: 0.875rem;
}

/* Socials */
.socials {
    position: absolute;
    bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.social-link img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Pixelated Corners */
.pixel-corners-lg {
    clip-path: polygon(
      /* top left */ 0px 12px, 4px 12px, 4px 8px, 8px 8px, 8px 4px, 12px 4px,
      12px 0px,
      /* top right */ calc(100% - 12px) 0px, calc(100% - 12px) 4px,
      calc(100% - 8px) 4px, calc(100% - 8px) 8px, calc(100% - 4px) 8px,
      calc(100% - 4px) 12px, 100% 12px,
      /* bottom right */ 100% calc(100% - 12px), calc(100% - 4px)
        calc(100% - 12px), calc(100% - 4px) calc(100% - 8px),
      calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) calc(100% - 4px),
      calc(100% - 12px) calc(100% - 4px), calc(100% - 12px) 100%,
      /* bottom left */ 12px 100%, 12px calc(100% - 4px), 8px calc(100% - 4px),
      8px calc(100% - 8px), 4px calc(100% - 8px), 4px calc(100% - 12px),
      0px calc(100% - 12px)
    );
  }

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle img {
    width: 24px;
    height: 24px;
}

#theme-icon-dark {
    display: none;
}

.dark #theme-icon-light {
    display: none;
}

.dark #theme-icon-dark {
    display: block;
}


/* Responsive Design */
@media (max-width: 640px) {
    .logo {
        width: 90px;
        height: 90px;
    }
    .title {
        font-size: 2.5rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .card-title {
        font-size: 1.5rem;
    }
    .ecosystem-card {
        padding: 1rem;
    }
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1rem;
        row-gap: 2rem;
    }
    .app-button .app-icon {
        width: 80px;  /* Increased size */
        height: 80px; /* Increased size */
    }
    .app-button .label {
        font-size: 0.875rem; /* Slightly larger label */
    }
} 