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

:root {
    /* Bright, modern accent colors */
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --pink: #ec4899;

    /* Neutral tones */
    --black: #000000;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;

    /* Shadows - subtle and clean */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -0.5px;
}

.nav-logo:hover {
    color: var(--blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-menu a:hover {
    color: var(--black);
    background: var(--gray-100);
}

.nav-menu a.active {
    color: var(--white);
    background: var(--blue);
}

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

/* Hero Section */
.hero-section {
    padding: 3rem 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--black);
    letter-spacing: -2px;
}

.hero-section p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}

/* Content Section */
.content-section {
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

/* Quick Links */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.link-card {
    background: var(--white);
    color: var(--black);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.link-card:active {
    transform: translateY(0);
}

/* Individual link card colors */
.link-card:nth-child(1):hover { border-color: var(--blue); }
.link-card:nth-child(2):hover { border-color: var(--green); }
.link-card:nth-child(3):hover { border-color: var(--purple); }
.link-card:nth-child(4):hover { border-color: var(--orange); }

/* Footer Navigation */
.footer-nav {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-100);
}

.footer-nav p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 500;
}

.footer-nav a {
    color: var(--blue);
    text-decoration: none;
    margin: 0 0.75rem;
    transition: all 0.2s ease;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--black);
    text-decoration: underline;
}

/* Service Categories */
.service-category {
    margin: 3rem auto;
    max-width: 1200px;
}

.category-header {
    padding: 1.5rem 0 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-100);
}

.category-header h2 {
    color: var(--black);
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.category-header p {
    color: var(--gray-500);
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 400;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.service-card.coming-soon {
    opacity: 0.6;
    border: 2px dashed var(--gray-300);
}

.service-card.coming-soon:hover {
    border-color: var(--gray-300);
    opacity: 0.7;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

.service-card h3 {
    color: var(--black);
    margin-bottom: 0.625rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.service-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.service-description {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.9375rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.service-features li {
    color: var(--gray-700);
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.service-features li:before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    margin-right: 0.625rem;
    font-size: 1.125rem;
}

.service-link {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.875rem 1.75rem;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.service-link:hover {
    background: var(--black);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-link:active {
    transform: translateY(0);
}

/* Badges */
.badge {
    position: absolute;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge.core {
    background: var(--blue);
    color: var(--white);
    top: 1rem;
    left: 1rem;
}

.badge.infrastructure {
    background: var(--purple);
    color: var(--white);
    top: 1rem;
    left: 1rem;
}

.badge.specialized {
    background: var(--green);
    color: var(--white);
    top: 1rem;
    left: 1rem;
}

.badge.live {
    background: var(--green);
    color: var(--white);
    top: 1rem;
    right: 1rem;
}

.badge.soon {
    background: var(--orange);
    color: var(--white);
    top: 1rem;
    right: 1rem;
}

.badge.protected {
    background: var(--red);
    color: var(--white);
    top: 3.25rem;
    right: 1rem;
}

.device-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

/* Hardware & Contact Grids */
.hardware-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
}

.hardware-card,
.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.hardware-card:hover,
.contact-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hardware-card h3,
.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--black);
    font-weight: 700;
}

.hardware-card p,
.contact-card p {
    color: var(--gray-700);
}

.contact-card a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: var(--black);
    text-decoration: underline;
}

/* Tech Info */
.tech-info {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid #e2e8f0;
}

.tech-info ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.tech-info li {
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: 2px solid var(--gray-100);
    color: var(--gray-700);
}

.tech-info li:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    color: var(--black);
}

/* Architecture Specific Styles */
.diagram-section {
    background: var(--white);
    padding: 3rem 0;
    margin: 2rem auto;
    max-width: 1200px;
}

.diagram-section h2 {
    text-align: center;
    color: var(--black);
    margin-bottom: 2.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.mermaid {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    overflow-x: auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.tech-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--gray-100);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.tech-card h3 {
    color: var(--black);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.tech-card .icon {
    font-size: 2rem;
}

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

.tech-card li {
    padding: 0.625rem 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

.tech-card li:last-child {
    border-bottom: none;
}

.principles-section {
    background: var(--white);
    padding: 3rem 0;
    margin: 3rem auto;
    max-width: 1200px;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.principle-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--blue);
    border-top: 2px solid var(--gray-100);
    border-right: 2px solid var(--gray-100);
    border-bottom: 2px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.principle-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-left-color: var(--black);
}

.principle-card h4 {
    color: var(--black);
    margin-bottom: 0.75rem;
    font-size: 1.1875rem;
    font-weight: 700;
}

.principle-card p {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.125rem;
    }

    .container {
        padding: 1rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .category-header {
        padding: 1.5rem 1.25rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .diagram-section {
        padding: 2rem 1.5rem;
    }

    .links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .link-card {
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.25rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .content-section {
        padding: 1.75rem 1.25rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--black);
}

::-moz-selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--black);
}
