/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: radial-gradient(circle at top, #ffffff 0, #f5f5f7 55%);
}

:root {
    --bg: #f5f5f7;
    --panel: #ffffff;
    --panel-soft: #f9f9fb;
    --text-main: #111111;
    --text-muted: #86868b;
    --accent: #0071e3;
    --border: #e5e5ea;
    --radius-lg: 30px;
    --radius-md: 18px;
    --shadow-soft: 0 22px 40px rgba(0, 0, 0, 0.06);
}

/* Modern layout replicated from sample site */
.modern-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.modern-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.modern-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.06);
}

.modern-nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 30px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modern-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-logo-link {
    display: inline-flex;
    align-items: center;
}

.modern-logo-img {
    height: 64px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.modern-logo-sub {
    font-size: 12px;
    color: #4a5565;
}

.modern-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.modern-nav-links a {
    color: #4a5565;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modern-nav-links a:hover {
    color: #111827;
}

.modern-nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-btn-outline,
.modern-btn-primary {
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-weight: 600;
}

.modern-btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(249, 250, 251, 0.92);
    color: #0f172a;
}

.modern-btn-primary {
    border: none;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.modern-btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

.modern-section {
    margin-top: 50px;
}

.modern-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.modern-section-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modern-section-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.modern-section-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
}

.modern-section-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modern-link-button {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 8px 14px;
    background: var(--panel-soft);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-main);
}

.modern-link-primary {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    background: var(--panel);
    border-radius: var(--radius-md);
    padding: 14px 14px 16px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-thumb {
    border-radius: 14px;
    overflow: hidden;
    background: #050816;
    height: 234px;
}

.feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 24px;
}

.mission-card {
    background: var(--panel);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.card-heading-small {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.mission-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #050816;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tagline-strip,
.spiral-strip {
    margin-top: 44px;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    max-height: 180px;
    border-radius: 0;
    border: none;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(15, 23, 42, 0.55);
    background: radial-gradient(circle at center, #0b1220 0, #020617 55%);
    opacity: 0;
    animation: fadeInUp 0.9s ease-out forwards;
}

.tagline-strip {
    animation-delay: 0.05s;
}

.spiral-strip {
    animation-delay: 0.15s;
}

.banner-link {
    display: block;
}

.tagline-strip img,
.spiral-strip img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.8s ease-out, filter 0.6s ease-out;
    filter: saturate(1.05) drop-shadow(0 0 18px rgba(56, 189, 248, 0.55));
}

.tagline-strip:hover img,
.spiral-strip:hover img {
    transform: scale(1.02);
    filter: saturate(1.15) drop-shadow(0 0 26px rgba(56, 189, 248, 0.85));
}

.contact-bar {
    margin: 40px 0 60px;
    padding: 20px 0;
    border-top: 1px solid #e5e5ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.contact-bar a {
    color: var(--accent);
}

.contact-right {
    text-align: right;
}

.modern-footer {
    padding: 16px 20px 30px;
    font-size: 11px;
    color: #a1a1aa;
    text-align: center;
}

/* Marketing page styles */
.marketing-page .modern-nav-links .active {
    color: #111827;
    font-weight: 600;
}

.marketing-hero {
    background: radial-gradient(circle at top, #0f172a 0%, #020617 60%);
    color: #f8fafc;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.marketing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.25), transparent 45%);
    pointer-events: none;
}

.marketing-hero__inner {
    position: relative;
    z-index: 1;
    text-align: left;
}

.marketing-hero h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 18px;
}

.marketing-hero__lead {
    max-width: 720px;
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.marketing-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.marketing-hero .hero-secondary {
    border: 1px solid rgba(248, 250, 252, 0.4);
    color: #f8fafc;
}

.faq-section {
    padding-bottom: 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.faq-card {
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.faq-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.faq-card ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.faq-card li + li {
    margin-top: 8px;
}

.summary-panel {
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 32px 28px 36px;
    box-shadow: var(--shadow-soft);
}

.summary-list {
    margin-top: 12px;
    list-style: none;
    padding-left: 0;
}

.summary-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-main);
}

.summary-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-size: 16px;
}

.marketing-cta {
    margin-top: 30px;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.marketing-cta__content h3 {
    margin-bottom: 6px;
}

.marketing-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .marketing-hero {
        padding: 60px 0;
    }

    .marketing-hero h1 {
        font-size: 32px;
    }

    .marketing-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Ensure all containers respect viewport width */
.container {
    max-width: 2400px;
    margin: 0 auto;
    padding-left: 36px;
    padding-right: 36px;
}

.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    transition: all 0.3s;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0;
    padding-right: 36px;
    max-width: 2400px;
    width: 100%;
    margin: 0 auto;
}

.navbar-brand h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.navbar-brand h1 span {
    color: #000;
}

/* Logo styling - uncomment when using a logo image */
.navbar-logo {
    height: auto;
    max-height: 162px;
    width: auto;
    max-width: 810px;
    object-fit: contain;
    display: block;
    /* Visually enlarge logo without affecting layout height */
    transform: scale(0.599);
    transform-origin: left center;
    will-change: transform;
}

.navbar-header {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
    padding-left: 0;
}

.navbar-nav li a {
    color: #000 !important;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: color 0.3s;
}

.navbar-nav li a:hover {
    color: #000 !important;
}

/* Hero Section */
.hero {
    background: #000; /* pure black banner */
    color: white;
    min-height: 67vh;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* ensure overlays clip edge-to-edge */
    padding: 80px 40px;
    border-radius: 36px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    box-sizing: border-box;
}

/* Spiral overlay over the black banner, edge-to-edge */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/Spiral.png?v=2');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* connects edge to edge */
    z-index: 1; /* under stars and content */
    pointer-events: none;
    border-radius: inherit;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: transparent; /* no dark overlay; base is black */
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

/* Starfield overlay */
.starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* above spiral */
}

/* spiral overlay removed */

/* Wrapper for images needing starfield overlay */
.starfield-block {
    position: relative;
}

.hero-slider {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 3; /* above stars */
    overflow: hidden;
}

.slide-content {
    text-align: center;
    padding: 90px 0;
    width: 100%;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
}

.slide-content .container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s;
}

.hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-cta {
    min-width: 180px;
}

.hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    background: transparent !important;
    min-width: 180px;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 560px;
    text-align: left;
}

.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.hero-bullets i {
    color: #38bdf8;
    margin-top: 3px;
}

.hero-proof {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.slide-content .btn {
    padding: 10px 28px;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeInUp 1.4s;
}

.slide-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Off-white primary button with black text */
.btn-primary {
    background-color: #f2f2f2 !important;
    border-color: #f2f2f2 !important;
    color: #000 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000 !important;
    outline: none !important;
}

.go-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.go-down a {
    color: white;
    font-size: 30px;
}

/* Section Styles */
.section {
    padding: 80px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.precision-section {
    background: #0c2450;
    color: #fff;
    padding: 120px 0;
}

.precision-section .container {
    max-width: 2400px;
}

.precision-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
    flex-wrap: wrap;
}

.precision-copy {
    flex: 1 1 50%;
    max-width: none;
}

.precision-title {
    font-size: 54px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
}

.precision-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 32px;
    max-width: 760px;
}

.precision-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.partner-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.partner-pill .fa {
    font-size: 15px;
}

.precision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.precision-secondary {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff !important;
    background: transparent;
    padding: 12px 40px;
    border-radius: 50px;
}

.precision-secondary:hover,
.precision-secondary:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
}

.precision-visual {
    flex: 1 1 50%;
    max-width: none;
    display: flex;
    justify-content: center;
}

.visual-frame {
    background: rgba(10, 20, 48, 0.8);
    padding: 26px;
    border-radius: 40px;
    box-shadow: 0 55px 120px rgba(6, 12, 28, 0.55);
    width: 70%;
    max-width: 960px;
    min-height: 294px;
}

.precision-image {
    border-radius: 32px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.capabilities-section {
    background: #f0efec;
    padding: 110px 0;
}

.capabilities-section .section-eyebrow {
    color: #1d2330;
    opacity: 0.6;
}

.capabilities-title {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #101522;
}

.capabilities-description {
    font-size: 18px;
    color: #4a4f5c;
    max-width: 560px;
    margin: 0 auto;
}

.capabilities-cards {
    margin-top: 60px;
    margin-bottom: 40px;
}

.capability-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(16, 21, 34, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(16, 21, 34, 0.12);
}

.capability-card i {
    font-size: 36px;
    color: #0c2450;
    margin-bottom: 20px;
}

.capability-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0c1224;
}

.capability-card p {
    color: #535766;
    line-height: 1.7;
}

.capabilities-actions .btn {
    padding: 12px 36px;
    border-radius: 32px;
    margin: 0 10px;
}

.capabilities-secondary {
    border: 1px solid #101522;
    color: #101522;
    background: transparent;
}

.capabilities-secondary:hover,
.capabilities-secondary:focus {
    background: #101522;
    color: #fff;
}

.section .container {
    max-width: 2400px;
    margin: 0 auto;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* About Section */
.about-section {
    background: #060b1a;
    color: #fff;
}

.about-grid {
    display: flex;
    align-items: center;
}

.about-section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.about-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Ensure section header inside About uses light text */
.about-section .section-header h2 {
    color: #fff;
}

.about-section .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.mission-visual {
    display: flex;
    justify-content: flex-end;
}

.mission-frame {
    background: rgba(10, 20, 48, 0.8);
    padding: 26px;
    border-radius: 40px;
    box-shadow: 0 55px 120px rgba(6, 12, 28, 0.2);
    width: 70%;
    max-width: 960px;
    min-height: 294px;
}

.mission-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    object-fit: cover;
}

/* Services Section */
.services-section {
    background: #f5f2ec;
}

.services-grid {
    gap: 24px;
}

.service-feature {
    padding: 32px;
    gap: 16px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    font-size: 20px;
}

.service-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

.service-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-label {
    font-weight: 600;
    font-size: 15px;
}

.service-select {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    background: #fff;
}

.service-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #4a4f5c;
    margin: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #101522;
    text-decoration: none;
    border-bottom: 2px solid #101522;
    padding-bottom: 4px;
    width: fit-content;
}

.services-section .service-box i {
    color: #0c2450;
}

.services-section .service-box h3 {
    color: #101522;
}

.services-section .service-box p {
    color: #4a4f5c;
}

/* Ensure form labels read clearly on light background */
.services-section label {
    color: #101522;
}

/* Force custom RAG helper text to dark on light */
.services-section .custom-rag-contact p {
    color: #101522 !important;
}

.services-section .custom-rag-contact p .fa {
    color: #101522 !important;
}

.services-section .elegant-underline,
.services-section .elegant-underline .fa {
    color: #101522 !important;
}

.services-section .elegant-underline::after {
    background: #101522;
}

.service-box {
    text-align: left;
    padding: 36px 32px;
    border-radius: 22px;
    transition: all 0.3s;
    margin-bottom: 30px;
    background: #ffffff;
    box-shadow: 0 35px 70px rgba(16, 21, 34, 0.12);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(16, 21, 34, 0.18);
}

.service-box i {
    font-size: 56px;
    color: #0c2450;
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: #101522;
    letter-spacing: -0.01em;
}

.service-box p {
    color: #4a4f5c;
    line-height: 1.8;
    font-size: 16px;
}

/* Portfolio Section */
.portfolio-section {
    background: #f8f9fa;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3,
.portfolio-overlay p {
    color: white;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-form .form-control {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    padding: 15px 0;
    color: #666;
    font-size: 16px;
}

.contact-info ul li i {
    color: #000;
    margin-right: 10px;
    font-size: 20px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #000;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #333;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.footer .container {
    max-width: 960px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Custom RAG Contact Box */
.custom-rag-contact {
    transition: all 0.3s ease;
}

.custom-rag-contact a:hover {
    color: #333;
    border-bottom-color: #666;
}

.custom-rag-contact a:hover .fa-arrow-right {
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .service-box {
        margin-bottom: 40px;
    }
    
    .custom-rag-contact {
        padding: 20px !important;
    }

    .mission-frame {
        max-width: 100%;
    }

    .about-grid {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

    .precision-section {
        padding: 80px 0;
    }

    .precision-title {
        font-size: 40px;
    }

    .precision-description {
        font-size: 17px;
    }

    .precision-actions {
        width: 100%;
    }

    .precision-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .capabilities-title {
        font-size: 34px;
    }

    .capabilities-cards {
        margin-top: 40px;
    }

    .capability-card {
        margin-bottom: 30px;
    }
}

/* Modern layout responsive adjustments */
@media (max-width: 960px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .hero {
        width: 90%;
        min-height: 60vh;
        padding: 70px 30px;
    }

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

@media (max-width: 720px) {
    .modern-content {
        padding: 0 16px;
    }

    .modern-nav-links {
        display: none;
    }

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

    .contact-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-right {
        text-align: left;
    }

    .tagline-strip,
    .spiral-strip {
        left: 0;
        margin-left: 0;
        width: 100%;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    }

    .hero {
        width: 100%;
        min-height: 52vh;
        padding: 50px 20px;
        border-radius: 24px;
    }

}

/* Elegant chamfered white underline for links on dark backgrounds */
.elegant-underline {
    position: relative;
    color: #fff !important;
    text-decoration: none;
}

.elegant-underline .fa {
    color: #fff;
}

.elegant-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px; /* slightly thicker so chamfer is visible */
    background: #fff;
    z-index: 0;
    /* chamfered ends using clip-path */
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    opacity: 0.9;
}

.elegant-underline:hover::after {
    opacity: 1;
}
