/*
Theme Name: KrawlX Theme
Theme URI: https://krawlx.com
Author: KrawlX Technologies
Author URI: https://krawlx.com
Description: Professional WordPress theme for KrawlX Technologies - Data Scraping & Analytics Services
Version: 1.0.0
License: Private
Text Domain: krawlx
*/

/* ==========================================================================
   CSS Variables & Root Styles
   ========================================================================== */
:root {
    --primary-color: #0b2468;
    --secondary-color: #e80566;
    --text-color: #353535;
    --light-bg: #f8f9fa;
    --dark-bg: #0b2468;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
}

.primary-solid-btn {
    border: 1px solid var(--secondary-color);
    background: linear-gradient(to bottom, var(--secondary-color), var(--secondary-color));
    color: #fff;
}

.primary-solid-btn:hover {
    background: transparent;
    color: var(--secondary-color);
}

.secondary-solid-btn {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.secondary-solid-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.outline-btn {
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
}

.outline-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease-in-out;
}

.navbar.fixed-top {
    z-index: 9999;
}

.navbar.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.menu li a {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 20px 18px;
    display: block;
    transition: 0.3s ease-in-out;
    color: var(--text-color);
}

.menu li a:hover {
    color: var(--secondary-color);
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

/* Mega Menu */
.mega-menu {
    width: 100%;
    padding: 20px;
}

.mega-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-menu .dropdown-item img {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a7a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

.ptb-100 {
    padding: 100px 0;
}

.ptb-80 {
    padding: 80px 0;
}

.ptb-60 {
    padding: 60px 0;
}

.pt-100 {
    padding-top: 100px;
}

.pb-100 {
    padding-bottom: 100px;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #ff6b9d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card .icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 0;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin: 20px 0;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author-info h5 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.testimonial-card .author-info span {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Counter Section
   ========================================================================== */
.counter-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.counter-item {
    text-align: center;
    padding: 30px;
}

.counter-item h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.counter-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 80px 0 30px;
}

.footer h5 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: none;
    padding: 30px 30px 0;
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-weight: 700;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control {
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(232, 5, 102, 0.15);
}

textarea.form-control {
    height: auto;
    min-height: 120px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a7a 100%);
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a7a 100%);
}

.shadow-sm {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }
    
    .menu li a {
        padding: 12px 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .counter-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .ptb-100 {
        padding: 60px 0;
    }
    
    .counter-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    html {
        font-size: 80%;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
}
