/* DSJMI Design System - Theme: Modern Neo-Corporate */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Deep Ocean & Electric Teal */
    --primary-navy: #0B1120;
    /* Darker, richer navy */
    --primary-light: #1E293B;

    --accent-teal: #22D3EE;
    /* Brighter electrical cyan */
    --accent-gold: #FCD34D;
    /* Softer, glowing gold */
    --accent-purple: #818CF8;
    /* Added for gradient depth */

    --bg-body: #F8FAFC;
    --bg-white: rgba(255, 255, 255, 0.85);
    /* For glass effect */
    --bg-glass: rgba(255, 255, 255, 0.7);

    --text-dark: #0B1120;
    /* darkest navy for headings */
    --text-body: #1E293B;
    /* dark slate for body text - high contrast */
    --text-light: #F1F5F9;
    /* very light gray for text on dark backgrounds */

    --border-subtle: rgba(226, 232, 240, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    --gradient-glow: radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 40%);
    --gradient-text: linear-gradient(135deg, #0F172A 0%, #334155 100%);

    /* Spacing & Dimensions */
    --container-width: 1240px;
    --header-height: 90px;
    --radius-lg: 24px;
    /* More rounded */
    --radius-md: 16px;
    --radius-sm: 12px;

    /* Shadows - softer & colored */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 20px 40px -5px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.7;
    /* Increased for modern readability */
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(129, 140, 248, 0.03) 0%, transparent 40%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    /* Cleaner, more modern heading font */
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    /* Ensure full responsiveness */
}

.section {
    padding: 8rem 0;
}

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

.bg-offwhite {
    background-color: white;
}

/* Use pure white for modern cards/sections */
.text-teal {
    color: var(--accent-teal);
}

.text-gold {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    /* Pill shape is more modern */
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-teal);
    color: var(--primary-navy);
    border: none;
    box-shadow: 0 10px 25px -10px rgba(34, 211, 238, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -15px rgba(34, 211, 238, 0.6);
    background: #06b6d4;
    /* Darker teal on hover */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Header & Glass Navigation */
.navbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
}

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

.logo {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.logo span {
    color: var(--accent-teal);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-teal);
}

/* Hero Section */
.hero {
    background: var(--primary-navy);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    /* Modern bottom curve */
}

/* Modern Gradient Blob Backgrounds */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
}

.hero p {
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 600px;
}

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

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Add decorative grid pattern */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

/* Add glowing orb effect */
.hero-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Floating Card Animation */
.deco-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    position: absolute;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.deco-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.float-1 {
    top: 5%;
    right: 5%;
    width: 190px;
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    bottom: 5%;
    left: 5%;
    width: 270px;
    animation: float 8s ease-in-out infinite 0.5s;
    z-index: 12;
}

.float-3 {
    top: 50%;
    right: 5%;
    width: 160px;
    animation: float 7s ease-in-out infinite 1s;
    z-index: 11;
}

.float-4 {
    top: 5%;
    left: 5%;
    width: 170px;
    animation: float 9s ease-in-out infinite 1.5s;
    z-index: 11;
}

/* Decorative circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(34, 211, 238, 0.2);
    z-index: 0;
}

.circle-1 {
    top: 45%;
    right: 25%;
    width: 100px;
    height: 100px;
    animation: rotate 20s linear infinite;
}

.circle-2 {
    bottom: 5%;
    right: 30%;
    width: 70px;
    height: 70px;
    border-color: rgba(252, 211, 77, 0.2);
    animation: rotate 15s linear infinite reverse;
}

.circle-3 {
    top: 70%;
    right: 15%;
    width: 50px;
    height: 50px;
    border-color: rgba(129, 140, 248, 0.2);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

/* Services / Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    border: var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smooth spring */
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Force equal height */
    display: flex;
    flex-direction: column;
}

.service-card p:last-of-type {
    margin-bottom: auto;
    /* Pushes button to bottom if exists */
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-teal);
    margin-bottom: 2rem;
    background: rgba(34, 211, 238, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    /* Squircle */
}

/* Feature Showcase */
.feature-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-strip img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
    object-fit: cover;
    height: 100%;
    min-height: 400px;
    /* Ensure images match text block height roughly */
}

.feature-strip:hover img {
    transform: scale(1.02);
}

.feature-strip.reverse {
    direction: rtl;
}

.feature-strip.reverse>* {
    direction: ltr;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    height: 100%;
    /* Force equal height */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.blog-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    flex-grow: 1;
    /* Pushes 'Read More' to bottom */
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: white;
    padding-top: 6rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    text-align: left;
    /* Strict alignment */
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
    /* Consistent spacing */
}

.footer-col a {
    color: var(--text-light);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent-teal);
    transform: translateX(5px);
}

/* Article Styles (Global) */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    text-align: center;
    padding: 4rem 0;
}

.article-meta {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    font-size: 1.4rem;
}

.article-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-teal);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-body);
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Specific Article Components */
.box-highlight {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--accent-teal);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Author Box */
.author-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 4rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    /* Ensures perfect circle */
    border: 3px solid #f1f5f9;
}

/* ---------------------------------------------------
   Global Text‑Contrast Enhancements
   --------------------------------------------------- */
/* Base body text – dark enough for readability */
body {
    color: var(--text-body);
}

/* Ensure headings use the darkest color */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark) !important;
}

/* Paragraphs, list items and generic content */
p,
li,
.article-content,
.blog-content,
.footer-bottom p {
    color: var(--text-body) !important;
}

/* Links on light backgrounds – use primary navy for contrast */
a {
    color: var(--primary-navy);
    text-decoration: underline;
}

/* Navigation links */
.nav-links a {
    color: var(--text-dark) !important;
    text-decoration: none;
}

/* Links inside dark footer keep light color for visibility */
footer a,
footer p,
footer li,
footer h3,
footer h4 {
    color: var(--text-light) !important;
    text-decoration: none;
}

/* Buttons keep accent teal but ensure text is readable */
.btn {
    color: var(--primary-navy) !important;
    background-color: var(--accent-teal);
}

/* Hero section uses white text */
.hero,
.hero h1,
.hero p,
.hero a {
    color: white !important;
}

/* Ensure any overlay cards inherit body text color */
.card-icon,
.service-card p,
.service-card h3,
.blog-card p,
.blog-card h3 {
    color: var(--text-body) !important;
}

/* Article content - maximum readability */
.article-content p,
.article-content li,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-body) !important;
}

/* Ensure labels and form elements are visible */
label,
input,
textarea,
select {
    color: var(--text-body) !important;
}

/* Meta information */
.article-meta,
.text-gold,
.text-teal {
    opacity: 1 !important;
}

/* Ensure all text in containers is visible */
.container,
.section {
    color: var(--text-body);
}


@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Check if too complex for mobile */
    .feature-strip,
    .feature-strip.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 3rem;
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .feature-strip img {
        min-height: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-col a:hover {
        transform: none;
        /* Disable translateX on center align */
    }
}