/* ====================================================================
   RR Apps Studio - Global Modern Design System
   Target Subdomain: rrapps.dailyjobs.bd
   ==================================================================== */

:root {
    /* Brand Colors */
    --primary: #2563eb;          /* Royal Tech Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.25);
    
    --accent: #06b6d4;           /* Electric Cyan */
    --accent-glow: rgba(6, 182, 212, 0.3);
    
    --success: #10b981;          /* Emerald for ratings & verified */
    --success-light: #ecfdf5;
    
    --warning: #f59e0b;          /* Amber for 5-star ratings */
    
    /* Dark Theme Elements */
    --dark-bg: #0b1329;          /* Deepest Navy */
    --dark-surface: #111c44;
    --dark-card: #162044;
    --dark-border: rgba(255, 255, 255, 0.1);
    
    /* Neutral & Text */
    --text-main: #0f172a;        /* Slate 900 */
    --text-muted: #475569;       /* Slate 600 */
    --text-light: #94a3b8;       /* Slate 400 */
    --text-white: #ffffff;
    
    --bg-page: #f8fafc;          /* Slate 50 */
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    
    --border-color: #e2e8f0;     /* Slate 200 */
    --border-focus: #93c5fd;
    
    /* Elevation / Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.3);
    
    /* Layout */
    --container-max: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--text-white) !important;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-card-subtle);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-playstore {
    background: #000000;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
}

.btn-playstore:hover {
    background: #18181b;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-playstore .play-icon {
    font-size: 1.6rem;
    color: var(--accent);
}

.btn-playstore .play-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.btn-playstore .play-sub {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.btn-playstore .play-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Section Header Styles */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.badge-pill.accent {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border-color: rgba(6, 182, 212, 0.25);
}

.badge-pill.verified {
    background: var(--success-light);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Card System */
.studio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.studio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Glassmorphism Card (Dark) */
.glass-card-dark {
    background: rgba(17, 28, 68, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    color: var(--text-white);
}

/* Ratings & Stars */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning);
}

.rating-score {
    font-weight: 700;
    color: var(--text-main);
    margin-left: 0.35rem;
}

/* Scroll to top button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    cursor: pointer;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#scrollToTopBtn:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .studio-card {
        padding: 1.5rem;
    }
}
