/* ===== CSS Variables ===== */
:root {
    --primary-violet: #8B5CF6;
    --secondary-violet: #A78BFA;
    --dark-violet: #5B21B6;
    --light-violet: #DDD6FE;
    --accent-pink: #EC4899;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8B5CF6 100%);
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --shadow-violet: 0 10px 40px rgba(139, 92, 246, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.26rem 1rem;
    background: rgba(15, 15, 26, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    width: 75px;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-violet);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-violet);
}

/* ===== Apps Section ===== */
.apps-section {
    padding: 2.5rem 2rem;
    background: var(--bg-dark);
}

.apps-section.hero-bg {
    min-height: calc(100vh - 56px);
    background: var(--gradient-hero);
    position: relative;
    padding-top: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #ff6b6b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    animation: gradientShift 11s ease infinite;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 40px rgba(236, 72, 153, 0.3));
    position: relative;
    display: inline-block;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-violet);
    box-shadow: var(--shadow-violet);
}

.app-card:active {
    transform: translateY(-2px);
}

.app-card:hover::before {
    opacity: 1;
}

.app-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 12px;
    font-size: 1.4rem;
    color: white;
    position: relative;
    z-index: 1;
}

.app-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gradient-main);
}

.modal-header h3 {
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* ===== About Section ===== */
.about-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1a2e 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
}

.feature {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--primary-violet);
    transform: translateY(-3px);
}

.feature i {
    font-size: 1.75rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.feature h4 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.contact-message {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.contact-message i {
    font-size: 2rem;
    color: var(--primary-violet);
    flex-shrink: 0;
}

.contact-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.contact-message a {
    color: var(--primary-violet);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-message a:hover {
    color: var(--secondary-pink);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 2rem;
    background: #0a0a12;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 60px;
    height: 100%;
    object-fit: contain;
}

.footer-email {
    margin-bottom: 1rem;
}

.footer-email a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email a:hover {
    color: var(--primary-violet);
}

.footer-email i {
    color: var(--primary-violet);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 15, 26, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .section-header h2,
    .about-content h2 {
        font-size: 2rem;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Page Layout with Ad Sidebar ===== */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 56px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.ad-sidebar {
    width: 300px;
    min-width: 300px;
    padding: 1rem;
    padding-top: 2.5rem;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    bottom: 0;
    align-self: flex-end;
}

.ad-container {
    width: 100%;
}

.ad-placeholder {
    width: 100%;
    min-height: 250px;
    background: var(--bg-card);
    border: 1px solid rgba(131, 100, 203, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Textify App Ad Styles */
.ad-textify {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.ad-textify-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: 1.5px;
}

.ad-textify-title i {
    color: #a855f7;
    margin-right: 8px;
}

.ad-textify-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ad-textify-qr-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.ad-textify-qr-wrapper img {
    width: 170px;
    height: 170px;
    display: block;
}

.ad-textify-cta {
    color: #a855f7;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.ad-textify-cta i {
    margin-right: 5px;
}

.ad-textify-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #22c55e;
    font-size: 0.75rem;
}


/* Hide ad sidebar on smaller screens */
@media (max-width: 1200px) {
    .ad-sidebar {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 992px) {
    .page-wrapper {
        flex-direction: column;
    }

    .ad-sidebar {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        border-left: none;
        border-top: 1px solid rgba(139, 92, 246, 0.2);
        padding: 2rem;
    }

    .ad-container {
        width: auto;
        max-width: 300px;
    }

    .sticky-ad {
        position: static;
    }
}

/* ===== Inline App View ===== */
.app-view {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

/* Common app theme button - positioned in header */
.app-theme-btn {
    width: 38px;
    height: 38px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--primary-violet);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}

.app-theme-btn:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-view-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.app-view-header h2 {
    font-size: 1.6rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--gradient-main);
    border-color: transparent;
    transform: translateX(-3px);
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.app-view-content {
    min-height: 400px;
}

@media (max-width: 768px) {
    .app-view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ===== Portrait Orientation Warning Overlay ===== */
.orientation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.orientation-message {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.5s ease;
}

.orientation-icon {
    font-size: 4rem;
    color: var(--primary-violet);
    margin-bottom: 1.5rem;
    animation: tiltPhone 2s ease-in-out infinite;
}

@keyframes tiltPhone {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(90deg); }
}

.orientation-message h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orientation-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.rotate-animation {
    display: inline-block;
}

.rotate-animation i {
    font-size: 2rem;
    color: var(--secondary-violet);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Show orientation overlay only on portrait mobile/tablet */
@media screen and (orientation: portrait) and (max-width: 1024px) {
    .orientation-overlay {
        display: flex;
    }
    
    body {
        overflow: hidden;
    }
}

/* ===== LANDSCAPE RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Laptops in Landscape (1024px - 1200px) */
@media screen and (orientation: landscape) and (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.875rem;
        padding: 0 1rem;
    }
    
    .app-card {
        padding: 0.875rem;
    }
    
    .app-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .app-card h3 {
        font-size: 0.95rem;
    }
    
    .app-card p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .ad-sidebar {
        width: 220px;
        min-width: 220px;
        padding: 0.75rem;
    }
    
    .ad-textify-qr-wrapper img {
        width: 140px;
        height: 140px;
    }
}

/* Tablets in Landscape (768px - 1024px) */
@media screen and (orientation: landscape) and (max-width: 1024px) and (min-width: 768px) {
    .page-wrapper {
        flex-direction: row;
    }
    
    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .apps-section.hero-bg {
        padding: 1.5rem 1rem;
        padding-top: 2rem;
    }
    
    .section-header {
        margin-bottom: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .app-card {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .app-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        border-radius: 10px;
    }
    
    .app-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .app-card p {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }
    
    /* Hide ad sidebar on tablet landscape - too cramped */
    .ad-sidebar {
        display: none;
    }
    
    .navbar {
        padding: 0.2rem 0.75rem;
    }
    
    .logo img {
        width: 55px;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

/* Small Tablets / Large Phones in Landscape (600px - 768px) */
@media screen and (orientation: landscape) and (max-width: 768px) and (min-width: 480px) {
    .page-wrapper {
        padding-top: 50px;
    }
    
    .navbar {
        padding: 0.15rem 0.5rem;
    }
    
    .logo img {
        width: 45px;
    }
    
    .logo span {
        font-size: 1rem;
    }
    
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        transform: none;
        background: none;
        padding: 0;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .apps-section.hero-bg {
        padding: 1rem 0.75rem;
        padding-top: 1.5rem;
        min-height: calc(100vh - 50px);
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.3rem;
        letter-spacing: 0.05em;
    }
    
    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .app-card {
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .app-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        border-radius: 8px;
    }
    
    .app-card h3 {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .app-card p {
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .ad-sidebar {
        display: none;
    }
    
    /* About section adjustments */
    .about-section {
        padding: 2rem 1rem;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content > p {
        font-size: 0.9rem;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .feature {
        padding: 0.75rem;
    }
    
    .feature i {
        font-size: 1.25rem;
    }
    
    .feature h4 {
        font-size: 0.85rem;
    }
    
    .feature p {
        font-size: 0.7rem;
    }
    
    .contact-message {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .contact-message i {
        font-size: 1.5rem;
    }
    
    .contact-message p {
        font-size: 0.85rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-brand {
        font-size: 1.2rem;
    }
    
    .footer-brand img {
        width: 45px;
    }
}

/* Mobile Phones in Landscape (max-width: 480px height would be very small) */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .page-wrapper {
        padding-top: 45px;
    }
    
    .navbar {
        padding: 0.1rem 0.5rem;
    }
    
    .logo img {
        width: 40px;
    }
    
    .logo span {
        font-size: 0.9rem;
    }
    
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        transform: none;
        background: none;
        padding: 0;
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .apps-section.hero-bg {
        padding: 0.75rem 0.5rem;
        padding-top: 1rem;
        min-height: calc(100vh - 45px);
    }
    
    .section-header {
        margin-bottom: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        letter-spacing: 0.03em;
    }
    
    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }
    
    .app-card {
        padding: 0.4rem;
        border-radius: 6px;
    }
    
    .app-card:hover {
        transform: translateY(-2px);
    }
    
    .app-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        border-radius: 6px;
    }
    
    .ad-sidebar {
        display: none;
    }
    
    /* About section in small landscape */
    .about-section {
        padding: 1.5rem 0.75rem;
    }
    
    .about-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .about-content > p {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .feature {
        padding: 0.5rem;
    }
    
    .feature i {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .feature h4 {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .feature p {
        font-size: 0.6rem;
    }
    
    .contact-message {
        margin-top: 1.5rem;
        padding: 0.75rem;
        gap: 0.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-message i {
        font-size: 1.25rem;
    }
    
    .contact-message p {
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 1rem 0.75rem;
    }
    
    .footer-brand {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-brand img {
        width: 35px;
    }
    
    .footer-email a {
        font-size: 0.8rem;
    }
    
    .footer p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Very small mobile landscape (height < 400px) - compact mode */
@media screen and (orientation: landscape) and (max-height: 400px) {
    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
    }
    
    .app-card {
        padding: 0.3rem;
    }
    
    .app-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .section-header h2 {
        font-size: 0.85rem;
    }
}

/* Touch-friendly adjustments for mobile landscape */
@media screen and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    .app-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .app-card:active {
        transform: scale(0.98);
        background: rgba(139, 92, 246, 0.1);
    }
    
    .nav-links a:active {
        color: var(--primary-violet);
    }
}