/*
   DIGITECHNIS - COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Optimized for: Mobile (Android, iPhone), Tablet, Laptop, and Large Desktops
   Supports: Chrome, Safari, Firefox, Edge
*/

/* --- 1. DESIGN SYSTEM TOKENS --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Montserrat:wght@400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #010101;
    --accent: #6b77e0;
    --accent-hover: #5a66c7;
    --accent-light: rgba(107, 119, 224, 0.05);
    --dark: #0a1118;
    --white: #ffffff;
    --light-bg: #f4f7fa;
    --text-main: #010101;
    --text-muted: #666666;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- 2. GLOBAL RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}

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

img, video, canvas, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Requirement 12 */
h1, h2, h3, h4, h5, h6, p, a, span {
    word-break: break-word;
    hyphens: auto;
}

/* Ensure no element can exceed viewport width */
* { max-width: 100%; }

/* --- 3. LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
    overflow: hidden; /* Requirement 1 */
}

.flex-align { display: flex; align-items: center; justify-content: space-between; }
.flex-justify { display: flex; justify-content: space-between; gap: 20px; }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.section-title { font-size: 2.8rem; margin-bottom: 50px; position: relative; }
.accent { color: var(--accent); }

section { padding: 100px 0; width: 100%; }

/* --- 4. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary { background: var(--accent); color: white !important; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(107, 119, 224, 0.4); }

.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white) !important; }
.btn-outline:hover { background: var(--white); color: var(--primary) !important; }

.btn-lg { padding: 15px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; display: block; }

/* --- 5. TOP BAR --- */
.top-bar { background: #001a3d; color: var(--white); padding: 10px 0; font-size: 0.85rem; }
.top-bar .social-links a { margin-left: 15px; opacity: 0.8; }
.top-bar .social-links a:hover { opacity: 1; color: var(--accent); }

/* --- 6. HEADER & NAVIGATION --- */
header { background: var(--white); padding: 20px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--accent); }

#nav-menu ul { display: flex; align-items: center; gap: 5px; }
#nav-menu ul li { position: relative; margin: 0 10px; }
#nav-menu ul li a { font-weight: 600; font-size: 16px; color: var(--primary); padding: 10px 0; position: relative; }

#nav-menu ul li a:not(.btn)::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent); transform: scaleX(0); transition: var(--transition);
}
#nav-menu ul li a:hover::before, #nav-menu ul li a.active::before { transform: scaleX(1); }
#nav-menu ul li a:hover, #nav-menu ul li a.active { color: var(--accent); }

.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary); z-index: 1001; }

#nav-menu ul li .btn-proposal, #nav-menu ul li .btn-primary {
    white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 25px !important; border-radius: 50px;
}
#nav-menu ul li .btn-proposal { background: linear-gradient(135deg, var(--accent), #8e99f3); color: white !important; margin-left: 10px; }

/* Dropdown */
.dropdown {
    position: absolute; top: 100%; left: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    min-width: 240px; box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transform: translateY(15px); transition: var(--transition); padding: 15px 0;
    border-radius: 12px; border: 1px solid rgba(0,0,0,0.05);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { width: 100%; margin: 0 !important; }
.dropdown li a { padding: 10px 25px; display: block !important; border-bottom: 1px solid #f8f8f8; font-size: 14px !important; }
.dropdown li:last-child a { border-bottom: none; }

/* --- 7. HERO SECTION --- */
.hero-section {
    position: relative; background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat;
    height: 85vh; display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0, 38, 91, 0.85), rgba(0, 38, 91, 0.65)); }
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.hero-content h1 { font-size: 3.8rem; margin-bottom: 25px; line-height: 1.1; }
.hero-content p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.9; }
.hero-btns { display: flex; gap: 20px; }

/* --- 8. STATS SECTION --- */
.stats-bar { padding: 60px 0; background: var(--light-bg); }
.stat-card { background: var(--white); padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.stat-card:hover { transform: translateY(-10px); }
.stat-card h3 { font-size: 3.2rem; margin-bottom: 5px; color: var(--accent); display: inline-block; }
.stat-card p { font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

/* --- 9. SERVICES SECTION --- */
.services-section { padding: 100px 0; }
.service-card { padding: 50px 30px; border-radius: 20px; background: var(--white); border: 1px solid #f0f0f0; transition: var(--transition); text-align: center; height: 100%; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--accent); }
.service-card .icon-box { width: 80px; height: 80px; background: var(--accent-light); color: var(--accent); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 30px; transition: var(--transition); }
.service-card:hover .icon-box { background: var(--accent); color: var(--white); }
.service-card h3 { margin-bottom: 15px; font-size: 1.6rem; color: var(--primary); }
.service-card p { color: var(--text-muted); flex-grow: 1; }

/* --- 10. PROJECT CARDS --- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card {
    background: linear-gradient(to bottom, #ffffff 45%, var(--card-accent, #f0f0f0) 45%);
    border-radius: 35px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: var(--transition);
    border: 1px solid #eee; display: flex; flex-direction: column; position: relative; min-height: 550px;
}
.project-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
.card-header { padding: 40px 20px 20px; text-align: center; z-index: 5; }
.card-header h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 15px; text-transform: uppercase; }
.btn-contact-pill { display: inline-block; background: var(--btn-bg, #000); color: white; padding: 8px 30px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }
.card-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 20px 30px; }
.card-body img { max-height: 350px; object-fit: contain; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1)); }
.app-project-card { background: var(--app-gradient, linear-gradient(135deg, #6b77e0 0%, #4a54a4 100%)) !important; }
.app-project-card .card-header h3 { color: rgba(0,0,0,0.7); font-weight: 800; }

/* --- 11. CONTACT SECTION --- */
.contact-section { padding: 100px 0; background: var(--primary); color: var(--white); }
.contact-info-panel h2 { font-size: 3rem; margin-bottom: 25px; }
.contact-info-panel p { opacity: 0.8; margin-bottom: 45px; font-size: 1.1rem; }
.contact-item { display: flex; align-items: center; gap: 20px; margin-bottom: 35px; }
.contact-item i { font-size: 1.5rem; color: var(--accent); background: rgba(255,255,255,0.05); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.contact-form-panel { background: var(--white); padding: 50px; border-radius: 25px; color: var(--text-main); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 18px; border: 1px solid #eee; border-radius: 12px; font-family: inherit; font-size: 1rem; outline: none; background: #f9f9f9; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-light); }

/* --- 12. FOOTER --- */
.main-footer { background: #071529; color: var(--white); padding: 80px 0 0; }
.footer-brand h3 { font-size: 1.6rem; margin-bottom: 20px; }
.footer-brand h3 span { color: var(--accent); }
.footer-links h4, .footer-contact h4 { font-size: 1.25rem; margin-bottom: 30px; position: relative; padding-bottom: 10px; }
.footer-links h4::after, .footer-contact h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--accent); }
.footer-links ul li { margin-bottom: 15px; }
.footer-links ul li a { opacity: 0.7; }
.footer-links ul li a:hover { opacity: 1; color: var(--accent); padding-left: 8px; }
.newsletter-form { position: relative; margin-top: 25px; }
.newsletter-form input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 18px; width: 100%; border-radius: 12px; color: white; }
.newsletter-form button { position: absolute; right: 8px; top: 8px; bottom: 8px; background: var(--accent); border: none; width: 50px; border-radius: 10px; color: white; cursor: pointer; }
.footer-bottom { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 80px; }

/* --- 13. WHATSAPP WIDGET --- */
.whatsapp-widget { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
.whatsapp-widget i { width: 65px; height: 65px; background: #25D366; color: white; font-size: 2.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* --- 14. PAGE SPECIFIC STYLES --- */

/* Services Page Matrix */
.matrix-section { padding: 100px 0; background: #fff; }
.matrix-container { gap: 50px; align-items: flex-start; }
.matrix-sidebar { flex: 1; background: var(--primary); border-radius: 20px; overflow: hidden; color: white; box-shadow: var(--shadow); position: sticky; top: 120px; max-height: calc(100vh - 150px); overflow-y: auto; }
.sidebar-header { padding: 40px 30px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header h2 { font-size: 1.5rem; }
.tab-list { padding: 20px 0; }
.tab-item { padding: 18px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition); }
.tab-item:hover, .tab-item.active { background: var(--accent); color: white; }
.matrix-content { flex: 2; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.service-detail-header { display: flex; align-items: center; gap: 40px; margin-bottom: 40px; background: #f8fbff; padding: 40px; border-radius: 20px; border: 1px solid #e1e8f0; }
.service-main-image { width: 100%; max-width: 450px; height: 300px; border-radius: 15px; object-fit: cover; box-shadow: var(--shadow); }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.advantage-card { background: white; padding: 25px; border-radius: 15px; text-align: center; border: 1px solid #eee; transition: var(--transition); }
.advantage-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.advantage-card i { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }

/* Blog Styles */
.blog-layout { display: flex; gap: 40px; margin: 80px 0; align-items: flex-start; }
.blog-sidebar { flex: 1; position: sticky; top: 120px; }
.blog-main-content { flex: 2.5; }
.sidebar-widget { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px; }
.blog-card { background: var(--white); border-radius: 25px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.06); margin-bottom: 40px; transition: var(--transition); }
.blog-card.horizontal { display: flex; }
.blog-card-image { flex: 1; position: relative; overflow: hidden; }
.blog-card-content { flex: 1.5; padding: 40px; }

/* About Styles */
.about-hero-grid { display: flex; align-items: center; gap: 60px; }
.commitment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.commitment-card { background: #fff; padding: 50px 30px; border-radius: 20px; text-align: center; border: 1px solid #eee; }
.reach-out-box { background: linear-gradient(135deg, #f0f4f8 0%, #e6eef5 100%); padding: 80px; border-radius: 40px; display: flex; align-items: center; justify-content: space-between; gap: 60px; }

/* --- 15. RESPONSIVE MEDIA QUERIES --- */

@media (min-width: 1201px) { .container { max-width: 1280px; } }

@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .section-title { font-size: 2.4rem; }
    .grid-4, .grid-3, .project-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 3rem; }
    .matrix-container { flex-direction: column; gap: 40px; }
    .matrix-sidebar { position: static; width: 100%; max-height: none; }
    .blog-layout { flex-direction: column; }
    .blog-sidebar { position: static; width: 100%; }
    .commitment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 35px; text-align: center; }
    .grid-4, .grid-3, .grid-2, .project-grid, .form-grid, .commitment-grid { grid-template-columns: 1fr !important; gap: 25px !important; }
    .flex-justify, .flex-align { flex-direction: column !important; text-align: center !important; gap: 25px !important; }

    header { padding: 15px 0; }
    .mobile-toggle { display: block; }
    #nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; max-width: 300px; height: 100vh;
        background: var(--white); z-index: 1000; padding: 90px 30px 40px;
        box-shadow: -15px 0 40px rgba(0,0,0,0.1); transition: 0.5s ease-in-out;
        overflow-y: auto; display: block !important;
    }
    #nav-menu.active { right: 0; }
    #nav-menu ul { flex-direction: column; align-items: flex-start; gap: 10px; }
    #nav-menu ul li { width: 100%; margin: 0 !important; }
    #nav-menu ul li a { display: block; padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid #f5f5f5; }
    #nav-menu ul li .btn-proposal, #nav-menu ul li .btn-primary { margin: 15px 0 0 !important; width: 100% !important; }

    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; max-height: 0; overflow: hidden; background: transparent; padding: 0; border: none; }
    .has-dropdown.active .dropdown { max-height: 600px; padding-top: 10px; }

    .hero-section { height: auto; min-height: 70vh; padding: 100px 0 60px; text-align: center; }
    .hero-content h1 { font-size: 2.1rem; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
    .hero-btns .btn { width: 100%; }

    .project-card { min-height: auto; border-radius: 25px; }
    .card-body img { max-height: 250px; }
    .service-detail-header { flex-direction: column; text-align: center; padding: 30px 20px; }
    .about-hero-grid { flex-direction: column; text-align: center; }
    .reach-out-box { flex-direction: column; text-align: center; padding: 40px 25px; gap: 40px; }
    .blog-card.horizontal { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .top-bar { display: none; }
    .hero-content h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.7rem; }
    .stat-card h3 { font-size: 2.3rem; }
    .btn { padding: 12px 25px; font-size: 0.95rem; }
}

/* Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* --- 16. DEMO PAGE STYLES --- */
.demo-page {
    background-color: #f4f7fa;
    background-image: radial-gradient(#e0e8f5 1px, transparent 1px);
    background-size: 20px 20px;
}

.demo-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: transparent;
}
.demo-hero h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.demo-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.demo-section {
    padding-top: 0;
    padding-bottom: 100px;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.05), 0 0 0 1px rgba(255,255,255,0.5) inset;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

/* Form Progress */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}
.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e1e8f0;
    z-index: 1;
}
.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 33.33%;
}
.step-number {
    width: 45px;
    height: 45px;
    background: #e1e8f0;
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 10px;
    transition: var(--transition);
    border: 4px solid #f4f7fa;
}
.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}
.progress-step.active .step-number {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 5px rgba(107, 119, 224, 0.2);
}
.progress-step.active .step-label {
    color: var(--accent);
}
.progress-step.completed .step-number {
    background: #25D366;
    color: white;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}
.form-step.active {
    display: block;
}
.form-step h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
}
.form-step h2 i {
    color: var(--accent);
}

.form-grid-demo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.form-group-full {
    grid-column: span 2;
}
.form-step input[type="text"], 
.form-step input[type="email"], 
.form-step input[type="tel"], 
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e1e8f0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    background: white;
    transition: var(--transition);
    color: var(--text-main);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form-step input:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* Service Checkboxes */
.service-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.checkbox-item {
    position: relative;
}
.service-check {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e1e8f0;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    user-select: none;
    position: relative;
    z-index: 1;
}
.checkbox-label i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.service-check:checked ~ .checkbox-label {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}
.service-check:checked ~ .checkbox-label i {
    color: var(--accent);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e1e8f0;
}
.btn-outline-dark {
    background: transparent;
    border: 2px solid #e1e8f0;
    color: var(--text-muted) !important;
}
.btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

/* Proposal UI */
.proposal-container {
    display: none;
    animation: fadeIn 0.8s ease;
}
.proposal-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 auto 30px;
    max-width: 900px;
    border: 1px solid #eee;
}
.proposal-header {
    background: linear-gradient(135deg, var(--dark), #00265b);
    color: white;
    padding: 50px;
    position: relative;
}
.proposal-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(20px);
}
.proposal-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 2px;
}
.proposal-logo span {
    color: var(--accent);
}
.proposal-title-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.proposal-title-info h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}
.proposal-for {
    font-size: 1.2rem;
    opacity: 0.8;
}
.proposal-for span {
    font-weight: 700;
    color: var(--accent);
}
.proposal-date {
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 8px;
}

.proposal-body {
    padding: 50px;
}
.proposal-section {
    margin-bottom: 40px;
}
.proposal-section h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.proposal-section h3 i {
    color: var(--accent);
}

.proposal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.proposal-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}
.proposal-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.proposal-item p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.proposal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.feature-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-tag::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.timeline-box {
    background: #f8fbff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e1e8f0;
}
.timeline-box p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.timeline-box p span {
    font-weight: 700;
    color: var(--accent);
}
.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.timeline-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #d0def0;
    z-index: 1;
}
.t-step {
    position: relative;
    z-index: 2;
    text-align: center;
}
.t-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}
.t-step p {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.proposal-footer {
    background: #f9f9f9;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}
.signature-area {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.contact-footer {
    text-align: right;
}
.contact-footer p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}
.contact-footer p i {
    color: var(--accent);
    margin-right: 5px;
}

.proposal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Demo Responsive */
@media (max-width: 768px) {
    .demo-hero { padding: 60px 0 40px; }
    .demo-hero h1 { font-size: 2.2rem; }
    .demo-hero p { font-size: 1rem; padding: 0 10px; }
    .demo-container { padding: 30px 20px; border-radius: 20px; }
    .form-grid-demo { grid-template-columns: 1fr; gap: 15px; }
    .form-group-full { grid-column: span 1; }
    .proposal-header { padding: 30px 20px; }
    .proposal-title-info { flex-direction: column; align-items: flex-start; gap: 15px; }
    .proposal-title-info h1 { font-size: 1.6rem; }
    .proposal-body { padding: 30px 20px; }
    .proposal-grid { grid-template-columns: 1fr; gap: 15px; }
    .proposal-footer { flex-direction: column; gap: 20px; text-align: center; padding: 20px; }
    .contact-footer { text-align: center; }
    .proposal-actions { flex-direction: column; width: 100%; gap: 10px; }
    .proposal-actions .btn { width: 100%; }
    .form-step h2 { font-size: 1.4rem; }
    
    /* Progress Bar Mobile Fixes */
    .step-number { width: 35px; height: 35px; font-size: 0.9rem; }
    .step-label { font-size: 0.75rem; }
    .form-progress::before { top: 15px; left: 15%; right: 15%; }
    
    /* Checkbox Grid Mobile */
    .service-checkbox-grid { grid-template-columns: 1fr; }
    .checkbox-label { padding: 12px 15px; font-size: 0.95rem; }
    
    /* Navigation Buttons Mobile */
    .form-navigation { flex-direction: column-reverse; gap: 15px; }
    .form-navigation .btn { width: 100%; justify-content: center; }
    
    /* Timeline Mobile Fixes */
    .timeline-steps { flex-direction: column; gap: 20px; align-items: flex-start; padding-left: 20px; }
    .timeline-steps::before { top: 0; bottom: 0; left: 35px; width: 2px; height: auto; }
    .t-step { display: flex; align-items: center; gap: 15px; text-align: left; width: 100%; }
    .t-icon { margin: 0; width: 35px; height: 35px; font-size: 0.9rem; z-index: 2; background: #f8fbff; }
    .t-step p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .demo-hero h1 { font-size: 1.8rem; }
    .proposal-logo { font-size: 1.2rem; }
    .proposal-card { border-radius: 15px; }
}
