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

html {
    transition: background-color 0.8s ease;
}

html:has(body[data-theme="night"]) {
    background-color: #0a0a1a;
}

html:has(body[data-theme="day"]) {
    background-color: #e8f4f8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.8s ease;
}

body[data-theme="night"] {
    background-color: #0a0a1a;
}

body[data-theme="day"] {
    background-color: #e8f4f8;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 30px;
    padding: 0.5rem;
}

body[data-theme="night"] .main-nav {
    background-color: rgba(10, 10, 26, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body[data-theme="day"] .main-nav {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-item {
    position: relative;
}

/* Sliding pillbox background */
.nav-list {
    --pillbox-x: 0;
    --pillbox-width: 0;
    --pillbox-height: 0;
}

.nav-list::before {
    content: '';
    position: absolute;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1),
                width 0.6s cubic-bezier(0.34, 1.2, 0.64, 1),
                height 0.6s cubic-bezier(0.34, 1.2, 0.64, 1),
                opacity 0.2s ease;
    pointer-events: none;
    opacity: 0;
    left: 0;
    top: 0;
    width: var(--pillbox-width);
    height: var(--pillbox-height);
    transform: translateX(var(--pillbox-x));
    will-change: transform, width, height;
}

.nav-list.has-active::before {
    opacity: 1;
}

.nav-list.no-transition::before {
    transition: none !important;
}

body[data-theme="night"] .nav-list::before {
    background-color: rgba(0, 200, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.4);
}

body[data-theme="day"] .nav-list::before {
    background-color: rgba(0, 150, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
}

.nav-link {
    display: block;
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="night"] .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

body[data-theme="day"] .nav-link {
    color: rgba(0, 0, 0, 0.8);
}

/* Pill hover effect - Night theme */
body[data-theme="night"] .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Pill hover effect - Day theme */
body[data-theme="day"] .nav-link:hover {
    color: rgba(0, 0, 0, 1);
}

/* Active state */
body[data-theme="night"] .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

body[data-theme="day"] .nav-link.active {
    color: rgba(0, 0, 0, 1);
}

/* Night Theme (Default) */
body[data-theme="night"] {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 50%, #0f0f1e 100%);
}

/* Day Theme */
body[data-theme="day"] {
    background: linear-gradient(180deg, #87CEEB 0%, #98D8E8 40%, #E0F6FF 100%);
}

/* Stars Container - Night Theme */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

body[data-theme="night"] .stars-container {
    opacity: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: starShimmer 3s ease-in-out infinite;
}

@keyframes starShimmer {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Shooting Star */
.shooting-star {
    position: fixed;
    width: min(15vw, 200px);
    height: 3px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transform-origin: right center;
    --shooting-star-angle: -45deg;
}

.shooting-star.active {
    animation: shootingStar 1.5s ease-out forwards;
}

@keyframes shootingStar {
    0% {
        opacity: 1;
        transform: rotate(var(--shooting-star-angle)) translateX(0);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--shooting-star-angle)) translateX(min(35vw, 500px));
    }
}

.shooting-star::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.9),
                0 0 12px 5px rgba(135, 206, 250, 0.5);
}

.shooting-star::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(135, 206, 250, 0.3) 40%,
        rgba(135, 206, 250, 0.6) 70%,
        rgba(255, 255, 255, 0.9) 100%);
    border-radius: 50%;
    filter: blur(0.5px);
}

/* Day Theme Background */
.day-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

body[data-theme="day"] .day-bg {
    opacity: 1;
}

/* Flying Bird - Day Theme */
.bird {
    position: fixed;
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    top: 20%;
    left: -50px;
}

body[data-theme="day"] .bird.active {
    opacity: 1;
    animation: birdFly 15s linear forwards;
}

@keyframes birdFly {
    0% {
        left: -50px;
        top: 20%;
    }
    50% {
        top: 15%;
    }
    100% {
        left: calc(100% + 50px);
        top: 20%;
    }
}

.bird::before,
.bird::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 3px;
    background: #2c3e50;
    border-radius: 50%;
}

.bird::before {
    left: 0;
    transform: rotate(-20deg);
    animation: wingFlap 0.3s ease-in-out infinite;
}

.bird::after {
    right: 0;
    transform: rotate(20deg);
    animation: wingFlap 0.3s ease-in-out infinite 0.15s;
}

@keyframes wingFlap {
    0%, 100% { transform: rotate(-20deg) scaleY(1); }
    50% { transform: rotate(-35deg) scaleY(0.7); }
}

/* Main Content */
main {
    min-height: 100vh;
    position: relative;
    z-index: 10;
    padding: 2rem;
    padding-top: 100vh;
}

/* Adjust padding for pages with logo in top left */
main:has(.logo-top-left) {
    padding-top: 8rem;
}

/* Logo Container */
.logo-container {
    position: fixed;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    will-change: transform, top, left;
}

/* Logo positioned at top left for non-home pages */
.logo-container.logo-top-left {
    top: 0 !important;
    left: 0 !important;
    transform: translate(-20%, -20%) scale(0.25) !important;
    transform-origin: center;
    text-align: center;
}

/* Disable animations for fixed logo */
.logo-container.logo-top-left .letter-y,
.logo-container.logo-top-left .letters-ahmir span {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

.logo-container.logo-top-left .divider-line {
    width: 100% !important;
    animation: none !important;
}

.logo-container.logo-top-left .tagline {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

.logo-wrapper {
    display: inline-block;
}

/* Content Section */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 20;
    background: transparent;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    transition: color 0.8s ease;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    transition: color 0.8s ease;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
    transition: color 0.8s ease;
}

body[data-theme="night"] .content-section h2,
body[data-theme="night"] .content-section h3 {
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="night"] .content-section p {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="day"] .content-section h2,
body[data-theme="day"] .content-section h3 {
    color: rgba(0, 0, 0, 0.9);
}

body[data-theme="day"] .content-section p {
    color: rgba(0, 0, 0, 0.7);
}

/* YAHMIR Logo */
.company-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: color 0.8s ease;
}

body[data-theme="night"] .company-name {
    color: #ffffff;
}

body[data-theme="day"] .company-name {
    color: #1a1a1a;
}

/* Sequential Reveal Animation */
.letter-y {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInLetter 0.5s ease-out 0.5s forwards;
}

.letters-ahmir {
    display: inline-flex;
    overflow: hidden;
}

.letters-ahmir span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInLetter 0.5s ease-out forwards;
}

.letters-ahmir span:nth-child(1) { animation-delay: 0.6s; }
.letters-ahmir span:nth-child(2) { animation-delay: 0.7s; }
.letters-ahmir span:nth-child(3) { animation-delay: 0.8s; }
.letters-ahmir span:nth-child(4) { animation-delay: 0.9s; }
.letters-ahmir span:nth-child(5) { animation-delay: 1.0s; }

@keyframes slideInLetter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Divider Line */
.divider-line {
    width: 0;
    height: 4px;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: background 0.8s ease, box-shadow 0.8s ease;
    animation: expandLine 0.8s ease-out 1.4s forwards;
}

body[data-theme="night"] .divider-line {
    background: linear-gradient(90deg,
        rgba(0, 200, 255, 0) 0%,
        rgba(0, 200, 255, 0.3) 10%,
        rgba(0, 200, 255, 1) 30%,
        rgba(100, 220, 255, 1) 50%,
        rgba(0, 200, 255, 1) 70%,
        rgba(0, 200, 255, 0.3) 90%,
        rgba(0, 200, 255, 0) 100%);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.6);
}

body[data-theme="day"] .divider-line {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 150, 255, 0.2) 20%,
        rgba(0, 150, 255, 0.8) 50%,
        rgba(0, 150, 255, 0.2) 80%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

/* Tagline */
.tagline {
    font-size: clamp(0.7rem, 2vw, 0.95rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 1.8s forwards;
    transition: color 0.8s ease;
}

body[data-theme="night"] .tagline {
    color: #888;
}

body[data-theme="day"] .tagline {
    color: #666;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Time Control Footer */
.time-control-footer {
    width: 100%;
    padding: 3rem 2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

.time-control-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 800px;
}

.time-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 12px;
    border-radius: 6px;
    overflow: visible;
    padding: 20px 0;
    margin: -20px 0;
}

.time-gradient {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg,
        /* Midnight */ #0a0a1a 0%,
        /* Early morning */ #1a1a2e 20%,
        /* Dawn */ #4a5568 25%,
        /* Morning */ #87CEEB 30%,
        /* Midday */ #98D8E8 50%,
        /* Afternoon */ #87CEEB 70%,
        /* Dusk */ #4a5568 75%,
        /* Evening */ #1a1a2e 80%,
        /* Night */ #0a0a1a 100%
    );
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.time-slider-input {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 12px;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.time-ticks {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 12px;
    display: flex;
    justify-content: space-between;
    padding: 0 1px;
    pointer-events: none;
    border-radius: 6px;
}

.tick {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    transform-origin: bottom;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.2s ease,
                width 0.2s ease;
}

.tick:nth-child(6n+1) {
    background: rgba(255, 255, 255, 0.5);
}

/* Sun icons on ticks */
.tick .sun-icon {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) scaleY(1);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.8s ease;
    pointer-events: none;
    transform-origin: center;
}

body[data-theme="night"] .tick .sun-icon {
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="day"] .tick .sun-icon {
    color: rgba(0, 0, 0, 0.8);
}

.tick.show-icon .sun-icon {
    opacity: 1;
}

.sunrise-tick,
.sunset-tick {
    background: rgba(255, 200, 100, 0.6) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-name {
        letter-spacing: 0.2em;
    }

    .tagline {
        letter-spacing: 0.3em;
    }

    main {
        padding: 1rem;
    }

    .time-control-footer {
        padding: 2rem 1rem 1.5rem;
    }

    .main-nav {
        padding: 0.4rem;
        top: 1rem;
    }

    .nav-list {
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

}

/* About Page Styles */
.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.about-header {
    margin-bottom: 4rem;
    text-align: center;
}

.about-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

body[data-theme="night"] .about-title {
    color: rgba(255, 255, 255, 0.95);
}

body[data-theme="day"] .about-title {
    color: rgba(0, 0, 0, 0.9);
}

.about-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 600px;
    margin: 0 auto;
}

body[data-theme="night"] .about-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

body[data-theme="day"] .about-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

body[data-theme="night"] .about-section h2 {
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="day"] .about-section h2 {
    color: rgba(0, 0, 0, 0.85);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
}

body[data-theme="night"] .about-section p {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="day"] .about-section p {
    color: rgba(0, 0, 0, 0.7);
}

/* Apps Page Styles */
.apps-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.apps-header {
    margin-bottom: 4rem;
    text-align: center;
}

.apps-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

body[data-theme="night"] .apps-title {
    color: rgba(255, 255, 255, 0.95);
}

body[data-theme="day"] .apps-title {
    color: rgba(0, 0, 0, 0.9);
}

.apps-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 600px;
    margin: 0 auto;
}

body[data-theme="night"] .apps-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

body[data-theme="day"] .apps-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.app-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body[data-theme="night"] .app-card {
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body[data-theme="day"] .app-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-card:hover {
    transform: translateY(-8px);
}

body[data-theme="night"] .app-card:hover {
    background: rgba(15, 15, 35, 0.6);
    box-shadow: 0 12px 40px rgba(0, 200, 255, 0.2), 0 0 0 1px rgba(0, 200, 255, 0.3);
}

body[data-theme="day"] .app-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.app-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.app-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.app-card:hover .app-card-image img {
    transform: scale(1.08);
}

.app-card-content {
    padding: 1.5rem;
}

.app-card-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

body[data-theme="night"] .app-card-content h2 {
    color: rgba(255, 255, 255, 0.95);
}

body[data-theme="day"] .app-card-content h2 {
    color: rgba(0, 0, 0, 0.9);
}

.app-status {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 300;
}

body[data-theme="night"] .app-status {
    color: rgba(255, 255, 255, 0.5);
}

body[data-theme="day"] .app-status {
    color: rgba(0, 0, 0, 0.5);
}

.app-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

body[data-theme="night"] .app-description {
    color: rgba(255, 255, 255, 0.75);
}

body[data-theme="day"] .app-description {
    color: rgba(0, 0, 0, 0.75);
}

.game-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.game-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 300;
}

body[data-theme="night"] .game-list li {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="day"] .game-list li {
    color: rgba(0, 0, 0, 0.7);
}

.game-list li strong {
    font-weight: 500;
}

body[data-theme="night"] .game-list li strong {
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="day"] .game-list li strong {
    color: rgba(0, 0, 0, 0.9);
}

.game-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    font-weight: bold;
}

body[data-theme="night"] .game-list li::before {
    color: rgba(0, 200, 255, 0.7);
}

body[data-theme="day"] .game-list li::before {
    color: rgba(0, 150, 255, 0.7);
}

.app-card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.app-link {
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

body[data-theme="night"] .app-link {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body[data-theme="day"] .app-link {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.app-link:hover {
    transform: translateY(-2px);
}

body[data-theme="night"] .app-link:hover {
    background: rgba(0, 200, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 200, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.2);
}

body[data-theme="day"] .app-link:hover {
    background: rgba(0, 100, 200, 0.1);
    color: rgba(0, 100, 200, 1);
    border-color: rgba(0, 100, 200, 0.3);
    box-shadow: 0 4px 12px rgba(0, 100, 200, 0.15);
}

/* Privacy and Terms Pages */
.policy-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    line-height: 1.8;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body[data-theme="night"] .policy-content {
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body[data-theme="day"] .policy-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.policy-content h1 {
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 2rem;
}

body[data-theme="night"] .policy-content h1 {
    color: rgba(255, 255, 255, 0.95);
}

body[data-theme="day"] .policy-content h1 {
    color: rgba(0, 0, 0, 0.9);
}

.policy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.3rem;
}

body[data-theme="night"] .policy-content h2 {
    color: rgba(255, 255, 255, 0.85);
}

body[data-theme="day"] .policy-content h2 {
    color: rgba(0, 0, 0, 0.85);
}

.policy-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
}

body[data-theme="night"] .policy-content h3 {
    color: rgba(255, 255, 255, 0.8);
}

body[data-theme="day"] .policy-content h3 {
    color: rgba(0, 0, 0, 0.8);
}

.policy-content p {
    margin-bottom: 1rem;
    font-weight: 300;
}

body[data-theme="night"] .policy-content p {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="day"] .policy-content p {
    color: rgba(0, 0, 0, 0.7);
}

.policy-content p strong {
    font-weight: 500;
}

body[data-theme="night"] .policy-content p strong {
    color: rgba(255, 255, 255, 0.85);
}

body[data-theme="day"] .policy-content p strong {
    color: rgba(0, 0, 0, 0.85);
}

.policy-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    font-weight: 300;
}

body[data-theme="night"] .policy-content ul li {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="day"] .policy-content ul li {
    color: rgba(0, 0, 0, 0.7);
}

.policy-content ul li strong {
    font-weight: 500;
}

body[data-theme="night"] .policy-content ul li strong {
    color: rgba(255, 255, 255, 0.85);
}

body[data-theme="day"] .policy-content ul li strong {
    color: rgba(0, 0, 0, 0.85);
}

.policy-content a {
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

body[data-theme="night"] .policy-content a {
    color: rgba(0, 200, 255, 0.9);
}

body[data-theme="day"] .policy-content a {
    color: rgba(0, 100, 200, 0.9);
}

.policy-content a:hover {
    border-bottom: 1px solid currentColor;
}

body[data-theme="night"] .policy-content a:hover {
    color: rgba(0, 230, 255, 1);
}

body[data-theme="day"] .policy-content a:hover {
    color: rgba(0, 120, 220, 1);
}

@media (max-width: 768px) {
    .logo-container.logo-top-left {
        top: 0 !important;
        left: 0 !important;
        transform: translate(-20%, -20%) scale(0.25) !important;
    }

    main:has(.logo-top-left) {
        padding-top: 6rem;
    }

    .about-page {
        padding: 1rem;
    }

    .about-header {
        margin-bottom: 3rem;
    }

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

    .about-subtitle {
        font-size: 1rem;
    }

    .about-content {
        gap: 2rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-section p {
        font-size: 1rem;
    }

    .apps-page {
        padding: 1rem;
    }

    .apps-header {
        margin-bottom: 3rem;
    }

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

    .apps-subtitle {
        font-size: 1rem;
    }

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

    .app-card-image {
        height: 200px;
    }

    .policy-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}
