/**
 * DeediX Technologies - About Page Styles
 */

/* ========================================
   Page-Level Navbar Integration
======================================== */
.about-page .navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.about-page .navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Page Header - Responsive Layout
======================================== */
.about-page .page-header {
    background: #ffffff;
    padding: 6rem 0 3rem;
    position: relative;
}

.about-page .page-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
    text-align: left;
}

.about-page .page-header-text {
    order: 1;
}

.about-page .page-title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1e293b;
    background: none;
    -webkit-text-fill-color: initial;
    text-align: left;
}

.about-page .page-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #64748b;
    text-align: left;
}

.about-page .page-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-page .page-header-visual {
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.about-page .page-header-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #f0f9ff 100%);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-page .page-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-page .page-header-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-page .header-icon-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.08);
    transition: all 0.3s ease;
}

.about-page .header-icon-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 120, 212, 0.15);
}

.about-page .header-icon-item i {
    font-size: 2rem;
    color: #0078d4;
}

.about-page .header-icon-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

/* Button styles */
.btn-outline {
    background: transparent;
    border: 2px solid #0078d4;
    color: #0078d4;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0078d4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
}

/* ========================================
   About Intro Section - Redesigned
======================================== */
.about-intro {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-content {
    text-align: left;
}

.about-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0078d4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.about-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1e293b;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
    line-height: 1;
}

.stat-plus {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Brand Visual - Animated */
.about-intro-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.brand-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 120, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.brand-line {
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.05em;
}

.brand-deedix {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #0078d4;
    animation: fadeInUp 0.6s ease forwards;
}

.brand-tech {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    color: #475569;
    font-weight: 600;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.brand-accent {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.15;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Mission & Vision Section
======================================== */
.mission-vision {
    padding: 5rem 0;
    background: #ffffff;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mv-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.12);
    border-color: #0078d4;
}

.mv-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.mv-icon i {
    font-size: 2rem;
}

.mv-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.mv-description {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ========================================
   Why Choose Us Section
======================================== */
.why-choose {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #0078d4;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 120, 212, 0.1);
}

.why-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
    opacity: 0.2;
    margin-bottom: 1rem;
    line-height: 1;
}

.why-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.why-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Color variations for why cards */
.why-card:nth-child(2) {
    border-left-color: #00a4ef;
}

.why-card:nth-child(2) .why-number {
    color: #00a4ef;
}

.why-card:nth-child(3) {
    border-left-color: #f25022;
}

.why-card:nth-child(3) .why-number {
    color: #f25022;
}

.why-card:nth-child(4) {
    border-left-color: #7fba00;
}

.why-card:nth-child(4) .why-number {
    color: #7fba00;
}

.why-card:nth-child(5) {
    border-left-color: #ffb900;
}

.why-card:nth-child(5) .why-number {
    color: #ffb900;
}

.why-card:nth-child(6) {
    border-left-color: #737373;
}

.why-card:nth-child(6) .why-number {
    color: #737373;
}

/* ========================================
   CTA Section - Responsive Layout
======================================== */
.cta-section {
    padding: 5rem 0;
    background: #ffffff;
}

.cta-banner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 1px solid #bfdbfe;
}

.cta-content {
    text-align: left;
}

.cta-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0078d4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.cta-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-image img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 120, 212, 0.15));
}

.cta-action {
    text-align: right;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0078d4;
    color: #ffffff;
    border: 2px solid #0078d4;
}

.btn-primary:hover {
    background: #005a9e;
    border-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.btn i {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* ========================================
   Footer Integration
======================================== */
.about-page .footer {
    background: #1e293b;
    color: #e2e8f0;
    border-top: none;
}

.about-page .footer-title {
    color: #ffffff;
}

.about-page .footer-text,
.about-page .footer-links a,
.about-page .footer-contact li {
    color: #cbd5e1;
}

.about-page .footer-links a:hover {
    color: #0078d4;
}

.about-page .social-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-page .social-link:hover {
    background: #0078d4;
    border-color: #0078d4;
}

.about-page .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 968px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-banner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .cta-content,
    .cta-action {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-page .page-header-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-page .page-header {
        padding: 1.5rem 0 1rem;  /* Moderate top padding since text card comes first */
        margin-top: 70px;  /* Add clearance for fixed navbar */
    }

    /* Card-based design for mobile hero text - NO ACTIONS INSIDE */
    .about-page .page-header-text {
        order: 1;  /* Text card comes first after nav */
        background: #ffffff;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        border: 1px solid #e5e7eb;
        text-align: left;
    }

    .about-page .page-title {
        font-size: 1.375rem;  /* Slightly larger in card */
        line-height: 1.4;
        margin-bottom: 1rem;
        text-align: left;
    }

    .about-page .page-subtitle {
        font-size: 0.9375rem;  /* 15px */
        line-height: 1.6;
        margin-bottom: 0;  /* Remove bottom margin since actions are separate */
        text-align: left;
    }

    .about-page .page-header-visual {
        order: 2;  /* Visual comes second */
        min-height: 300px;
    }

    /* Actions come LAST - completely independent */
    .about-page .page-header-actions {
        order: 3;  /* Actions come third, after visuals */
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;  /* Increased gap between buttons */
        margin-top: 1.5rem;  /* Space above actions */
    }

    .about-page .page-header-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;  /* Larger touch target */
        font-size: 1rem;
    }

    .about-page .page-header-image {
        padding: 1.5rem;
    }

    /* Keep icons horizontal (2x2 grid) to save space */
    .about-page .page-header-icons {
        grid-template-columns: repeat(2, 1fr);  /* Keep horizontal */
        gap: 0.75rem;
    }

    .about-page .header-icon-item {
        padding: 0.875rem;
    }

    .about-page .header-icon-item i {
        font-size: 1.5rem;
    }

    .about-intro {
        padding: 3rem 0;
    }

    /* Horizontal stats card on mobile */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        background: linear-gradient(135deg, #0078d4 0%, #0056a3 100%);
        padding: 1rem 0.75rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 120, 212, 0.15);
    }

    .about-page .about-stats .stat-box {
        align-items: center;
        text-align: center;
        padding: 0.375rem 0;
    }

    .about-page .about-stats .stat-number {
        font-size: 1.75rem;
        color: #ffffff !important;
        font-weight: 700;
    }

    .about-page .about-stats .stat-plus {
        font-size: 1.125rem;  /* Much smaller than number */
        color: #ffffff !important;
        font-weight: 600;
        vertical-align: top;
    }

    .about-page .about-stats .stat-label {
        font-size: 0.6875rem;  /* 11px */
        color: rgba(255, 255, 255, 0.95) !important;
        font-weight: 500;
    }

    .mission-vision {
        padding: 3rem 0;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .why-choose {
        padding: 3rem 0;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-banner {
        padding: 2rem;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-page .page-header {
        padding: 1rem 0 1rem;  /* Moderate spacing since text card comes first */
        margin-top: 60px;  /* Push content below fixed navbar on small mobile */
    }

    /* Compact card design for small mobile */
    .about-page .page-header-text {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .about-page .page-title {
        font-size: 1.25rem;  /* Comfortable size in card */
        line-height: 1.4;
        margin-bottom: 0.875rem;
    }

    .about-page .page-subtitle {
        font-size: 0.875rem;  /* 14px */
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    /* Keep 2x2 grid even on small mobile for space efficiency */
    .about-page .page-header-icons {
        grid-template-columns: repeat(2, 1fr);  /* Keep horizontal */
        gap: 0.5rem;
    }

    .about-page .header-icon-item {
        padding: 0.75rem;
    }

    .about-page .header-icon-item i {
        font-size: 1.5rem;
    }

    /* Compact stats card for small mobile */
    .about-page .about-stats {
        gap: 0.5rem;
        padding: 0.875rem 0.5rem;
        border-radius: 10px;
    }

    .about-page .about-stats .stat-number {
        font-size: 1.5rem;
        color: #ffffff !important;
    }

    .about-page .about-stats .stat-plus {
        font-size: 1rem;  /* Much smaller than number */
        color: #ffffff !important;
        vertical-align: top;
    }

    .about-page .about-stats .stat-label {
        font-size: 0.625rem;  /* 10px */
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .brand-canvas {
        padding: 2rem;
    }

    .mv-card {
        padding: 2rem;
    }

    .why-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .about-page .navbar,
    .about-page .footer,
    .cta-section,
    .back-to-top,
    .whatsapp-float {
        display: none;
    }

    .about-page .page-header,
    .about-intro,
    .mission-vision,
    .why-choose {
        page-break-inside: avoid;
    }
}
