/* ============================================
   MOBILE FIRST CSS - Sanjay Kushwah Portfolio
   ============================================ */

:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --whatsapp: #25D366;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 28px; }
h2 { font-size: 24px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 12px; }
h4 { font-size: 18px; }
p { margin-bottom: 12px; }

.highlight {
    color: var(--primary);
}

.section-padding {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-subtitle {
    display: inline-block;
    background: rgba(0,123,255,0.1);
    color: var(--primary);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 26px;
}

.section-header p {
    color: var(--secondary);
    font-size: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

.text-center {
    text-align: center;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.brand-text span {
    color: var(--primary);
}

.logo-img {
    max-height: 40px;
    width: auto;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Menu - Mobile */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
    border-top: 1px solid #eee;
}

.nav-menu.active {
    display: flex;
}

.nav-menu li a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--dark);
    font-weight: 500;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(0,123,255,0.08);
    color: var(--primary);
}

.nav-menu li a.btn {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blink-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.hero h1 .highlight {
    color: var(--whatsapp);
}

.hero h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.8);
}

.hero h2 span {
    color: var(--primary);
    font-weight: 600;
}

.hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-buttons .btn {
    width: 100%;
    justify-content: center;
}

.hero-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.hero-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.hero-visual {
    display: none;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.trust-badges i {
    color: #25D366;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
}

.stat-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 13px;
    color: var(--secondary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,123,255,0.08);
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 14px;
}

.service-card h3 {
    font-size: 18px;
}

.service-card p {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.service-price {
    display: inline-block;
    background: rgba(0,123,255,0.08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.service-card .btn-sm {
    font-size: 12px;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    background: var(--light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--dark);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.portfolio-overlay h3 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 2px;
}

.portfolio-overlay .category {
    display: inline-block;
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.portfolio-overlay .btn-sm {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    font-size: 11px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--white);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.testimonial-card {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid #eee;
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 8px;
    font-size: 14px;
}

.testimonial-text {
    font-style: italic;
    font-size: 14px;
    color: #555;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.testimonial-client img,
.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.testimonial-client h4 {
    font-size: 15px;
    margin-bottom: 0;
}

.testimonial-client span {
    font-size: 13px;
    color: var(--secondary);
}

/* ============================================
   BLOG GRID HOME
   ============================================ */
.blog-grid-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.blog-card-home {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
}

.blog-card-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.blog-card-home .blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-home .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-home .blog-content {
    padding: 16px 20px;
}

.blog-card-home .blog-date {
    font-size: 12px;
    color: var(--secondary);
}

.blog-card-home h3 {
    font-size: 17px;
    margin: 4px 0 6px;
}

.blog-card-home h3 a {
    color: var(--dark);
}

.blog-card-home h3 a:hover {
    color: var(--primary);
}

.blog-card-home p {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.blog-card-home .read-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.blog-card-home .read-more i {
    transition: var(--transition);
}

.blog-card-home .read-more:hover i {
    transform: translateX(4px);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 26px;
}

.cta-content h2 .highlight {
    color: #ffd700;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.cta-buttons .btn-primary {
    background: #25D366;
}

.cta-buttons .btn-primary:hover {
    background: #128C7E;
}

.cta-buttons .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.1);
}

.whatsapp-tooltip {
    display: none;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
    100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-col ul a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-contact li i {
    width: 20px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--white);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }
    h3 { font-size: 22px; }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        border-top: none;
        gap: 4px;
        background: transparent;
    }
    
    .nav-menu li a {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .hero {
        padding: 80px 0 70px;
        text-align: left;
        min-height: auto;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .hero-content {
        margin: 0;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    .hero-visual {
        display: block;
    }
    
    .hero-image-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-image-wrapper img {
        width: 100%;
        max-width: 380px;
        border-radius: 20px;
        border: 4px solid rgba(255,255,255,0.1);
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    
    .floating-badge {
        position: absolute;
        background: var(--white);
        color: var(--dark);
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        display: flex;
        align-items: center;
        gap: 6px;
        animation: float 3s ease-in-out infinite;
    }
    
    .floating-badge i {
        color: var(--primary);
        font-size: 16px;
    }
    
    .badge-1 {
        top: 10%;
        right: -10%;
        animation-delay: 0s;
    }
    
    .badge-2 {
        bottom: 20%;
        left: -10%;
        animation-delay: 1s;
    }
    
    .badge-3 {
        bottom: -5%;
        right: 10%;
        animation-delay: 2s;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    .trust-badges {
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid-home {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    
    .section-padding {
        padding: 90px 0;
    }
    
    .hero {
        padding: 100px 0 90px;
    }
    
    .hero h1 {
        font-size: 52px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero-image-wrapper img {
        max-width: 420px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-slider {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .trust-badges {
        gap: 10px;
        font-size: 12px;
    }
    
    .floating-badge {
        display: none;
    }
}