/* 
    DESIGN SYSTEM: TrustedTech Solutions
    Style: Premium, Luxury, Minimal, Tech-focused
*/

:root {
    /* Colors */
    --bg-dark: #0B1120;
    --card-bg: #111827;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --accent: #10B981;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --white: #FFFFFF;
    --glass: rgba(17, 24, 39, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* 1. Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: #0F172A;
}

/* 2. Typography & Utilities */
.text-gradient {
    background: linear-gradient(90deg, #60A5FA, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.p-4 { padding: 2rem; }
.w-100 { width: 100%; }

/* 3. Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 0.8rem 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-top: -4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

/* Mega Menu */
.dropdown { position: relative; }
.chevron { margin-left: 4px; vertical-align: middle; }

.mega-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mega-col h3 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.mega-col ul li {
    margin-bottom: 0.8rem;
}

.mega-col ul li a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mega-col ul li a:hover { color: var(--white); }

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--bg-dark);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* 5. Hero Section */
.hero-section {
    padding-top: 200px;
    padding-bottom: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-plus { color: var(--accent); font-size: 1.5rem; }

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glass Card Component */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.hero-card .card-header {
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    display: flex;
    gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

/* 6. Brand Slider */
.brand-slider {
    margin-top: 3rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.brand-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.brand-track span {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    margin: 0 40px;
    text-transform: uppercase;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 7. Services Grid */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

.service-link {
    font-weight: 600;
    color: var(--primary);
}

/* 8. FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* 9. Footer */
.main-footer {
    padding: 80px 0 30px;
    background: #060a16;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-info p { margin: 1.5rem 0; color: var(--text-muted); }
.footer-links h4, .footer-contact h4, .footer-newsletter h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul li a { color: var(--text-muted); }
.footer-links ul li a:hover { color: var(--white); }

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    color: var(--white);
}

.btn-submit {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 10. Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 11. Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.scroll-btn {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.scroll-btn.show { opacity: 1; }

/* 12. Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Specific Page: Services Detail */
.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 100px;
}

.alt-layout { direction: rtl; }
.alt-layout .service-content { direction: ltr; }

.service-features {
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

/* Specific Page: Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.blog-img { position: relative; height: 240px; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Specific Page: Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
}

.info-card-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}