/* ==========================================================================
   NMIRSHAD.COM - STATIC MIGRATION STYLESHEET
   Design System & Responsiveness
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --clr-bg-deep: hsl(240, 10%, 4%);        /* Pitch Black-Grey */
    --clr-bg-surface: #121217;               /* Surface containers */
    --clr-bg-card: #16161d;                  /* Card background */
    --clr-bg-glass: rgba(18, 18, 23, 0.75);
    
    --clr-accent: #FFB400;                   /* Irshad Gold/Yellow */
    --clr-accent-hover: #ffda36;
    --clr-accent-glow: rgba(255, 180, 0, 0.2);
    
    --clr-text-light: #F0EEE9;               /* Primary Off-White text */
    --clr-text-muted: #A09E9B;               /* Secondary Slate text */
    --clr-text-dark: #111111;
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-gold-glass: 1px solid rgba(255, 180, 0, 0.15);
    
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 10px 25px rgba(255, 180, 0, 0.15);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Base & Resets
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg-deep);
    color: var(--clr-text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.25;
    color: var(--clr-text-light);
}

.text-gradient {
    color: var(--clr-accent);
}

.text-center {
    text-align: center;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-accent);
    margin-bottom: 15px;
    display: inline-block;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--clr-accent);
}

/* --------------------------------------------------------------------------
   3. Common Components (Buttons, Forms, Testimonials)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-text-dark);
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-color: var(--clr-text-dark);
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--clr-accent-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-light);
    border-color: var(--clr-text-light);
}

.btn-outline:hover {
    background-color: var(--clr-text-light);
    color: var(--clr-bg-deep);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: 6px;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--clr-text-light);
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--clr-accent);
    background-color: rgba(255, 255, 255, 0.05);
}

textarea.form-input {
    resize: none;
    height: 120px;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.form-status.success { color: #2ecc71; }
.form-status.error { color: #e74c3c; }

/* Testimonials Component */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 8px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--border-gold-glass);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.testimonial-content {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: var(--border-glass);
    padding-top: 20px;
}

.testimonial-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #222;
}

.testimonial-name {
    font-weight: 500;
    font-size: 1rem;
    color: var(--clr-text-light);
}

.testimonial-title {
    font-size: 0.8rem;
    color: var(--clr-accent);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--clr-bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: var(--border-glass);
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    padding: 12px 24px;
}

.logo-brand {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--clr-text-light);
    display: flex;
    align-items: center;
}

.logo-brand span {
    color: var(--clr-accent);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 400;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: var(--clr-text-light);
    transition: var(--transition-fast);
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Inner Pages Generic Layout (Header Banner)
   -------------------------------------------------------------------------- */
.inner-hero {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, rgba(255, 180, 0, 0.03) 0%, transparent 100%);
    border-bottom: var(--border-glass);
}

.inner-hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.inner-hero-title span {
    color: var(--clr-accent);
}

.inner-hero-desc {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    max-width: 800px;
}

/* --------------------------------------------------------------------------
   6. Custom Accordion Component (FAQs / Services)
   -------------------------------------------------------------------------- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.accordion-item:hover {
    border-color: var(--border-gold-glass);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 22px 28px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-text-light);
    gap: 20px;
}

.accordion-header:focus {
    outline: none;
}

.accordion-icon-chevron {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    fill: none;
    stroke: var(--clr-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accordion-item.active .accordion-icon-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 250px;
    opacity: 1;
}

.accordion-body {
    padding: 0 28px 24px 28px;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. GSAP Vertical Pinning Section (Web Developer Cards Showcase)
   -------------------------------------------------------------------------- */
.ws-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000000;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
}

.ws-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ws-heading {
    font-size: 2.2rem;
    color: var(--clr-text-light);
    margin-bottom: 10px;
}

.ws-heading span {
    color: var(--clr-accent);
}

.ws-desc-top {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.ws-stage {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 480px;
}

.ws-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 60px;
    border: var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
    will-change: transform;
}

.ws-slide-left {
    flex: 0 0 60%;
    max-width: 60%;
}

.ws-subheading {
    font-size: 1.6rem;
    color: var(--clr-text-light);
    margin-bottom: 15px;
}

.ws-subheading span {
    color: var(--clr-accent);
}

.ws-slide-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin-bottom: 25px;
    max-width: 500px;
}

.ws-features {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--clr-text-light);
}

.ws-features li .tick {
    color: var(--clr-accent);
    font-weight: bold;
}

.ws-cta {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: var(--clr-accent);
    color: var(--clr-text-dark);
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition-fast);
}

.ws-cta:hover {
    background-color: var(--clr-text-light);
}

.ws-slide-right {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.ws-slide-right img {
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

/* --------------------------------------------------------------------------
   8. Process Card Stacks (How I Work)
   -------------------------------------------------------------------------- */
.nmi-scroll-section {
    position: relative;
    width: 100%;
    background: #000000;
}

.nmi-scroll-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
}

.nmi-scroll-left {
    flex: 0 0 40%;
    color: var(--clr-text-light);
}

.nmi-scroll-left h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.nmi-scroll-left h2 span {
    color: var(--clr-accent);
}

.nmi-scroll-left p {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
}

.nmi-scroll-right {
    flex: 0 0 55%;
    position: relative;
    height: 420px;
}

.nmi-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 8px;
    will-change: transform, opacity;
}

.nmi-card-number {
    font-size: 0.95rem;
    color: var(--clr-accent);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.nmi-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.nmi-card p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. Footer & Branding
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: #08080c;
    border-top: var(--border-glass);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-brand h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-col-brand h3 span {
    color: var(--clr-accent);
}

.footer-col-brand p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-links a:hover {
    color: var(--clr-text-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: var(--border-glass);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.footer-bottom span {
    color: var(--clr-accent);
}

/* --------------------------------------------------------------------------
   10. WhatsApp Floating Chat Widget (No-bloat CSS representation)
   -------------------------------------------------------------------------- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.wa-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.wa-btn:hover {
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   11. Media Queries & Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ws-slide {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .inner-hero {
        padding: 120px 0 60px;
    }
    
    .inner-hero-title {
        font-size: 2.2rem;
    }
    
    /* Navigation drawer mobile */
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--clr-bg-surface);
        padding: 100px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
        transition: var(--transition-smooth);
        z-index: 1050;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1.05rem;
    }
    
    /* GSAP sliders conversion for mobile */
    .ws-slide {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        position: relative;
    }
    
    .ws-slide-left, .ws-slide-right {
        flex: 1 1 auto;
        max-width: 100%;
    }
    
    .ws-slide-right {
        display: none; /* Hide heavy images on mobile cards for better loading */
    }
    
    .nmi-scroll-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 24px;
    }
    
    .nmi-scroll-left, .nmi-scroll-right {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .nmi-scroll-right {
        height: 320px;
    }
}

@media (max-width: 580px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .accordion-header {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 0 20px 20px 20px;
    }
}
