/* ==========================================
   Sqaner Tech - Premium CSS Design System
   ========================================== */

/* Design Tokens & Variables */
:root {
    --bg-dark: #070a13;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(22, 35, 60, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    /* Typography colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Branding Colors */
    --sqaner-orange: #007bff;
    --sqaner-orange-glow: rgba(0, 123, 255, 0.15);
    --sqaner-gradient: linear-gradient(135deg, #3399ff 0%, #007bff 100%);
    
    --tally-green: #007bff;
    --tally-green-glow: rgba(0, 123, 255, 0.15);
    --tally-gradient: linear-gradient(135deg, #3399ff 0%, #0056b3 100%);

    --triplog-blue: #3b82f6;
    --triplog-blue-glow: rgba(59, 130, 246, 0.15);
    --triplog-gradient: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --glow-gradient: linear-gradient(135deg, #007bff 0%, #007bff 100%);
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow-sqaner: 0 0 30px 0 rgba(0, 123, 255, 0.2);
    --shadow-glow-tally: 0 0 30px 0 rgba(0, 123, 255, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --navbar-height: 80px;
    --max-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Dynamic Gradient Glow & Abacus Background */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.abacus-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.20;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 75%, rgba(0, 0, 0, 0) 93%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 75%, rgba(0, 0, 0, 0) 93%);
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: 0;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-orange {
    width: 50vw;
    height: 50vw;
    background: var(--sqaner-orange);
    top: -10vw;
    right: -10vw;
    animation-delay: 0s;
}

.glow-green {
    width: 45vw;
    height: 45vw;
    background: var(--tally-green);
    bottom: -10vw;
    left: -10vw;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 8%) scale(1.1);
    }
}

/* Reusable Components & Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

.text-gradient {
    background: var(--sqaner-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-alt {
    background: var(--tally-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.badge-accent i {
    background: var(--glow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Glassmorphism utility card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--glow-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(7, 10, 19, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-accent {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--glow-gradient);
    transition: var(--transition-smooth);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-playstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    background: var(--jc-gradient);
    color: #ffffff !important;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--jc-blue-glow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-playstore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.45);
    color: #ffffff;
}

.nav-playstore-btn i {
    font-size: 0.95rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.contact-cta-mobile {
    display: none;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--navbar-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section .section-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: absolute;
    width: 280px;
    padding: 1.75rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.visual-glow-border {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-triplog {
    top: 15%;
    left: 5%;
    transform: rotate(-6deg);
    z-index: 4;
    animation: cardFloatTriplog 6s infinite alternate ease-in-out;
}

.card-triplog:hover {
    transform: rotate(-2deg) translateY(-8px) scale(1.03);
    box-shadow: 0 0 30px 0 rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.card-tally {
    bottom: 15%;
    right: 5%;
    transform: rotate(6deg);
    z-index: 5;
    animation: cardFloatTally 6s infinite alternate ease-in-out;
    animation-delay: -3s;
}

.card-tally:hover {
    transform: rotate(2deg) translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-glow-tally);
    border-color: rgba(0, 123, 255, 0.4);
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.visual-header i {
    font-size: 1.5rem;
}

.icon-sqaner { color: var(--sqaner-orange); }
.icon-tally { color: var(--tally-green); }

.v-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

.v-badge-sqaner {
    background: rgba(0, 123, 255, 0.15);
    color: var(--sqaner-orange);
}

.v-badge-tally {
    background: rgba(0, 123, 255, 0.15);
    color: var(--tally-green);
}

.v-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.v-stats {
    display: flex;
    flex-direction: column;
}

.v-stat-num {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.card-sqaner .v-stat-num { color: var(--sqaner-orange); }
.card-tally .v-stat-num { color: var(--tally-green); }
.card-triplog .v-stat-num { color: var(--triplog-blue); }
.icon-triplog { color: var(--triplog-blue); }

.v-badge-triplog {
    background: rgba(59, 130, 246, 0.15);
    color: var(--triplog-blue);
}

.v-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes cardFloatSqaner {
    0% { transform: rotate(-6deg) translateY(0); }
    100% { transform: rotate(-5deg) translateY(-15px); }
}

@keyframes cardFloatTally {
    0% { transform: rotate(6deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(-15px); }
}

@keyframes cardFloatTriplog {
    0% { transform: rotate(-2deg) translateY(0); }
    100% { transform: rotate(-3deg) translateY(-15px); }
}

/* Products Section */
.products-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 5rem;
}

.section-subtitle {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sqaner-orange);
    display: block;
    margin-bottom: 0.75rem;
}

.products-section .section-subtitle {
    color: var(--tally-green);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition-smooth);
}

.sqaner-theme::before { background: var(--sqaner-gradient); }
.tally-theme::before { background: var(--tally-gradient); }
.triplog-theme::before { background: var(--triplog-gradient); }

.product-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.sqaner-theme:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 123, 255, 0.15);
}

.tally-theme:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 123, 255, 0.15);
}

.triplog-theme:hover {
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.product-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sqaner-theme .product-icon-wrapper {
    background: rgba(0, 123, 255, 0.1);
    color: var(--sqaner-orange);
    border-color: rgba(0, 123, 255, 0.2);
}

.tally-theme .product-icon-wrapper {
    background: rgba(0, 123, 255, 0.1);
    color: var(--tally-green);
    border-color: rgba(0, 123, 255, 0.2);
}

.triplog-theme .product-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    color: var(--triplog-blue);
    border-color: rgba(59, 130, 246, 0.2);
}

.product-badge {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.product-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.product-tagline {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-features li i {
    font-size: 1rem;
}

.sqaner-theme .product-features li i { color: var(--sqaner-orange); }
.tally-theme .product-features li i { color: var(--tally-green); }
.triplog-theme .product-features li i { color: var(--triplog-blue); }

.btn-product {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sqaner-theme .btn-product:hover {
    background: var(--sqaner-orange);
    color: #fff;
    border-color: var(--sqaner-orange);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.tally-theme .btn-product:hover {
    background: var(--tally-green);
    color: #fff;
    border-color: var(--tally-green);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.triplog-theme .btn-product:hover {
    background: var(--triplog-blue);
    color: #fff;
    border-color: var(--triplog-blue);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* About Us Section */
.about-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-info {
    text-align: left;
}

.about-tagline {
    font-family: var(--font-title);
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.about-supporters {
    text-align: left;
    padding-top: 6.5rem; /* Aligns supporters header with biography body text */
}

.supporters-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.milestone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.milestone-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.milestone-logo {
    width: 100%;
    max-width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* White background under the logos */
    border-radius: 6px;
    padding: 6px;
    transition: var(--transition-smooth);
}

.milestone-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.5) contrast(1.1); /* slightly muted */
    transition: var(--transition-smooth);
}

.milestone-card:hover .milestone-logo img {
    filter: grayscale(0) contrast(1);
}

.milestone-content h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.milestone-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Mission Glass Card */
.mission-card {
    padding: 3rem;
}

.mission-card h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mission-card h3 i {
    color: var(--sqaner-orange);
}

.mission-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-primary);
    border-left: 3px solid var(--tally-green);
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}

.mission-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
}

.value-num {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tally-green);
    opacity: 0.7;
    margin-top: 0.15rem;
}

.value-item h5 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.value-item p {
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-header .section-subtitle {
    color: var(--sqaner-orange);
}

.contact-desc {
    font-size: 1.05rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.detail-item:hover .detail-icon {
    border-color: var(--sqaner-orange);
    color: var(--sqaner-orange);
    transform: scale(1.05);
}

.detail-item h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-item p {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Form Styling with Floating Labels */
.form-card {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Floating label magic */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.65rem;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 0.35rem;
    background: #0f172a;
    border-radius: 4px;
    color: var(--tally-green);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--tally-green);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px 0 rgba(0, 123, 255, 0.1);
}

/* Form validation styling */
.form-group.invalid input, .form-group.invalid textarea {
    border-color: #ef4444;
}

.form-group.invalid label {
    color: #ef4444;
}

.error-msg {
    position: absolute;
    bottom: -1.25rem;
    left: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition-smooth);
}

.form-group.invalid .error-msg {
    opacity: 1;
    transform: translateY(0);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
}

/* Form Success State */
.form-success-state {
    text-align: center;
    padding: 2rem 0;
}

.form-success-state.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    color: var(--tally-green);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-success-state h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.form-success-state p {
    font-size: 1rem;
    max-width: 320px;
    margin: 0 auto 2rem;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Footer Section - Sqaner Light Theme */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5rem 0 3rem;
    background: #f5f5f4; /* Light warm gray matching Sqaner's color palette */
    color: #1a1a1a;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo-text {
    color: #070a13;
}

.footer-brand .logo-accent {
    color: #64748b;
}

.footer-desc {
    font-size: 0.9rem;
    margin-top: 1.25rem;
    color: #4b5563;
}

.footer-abn {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.75rem;
    font-weight: 600;
    font-family: var(--font-title);
}

.footer-memberships {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.membership-logo {
    width: auto;
    object-fit: contain;
    filter: grayscale(0.4) opacity(0.85);
    transition: var(--transition-smooth);
}

.logo-sba {
    height: 28px; /* Slightly smaller to balance visual weight */
}

.logo-sbaa {
    height: 75px; /* Scaled to 75px for optimal detail visibility */
}

.membership-logo:hover {
    filter: grayscale(0) opacity(1);
}

.footer-links-grid {
    display: flex;
    gap: 5rem;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f172a;
}

.footer-links-col a {
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links-col a:hover {
    color: var(--sqaner-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    color: #6b7280;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--sqaner-orange);
    transform: translateY(-2px);
}

/* Scroll Animation Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive Layouts (Media Queries) */
@media (max-width: 992px) {
    .hero-section .section-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Drawer style */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--bg-dark);
        flex-direction: column;
        padding-top: 3rem;
        gap: 2.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-item {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        display: none; /* Hide top right btn on mobile */
    }
    
    .contact-cta-mobile {
        display: block; /* Show CTA inside menu on mobile */
        font-weight: 700;
        color: var(--tally-green) !important;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
    
    .hero-visual {
        height: 320px;
    }
    
    .visual-card {
        width: 230px;
        padding: 1.25rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .about-section, .products-section, .contact-section {
        padding: 5rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-card, .mission-card {
        padding: 2rem;
    }
    
    .footer-links-grid {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1.25rem;
    }

    .logo-img {
        height: 30px;
    }

    .nav-playstore-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-visual {
        display: none; /* Hide complex animation on small screens for performance and layout cleanups */
    }

    .capabilities-section {
        padding: 4rem 0;
    }
}

/* ==========================================
   Capabilities Section Styles
   ========================================== */
.capabilities-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.capability-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.capability-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cap-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--tally-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.capability-card:hover .cap-icon-wrapper {
    background: var(--tally-green-glow);
    border-color: rgba(0, 123, 255, 0.3);
    color: var(--tally-green);
    transform: scale(1.05);
}

.capability-card h4 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.capability-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .capabilities-grid, .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .capabilities-section {
        padding: 5rem 0;
    }
    
    .about-supporters {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .milestones-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================
   Legal Pop-up Modal Styling
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Above navbar (1000) and other elements */
    background-color: rgba(7, 10, 19, 0.85); /* Semi-transparent dark overlay matching site background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background-color: #0f172a; /* Deep slate background */
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 750px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 123, 255, 0.05); /* Subtle green/fintech shadow glow */
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.modal-header h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #ef4444; /* Clean hover delete color */
    transform: scale(1.1) rotate(90deg);
}

/* Body Content */
.modal-body {
    padding: 2.5rem 2rem;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: #1e293b var(--bg-dark);
}

/* Scrollbar styling for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.modal-body h4 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.modal-body h4:first-of-type {
    margin-top: 0;
}

.modal-body ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-body strong {
    color: var(--text-primary);
}

.modal-body a {
    color: var(--tally-green);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.modal-body a:hover {
    color: var(--sqaner-orange);
    text-decoration: underline;
}

/* Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.modal-footer .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-container {
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* ==========================================
   Error 404 Page Styling
   ========================================== */
.error-page-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

.error-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem; /* Spacing below navbar */
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-content {
    width: 100%;
    max-width: 550px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 4rem 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md), 0 0 40px rgba(0, 123, 255, 0.05);
}

.error-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 123, 255, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sqaner-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.error-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.error-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

@media (max-width: 576px) {
    .error-content {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .error-actions .btn {
        width: 100%;
    }
}

/* ==========================================
   About Us Page Specific Styles
   ========================================== */

.page-header {
    padding: 12rem 0 4rem;
    text-align: center;
}

.pt-0 {
    padding-top: 0 !important;
}

.mt-5 {
    margin-top: 5rem !important;
}

.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.3);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 123, 255, 0.1);
}

.mv-card:last-child .mv-icon {
    color: var(--tally-green);
    box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.1);
}

.mv-title {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mv-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .mission-vision-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================
   Social Uplift Project (CSR) Specific Styles
   ========================================== */

.csr-navbar {
    background: rgba(15, 23, 42, 0.85); /* Slightly different tint for CSR */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.csr-navbar .nav-item {
    font-size: 0.95rem;
}

.csr-navbar .btn-back {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-left: 1rem;
}

.csr-navbar .btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.csr-hero {
    padding-top: 14rem;
    padding-bottom: 6rem;
}

.csr-badge {
    background: rgba(236, 72, 153, 0.1); /* Pink tint for maternal care */
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.2);
}

.csr-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.csr-btn {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.csr-btn:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
}

.csr-subtitle {
    color: #ec4899;
}

.csr-icon-bg {
    background: rgba(236, 72, 153, 0.05);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.2);
}

/* Project Spotlight Section (Bump to Mum) */
.project-spotlight-section {
    padding: 8rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.spotlight-tagline {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.spotlight-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(236, 72, 153, 0.03);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 800;
    color: #ec4899;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number small {
    font-size: 1.5rem;
    font-weight: 500;
}

.stat-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.spotlight-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.spotlight-description strong {
    color: var(--text-primary);
}

/* Abstract Mockup UI */
.app-mockup {
    background: var(--bg-card);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(236, 72, 153, 0.05);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-stat {
    margin-bottom: 1.5rem;
}

.mockup-stat span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: #ec4899;
    border-radius: 4px;
}

.mockup-alert, .mockup-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mockup-alert {
    border-left: 3px solid #ec4899;
}

.mockup-info {
    border-left: 3px solid #8b5cf6;
}

/* Additional Stats Box */
.additional-stats-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Embedded Iframe */
.iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.csr-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* White Theme Overrides */
.csr-white-theme {
    background-color: #ffffff;
    color: #1e293b;
    font-family: 'Bahnschrift', system-ui, -apple-system, sans-serif;
}

.csr-white-theme h1, 
.csr-white-theme h2, 
.csr-white-theme h3, 
.csr-white-theme h4, 
.csr-white-theme h5 {
    color: #0f172a;
    font-family: 'Bahnschrift', var(--font-title);
}

.csr-white-theme p, 
.csr-white-theme .stat-text {
    color: #475569;
}

.csr-white-theme .csr-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.csr-white-theme .nav-item {
    color: #334155;
}

.csr-white-theme .nav-item:hover, 
.csr-white-theme .nav-item.active {
    color: #ec4899;
}

.csr-white-theme .btn-back {
    border-color: rgba(0, 0, 0, 0.1);
    color: #334155;
}

.csr-white-theme .btn-back:hover {
    background: rgba(0, 0, 0, 0.05);
}

.csr-white-theme .logo-text {
    color: #0f172a;
}

.csr-white-theme .capability-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.csr-white-theme .capability-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(236, 72, 153, 0.2);
}

.csr-white-theme .spotlight-stats {
    background: #fff5f9;
    border-color: rgba(236, 72, 153, 0.15);
}

.csr-white-theme .spotlight-description strong {
    color: #0f172a;
}

.csr-white-theme .footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #475569;
}

.csr-white-theme .footer h5, 
.csr-white-theme .footer .logo-text,
.csr-white-theme .footer .footer-abn {
    color: #0f172a;
}

.csr-white-theme .footer p,
.csr-white-theme .footer a {
    color: #475569;
}

.csr-white-theme .footer a:hover {
    color: #ec4899;
}

/* Standalone Project Wrapper for Bump to Mum */
.standalone-project-wrapper {
    background-color: #fff5f9;
    border-top: 1px solid rgba(236, 72, 153, 0.1);
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
    padding: 6rem 0;
}

.project-divider {
    text-align: center;
    margin-bottom: 4rem;
}

.project-divider h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-top: 1rem;
}

.standalone-project-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.project-brand {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2);
}

.ml-2 {
    margin-left: 0.5rem;
}

/* CSR Navbar Alignment */
.csr-nav-right {
    margin-left: auto;
    justify-content: flex-end;
}

/* CSR Hero Layout & Animation */
.csr-animated-graphic {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csr-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: pulseGlow 8s infinite alternate;
}

.csr-circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.2);
    top: 10%;
    left: 20%;
}

.csr-circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.2);
    bottom: 10%;
    right: 20%;
    animation-delay: -4s;
}

.csr-floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    animation: floatIcon 6s infinite ease-in-out;
}

.csr-floating-icon.icon-1 {
    color: #ec4899;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.csr-floating-icon.icon-2 {
    color: #8b5cf6;
    bottom: 25%;
    left: 25%;
    animation-delay: -2s;
}

.csr-floating-icon.icon-3 {
    color: #3b82f6;
    top: 25%;
    right: 15%;
    animation-delay: -4s;
}

.csr-floating-icon.icon-4 {
    color: #007bff;
    bottom: 15%;
    right: 25%;
    animation-delay: -1s;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@media (max-width: 992px) {
    .csr-animated-graphic {
        height: 300px;
        margin-top: 2rem;
    }
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
    
    .spotlight-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .standalone-project-wrapper {
        padding: 3rem 0;
    }

    .standalone-project-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .project-divider {
        margin-bottom: 2rem;
    }

    .project-divider h2 {
        font-size: 2rem;
    }

    .additional-stats-box {
        padding: 2rem 1.5rem;
    }

    .csr-floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .csr-circle-1 {
        width: 200px;
        height: 200px;
    }

    .csr-circle-2 {
        width: 150px;
        height: 150px;
    }
}
/* --- TripLog Style Footer (Adapted for Just Count) --- */
.site-footer {
    position: relative;
    z-index: 10;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    font-size: 0.85rem;
}
.site-footer .container {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.footer-left {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.copyright-line {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
}
.developer-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer-dev-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 3px;
    transition: var(--transition-smooth);
}
.footer-middle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.social-link:hover {
    color: #ffffff;
    background-color: #3b5998;
    border-color: #3b5998;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.2);
}
.footer-right {
    flex: 1 1 0%;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: flex-end;
}
.footer-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.footer-link:hover {
    color: var(--jc-blue, #007bff);
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
    .footer-left {
        text-align: center;
        align-items: center;
    }
    .developer-line {
        justify-content: center;
    }
    .footer-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Fixed Floating Google Play Badge (Desktop & Mobile - Bump to Mum Style)
   ========================================================================== */
.floating-store-badge {
    position: fixed !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    display: block !important;
    width: 150px !important;
    max-width: 150px !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.floating-store-badge:hover {
    transform: translateY(-50%) scale(1.08) !important;
    filter: drop-shadow(0 12px 24px rgba(0, 123, 255, 0.5));
}

.floating-store-badge img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Mobile & Tablet Floating Dock (Bottom-Right) */
@media (max-width: 1024px) {
    .floating-store-badge {
        top: auto !important;
        bottom: 20px !important;
        right: 16px !important;
        left: auto !important;
        transform: none !important;
        width: 125px !important;
        max-width: 125px !important;
    }
    
    .floating-store-badge:hover {
        transform: scale(1.05) !important;
    }
}

@media (max-width: 480px) {
    .floating-store-badge {
        bottom: 16px !important;
        right: 12px !important;
        width: 110px !important;
        max-width: 110px !important;
    }
}

/* ==========================================================================
   Screenshots Carousel Section
   ========================================================================== */
.screenshots-section {
    padding: 7rem 0 6rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(0, 123, 255, 0.06), transparent 70%);
}

.carousel-container {
    position: relative;
    max-width: 820px;
    margin: 3.5rem auto 0;
    padding: 0 55px;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 24px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 10px 20px;
    user-select: none;
}

/* Mobile Phone Mockup Frame */
.mobile-phone-frame, .screenshot-frame {
    position: relative;
    width: 260px;
    height: 550px;
    background: #080f1a;
    border: 9px solid #142032;
    border-radius: 44px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.75),
        0 0 40px var(--jc-blue-glow);
    margin-bottom: 2rem;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.mobile-phone-frame:hover, .screenshot-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 0 1px rgba(0, 123, 255, 0.3),
        0 25px 60px rgba(0, 0, 0, 0.85),
        0 0 50px rgba(0, 123, 255, 0.35);
}

/* Side Buttons (Volume Rocker on Left, Power Button on Right) */
.mobile-phone-frame::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 100px;
    width: 3px;
    height: 48px;
    background: #1b283d;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 60px 0 #1b283d;
}

.mobile-phone-frame::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 120px;
    width: 3px;
    height: 42px;
    background: #1b283d;
    border-radius: 0 2px 2px 0;
}

/* Speaker Earpiece */
.phone-speaker {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3.5px;
    background: #1a273c;
    border-radius: 3px;
    z-index: 15;
}

/* Front Camera Punch-hole */
.phone-camera {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #000000;
    border: 1.5px solid #1a273c;
    border-radius: 50%;
    z-index: 15;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Phone Screen Container */
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 33px;
    overflow: hidden;
    position: relative;
    background: #000000;
}

.phone-screen img, .screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtle Curved Glass Glare */
.phone-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 8;
}

.phone-home-indicator {
    display: none;
}

.slide-title {
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.slide-desc {
    color: var(--text-secondary);
    max-width: 520px;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 auto;
}

/* Carousel Nav Controls */
.carousel-control {
    position: absolute;
    top: 240px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 31, 63, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-control:hover {
    background: var(--jc-blue);
    border-color: var(--jc-blue);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--jc-blue-glow);
    transform: scale(1.08);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2.2rem;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.45);
}

.carousel-indicators .indicator.active {
    width: 28px;
    background: var(--jc-blue);
    box-shadow: 0 0 12px var(--jc-blue);
}

@media (max-width: 768px) {
    .screenshots-section {
        padding: 4.5rem 0 4rem;
    }

    .carousel-container {
        padding: 0 15px;
        margin-top: 2.5rem;
    }

    .mobile-phone-frame, .screenshot-frame {
        width: 220px;
        height: 470px;
        border-width: 8px;
        border-radius: 38px;
        margin-bottom: 1.5rem;
    }

    .phone-screen {
        border-radius: 28px;
    }

    .phone-speaker {
        top: 5px;
        width: 38px;
        height: 3px;
    }

    .phone-camera {
        top: 12px;
        width: 8px;
        height: 8px;
    }

    .mobile-phone-frame::before {
        left: -10px;
        top: 85px;
        height: 40px;
        box-shadow: 0 50px 0 #1b283d;
    }

    .mobile-phone-frame::after {
        right: -10px;
        top: 100px;
        height: 36px;
    }

    .phone-home-indicator {
        bottom: 5px;
        width: 70px;
        height: 3px;
    }

    .carousel-control {
        width: 38px;
        height: 38px;
        top: 210px;
    }

    .carousel-control.prev {
        left: -4px;
    }

    .carousel-control.next {
        right: -4px;
    }

    .slide-title {
        font-size: 1.25rem;
    }

    .slide-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mobile-phone-frame, .screenshot-frame {
        width: 200px;
        height: 430px;
        border-width: 7px;
        border-radius: 34px;
    }

    .phone-screen {
        border-radius: 25px;
    }

    .phone-speaker {
        top: 4px;
        width: 32px;
        height: 2.5px;
    }

    .phone-camera {
        top: 10px;
        width: 7px;
        height: 7px;
    }

    .phone-home-indicator {
        bottom: 4px;
        width: 60px;
        height: 2.5px;
    }

    .carousel-control {
        display: none;
    }

    .carousel-container {
        padding: 0;
    }
}

/* ==========================================================================
   Interactive App Tools Popup Modal Styling
   ========================================================================== */
.feature-card[data-tool] {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.feature-card[data-tool]:focus-visible {
    outline: 2px solid var(--jc-blue, #007bff);
    outline-offset: 4px;
}

.feature-try-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background: rgba(0, 123, 255, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(0, 123, 255, 0.3);
    transition: var(--transition-smooth);
}

.feature-card[data-tool]:hover .feature-try-badge {
    background: #007bff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

/* Tool Modal Container */
.tool-modal-overlay {
    z-index: 10000;
}

.tool-modal-container {
    max-width: 680px;
    background: #00172e;
    border: 1px solid rgba(0, 123, 255, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 123, 255, 0.2);
}

.tool-modal-header {
    background: #001f3f;
    border-bottom: 1px solid rgba(0, 123, 255, 0.25);
    padding: 1.25rem 1.75rem;
}

.tool-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.tool-modal-subtitle {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tool-modal-body {
    padding: 1.75rem;
    max-height: 75vh;
    overflow-y: auto;
    background: #00172e;
}

/* Common Tool UI Components */
.app-tool-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 12px;
}

.app-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: #007bff;
    color: #fff;
}

.app-tool-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.35);
}

.app-tool-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-tool-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-tool-btn.btn-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.app-tool-btn.btn-danger:hover {
    background: #dc3545;
    color: #ffffff;
}

.app-tool-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #001020;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.app-tool-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.app-tool-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.app-tool-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    display: block;
}

/* 1. Counter / Multi-Counters Styling */
.counters-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.counter-card {
    background: #001f3f;
    border-radius: 16px;
    border: 1px solid rgba(0, 123, 255, 0.25);
    border-left-width: 6px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition-smooth);
}

.counter-card:hover {
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.counter-info {
    flex-grow: 1;
    min-width: 0;
}

.counter-name {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-val {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 800;
    min-width: 55px;
    text-align: center;
    color: #38bdf8;
    user-select: none;
}

.counter-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.counter-btn:hover {
    transform: scale(1.08);
    background: #007bff;
}

.counter-btn.btn-minus:hover {
    background: #dc3545;
}

.counter-delete-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition-smooth);
}

.counter-delete-btn:hover {
    color: #ef4444;
    transform: scale(1.15);
}

/* 2. Stopwatch Styling */
.stopwatch-container {
    text-align: center;
    padding: 1rem 0;
}

.stopwatch-display {
    font-family: var(--font-title);
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 1.5rem 0 2rem;
    text-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
}

.stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 2rem;
}

.stopwatch-btn {
    min-width: 130px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.stopwatch-btn.btn-start {
    background: #28a745;
    color: #fff;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
}

.stopwatch-btn.btn-stop {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
}

.stopwatch-btn.btn-lap, .stopwatch-btn.btn-reset {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.laps-list {
    max-height: 220px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.lap-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* 3. Countdown Timer Styling */
.timer-container {
    text-align: center;
    padding: 1rem 0;
}

.timer-ring-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 1.5rem auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.timer-circle-progress {
    fill: none;
    stroke: #ffc107;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.timer-time-display {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.timer-digits {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
}

.timer-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timer-inputs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0;
}

.timer-num-input {
    width: 80px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.timer-colon {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

/* 4. Streaks Styling */
.streak-card {
    background: #001f3f;
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.streak-flame-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.streak-flame-box i {
    font-size: 2rem;
    color: #dc3545;
}

.streak-flame-box.streak-active i {
    animation: flamePulse 1.2s infinite alternate;
}

@keyframes flamePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 4px #dc3545); }
    100% { transform: scale(1.18); filter: drop-shadow(0 0 14px #ff5722); }
}

.streak-count-num {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 800;
    color: #ff6b6b;
}

.streak-name {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.streak-status-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.streak-check-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #dc3545;
    color: #fff;
    transition: var(--transition-smooth);
}

.streak-check-btn.btn-done {
    background: rgba(40, 167, 69, 0.2);
    color: #20c997;
    border: 1px solid rgba(40, 167, 69, 0.4);
    cursor: default;
}

/* 5. Date Counter / Events */
.event-card {
    background: #001f3f;
    border-radius: 16px;
    border: 1px solid rgba(23, 162, 184, 0.3);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.event-day-badge {
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(23, 162, 184, 0.15);
    border: 1px solid rgba(23, 162, 184, 0.35);
    border-radius: 12px;
}

.event-days-num {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    color: #17a2b8;
    line-height: 1;
}

.event-days-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
}

/* 6. Goal Progress */
.goal-card {
    background: #001f3f;
    border-radius: 16px;
    border: 1px solid rgba(111, 66, 193, 0.35);
    border-top-width: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 14px;
}

.goal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.goal-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.goal-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.goal-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.goal-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
}

.goal-add-row {
    display: flex;
    gap: 8px;
}

/* 7. Multi-Tally Grid */
.tally-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.tally-tile {
    background: #001f3f;
    border-radius: 16px;
    border: 1px solid rgba(253, 126, 20, 0.35);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
}

.tally-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.tally-tile:active {
    transform: scale(0.96);
}

.tally-tile-num {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.tally-tile-name {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tally-tile-del {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
}

.tally-tile-del:hover {
    color: #ef4444;
}

/* 8. Date & Time Calculator */
.date-calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.calc-date-box {
    background: #001020;
    border: 1px solid rgba(32, 201, 151, 0.3);
    border-radius: 12px;
    padding: 1rem;
}

.calc-date-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #20c997;
    margin-bottom: 8px;
    display: block;
}

.calc-results-panel {
    background: #001f3f;
    border: 1px solid rgba(32, 201, 151, 0.4);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.calc-headline-diff {
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.calc-breakdowns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.calc-breakdown-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}

.calc-breakdown-val {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: #20c997;
}

.calc-breakdown-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .date-calc-row {
        grid-template-columns: 1fr;
    }
    .tool-modal-body {
        padding: 1.25rem;
    }
}

/* ==========================================
   Web Standard Calculator & Unit Converter Styles
   ========================================== */
.web-calc-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

.web-calc-container {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.web-calc-screen {
    background: #001428;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    text-align: right;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(0, 123, 255, 0.25);
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.web-calc-screen-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 1.15rem;
}

.web-calc-mem-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
}

.web-calc-expression {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    flex-grow: 1;
}

.web-calc-display {
    color: #ffffff;
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-title);
    letter-spacing: -0.5px;
    word-break: break-all;
}

/* Memory Functions Bar */
.web-calc-memory-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    padding: 3px;
    background: rgba(0, 20, 40, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.15);
}

.web-calc-mem-btn {
    padding: 5px 0;
    background: transparent;
    color: #80bdff;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.web-calc-mem-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #ffffff;
}

.web-calc-mem-btn:active {
    transform: scale(0.95);
}

/* Samsung-Style Unit Converter Elements */
.web-conv-categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 123, 255, 0.35) transparent;
}

.web-conv-categories::-webkit-scrollbar {
    height: 4px;
}

.web-conv-categories::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.35);
    border-radius: 4px;
}

.web-conv-cat-chip {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 14px;
    background: #001428;
    border: 1px solid rgba(0, 123, 255, 0.25);
    color: #80bdff;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.web-conv-cat-chip:hover {
    border-color: #007bff;
    color: #ffffff;
}

.web-conv-cat-chip.active {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
    font-weight: 700;
}

.web-conv-screen {
    background: #001428;
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 123, 255, 0.25);
}

.web-conv-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.web-conv-select {
    align-self: flex-start;
    background: rgba(0, 31, 63, 0.85);
    color: #80bdff;
    border: 1px solid rgba(0, 123, 255, 0.25);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    max-width: 100%;
}

.web-conv-select option {
    background: #001428;
    color: #ffffff;
}

.web-conv-val-wrap {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    cursor: pointer;
    padding: 2px 0;
}

.web-conv-val {
    color: #a0aec0;
    font-size: 1.45rem;
    font-weight: 700;
    font-family: var(--font-title);
    line-height: 1.15;
    word-break: break-all;
    text-align: right;
}

.web-conv-val.active {
    color: #38bdf8;
}

.web-conv-sym {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.web-conv-divider {
    height: 1px;
    background: rgba(0, 123, 255, 0.18);
    margin: 6px 0;
}

.web-calc-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.web-calc-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c2430;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.web-calc-btn:hover {
    background: #273344;
    transform: translateY(-1px);
}

.web-calc-btn:active {
    transform: translateY(1px);
    opacity: 0.85;
}

.web-calc-btn.btn-fn {
    background: #2c3b4e;
    color: #80bdff;
    font-weight: 700;
}

.web-calc-btn.btn-fn:hover {
    background: #394b63;
}

.web-calc-btn.btn-op {
    background: #007bff;
    color: #ffffff;
    font-size: 1.25rem;
}

.web-calc-btn.btn-op:hover {
    background: #0069d9;
}

.web-calc-btn.btn-equals {
    background: #28a745;
    color: #ffffff;
    font-size: 1.35rem;
}

.web-calc-btn.btn-equals:hover {
    background: #218838;
}

.web-calc-btn.btn-disabled {
    opacity: 0.4;
    cursor: default;
    transform: none !important;
}

/* Modal sizing for Calculator: fits completely without any scrollbar */
.modal-overlay.modal-calc-fit .tool-modal-container {
    max-width: 380px;
    max-height: 95vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 123, 255, 0.25);
}

.modal-overlay.modal-calc-fit .tool-modal-header {
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
}

.modal-overlay.modal-calc-fit .tool-modal-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 8px;
}

.modal-overlay.modal-calc-fit .tool-modal-title-wrap h3 {
    font-size: 1.05rem;
}

.modal-overlay.modal-calc-fit .tool-modal-subtitle {
    display: none;
}

.modal-overlay.modal-calc-fit .tool-modal-body {
    padding: 0.65rem 1.1rem 0.9rem;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    max-height: none;
}





