/*
Theme Name: Tech Server Pro
Theme URI: https://techserverpro.com
Author: Tech Server Pro
Author URI: https://techserverpro.com
Description: Modern dark tech-forward theme for Tech Server Pro MSP
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techserverpro
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-muted: #666;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --border-color: rgba(255,255,255,0.05);
    --border-hover: rgba(139,92,246,0.3);
    --shadow-glow: 0 20px 40px rgba(139,92,246,0.3);
    --font-main: 'Space Grotesk', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

/* ========================================
   Animated Background
   ======================================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, #1a0a2e 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, #0a1a2e 0%, transparent 50%),
        var(--bg-primary);
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 { font-size: 4rem; font-weight: 700; letter-spacing: -2px; }
h2 { font-size: 3rem; letter-spacing: -1px; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Logo
   ======================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(90deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.trust-bar-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 40px;
    padding: 12px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.trust-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.trust-icon {
    font-size: 1.2rem;
    color: #8b5cf6;
}

.trust-text {
    color: #06b6d4;
    font-weight: 600;
}

.trust-divider {
    color: rgba(255,255,255,0.3);
}

/* ========================================
   Navigation
   ======================================== */
.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--accent-cyan);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-gradient) !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 8px;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    background: transparent;
}

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

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

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 5% 120px; /* Extra top padding for trust bar */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.3);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--accent-purple);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    margin-bottom: 28px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ========================================
   Page Header (Inner Pages)
   ======================================== */
.page-header {
    padding: 180px 5% 100px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(139,92,246,0.1) 0%, transparent 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(139,92,246,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 120px 5%;
}

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

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
}

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

/* ========================================
   Features/Services Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
    transform: translateY(-8px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.feature-card ul {
    margin-top: 20px;
}

.feature-card li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.feature-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    background: linear-gradient(180deg, rgba(139,92,246,0.05) 0%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat {
    padding: 40px 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 1rem;
}

/* ========================================
   Content Sections
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    margin-bottom: 24px;
    line-height: 1.2;
}

.content-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.9;
}

.content-features {
    display: grid;
    gap: 20px;
}

.content-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.content-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.content-feature h4 {
    margin-bottom: 4px;
}

.content-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.content-visual {
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.1));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.content-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.content-visual-icon {
    font-size: 6rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   Service Detail Lists
   ======================================== */
.service-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-detail-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    transition: var(--transition);
}

.service-detail-card:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
}

.service-detail-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.service-detail-card h4 span {
    font-size: 1.5rem;
}

.service-detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: rgba(0,0,0,0.3);
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: #444;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }

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

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

    .content-grid.reverse {
        direction: ltr;
    }

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

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .site-header {
        padding: 15px 5%;
    }

    /* Trust Bar Mobile */
    .trust-bar {
        top: 70px;
    }

    .trust-bar-inner {
        flex-direction: column;
        gap: 8px;
        padding: 10px 5%;
    }

    .trust-divider {
        display: none;
    }

    .trust-item {
        font-size: 0.8rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 20px;
        display: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
    }

    .features-grid,
    .stats-grid,
    .service-details {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 180px 5% 80px; /* Extra padding for stacked trust bar */
    }

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

    .section {
        padding: 80px 5%;
    }

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