/* =====================================================================
 * TITLE:        Dina & Dino | Master Stylesheet
 * AUTHOR:       Domenico Tomé
 * CREATED:      2026-08-08
 * LOCATION:     /home/rmitrain/public_html/dinadino.co.za/home_style.css
 * DESCRIPTION:  Core stylesheet for the public-facing landing page.
 * ===================================================================== */

:root {
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --text-dark: #2c3e50;
    --text-muted: #546e7a;
    
    /* Core Brand Colors */
    --brand-cyan: #00bcd4;
    --brand-magenta: #e91e63;
    --brand-pink: #ff4081;
    --brand-green: #8bc34a;
    --brand-yellow: #ffca28;
    --brand-orange: #ff9800;
    --brand-blue: #2196f3;
    
    /* UI Backgrounds */
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.9);
    
    /* Shadows */
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.05);
    --shadow-heavy: 0 15px 35px rgba(0,0,0,0.1);
    
    /* Gradients */
    --gradient-text: linear-gradient(90deg, var(--brand-magenta), var(--brand-blue), var(--brand-green));
}

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

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- UI Utilities --- */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 2px solid var(--glass-border); }
.glass-panel-light { background: rgba(255,255,255,0.9); border: 2px solid var(--glass-border); border-radius: 20px; box-shadow: var(--shadow-soft); }

.text-3d-huge { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; color: var(--text-dark); line-height: 1.1; text-shadow: 2px 4px 8px rgba(255,255,255,0.5); margin-bottom: 20px; }
.text-3d-small { font-size: 1.8rem; font-weight: 900; color: var(--brand-purple); text-transform: uppercase; }

.text-gradient { background: var(--gradient-text); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

.color-shift-text { background: linear-gradient(270deg, var(--brand-cyan), var(--brand-magenta), var(--brand-yellow), var(--brand-green)); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: colorShift 4s ease infinite; display: inline-block; filter: drop-shadow(2px 2px 0px rgba(255,255,255,0.8)); }
@keyframes colorShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.highlight-magenta { color: var(--brand-magenta); text-shadow: 2px 2px 0px #fff; }
.text-cyan { color: var(--brand-cyan); font-weight: bold; }

/* Buttons */
.btn-3d { display: inline-block; background: linear-gradient(180deg, var(--brand-green), #689f38); color: white; border: 4px solid white; padding: 15px 40px; border-radius: 40px; font-size: 1.2rem; font-weight: 900; cursor: pointer; text-transform: uppercase; box-shadow: 0 8px 0 #33691e, 0 15px 25px rgba(0,0,0,0.2); transition: all 0.3s ease; text-align: center; }
.btn-3d:active { transform: translateY(8px); box-shadow: 0 0 0 transparent; }
.btn-primary { background: linear-gradient(180deg, var(--brand-cyan), #0097a7); box-shadow: 0 8px 0 #006064, 0 15px 25px rgba(0,0,0,0.2); }

.btn-3d-alt { display: inline-block; background: linear-gradient(180deg, #ffffff, #e0e0e0); color: var(--text-dark); border: 4px solid white; padding: 15px 40px; border-radius: 40px; font-size: 1.2rem; font-weight: 900; cursor: pointer; text-transform: uppercase; box-shadow: 0 8px 0 #9e9e9e, 0 15px 25px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; text-align: center; }
.btn-3d-alt:active { transform: translateY(8px); box-shadow: 0 0 0 transparent; }

/* --- Navigation & Header --- */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; position: fixed; width: 100%; top: 0; left: 0; z-index: 9999; box-shadow: var(--shadow-soft); }
.brand-logo img { height: 80px; width: auto; position: relative; z-index: 10001; }
.desktop-nav { flex-grow: 1; display: flex; justify-content: center; }
.desktop-nav ul { display: flex; gap: 10px; }
.desktop-nav a { display: flex; align-items: center; gap: 8px; color: var(--text-dark); font-weight: 800; font-size: 1rem; padding: 10px 20px; border-radius: 30px; transition: all 0.3s ease; text-transform: uppercase; }
.nav-icon { font-size: 1.2rem; }
.desktop-nav a:hover, .desktop-nav a.active { background: white; color: var(--brand-cyan); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-2px); }

.header-actions { display: flex; align-items: center; gap: 15px; }

/* Premium Parent Portal Button */
.primary-cta { 
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); 
    color: white;
    padding: 10px 25px; 
    font-size: 0.95rem; 
    border: 2px solid rgba(255,255,255,0.1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    transition: all 0.3s ease;
    text-decoration: none;
}
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); border-color: var(--brand-cyan); color: white; }

.hamburger-menu { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 10001; padding: 10px; }
.hamburger-menu .bar { width: 30px; height: 4px; background-color: var(--text-dark); border-radius: 2px; transition: 0.3s all ease; }

/* --- Hero Section --- */
.hero-section { 
    background: var(--bg-light); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 120px 5% 60px 8%; 
    position: relative; 
    overflow: hidden; 
}

/* Smart Cloud Engine Environment */
.hero-bg-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.smart-cloud {
    position: absolute;
    font-family: 'ArialপাশRounded MT Bold', var(--font-main);
    font-weight: 900;
    white-space: nowrap;
    transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

@keyframes cloudDrift {
    0% { transform: translateX(-15vw) rotate(0deg); }
    100% { transform: translateX(115vw) rotate(360deg); }
}

.star { position: absolute; font-size: 2rem; animation: twinkle 3s infinite alternate; text-shadow: 0 0 10px rgba(255,255,255,0.8); }
.star-1 { top: 30%; left: 40%; }
.star-2 { top: 25%; right: 25%; animation-delay: 1s; }

@keyframes twinkle { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }

.hero-content { max-width: 600px; z-index: 2; position: relative; }
.hero-subtitle { font-size: 1.5rem; color: var(--text-dark); font-weight: 700; margin-bottom: 40px; line-height: 1.4; text-shadow: 1px 1px 0px rgba(255,255,255,0.8); }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-characters { 
    display: flex; 
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 20px; 
    z-index: 2; 
    position: relative; 
    width: 100%;
}
.character-float { animation: shipHover 4s ease-in-out infinite; flex: 1 1 50%; display: flex; justify-content: center; }
.character-float img { max-height: 450px; max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15)); }
@keyframes shipHover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- Parent About Mini Section --- */
.parent-about-mini { padding: 100px 5%; background: var(--bg-white); position: relative; z-index: 5; }
.parent-about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; align-items: center; }

.parent-img-wrap { position: relative; border-radius: 30px; padding: 20px; background: var(--bg-light); border: 2px dashed #cbd5e1; }
.parent-img-wrap img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-heavy); display: block; }

.floating-badge { position: absolute; bottom: -20px; right: -20px; display: flex; align-items: center; gap: 15px; padding: 15px 25px; border-radius: 15px; z-index: 10; }
.badge-icon { font-size: 2rem; background: var(--brand-yellow); width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border-radius: 50%; box-shadow: 0 4px 10px rgba(255, 202, 40, 0.4); }
.badge-text { display: flex; flex-direction: column; }
.badge-text strong { color: var(--text-dark); font-size: 1.1rem; font-weight: 800; }
.badge-text span { color: var(--text-muted); font-size: 0.9rem; }

.parent-text-wrap p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

/* Scroll Reveal Animation */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- Section Formatting --- */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 40px; font-weight: 900; }

/* --- Games Directory Teaser --- */
.games-teaser { padding: 100px 5%; background: var(--bg-light); position: relative; }
.curve-top { border-radius: 60px 60px 0 0; margin-top: -40px; z-index: 10; box-shadow: 0 -10px 30px rgba(0,0,0,0.05); }

.age-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; }
.filter-btn { padding: 12px 25px; background: var(--bg-white); border: 2px solid var(--border-light); border-radius: 30px; font-weight: 800; color: var(--text-dark); cursor: pointer; transition: all 0.2s ease; font-size: 0.95rem; text-transform: uppercase; }
.filter-btn:hover, .filter-btn.active { background: white; transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.filter-btn.active { border-color: var(--brand-cyan); color: var(--brand-cyan); }
.filter-toddler.active { border-color: var(--brand-pink); color: var(--brand-pink); }
.filter-pre.active { border-color: var(--brand-green); color: var(--brand-green); }
.filter-early.active { border-color: var(--brand-blue); color: var(--brand-blue); }
.filter-explorer.active { border-color: var(--brand-yellow); color: var(--brand-orange); }

.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.game-card { background: white; border-radius: 25px; overflow: hidden; border: 2px solid #eef2f5; box-shadow: var(--shadow-soft); transition: all 0.3s ease; position: relative; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); border-color: var(--brand-cyan); }

.card-img-wrap { width: 100%; height: 200px; overflow: hidden; position: relative; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-badge { position: absolute; top: 15px; right: 15px; padding: 6px 15px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; color: white; text-transform: uppercase; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.badge-pink { background: var(--brand-pink); }
.badge-green { background: var(--brand-green); }
.badge-blue { background: var(--brand-blue); }
.badge-yellow { background: var(--brand-orange); }

.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 800; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }
.play-link { font-weight: bold; color: var(--brand-cyan); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 1px; transition: color 0.2s; display: inline-block; }
.game-card:hover .play-link { color: var(--brand-magenta); padding-left: 5px; }

/* --- Membership Promo --- */
.membership-promo { padding: 100px 5%; background: var(--bg-white); position: relative; }
.membership-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; align-items: center; }

.promo-text p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.feature-list li { margin-bottom: 15px; font-size: 1.1rem; color: var(--text-dark); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.feature-list .check { color: var(--brand-green); font-weight: 900; font-size: 1.3rem; }

.promo-cards-wrap { display: flex; flex-direction: column; gap: 25px; }
.promo-card { padding: 35px 30px; border-radius: 25px; transition: transform 0.3s ease; position: relative; }
.promo-card:hover { transform: translateY(-5px); }

.free-play { border: 3px dashed var(--brand-cyan); background: var(--bg-white); box-shadow: var(--shadow-soft); }
.premium-play { background: white; border: 3px solid var(--brand-magenta); box-shadow: var(--shadow-heavy); }

.popular-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--brand-magenta); color: white; padding: 5px 20px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }

.promo-card h3 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 10px; }
.promo-card p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.price-tag { display: block; font-size: 1.8rem; color: var(--brand-cyan); font-weight: 900; margin-bottom: 25px; }

/* --- Testimonials Section --- */
.testimonial-section { padding: 80px 5%; background: var(--bg-light); position: relative; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { padding: 30px; display: flex; flex-direction: column; gap: 20px; transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); }
.stars { color: var(--brand-yellow); font-size: 1.2rem; }
.quote { font-size: 1.1rem; color: var(--text-dark); font-style: italic; line-height: 1.6; flex-grow: 1; }
.parent-meta { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border-light); padding-top: 15px; }
.parent-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--brand-cyan); color: white; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1.2rem; }
.parent-info h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 3px; }
.parent-info span { font-size: 0.85rem; color: var(--text-muted); }

/* --- Footer (Double Wave Fixed) --- */
.main-footer { 
    background: var(--text-dark); 
    color: white; 
    padding: 80px 5% 30px; 
    position: relative; 
    margin-top: 55px;
}

/* Primary Dark Slate Wave */
.wave-top::before { 
    content: ""; 
    position: absolute; 
    top: -49px; 
    left: 0; 
    width: 100%; 
    height: 50px; 
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 50" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,50 C300,0 900,0 1200,50 L1200,50 L0,50 Z" fill="%232c3e50"/></svg>') no-repeat center bottom; 
    background-size: 100% 100%; 
    z-index: 2;
}

/* Secondary Accent Cyan Wave */
.wave-top::after { 
    content: ""; 
    position: absolute; 
    top: -59px; 
    left: 0; 
    width: 100%; 
    height: 60px; 
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 50" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,50 C300,0 900,0 1200,50 L1200,50 L0,50 Z" fill="%2300bcd4"/></svg>') no-repeat center bottom; 
    background-size: 100% 100%; 
    z-index: 1;
    opacity: 0.9;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 50px; position: relative; z-index: 5; }
.footer-col h4 { font-size: 1.2rem; color: var(--brand-cyan); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.brand-col p { color: #94a3b8; line-height: 1.6; font-size: 1.05rem; padding-right: 20px; }

.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #cbd5e1; transition: color 0.2s; font-size: 0.95rem; }
.footer-col a:hover { color: white; }
.footer-col p { color: #cbd5e1; margin-bottom: 10px; }
.email-link { color: var(--brand-cyan) !important; font-weight: bold; font-size: 1.1rem; }

.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: #64748b; font-size: 0.9rem; }

/* --- Mobile & Tablet Responsiveness --- */
@media (max-width: 1024px) {
    .hero-section { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-content { margin-bottom: 50px; }
    .hero-buttons { justify-content: center; }
    
    .hero-characters { flex-direction: row; width: 100%; max-width: 600px; margin: 0 auto; }
    .hero-characters img { max-height: 350px; }
    
    .parent-about-container { grid-template-columns: 1fr; }
    .parent-img-wrap { margin-bottom: 30px; }
    .floating-badge { bottom: -10px; right: 20px; }
    
    .membership-container { grid-template-columns: 1fr; text-align: center; }
    .feature-list { display: inline-block; text-align: left; }
}

@media (max-width: 768px) {
    .text-3d-huge { font-size: 2.8rem; }
    
    .hero-characters { flex-direction: row; gap: 10px; }
    .hero-characters img { max-height: 220px; }
    
    .floating-badge { position: relative; bottom: 0; right: 0; justify-content: center; margin-top: -20px; }
    
    .testimonial-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .brand-col p { padding-right: 0; }
    
    /* Strict Mobile-Only Navigation Binding */
    .primary-cta { display: none; }
    .hamburger-menu { display: flex; }
    
    .desktop-nav {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        flex-direction: column; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 10000;
    }
    .desktop-nav.active-mobile { opacity: 1; visibility: visible; }
    
    .desktop-nav ul { flex-direction: column; gap: 20px; text-align: center; }
    .desktop-nav a { font-size: 1.5rem; padding: 15px 30px; justify-content: center; background: #f8f9fa; width: 100%; border-radius: 15px; }
}