/*
Theme Name: SoftHub Theme
Author: Antigravity
Description: A custom one-page WordPress theme for SoftHub Technology Solutions.
Version: 2.0
*/

:root {
    --primary-color: #101b35;
    /* Brand Navy */
    --secondary-color: #17a2b8;
    /* Brand Cyan */
    --accent-color: #ff9800;
    /* Warm Accent */
    --text-main: #1a1a1a;
    --text-muted: #5a5a5a;
    --white: #ffffff;
    --light-gray: #f4f7fa;
    --border-gray: #e1e8ef;
    --shadow-main: 0 10px 40px rgba(16, 27, 53, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =========================================
   Animations & Reveals
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 120px 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    background: var(--primary-color) !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 85px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 18px;
    /* Reduced from 26px for elegance */
    font-weight: 700;
}

.logo span {
    color: #4dc4e0;
    /* Vibrant blue matching "Hub" in logo */
    line-height: 1;
    margin-top: -2px;
    /* Fine-tune vertical alignment */
}

.logo img {
    height: 45px;
    margin-right: 15px;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    opacity: 0.9;
    text-decoration: none !important;
}

nav a:hover {
    color: var(--secondary-color);
    opacity: 1;
    text-decoration: none !important;
}

.logo a {
    text-decoration: none !important;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--primary-color);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    padding-right: 60px;
    animation: fadeInLeft 1s ease-out forwards;
}

.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out forwards;
}

.hero h1 {
    font-size: 58px;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-text {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 45px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

.btn {
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary,
.btn {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(23, 162, 184, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* =========================================
   Features Bar
   ========================================= */
.features-bar {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.features-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.features-flex span {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

/* =========================================
   About Section
   ========================================= */
.about {
    background: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 100px;
}

.about-image {
    flex: 1.1;
}

.about-text {
    flex: 0.9;
}

.section-title span {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 42px;
}

.about-features {
    margin: 40px 0;
}

.feat-item {
    margin-bottom: 20px;
    padding-left: 25px;
    position: relative;
    font-size: 18px;
}

.feat-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.rounded-img {
    border-radius: 40px;
}

.shadow {
    box-shadow: var(--shadow-main);
}

/* =========================================
   Services Section
   ========================================= */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-main);
    border-color: var(--border-gray);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--light-gray);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
}

.service-icon img {
    width: 60%;
}

.service-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-muted);
}

/* =========================================
   Process Section
   ========================================= */
.process {
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 80px;
}

.process-step {
    padding: 30px;
    position: relative;
    text-align: center;
}

.step-num {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 60px;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 30px;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.contact-info {
    flex: 1.2;
}

.contact-form-placeholder {
    flex: 0.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: var(--light-gray);
    padding: 35px;
    border-radius: 20px;
}

.cta-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
}

.cta-box h3 {
    font-size: 32px;
}

.cta-box p {
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

/* =========================================
   RTL Styles
   ========================================= */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .hero-left {
    padding-right: 0;
    padding-left: 60px;
}

[dir="rtl"] .hero::before {
    right: auto;
    left: 0;
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%);
}

[dir="rtl"] .feat-item {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .feat-item::before {
    left: auto;
    right: 0;
    content: '←';
}

[dir="rtl"] .logo img {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] .text-center {
    text-align: center;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero::before {
        display: none;
    }

    .hero-content,
    .about-content,
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-right,
    .about-image {
        order: -1;
        margin-bottom: 40px;
    }

    .hero-left,
    .about-text {
        padding: 0;
    }

    .features-flex {
        justify-content: center;
    }

    .contact-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    nav ul {
        display: none;
    }

    /* Mobile menu would go here */
    .services-grid,
    .process-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}