/* iDomain Website Styles */

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

:root {
    /* Professional color palette - inspired by consulting firms */
    --color-primary: #0066cc;
    --color-primary-dark: #004c99;
    --color-primary-light: #e6f2ff;
    --color-secondary: #00b4d8;
    --color-accent: #ff6b35;

    /* Neutrals */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #1a1a1a;
    --color-text-secondary: #4a5568;
    --color-text-tertiary: #718096;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Semantic colors */
    --color-success: #10b981;
    --color-success-bg: #d1fae5;
    --color-error: #ef4444;
    --color-error-bg: #fee2e2;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #3b82f6;
        --color-primary-dark: #2563eb;
        --color-primary-light: #1e293b;
        --color-secondary: #22d3ee;
        --color-accent: #fb923c;

        --color-bg: #0a0a0a;
        --color-bg-alt: #1a1a1a;
        --color-text: #f8fafc;
        --color-text-secondary: #cbd5e1;
        --color-text-tertiary: #94a3b8;
        --color-border: #334155;
        --color-border-light: #1e293b;

        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    }
}

html {
    scroll-behavior: smooth;
}

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

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
    font-weight: 500;
}

.skip-link:focus {
    top: 8px;
    left: 8px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
    header {
        background: rgba(10, 10, 10, 0.95);
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s;
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    color: white !important;
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        align-items: stretch;
    }

    nav a {
        padding: 12px 0;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section - Enhanced */
.hero {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
}

/* Mobile: show full image without cropping */
@media (max-width: 768px) {
    .hero::before {
        background-size: 100% auto;
        background-position: top center;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, transparent 0%, var(--color-bg) 200px);
}

.hero-badge {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 2px solid var(--color-primary);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero h1 .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero .subtitle {
    font-size: 22px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    max-width: 800px;
    line-height: 1.5;
}

.hero .stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
    .btn-secondary {
        background: var(--color-bg-alt);
    }
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Trust Bar */
.trust-bar {
    background: var(--color-bg-alt);
    padding: 32px 24px;
    border-bottom: 1px solid var(--color-border);
}

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
    margin-bottom: 20px;
    font-weight: 600;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    align-items: center;
}

.trust-item {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    color: var(--color-primary);
    font-size: 20px;
}

/* Problem Section */
.problem-section {
    padding: 80px 24px;
    background: var(--color-bg);
}

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

.section-eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.problem-card {
    padding: 32px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.problem-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-primary);
    transition: height 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card ul {
    list-style: none;
    margin-top: 20px;
}

.service-card li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 18px;
}

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

.case-study {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
}

.case-study:hover {
    box-shadow: var(--shadow-lg);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.case-study h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-tag {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.case-study-metrics {
    display: flex;
    gap: 32px;
    margin: 24px 0;
    padding: 24px;
    background: var(--color-bg);
    border-radius: 12px;
    flex-wrap: wrap;
}

.metric {
    flex: 1;
    min-width: 120px;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.metric-label {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

.case-section {
    margin: 20px 0;
}

.case-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.case-section p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

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

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

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.credential-item {
    padding: 24px;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.credential-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.credential-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.credential-item p {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin: 0;
}

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

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 48px;
}

.contact-intro p {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-top: 16px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-method {
    text-align: center;
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.contact-method-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-method h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-method a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Form Styling */
form {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

input, select, textarea {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button[type="submit"] {
    padding: 16px 40px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

button[type="submit"]:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 2px solid var(--color-success);
}

.form-message.error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 2px solid var(--color-error);
}

/* Footer */
footer {
    background: var(--color-bg-alt);
    padding: 60px 24px 40px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--color-text-tertiary);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Reduce side padding on mobile for wider content */
    .container,
    .hero-content,
    .trust-bar,
    .problem-section,
    .services-section,
    .case-studies-section,
    .about-section,
    .contact-section,
    .experience-section,
    .header-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        padding: 60px 14px 50px;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .hero .stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-title {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .problem-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .case-study-metrics {
        flex-direction: column;
        gap: 16px;
    }

    form {
        padding: 20px;
    }

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

/* Experience Section - NEW */
.experience-section {
    padding: 80px 24px;
    background: var(--color-bg-alt);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.experience-card {
    background: var(--color-bg);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

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

.experience-company {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}

.experience-badge {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.experience-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.experience-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.systems-built {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}

.systems-built h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.system-item {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.system-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.system-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.system-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.system-item p {
    font-size: 14px;
    color: var(--color-text-tertiary);
    line-height: 1.5;
}

/* Expertise Section - NEW */
.expertise-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.expertise-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.location-note {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    font-style: italic;
    text-align: center;
}

/* Mobile Responsive Additions */
@media (max-width: 768px) {
    .experience-grid,
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        align-items: start;
    }

    .system-item {
        flex-direction: column;
        text-align: center;
    }

    .system-icon {
        margin: 0 auto;
    }
}

/* Print styles */
@media print {
    header {
        position: static;
    }

    .menu-toggle, .cta-buttons, form, .btn {
        display: none;
    }
}
