/* Super Core Solutions LLC — Website Redesign */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2B5C8A;
    --color-primary-light: #3A7AB8;
    --color-primary-dark: #1E4468;
    --color-accent: #E8853D;
    --color-accent-hover: #D4732E;
    --color-dark: #0F172A;
    --color-dark-light: #1E293B;
    --color-bg: #F8FAFC;
    --color-bg-alt: #F1F5F9;
    --color-card: #FFFFFF;
    --color-text: #1E293B;
    --color-text-secondary: #64748B;
    --color-text-light: #94A3B8;
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E1;
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--color-primary);
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

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

.nav-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

/* Services dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    padding: 0;
    transition: color var(--transition);
}

.nav-dropdown-toggle:hover {
    color: var(--color-text);
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: 8px;
    z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    border-radius: 6px;
    transition: background-color var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

/* Contact CTA in nav */
.nav-cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-accent);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background-color var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile a,
.nav-mobile button {
    display: block;
    padding: 12px 0;
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.nav-mobile a:last-child,
.nav-mobile button:last-of-type {
    border-bottom: none;
}

.nav-mobile a:hover,
.nav-mobile button:hover {
    color: var(--color-primary);
}

.nav-mobile .mobile-services-submenu {
    padding-left: 16px;
    display: none;
}

.nav-mobile .mobile-services-submenu.open {
    display: block;
}

.nav-mobile .mobile-services-submenu a {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--color-text);
    line-height: 1.15;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: #fff;
    box-shadow: 0 4px 12px rgba(43, 92, 138, 0.3);
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 133, 61, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-dark);
    color: #fff;
}

.section-dark .section-subtitle {
    color: #94A3B8;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Service overview cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 36px;
}

.service-card .card-icon {
    width: 48px;
    height: 48px;
    background: rgba(43, 92, 138, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    gap: 10px;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.card-link:hover svg {
    transform: translateX(3px);
}

/* ===== PORTFOLIO CARDS ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
}

.portfolio-card-body {
    padding: 28px 32px 32px;
}

.portfolio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.portfolio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.portfolio-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.portfolio-status.live {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
}

.portfolio-status.dev {
    background: rgba(43, 92, 138, 0.1);
    color: var(--color-primary);
}

.portfolio-card .description {
    margin-bottom: 16px;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-alt);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

/* ===== CREDIBILITY STRIP ===== */
.credibility-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
}

.credibility-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credibility-icon {
    width: 40px;
    height: 40px;
    background: rgba(43, 92, 138, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.section-dark .credibility-icon {
    background: rgba(255, 255, 255, 0.1);
}

.credibility-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.section-dark .credibility-text {
    color: #E2E8F0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 80px 0;
    background: var(--color-primary);
    color: #fff;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: var(--color-accent);
    color: #fff;
}

.cta-section .btn:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== SERVICE DETAIL PAGE ===== */
.service-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.service-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--color-text);
}

.service-hero .tagline {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.offering-card {
    padding: 28px;
}

.offering-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offering-card h3 .offering-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(43, 92, 138, 0.1);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.offering-card p {
    font-size: 0.93rem;
}

/* Differentiator block */
.differentiator {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.diff-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.diff-icon {
    width: 36px;
    height: 36px;
    background: rgba(43, 92, 138, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.diff-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.diff-item p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Tech stack grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-category {
    padding: 24px;
}

.tech-category h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.tech-category .tech-pills {
    margin-bottom: 0;
}

/* ===== PORTFOLIO DETAIL ===== */
.case-study {
    margin-bottom: 48px;
}

.case-study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.case-study h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.case-study-links {
    display: flex;
    gap: 12px;
}

.case-study-story {
    margin-bottom: 20px;
}

.case-study-story p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.demonstrates {
    margin-top: 20px;
}

.demonstrates h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.demonstrates li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 0.93rem;
}

.demonstrates li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.approach-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.approach-item .approach-icon {
    width: 40px;
    height: 40px;
    background: rgba(43, 92, 138, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.approach-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.approach-item p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.cert-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    flex: 1;
    min-width: 280px;
}

.cert-card .cert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cert-card p {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 32px 24px;
}

.contact-card .contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(43, 92, 138, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.9rem;
}

.contact-card a {
    color: var(--color-primary);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: #94A3B8;
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #64748B;
    max-width: 300px;
}

.footer-links-group h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-links-group a {
    display: block;
    color: #64748B;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links-group a:hover {
    color: #E2E8F0;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: #475569;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--color-text);
}

.page-header .subtitle {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content sections (privacy, terms, support) */
.content-section {
    padding: 24px 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.content-section p,
.content-section li {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.content-section ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .tagline {
        font-size: 1.05rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .services-grid,
    .portfolio-grid,
    .offerings-grid,
    .differentiator,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credibility-strip {
        gap: 20px;
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
        padding: 40px 0;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .service-hero h1,
    .page-header h1 {
        font-size: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .cert-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .service-hero h1,
    .page-header h1 {
        font-size: 1.7rem;
    }

    .section {
        padding: 48px 0;
    }

    .card {
        padding: 24px;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
