/* Replace the entire style.css file with this */

:root {
    --navy: #0A1628;
    --deep-blue: #1A2B4A;
    --accent-blue: #2E5C8F;
    --soft-grey: #E8EBF0;
    --light-grey: #F5F7FA;
    --white: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #4A5568;
    --border-color: #D1D5DB;
    --success-green: #10B981;
    --featured-color: #2E5C8F;
    --vh: 1vh;
    /* For Safari 100vh fix */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Fix for iOS tap highlight */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.logo-text {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 10rem 3rem 6rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    position: relative;
    overflow: hidden;
    min-height: calc(var(--vh, 1vh) * 100);
    height: 100vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(46, 92, 143, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 92, 143, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    max-width: 900px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--soft-grey);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section with Logo */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    max-width: 800px;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-logo-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: floatLogo 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
}

.hero-logo-img:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background: var(--white);
    color: var(--navy);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Services Grid */
.services-preview {
    padding: 6rem 3rem;
    background: var(--light-grey);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}


/* Portfolio feature images side by side */
.portfolio-feature {
    grid-column: 1 / -1;
    /* Make it span full width of the grid */
    margin: 2rem 0;
}

.portfolio-feature .dashboard-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.portfolio-feature img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-feature img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Dark mode support */
.dark-mode .portfolio-feature img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .portfolio-feature img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .portfolio-feature .dashboard-images {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 1rem;
    }
}



@media (max-width: 768px) {
    .section-container {
        padding: 0;
    }
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.08);
    border-color: var(--accent-blue);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--deep-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    font-size: 1rem;
}

/* Content Section */
.content-section {
    padding: 6rem 3rem;
    background: var(--white);
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.content-text h2 {
    margin-bottom: 1.5rem;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--soft-grey);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li::before {
    content: '→';
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Pages */
.page {
    display: none;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* BLUE HERO FOR ALL PAGES */
.blue-page-hero {
    padding: 8rem 3rem 4rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blue-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(46, 92, 143, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 92, 143, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blue-page-hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.blue-page-hero p {
    color: var(--soft-grey);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Page Content */
.page-content {
    padding: 4rem 3rem;
}

.page-content-inner {
    max-width: 900px;
    margin: 0 auto;
}

.page-content-inner h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content-inner p {
    margin-bottom: 1.5rem;
}

/* Full Services Section */
.full-services {
    padding: 6rem 3rem;
    background: var(--light-grey);
}

.service-detail {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

.service-detail h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.service-detail ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-detail li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.service-detail li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 1.5rem;
    line-height: 1;
}

/* PRICING SECTION */
.pricing-section {
    padding: 4rem 3rem 6rem;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--featured-color);
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--featured-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    padding: 2rem;
    background: var(--light-grey);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.price-tag {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-body {
    padding: 2rem;
}

.price-breakdown {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--soft-grey);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

.price-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'IBM Plex Serif', serif;
}

.price-note {
    background: var(--light-grey);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.savings {
    color: var(--success-green);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

.pricing-footer {
    text-align: center;
    margin-top: 2rem;
}

.pricing-comparison {
    background: var(--light-grey);
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.comparison-item h4 {
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.comparison-item p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.comparison-item small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pricing-cta {
    text-align: center;
    padding: 3rem;
    background: var(--light-grey);
    border-radius: 8px;
    margin-top: 3rem;
}

.pricing-cta h3 {
    margin-bottom: 1rem;
}

.pricing-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* PORTFOLIO SECTION */
.portfolio-section {
    padding: 4rem 3rem 6rem;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.portfolio-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.08);
    border-color: var(--accent-blue);
}

.portfolio-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--soft-grey);
}

.portfolio-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.portfolio-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.portfolio-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.portfolio-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: var(--light-grey);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Industries Section */
.industries {
    padding: 6rem 3rem;
    background: var(--white);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.industry-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.industry-card:hover {
    border-color: var(--accent-blue);
    background: var(--light-grey);
}

.industry-card h4 {
    margin-bottom: 0.75rem;
    color: var(--navy);
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 6rem 3rem;
    background: var(--navy);
    color: var(--white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    padding: 1.2rem;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.2);
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--soft-grey);
    padding: 3rem 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-about p {
    color: var(--soft-grey);
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--soft-grey);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.1);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--soft-grey);
}

.mobile-nav-links a:hover {
    background: var(--light-grey);
    color: var(--accent-blue);
    padding-left: 2.5rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
    color: var(--text-secondary);
}

.dark-mode-toggle:hover {
    background: var(--light-grey);
    color: var(--navy);
    transform: rotate(15deg);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0);
}

/* DARK MODE VARIABLES */
.dark-mode {
    --navy: #0A1424;
    --deep-blue: #1A2B4A;
    --accent-blue: #3a7bd5;
    --soft-grey: #2d3748;
    --light-grey: #1a202c;
    --white: #0f1c30;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --border-color: #4a5568;
    --featured-color: #3a7bd5;
}

/* Apply dark mode variables to html as well for better cascade */
html.dark-mode {
    --navy: #0A1424;
    --deep-blue: #1A2B4A;
    --accent-blue: #3a7bd5;
    --soft-grey: #2d3748;
    --light-grey: #1a202c;
    --white: #0f1c30;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --border-color: #4a5568;
    --featured-color: #3a7bd5;
}

/* DARK MODE STYLES */
.dark-mode body {
    background: var(--white);
    color: var(--text-primary);
}

/* Ensure all text elements inherit dark mode colors */
.dark-mode *:not(.btn):not(.dark-mode-toggle) {
    border-color: var(--border-color);
}

.dark-mode nav {
    background: rgba(15, 28, 48, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.dark-mode .logo-text {
    color: var(--text-primary);
}

.dark-mode .nav-links a {
    color: var(--text-secondary);
}

.dark-mode .nav-links a:hover {
    color: var(--text-primary);
}

.dark-mode .nav-links a::after {
    background: var(--accent-blue);
}

.dark-mode .mobile-menu {
    background: var(--navy);
    border-top: 1px solid var(--border-color);
}

.dark-mode .mobile-nav-links a {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.dark-mode .mobile-nav-links a:hover {
    background: var(--light-grey);
    color: var(--accent-blue);
}

.dark-mode .hamburger {
    background: var(--text-primary);
}

.dark-mode .dark-mode-toggle {
    color: var(--text-secondary);
}

.dark-mode .dark-mode-toggle:hover {
    background: var(--light-grey);
    color: var(--text-primary);
}

.dark-mode .hero,
.dark-mode .blue-page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
    color: var(--text-primary);
}

.dark-mode p {
    color: var(--text-secondary);
}

.dark-mode .hero h1,
.dark-mode .blue-page-hero h1 {
    color: var(--text-primary);
}

.dark-mode .hero-subtitle,
.dark-mode .blue-page-hero p {
    color: var(--text-secondary);
}

.dark-mode .btn-primary {
    background: var(--accent-blue);
    color: var(--text-primary);
}

.dark-mode .btn-primary:hover {
    background: #2E5C8F;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.dark-mode .services-preview,
.dark-mode .full-services {
    background: var(--navy);
}

.dark-mode .service-card,
.dark-mode .pricing-card,
.dark-mode .portfolio-card,
.dark-mode .industry-card,
.dark-mode .comparison-item,
.dark-mode .service-detail {
    background: var(--light-grey);
    border-color: var(--border-color);
}

.dark-mode .service-card h3,
.dark-mode .pricing-card h3,
.dark-mode .portfolio-card h3,
.dark-mode .industry-card h3,
.dark-mode .industry-card h4,
.dark-mode .service-detail h3,
.dark-mode .comparison-item h4 {
    color: var(--text-primary);
}

.dark-mode .service-card p,
.dark-mode .pricing-card p,
.dark-mode .portfolio-card p,
.dark-mode .industry-card p,
.dark-mode .service-detail p,
.dark-mode .service-detail li,
.dark-mode .comparison-item p,
.dark-mode .comparison-item small {
    color: var(--text-secondary);
}

.dark-mode .pricing-header h3,
.dark-mode .pricing-price {
    color: var(--text-primary);
}

.dark-mode .pricing-features li {
    color: var(--text-secondary);
}

.dark-mode .service-card:hover,
.dark-mode .pricing-card:hover,
.dark-mode .portfolio-card:hover,
.dark-mode .industry-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .content-section,
.dark-mode .pricing-section,
.dark-mode .portfolio-section,
.dark-mode .industries {
    background: var(--white);
}

.dark-mode .section-header h2,
.dark-mode .content-text h2,
.dark-mode .content-text h3 {
    color: var(--text-primary);
}

.dark-mode .section-header p,
.dark-mode .content-text p {
    color: var(--text-secondary);
}

.dark-mode .feature-list li {
    color: var(--text-secondary);
}

.dark-mode .contact {
    background: var(--navy);
}

.dark-mode .contact-form {
    background: var(--light-grey);
}

.dark-mode .form-group label {
    color: var(--text-primary);
}

.dark-mode .form-group input,
.dark-mode .form-group textarea,
.dark-mode .form-group select {
    background: var(--navy);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .form-submit {
    background: var(--accent-blue);
    color: var(--text-primary);
}

.dark-mode footer {
    background: var(--navy);
}

.dark-mode .footer-about h3,
.dark-mode .footer-links h4 {
    color: var(--text-primary);
}

.dark-mode .footer-about p,
.dark-mode .footer-links a {
    color: var(--text-secondary);
}

.dark-mode .footer-links a:hover {
    color: var(--accent-blue);
}

.dark-mode .founder-section {
    background: var(--light-grey);
}

.dark-mode .founder-content h3 {
    color: var(--text-primary);
}

.dark-mode .founder-content p {
    color: var(--text-secondary);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-logo {
        order: -1;
        margin-bottom: 1rem;
    }

    .hero-logo-img {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }

    .dark-mode-toggle {
        display: flex;
        order: 2;
        margin-left: 0.5rem;
    }

    .mobile-menu {
        display: block;
    }

    .logo-container .logo-text {
        display: block;
        flex-grow: 1;
    }

    .nav-container {
        padding: 1rem 1.5rem;
        justify-content: space-between;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        height: auto;
        min-height: auto;
    }

    .hero-grid {
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .hero-logo-img {
        max-width: 180px;
    }

    .hero h1 {
        font-size: clamp(2rem, 4vw, 2.8rem);
        max-width: 100%;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .blue-page-hero {
        padding: 6rem 1.5rem 2.5rem;
        min-height: auto;
    }

    .blue-page-hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .blue-page-hero p {
        font-size: 1.1rem;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .pricing-grid,
    .portfolio-grid,
    .industry-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .content-section,
    .services-preview,
    .full-services,
    .portfolio-section,
    .pricing-section,
    .industries,
    .page-content,
    .contact {
        padding: 3rem 1.5rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .contact-form {
        padding: 2rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Fix for iOS form zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Founder Section Mobile */
    .founder-section {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem !important;
    }

    .portrait-container {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Founder Section Base Styles */
.founder-section {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--light-grey);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.portrait-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.1);
}

.founder-content h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.founder-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.founder-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .hero h1,
    .blue-page-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .mobile-nav-links a {
        padding: 1rem 1.5rem;
    }

    .dark-mode-toggle {
        width: 40px;
        height: 40px;
        padding: 0.3rem;
    }
}

/* Safari and iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .mobile-menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* Additional mobile Safari fixes */
@media (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {

        .hero,
        .blue-page-hero {
            height: auto;
            min-height: auto;
        }
    }
}

/* FIX 1: Make prices white in dark mode */
.dark-mode .price-value {
    color: #ffffff !important;
}

/* FIX 2: Blur effect for main content when mobile menu is open */
main.blur {
    filter: blur(3px);
    transition: filter 0.3s ease;
    pointer-events: none;
}

/* FIX 3: Ensure dark mode toggle is always clickable */
.dark-mode-toggle {
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

/* FIX 4: Hero animations for all pages */
.page.active .blue-page-hero h1,
.page.active .hero h1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.page.active .blue-page-hero p,
.page.active .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.page.active .cta-group {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Reset animations when page changes */
.page .blue-page-hero h1,
.page .hero h1,
.page .blue-page-hero p,
.page .hero-subtitle,
.page .cta-group {
    opacity: 0;
    animation: none;
}

.page.active .blue-page-hero h1,
.page.active .hero h1,
.page.active .blue-page-hero p,
.page.active .hero-subtitle,
.page.active .cta-group {
    opacity: 1;
}

/* Ensure fadeInUp animation exists */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FIX 5: Blur effect when mobile menu is open - only for screens with menu button */
@media (max-width: 1024px) {
    main.blur {
        filter: blur(3px);
        transition: filter 0.3s ease;
        pointer-events: none;
    }

    /* Ensure the mobile menu itself is not blurred */
    .mobile-menu.active {
        filter: none;
        pointer-events: auto;
    }

    /* Dark mode toggle should remain clickable */
    .dark-mode-toggle {
        position: relative;
        z-index: 1002;
    }
}

/* Desktop screens - no blur even if menu somehow opens */
@media (min-width: 1025px) {
    main.blur {
        filter: none !important;
        pointer-events: auto !important;
    }
}

/* ===== ROLLING PORTFOLIO MARQUEE STYLES ===== */
.showcase-section {
    padding: 5rem 0;
    background: var(--light-grey);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.showcase-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.showcase-section .section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: .75rem;
}

.showcase-section .section-header h2 {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .75rem;
    letter-spacing: -.01em;
}

.showcase-section .section-header p {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    margin-bottom: 1.25rem;
}

.ticker-label span {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ticker-label::before,
.ticker-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.marquee-track {
    width: 100%;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee-inner:hover {
    animation-play-state: paused;
}

.marquee-inner.reverse {
    animation-direction: reverse;
    animation-duration: 42s;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.showcase-card {
    width: 340px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all .25s ease;
    cursor: pointer;
}

.showcase-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 32px rgba(10, 22, 40, .1);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--navy);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.showcase-card:hover .card-image img {
    transform: scale(1.04);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.placeholder-label {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    letter-spacing: .02em;
    text-align: center;
    padding: 0 1.5rem;
}

.placeholder-sub {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.card-body {
    padding: 1.25rem 1.5rem;
}

.card-category {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: .4rem;
}

.card-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .35rem;
    line-height: 1.3;
}

.card-desc {
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.5rem;
    border-top: 1px solid var(--soft-grey);
    background: var(--light-grey);
}

.card-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 500;
    background: var(--soft-grey);
    color: var(--text-secondary);
    padding: .25rem .65rem;
    border-radius: 3px;
}

.card-arrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.marquee-gap {
    margin-bottom: 1.25rem;
}

.cta-strip {
    text-align: center;
    margin-top: 3rem;
    padding: 0 2rem;
}

/* Dark mode support for marquee cards */
.dark-mode .showcase-card {
    background: var(--light-grey);
    border-color: var(--border-color);
}

.dark-mode .card-title {
    color: var(--text-primary);
}

.dark-mode .card-footer {
    background: var(--navy);
    border-top-color: var(--border-color);
}

.dark-mode .card-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.dark-mode .card-desc {
    color: var(--text-secondary);
}

/* Mobile responsiveness for marquee */
@media (max-width: 768px) {
    .showcase-section {
        padding: 3rem 0;
    }

    .ticker-label {
        padding: 0 1rem;
    }

    .cta-strip {
        padding: 0 1rem;
    }

    .marquee-inner {
        gap: 1rem;
    }

    .showcase-card {
        width: 280px;
    }
}

/* Marquee card images */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.showcase-card:hover .card-image img {
    transform: scale(1.04);
}

/* Fallback for missing images */
.card-image img[src=""],
.card-image img:not([src]) {
    opacity: 0;
}

/* Optional: Add a subtle overlay on images for better text readability if needed */
.card-image::after {
    display: none;
}

/* Make marquee track cursor interactive */
.marquee-track {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.marquee-track:active {
    cursor: grabbing;
}

/* Pause animation when user is dragging */
.marquee-track.dragging .marquee-inner,
.marquee-track.dragging .marquee-inner.reverse {
    animation-play-state: paused;
}

/* Disable text selection while dragging */
.marquee-track.dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

/* Optional: Add smooth transition when re-enabling animation */
.marquee-inner,
.marquee-inner.reverse {
    transition: transform 0.1s linear;
}

/* Interactive cursor feedback */
.marquee-track {
    cursor: grab;
}

.marquee-track:active {
    cursor: grabbing;
}

.marquee-track.dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.marquee-track.dragging .showcase-card {
    pointer-events: none;
}

/* Visual feedback while dragging */
.marquee-track.dragging .marquee-inner {
    transition: none;
}

/* Optional: Add a subtle gradient fade on edges to indicate scrollability */
.marquee-track {
    position: relative;
}

.marquee-track::before,
.marquee-track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 2;
}

.marquee-track::before {
    left: 0;
    background: linear-gradient(to right, var(--light-grey), transparent);
}

.marquee-track::after {
    right: 0;
    background: linear-gradient(to left, var(--light-grey), transparent);
}

/* Dark mode fade edges */
.dark-mode .marquee-track::before {
    background: linear-gradient(to right, var(--navy), transparent);
}

.dark-mode .marquee-track::after {
    background: linear-gradient(to left, var(--navy), transparent);
}

/* Hide fade edges on mobile */
@media (max-width: 768px) {

    .marquee-track::before,
    .marquee-track::after {
        width: 30px;
    }
}