/* ==========================================================================
   Think2Finish Digital Marketing & Custom Software Solutions — Master Stylesheet
   Theme: Vibrant Orange & Midnight Dark Slate with Glassmorphism & Micro-Animations
   ========================================================================== */

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

:root {
    /* Primary Brand Colors (From Think2Finish Academy) */
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #ffedd5;
    --primary-glow: rgba(249, 115, 22, 0.35);

    /* Secondary Accent Colors */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-rose: #f43f5e;

    /* Theme Background & Surface Colors */
    --bg-dark: #0b0f19;
    --bg-dark-card: #111827;
    --bg-dark-elevated: #1e293b;
    --bg-light: #ffffff;
    --bg-warm: #fff7ed;
    --bg-subtle: #f8fafc;

    /* Text Colors */
    --text-heading-dark: #ffffff;
    --text-body-dark: #cbd5e1;
    --text-muted-dark: #94a3b8;
    --text-heading-light: #0f172a;
    --text-body-light: #334155;
    --text-muted-light: #64748b;

    /* Glassmorphism & Borders */
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(249, 115, 22, 0.15);
    --border-light: #e2e8f0;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container Constraints */
    --container-max: 1280px;
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-body-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading-dark);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

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

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

/* Reusable Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-body-dark);
}

.section-card-dark {
    background-color: var(--bg-dark-card);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-body-light);
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4 {
    color: var(--text-heading-light);
}

.section-warm {
    background-color: var(--bg-warm);
    color: var(--text-body-light);
}

.section-warm h1, .section-warm h2, .section-warm h3, .section-warm h4 {
    color: var(--text-heading-light);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted-dark);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glow Background Effects */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -10%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
}

.bg-glow-2 {
    bottom: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0,0,0,0) 70%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline-orange {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-orange:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* Top Notification Header Bar */
.top-bar {
    background: linear-gradient(90deg, #111827 0%, #1f2937 50%, #111827 100%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-muted-dark);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
}

.top-bar-info a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-info a:hover {
    color: var(--primary);
}

.top-bar-social {
    display: flex;
    gap: 1rem;
}

.top-bar-social a:hover {
    color: var(--primary);
}

/* Navigation Header */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
}

.brand small.sub-text {
    font-size: 0.7rem;
    display: block;
    color: var(--text-muted-dark);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.main-nav a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 5.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-copy p {
    font-size: 1.15rem;
    color: var(--text-muted-dark);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.trust-badges {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-body-dark);
}

.trust-badge i {
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
}

.hero-card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.08);
}

.hero-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    margin-top: 0.25rem;
}

/* Marquee Section */
.marquee-section {
    background: linear-gradient(90deg, #111827 0%, #1e293b 50%, #111827 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-body-dark);
    margin: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.marquee-track span i {
    color: var(--primary);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.service-card p {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-body-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.service-features li i {
    color: var(--primary);
}

/* HMS Spotlight */
.hms-hero-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hms-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hms-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #f43f5e 100%);
    color: #ffffff;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hms-modules-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hms-module-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.hms-module-item:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--primary);
}

.hms-module-item i {
    color: var(--primary);
}

.hms-mockup-wrap {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
}

.mockup-header {
    background: #1e293b;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-body {
    padding: 1.25rem;
}

.mockup-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mockup-stat-box {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.85rem;
    text-align: center;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mockup-table th, .mockup-table td {
    padding: 0.6rem;
    text-align: left;
}

/* Portfolio Filters & Grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-body-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.portfolio-item {
    background: var(--bg-dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.portfolio-info {
    padding: 1.25rem;
}

/* Blog Section Styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.4);
}

.blog-img {
    height: 200px;
    background-size: cover;
    background-position: center;

}

.blog-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-body p {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.85rem;
}

/* Contact Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading-dark);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-alert {
    padding: 0.85rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: none;
}

.form-alert.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}

.form-alert.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

/* Footer */
.site-footer {
    background: #070a12;
    border-top: 1px solid var(--glass-border);
    padding: 4.5rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-muted-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

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

.footer-social {
    display: flex;
    gap: 0.85rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Floating Action Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

.quick-lead-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px var(--primary-glow);
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.quick-lead-float:hover {
    transform: translateY(-2px);
}

.scroll-top {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal Popup Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-container {
    background: var(--bg-dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    padding: 2.25rem;
    position: relative;
    transform: scale(0.92);
    transition: var(--transition);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted-dark);
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary);
}

/* Responsive Styles for Mobile */
@media (max-width: 991px) {
    .top-bar {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        background: #0f172a;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 3rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        font-size: 1.2rem;
        width: 100%;
    }

    .header-actions {
        display: none;
    }

    .hero-grid, .hms-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero-copy h1 {
        font-size: 1.95rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hms-modules-list {
        grid-template-columns: 1fr;
    }

    .quick-lead-float span {
        display: none;
    }

    .quick-lead-float {
        padding: 0.8rem;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
        bottom: 25px;
        left: 25px;
    }
}
