/* Reset & Core Styles */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #06b6d4;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-white: #f8fafc;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-bg);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    border-color: var(--border);
    color: var(--dark-bg);
    background: var(--white);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Proposal Switcher */
.proposal-switcher {
    background: #0f172a;
    border-bottom: 1px solid #334155;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.proposal-switcher span { color: #94a3b8; font-weight: 500; }
.switcher-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.switch-btn {
    padding: 5px 14px;
    border-radius: 6px;
    text-decoration: none;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #475569;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 500;
}
.switch-btn:hover, .switch-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    padding: 1.1rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.logo-icon {
    font-size: 1.4rem;
    background: var(--primary-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-highlight {
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 9rem 0 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-bg);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual Card */
.hero-visual {
    position: relative;
}

.dashboard-card {
    background: var(--dark-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

.metric-row {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.m-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.m-value {
    display: inline-block;
    float: right;
    font-weight: 700;
    color: var(--secondary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.fill.alt {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.system-nodes {
    display: flex;
    gap: 0.75rem;
}

.node {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.node.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.2);
}

/* About Section */
.about-visual {
    position: relative;
    padding: 2rem;
}

.experience-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.exp-years {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.exp-text {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.about-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check-icon {
    width: 26px;
    height: 26px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Services Section */
.section-header {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.service-icon {
    width: 54px;
    height: 54px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list {
    margin-bottom: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-list li {
    font-size: 0.92rem;
    color: var(--text-main);
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.4;
}

.service-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 1.2rem;
    position: absolute;
    left: 0.2rem;
    top: -0.1rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link:hover {
    letter-spacing: 0.5px;
}

/* Differentials Section */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.diff-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.diff-box:hover {
    box-shadow: var(--shadow-md);
}

.diff-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    -webkit-text-stroke: 1px var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.diff-box h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.diff-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.c-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.c-detail-item strong {
    display: block;
    color: var(--dark-bg);
    font-size: 0.95rem;
}

.c-detail-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--dark-bg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* Back to top buttons & Floating button */
.section-back-to-top {
    margin-top: 2rem;
}

.btn-back-to-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-back-to-top-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.floating-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    text-decoration: none;
}

.floating-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.floating-back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-bg-glow {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-btn {
        display: none;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .services-grid, .diff-grid, .grid-4 {
        grid-template-columns: 1fr;
    }
}
