/* =============================================================================
   Reliable IT Associates — Main Stylesheet
   ============================================================================= */

/* --- Custom Properties --- */
:root {
    --bg: #0a0e17;
    --bg-elevated: #111827;
    --bg-card: #151c2c;
    --bg-card-hover: #1a2236;
    --surface: #1e293b;
    --border: #1e293b;
    --border-light: rgba(255, 255, 255, 0.06);
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --accent-glow: rgba(59, 130, 246, 0.25);
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.2s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--accent-soft);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.875rem;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--accent-hover);
    color: white;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    border-bottom-color: var(--border-light);
    background: rgba(10, 14, 23, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-logo:hover {
    color: var(--text);
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 400;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--accent-soft);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Shield Graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-graphic {
    position: relative;
    width: 280px;
    height: 320px;
}

.shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.15));
}

.checkmark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 1s ease-out 0.5s forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.floating-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.node-1 {
    top: 20%;
    right: -10%;
    animation: float 4s ease-in-out infinite;
}

.node-2 {
    bottom: 30%;
    left: -8%;
    animation: float 5s ease-in-out infinite 1s;
}

.node-3 {
    top: 50%;
    right: -15%;
    animation: float 3.5s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-12px) scale(1.2); opacity: 0.8; }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* --- About Section --- */
.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 20px;
}

.about-card-icon svg {
    width: 24px;
    height: 24px;
}

.about-card h3 {
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- Services Section --- */
.services {
    background: var(--bg-elevated);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 16px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.service-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
}

/* --- Products Section --- */
.products {
    background: var(--bg);
}

.products-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.product-featured {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 14px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.badge-soon {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.12);
}

.product-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-icon-muted {
    color: var(--text-muted);
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.product-tagline {
    color: var(--accent);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-content > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-features li svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.product-upcoming {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-upcoming .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-upcoming .product-content p {
    color: var(--text-muted);
    flex: 1;
}

/* --- Approach Section --- */
.approach {
    background: var(--bg-elevated);
}

.approach-timeline {
    max-width: 640px;
    margin: 0 auto;
}

.approach-step {
    display: flex;
    gap: 32px;
    padding-bottom: 48px;
}

.approach-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    flex-shrink: 0;
    margin-top: 4px;
}

.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin-top: 8px;
    opacity: 0.3;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* --- Contact Section --- */
.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    margin: 16px 0 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-secondary);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

/* --- Footer --- */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-light);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .shield-graphic {
        width: 200px;
        height: 230px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-showcase {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-light);
        padding: 16px 24px;
        gap: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }

    .btn-nav {
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .section {
        padding: 80px 0;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .approach-step {
        gap: 20px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Scroll Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
