/*
Theme Name: Abdul Basit Premium
Theme URI: https://realabdulbasit.com
Author: Abdul Basit
Version: 4.0.0
*/

:root {
    --primary: #0096FF;
    --primary-dark: #0077CC;
    --primary-light: #4DB8FF;
    --secondary: #0A0A0A;
    --background: #FFFFFF;
    --background-alt: #F5F7FB;
    --text: #111827;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px -12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--secondary);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-top: 1rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1.2rem; color: var(--text-light); }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    body { font-size: 18px; }
}

@media (min-width: 992px) {
    h1 { font-size: 3.8rem; }
    h2 { font-size: 2.5rem; }
}

/* ===== HEADER STYLES - ONE FOR ALL PAGES ===== */
.site-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo a {
    text-decoration: none;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

/* Desktop Menu */
.desktop-menu-wrapper {
    display: none;
}

.hire-btn {
    display: none;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.hire-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary);
    padding: 8px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 5px;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
}

.mobile-menu a:hover {
    background: var(--background-alt);
    color: var(--primary);
}

.mobile-dropdown > a {
    position: relative;
}

.mobile-arrow {
    float: right;
    font-size: 12px;
}

.mobile-submenu {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    font-size: 14px;
    padding: 10px 16px;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
    
    .desktop-menu-wrapper {
        display: block;
        flex: 1;
        margin: 0 30px;
    }
    
    .hire-btn {
        display: block;
    }
    
    .desktop-menu {
        display: flex;
        justify-content: center;
        list-style: none;
        gap: 35px;
        margin: 0;
        padding: 0;
    }
    
    .desktop-menu > li {
        position: relative;
        list-style: none;
    }
    
    .desktop-menu > li > a {
        color: var(--secondary);
        font-weight: 600;
        font-size: 15px;
        padding: 8px 0;
        display: block;
        text-decoration: none;
    }
    
    .desktop-menu > li > a:hover {
        color: var(--primary);
    }
    
    .arrow {
        font-size: 10px;
        margin-left: 4px;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 240px;
        border-radius: 12px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        list-style: none;
        padding: 12px 0;
        margin: 0;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border);
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-menu li {
        display: block;
    }
    
    .dropdown-menu a {
        display: block;
        padding: 10px 24px;
        color: var(--text);
        text-decoration: none;
        font-size: 14px;
    }
    
    .dropdown-menu a:hover {
        background: var(--background-alt);
        color: var(--primary);
    }
}

body {
    padding-top: 70px;
}

@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
}

/* ===== MAIN CONTENT STYLES - SAME FOR ALL PAGES ===== */
.main-content {
    min-height: 60vh;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-content {
    text-align: center;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .hero { padding: 80px 0; }
    .hero-grid { flex-direction: row; align-items: center; gap: 60px; }
    .hero-content { flex: 1; text-align: left; }
    .hero-image { flex: 1; }
    .hero-buttons { justify-content: flex-start; }
    .stats { justify-content: flex-start; }
    .stat-number { font-size: 2.2rem; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    margin-bottom: 12px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Cards Grid */
.services-grid, .blog-grid, .results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card, .blog-card, .result-card {
    background: var(--background);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.service-card:hover, .blog-card:hover, .result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.blog-card {
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

@media (min-width: 640px) {
    .services-grid, .blog-grid, .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    section { padding: 80px 0; }
    .services-grid, .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Story Section */
.story {
    background: var(--background-alt);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta h2, .cta p {
    color: white;
}

.cta .btn-outline {
    background: white;
    color: var(--primary);
    border: none;
}

/* Single Post / Pages */
.single-post, .page {
    padding: 60px 0;
}

.post-header {
    margin-bottom: 40px;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.post-content {
    font-size: 1rem;
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content ul, .post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .single-post, .page { padding: 80px 0; }
    .post-title { font-size: 3rem; }
}

/* Sidebar */
.sidebar {
    margin-top: 40px;
}

.sidebar-widget {
    background: var(--background-alt);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 10px;
}

.sidebar-widget a {
    color: var(--text);
    text-decoration: none;
}

.sidebar-widget a:hover {
    color: var(--primary);
}

@media (min-width: 992px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 60px;
    }
    .sidebar {
        margin-top: 0;
    }
}

/* Contact Form */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget p, .footer-widget a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-widget a:hover {
    color: var(--primary);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* AdSense */
.adsense-container {
    background: var(--background-alt);
    border-radius: 16px;
    padding: 16px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid var(--border);
}

.adsense-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}