@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #2d5a27;
    --primary-light: #4a8c42;
    --accent: #f9a825;
    --bg-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-dim: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { 
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8)), url('../images/bkg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.hero {
    min-height: 400px;
    width: 100%;
    display: flex; flex-direction: column; 
    align-items: center; text-align: center;
    padding-top: 140px; /* Standardized distance from toolbar */
}

.hero h1 {
    font-size: 4.5rem; font-weight: 800; margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.glass-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: min(98%, 1150px); height: 70px;
    background: var(--glass); backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 70px; padding: 0 35px 0 0;
    display: flex; justify-content: space-between; align-items: center; z-index: 100;
}

.nav-branding { display: flex; align-items: center; gap: 15px; height: 100%; }

.nav-logo { display: flex; align-items: center; height: 100%; }
.nav-logo img { 
    height: 70px; width: 70px; 
    object-fit: cover;
    border-radius: 50%;
    transition: 0.3s; 
}
.nav-logo:hover img { transform: scale(1.05); }

.nav-home { 
    color: #fff; text-decoration: none; font-weight: 800; font-size: 1rem; 
    text-transform: uppercase; letter-spacing: 1px;
}

.nav-links { display: flex !important; gap: 20px !important; }
.nav-links a { 
    color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 600;
    transition: 0.3s; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }

.btn {
    padding: 12px 30px; background: var(--primary); color: #fff;
    text-decoration: none; border-radius: 30px; font-weight: 600;
    transition: 0.3s; border: 1px solid var(--primary-light);
    white-space: nowrap; margin-left: 20px;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* Custom cursor - Realistic Compass Design */
.cursor-dot {
    width: 2px; height: 32px; background: linear-gradient(to bottom, #ff4d4d 50%, #e2e8f0 50%);
    position: fixed; top: 0; left: 0; border-radius: 2px;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-dot::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px; background: #334155;
    border-radius: 50%; transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 70px; height: 70px; 
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(1px);
    border: 2px solid var(--accent);
    position: fixed; top: 0; left: 0; border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(249, 168, 37, 0.3);
}

.cursor-outline div {
    position: absolute; font-size: 7px; font-weight: 900; 
    color: var(--accent); background: transparent;
    width: 12px; height: 12px; display: flex; justify-content: center; align-items: center;
}

.compass-n { top: 4px; left: 50%; transform: translateX(-50%); font-size: 10px; }
.compass-s { bottom: 4px; left: 50%; transform: translateX(-50%); opacity: 0.6; }
.compass-e { right: 4px; top: 50%; transform: translateY(-50%); opacity: 0.6; }
.compass-w { left: 4px; top: 50%; transform: translateY(-50%); opacity: 0.6; }

.cursor-outline::before {
    content: ''; position: absolute;
    width: 80%; height: 80%;
    border: 1px dashed rgba(249, 168, 37, 0.2);
    border-radius: 50%;
}

/* App Cards */
.card-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 30px; width: 100%; padding: 40px 20px;
}

.app-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    width: min(100%, 350px);
    text-align: left;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.app-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); }

.app-card h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--accent); }
.app-card p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 25px; min-height: 3em; }

.app-card-links { 
    display: flex; flex-direction: column; gap: 15px; 
    padding: 20px; background: rgba(0, 0, 0, 0.2); 
    border-radius: 20px; border: 1px solid var(--glass-border);
}

.card-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 20px; border-radius: 50px; font-weight: 700; font-size: 0.85rem;
    text-decoration: none; transition: 0.3s;
    background: var(--glass); color: #fff;
    border: 1px solid var(--glass-border);
    text-transform: uppercase; letter-spacing: 1px;
}

.card-btn:hover { 
    background: var(--accent); color: var(--bg-dark); 
    transform: scale(1.02); border-color: var(--accent);
}

.card-btn.primary { 
    background: var(--primary); color: #fff; border: 1px solid var(--primary-light); 
}

.card-btn.primary:hover { 
    background: var(--primary-light); color: #fff; 
}

.main-content {
    width: 100%;
    max-width: 1000px;
    margin-top: 20px; /* Consistent gap after subtitle/title */
    display: flex; flex-direction: column; align-items: center;
}

.glass-content {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.glass-content h2 { color: var(--accent); margin-bottom: 20px; font-size: 2rem; }
.glass-content p { margin-bottom: 20px; color: #fff; font-size: 1.1rem; line-height: 1.8; }
.glass-content strong { color: var(--accent); font-weight: 800; }

.coming-soon { opacity: 0.5; font-style: italic; }

/* Base Responsive Elements */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.hero-footer {
    margin-top: auto;
    padding-bottom: 50px;
}

/* Mobile Media Query - Portrait & Landscape */
@media screen and (max-width: 900px) {
    .cursor-dot, .cursor-outline { display: none; }
    
    .hero { padding-top: 120px; justify-content: flex-start; }
    .hero h1 { font-size: 2.5rem; line-height: 1.1; margin-top: 20px; }
    .hero p { font-size: 0.95rem; width: 90%; }
    
    .glass-nav { 
        top: 10px; 
        height: 46px;
        padding: 0 10px 0 0;
        flex-direction: row;
        gap: 2px;
        border-radius: 50px;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-branding { gap: 4px; }
    .nav-logo img { height: 46px; width: 46px; }
    .nav-home { font-size: 0.65rem; font-weight: 800; }

    .nav-links { gap: 5px !important; }
    .nav-links a { font-size: 0.58rem; font-weight: 700; letter-spacing: -0.2px; }
    
    .btn { padding: 6px 10px; font-size: 0.6rem; margin-left: 2px; border-radius: 20px; }

    .hero-footer {
        padding-bottom: 30px;
    }
}

/* Landscape orientation optimization */
@media screen and (max-height: 500px) and (max-width: 950px) {
    .hero { padding-top: 80px; }
    .hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
    .glass-nav { top: 5px; height: 45px; }
    .nav-logo img { height: 45px; width: 45px; }
    .hero-footer { padding-bottom: 15px; }
}
