/**
 * NESTPRO - Homepage Section Styles
 */

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
    padding: var(--space-section) 0;
    background: var(--white);
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-content .section-subtitle {
    text-align: left;
    padding-left: 0;
}

.about-preview-content .section-subtitle::before {
    display: none;
}

.about-preview-text {
    color: var(--text-light);
    font-size: var(--fs-md);
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-features-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
}

.about-feature-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light-grey);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.about-feature-mini:hover {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateX(5px);
}

.about-feature-mini .icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.about-feature-mini span {
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.about-preview-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-preview-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-image-badge .number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.about-image-badge .label {
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ============================================
   KPI STATISTICS
   ============================================ */
.kpi-section {
    padding: var(--space-section) 0;
    background: var(--gradient-luxury);
    position: relative;
    overflow: hidden;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.kpi-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.kpi-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 24px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.kpi-value .suffix {
    color: var(--gold);
}

.kpi-label {
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   WHAT MAKES US SPECIAL
   ============================================ */
.special-section {
    padding: var(--space-section) 0;
    background: var(--light-grey);
}

.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.special-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.special-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
}

.special-content .section-subtitle {
    text-align: left;
    padding-left: 0;
}

.special-content .section-subtitle::before {
    display: none;
}

.special-message {
    color: var(--text-light);
    font-size: var(--fs-md);
    line-height: 1.9;
    margin-bottom: 30px;
}

/* ============================================
   STRATEGIC APPROACH CARDS
   ============================================ */
.approach-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.approach-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--mid-grey);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease);
}

.approach-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.approach-card:hover::before {
    transform: scaleY(1);
}

.approach-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.approach-card:hover .approach-card-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.approach-card h4 {
    font-size: var(--fs-md);
    margin-bottom: 8px;
    color: var(--navy);
}

.approach-card p {
    font-size: var(--fs-sm);
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   MARKETING SECTION
   ============================================ */
.marketing-section {
    position: relative;
    padding: 120px 0;
    background: var(--gradient-luxury);
    text-align: center;
}

.marketing-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    overflow: hidden;
}

.marketing-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

.marketing-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.marketing-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-lg);
    line-height: 1.8;
    margin-bottom: 30px;
}

.marketing-content .header-dropdown {
    display: inline-block;
    position: relative;
    z-index: 100;
}

.marketing-content .header-dropdown-menu {
    top: auto;
    bottom: calc(100% + 14px);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    text-align: left;
    min-width: 280px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
    z-index: 1000;
}

.marketing-content .header-dropdown.open .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SERVICES PREVIEW
   ============================================ */
.services-preview {
    padding: var(--space-section) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--mid-grey);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 28px;
    margin: 24px 24px 16px;
    transition: all var(--transition);
}

.service-card:hover .service-card-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

.service-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 0 24px 24px;
}

.service-card-body h4 {
    font-size: var(--fs-md);
    margin-bottom: 8px;
    color: var(--navy);
}

.service-card-body p {
    font-size: var(--fs-sm);
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.service-card-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.service-card-link:hover svg {
    transform: translateX(4px);
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   CLIENT LOGO CAROUSEL
   ============================================ */
.clients-section {
    padding: 60px 0;
    background: var(--light-grey);
    overflow: hidden;
}

.clients-track {
    display: flex;
    gap: 60px;
    animation: clientScroll 30s linear infinite;
    width: max-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) opacity(0.4);
    transition: all var(--transition);
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes clientScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FOUNDER MESSAGE
   ============================================ */
.founder-section {
    padding: var(--space-section) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 50%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.founder-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 106, 42, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.founder-grid-new {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
}

/* Founder Image Column */
.founder-image-col {
    position: relative;
}

.founder-img-wrapper {
    position: relative;
    display: inline-block;
}

.founder-img-wrapper img {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
    position: relative;
    z-index: 2;
}

.founder-img-placeholder {
    width: 320px;
    height: 400px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--primary);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
}

.founder-img-placeholder span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.founder-img-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 20px;
    opacity: 0.15;
    z-index: 1;
}

.founder-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary) 0%, #d45a1e 100%);
    color: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(232, 106, 42, 0.3);
    z-index: 3;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    opacity: 0.9;
}

/* Founder Content Column */
.founder-content-col {
    position: relative;
}

.founder-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.founder-label-line {
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.founder-label-text {
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.founder-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
}

.founder-quote-mark {
    font-family: Georgia, serif;
    font-size: 80px;
    line-height: 0.6;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 10px;
}

.founder-message {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 30px;
    position: relative;
}

.founder-info {
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}

.founder-info-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.founder-info-designation {
    font-family: var(--font-accent);
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.founder-signature-line {
    margin-top: 24px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: var(--space-section) 0;
    background: var(--light-grey);
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.testimonial-text {
    color: var(--text-light);
    font-size: var(--fs-base);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info .name {
    font-family: var(--font-accent);
    font-weight: 600;
    color: var(--navy);
    font-size: var(--fs-base);
}

.testimonial-info .company {
    font-size: var(--fs-sm);
    color: var(--text-light);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--space-section) 0;
    background: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--mid-grey);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-family: var(--font-accent);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--navy);
    transition: all var(--transition-fast);
    gap: 16px;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    transition: all var(--transition);
    flex-shrink: 0;
    font-size: 18px;
}

.faq-item.active .faq-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--fs-sm);
}

/* ============================================
   PROJECTS PREVIEW
   ============================================ */
.projects-preview {
    padding: var(--space-section) 0;
    background: var(--light-grey);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--white);
    border: 1px solid var(--mid-grey);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-status {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.project-card-status.running {
    background: rgba(var(--emerald-rgb), 0.9);
    color: var(--white);
}

.project-card-status.completed {
    background: rgba(var(--sky-rgb), 0.9);
    color: var(--white);
}

.project-card-status.upcoming {
    background: rgba(var(--gold-rgb), 0.9);
    color: var(--navy);
}

.project-card-body {
    padding: 24px;
}

.project-card-category {
    font-family: var(--font-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.project-card-body h4 {
    font-size: var(--fs-lg);
    margin-bottom: 8px;
}

.project-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--text-light);
    margin-bottom: 12px;
}

.project-card-location svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.project-card-progress {
    margin-top: 16px;
}

.project-card-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .about-preview-grid,
    .special-grid,
    .founder-grid-new { grid-template-columns: 1fr; gap: 50px; }
    .founder-image-col { display: flex; justify-content: center; }
    .founder-img-wrapper img, .founder-img-placeholder { width: 260px; height: 330px; }
    .founder-experience-badge { bottom: -15px; right: 10px; padding: 14px 18px; }
    .badge-number { font-size: 26px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-cards { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-features-mini { grid-template-columns: 1fr; }
    .testimonial-card { flex: 0 0 300px; }
    .founder-grid-new { gap: 40px; }
    .founder-img-wrapper img, .founder-img-placeholder { width: 220px; height: 280px; }
    .founder-heading { font-size: 1.5rem; }
    .founder-message { font-size: 15px; }
    .project-filters { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
}
