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

:root {
    --primary-color: #020617;
    --secondary-color: #38bdf8;
    --accent-color: #38bdf8;
    --text-dark: #111827;
    --text-light: #4b5563;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --exceptional: #27ae60;
    --very-good: #3498db;
    --header-text: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--header-text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top left, #0f172a 0, #020617 45%, #020617 100%);
    color: var(--header-text);
    padding: 80px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-placeholder {
    width: 100%;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.animation-box {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Certifications Section */
.certifications {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

.certifications .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cert-item {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cert-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.cert-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.nmsdc-logo-placeholder {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
}

/* Why 3N Consulting Section */
.why-3n {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.why-3n h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.value-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.testimonials h2 {
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-slide {
    display: none;
    padding: 60px 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.testimonial-content {
    text-align: center;
}

.testimonial-quote {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-item strong {
    color: var(--text-dark);
    flex: 1;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-white);
}

.badge.exceptional {
    background-color: var(--exceptional);
}

.badge.very-good {
    background-color: var(--very-good);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

.case-studies-link {
    text-align: center;
    margin-top: 50px;
}

.cta-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: #0d47a1;
}

/* Capabilities Section */
.capabilities {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.capabilities h2 {
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
}

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

.capability-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.capability-item:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.capability-item h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.capability-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.capability-item:hover h3 a {
    color: var(--bg-white);
}

.capability-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

.capability-item:hover p {
    color: var(--bg-white);
}

/* Productized Solutions Section */
.productized-solutions {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.productized-solutions h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.productized-solutions .section-intro {
    margin-bottom: 50px;
}

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

.solution-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #1e5a96;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.solution-card h3 {
    margin-bottom: 15px;
}

.solution-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.solution-card:hover h3 a {
    color: #0d47a1;
}

.solution-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
    opacity: 0.9;
    font-size: 14px;
}

.footer-section a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    font-size: 14px;
}

.social-link {
    font-weight: 600;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d47a1 100%);
    color: var(--bg-white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.info-item a:hover {
    color: #0d47a1;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Careers Section */
.careers-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.careers-content {
    max-width: 800px;
    margin: 0 auto;
}

.careers-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.careers-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.career-notice {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #0d47a1;
    margin: 30px 0;
}

.career-notice p {
    margin-bottom: 10px;
}

.email-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.email-link:hover {
    color: #0d47a1;
}

.why-join {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.why-join h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-join ul {
    list-style: none;
}

.why-join li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.why-join li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 28px;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.value-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.value-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-box p {
    color: var(--text-light);
    font-size: 14px;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.service-detail {
    max-width: 900px;
    margin: 60px auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.service-detail p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Disclaimers Section */
.disclaimers-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 28px;
}

.disclaimer-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.disclaimer-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Thought Leadership Section */
.thought-leadership-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.article-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.article-card p {
    color: var(--text-light);
    font-size: 14px;
}

.upload-section {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 60px;
}

.upload-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-section p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Case Studies Section */
.case-studies-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.case-study-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.case-study-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.case-study-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Solutions Section */
.solutions-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.solution-detail {
    max-width: 900px;
    margin: 60px auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.solution-detail:last-child {
    border-bottom: none;
}

.solution-detail h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.solution-detail p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.solution-detail ul {
    list-style: none;
    padding-left: 0;
}

.solution-detail li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.solution-detail li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0d47a1;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .value-cards {
        grid-template-columns: 1fr;
    }

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

    .certifications .container {
        grid-template-columns: 1fr;
    }

    .capabilities h2,
    .productized-solutions h2,
    .why-3n h2,
    .testimonials h2 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .contact-form {
        grid-column: auto;
    }
}