/* =============================================
   SWARTZ AUTOMATION — STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.88);
    --bg-hero: linear-gradient(168deg, #0b1a3b 0%, #132d5e 40%, #1a4080 100%);
    --bg-hero-glow: radial-gradient(ellipse 70% 50% at 60% 40%, rgba(56, 152, 255, 0.15) 0%, transparent 70%);
    --bg-input: #ffffff;
    --bg-footer: #0b1a3b;

    --text-body: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-on-dark: #e2e8f0;
    --text-on-hero: #ffffff;
    --text-heading: #0f172a;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --accent-soft: rgba(37, 99, 235, 0.08);
    --success: #16a34a;
    --gold: #f59e0b;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);

    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- DARK THEME ---------- */
.dark-theme {
    --bg-body: #0c1222;
    --bg-card: #151d30;
    --bg-card-alt: #1a2540;
    --bg-nav: rgba(12, 18, 34, 0.92);
    --bg-hero: linear-gradient(168deg, #060d1f 0%, #0c1a38 40%, #122952 100%);
    --bg-hero-glow: radial-gradient(ellipse 70% 50% at 60% 40%, rgba(56, 152, 255, 0.12) 0%, transparent 70%);
    --bg-input: #1a2540;
    --bg-footer: #060d1f;

    --text-body: #cbd5e1;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f1f5f9;

    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-soft: rgba(59, 130, 246, 0.1);

    --border: #1e2d4a;
    --border-light: #162035;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-body);
    background: var(--bg-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-heading);
    text-decoration: none;
}

.nav-brand svg {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile nav toggle */
.nav-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    background: var(--bg-hero);
    padding: 160px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hero-glow);
    pointer-events: none;
}

/* Subtle grid overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s ease both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    animation: fadeSlideUp 0.6s ease 0.1s both;
}

.hero h1 .accent-text {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    line-height: 1.7;
    animation: fadeSlideUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    animation: fadeSlideUp 0.6s ease 0.3s both;
}

/* Floating shapes */
.hero-shapes {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
    pointer-events: none;
    z-index: 0;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.btn-outline-dark:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* =============================================
   SECTIONS (shared)
   ============================================= */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Fade-in on scroll */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 22px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* =============================================
   ABOUT / OWNER
   ============================================= */
.about-section {
    background: var(--bg-card-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: center;
}

.owner-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.owner-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bg-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
    border: 3px solid var(--accent);
}

.owner-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.owner-card .role {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.owner-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.owner-tag {
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: border-color var(--transition);
}

.owner-tag:hover {
    border-color: var(--accent);
}

.about-text h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
    background: var(--bg-hero);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hero-glow);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--bg-footer);
    padding: 48px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =============================================
   SUBPAGE LAYOUT (Privacy, Contact)
   ============================================= */
.subpage-hero {
    background: var(--bg-hero);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hero-glow);
    pointer-events: none;
}

.subpage-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}

.subpage-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    margin-top: 8px;
}

.subpage-body {
    padding: 64px 0 100px;
}

.subpage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 800px;
    margin: -40px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.subpage-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.subpage-card h2:first-child {
    margin-top: 0;
}

.subpage-card p,
.subpage-card li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.subpage-card ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.subpage-card ul li {
    margin-bottom: 6px;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: -40px auto 0;
    position: relative;
    z-index: 2;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.contact-info-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-card>p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 10px;
    color: var(--accent);
    font-size: 18px;
}

.contact-item-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item-text p,
.contact-item-text a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* =============================================
   LOGO SVG
   ============================================= */
.logo-svg {
    transition: transform var(--transition);
}

.nav-brand:hover .logo-svg {
    transform: rotate(15deg);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid .owner-card {
        max-width: 340px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-shapes {
        display: none;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Mobile nav menu */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open a {
        padding: 12px 0;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 64px 0;
    }

    .stat-row {
        gap: 20px;
    }

    .subpage-card {
        padding: 32px 20px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 28px 20px;
    }
}