/* ========================================
   ABOUT SECTION — CENVAKY LLC
   Modern, Fluid & Fully Responsive
   Universal Browser Support + Dark/Light Mode
======================================== */

/*----------------------{Include Bootstrap CSS}----------------------------*/
@import url("/css/bootstrap-5.3.2/bootstrap.min.css");

/*----------------------{Include Partial CSS}-----------------------------*/
@import url('/partials/header/css/navbar.css');
@import url('/partials/footer/css/footer.css');

/*----------------------{Include font-awesome}-----------------------------*/
@import url("/css/fontawesome-6.6.0/css/fontawesome.css");
@import url("/css/fontawesome-6.6.0/css/brands.css");
@import url("/css/fontawesome-6.6.0/css/solid.css");


/* ================================
   ABOUT SECTION — Universal Compatibility
   Adaptive Light/Dark Mode Support
================================ */

/* ROOT VARIABLES - Light Mode (Default) */
:root {
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Light Mode Colors */
    --about-gray-bg: #f7f9fc;
    --about-white: #ffffff;
    --about-light-blue: #e3f2fd;
    --about-primary-color: #1a73e8;
    --about-text-dark: #1e1e2f;
    --about-text-light: #555555;
    --about-border-color: rgba(0, 0, 0, 0.08);
    --about-glow-color: rgba(26, 115, 232, 0.1);
    --about-card-hover-bg: rgba(26, 115, 232, 0.06);
    
    /* Light Mode Shadows */
    --about-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --about-shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --about-icon-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --about-label-hover-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    
    /* Background Gradients */
    --about-bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --about-glow-gradient: radial-gradient(circle, rgba(26, 115, 232, 0.1), transparent 70%);
    --about-card-hover-gradient: linear-gradient(135deg, rgba(26, 115, 232, 0.06), rgba(255, 255, 255, 0));
    
    /* Icon Colors - Light Mode */
    --icon-blue: linear-gradient(135deg, #1a73e8, #4285f4);
    --icon-green: linear-gradient(135deg, #34a853, #5bb974);
    --icon-purple: linear-gradient(135deg, #9c27b0, #ba68c8);
    --icon-orange: linear-gradient(135deg, #ff6f00, #ff9800);
    --icon-teal: linear-gradient(135deg, #00897b, #26a69a);
    --icon-red: linear-gradient(135deg, #e53935, #ef5350);
    --icon-gold: linear-gradient(135deg, #fbc02d, #ffd54f);
    --icon-gold-text: #1a1a2e;
}

/* MANUAL THEME OVERRIDE CLASSES */
[data-theme="light"] {
    --about-gray-bg: #f7f9fc;
    --about-white: #ffffff;
    --about-light-blue: #e3f2fd;
    --about-primary-color: #1a73e8;
    --about-text-dark: #1e1e2f;
    --about-text-light: #555555;
    --about-border-color: rgba(0, 0, 0, 0.08);
    --about-glow-color: rgba(26, 115, 232, 0.1);
    --about-card-hover-bg: rgba(26, 115, 232, 0.06);
    --about-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --about-shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --about-icon-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --about-label-hover-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    --about-bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --about-glow-gradient: radial-gradient(circle, rgba(26, 115, 232, 0.1), transparent 70%);
    --about-card-hover-gradient: linear-gradient(135deg, rgba(26, 115, 232, 0.06), rgba(255, 255, 255, 0));
    --icon-blue: linear-gradient(135deg, #1a73e8, #4285f4);
    --icon-green: linear-gradient(135deg, #34a853, #5bb974);
    --icon-purple: linear-gradient(135deg, #9c27b0, #ba68c8);
    --icon-orange: linear-gradient(135deg, #ff6f00, #ff9800);
    --icon-teal: linear-gradient(135deg, #00897b, #26a69a);
    --icon-red: linear-gradient(135deg, #e53935, #ef5350);
    --icon-gold: linear-gradient(135deg, #fbc02d, #ffd54f);
    --icon-gold-text: #1a1a2e;
}


/* SECTION WRAPPER */
.about {
    /* Modern browsers with clamp() support */
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--about-bg-gradient);
    position: relative;
    overflow: hidden;
    transition: background var(--transition-base, 0.3s ease);
}

/* Fallback for older browsers without clamp() */
.about {
    padding: 3rem 0; /* Base fallback */
}

@media (min-width: 768px) {
    .about {
        padding: 5rem 0;
    }
}

@media (min-width: 1200px) {
    .about {
        padding: 6rem 0;
    }
}

/* Decorative animated glow */
.about::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -8%;
    width: 300px;
    height: 300px;
    background: var(--about-glow-gradient);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float-glow 8s ease-in-out infinite;
}

/* Responsive glow size */
@media (max-width: 768px) {
    .about::before {
        width: 200px;
        height: 200px;
        filter: blur(60px);
    }
}

@media (max-width: 480px) {
    .about::before {
        width: 150px;
        height: 150px;
        filter: blur(40px);
    }
}

@keyframes float-glow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

/* HEADER */
.about__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

/* Responsive header spacing */
@media (max-width: 768px) {
    .about__header {
        max-width: 90%;
        margin-bottom: 3rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .about__header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
}

.about .section__label {
    display: inline-block;
    background: var(--about-light-blue);
    color: var(--about-primary-color);
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    transition: all var(--transition-base, 0.3s ease);
    border: 1px solid var(--about-border-color);
}

/* Responsive label */
@media (max-width: 768px) {
    .about .section__label {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

.about .section__label:hover {
    background: var(--about-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--about-label-hover-shadow);
}

.about .section__title {
    font-size: 2.8rem;
    color: var(--about-text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: color var(--transition-base, 0.3s ease);
}

/* Responsive title */
@media (max-width: 1200px) {
    .about .section__title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .about .section__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about .section__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 320px) {
    .about .section__title {
        font-size: 1.5rem;
    }
}

.about .section__description {
    font-size: 1.1rem;
    color: var(--about-text-light);
    line-height: 1.8;
    max-width: 65ch;
    margin: 0 auto;
    transition: color var(--transition-base, 0.3s ease);
}

/* Responsive description */
@media (max-width: 768px) {
    .about .section__description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about .section__description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* FEATURES GRID - Modern with Fallbacks */
.about__grid {
    /* Modern Grid */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    padding: 0;
    width: 100%;
}

/* Fallback for browsers without CSS Grid */
.no-css-grid .about__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.no-css-grid .about__feature {
    flex: 1 1 300px;
    max-width: 400px;
}

/* Responsive grid */
@media (max-width: 968px) {
    .about__grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .about__grid {
        gap: 1.2rem;
    }
}

/* FEATURE CARD */
.about__feature {
    background: var(--about-white);
    padding: 2.8rem;
    border-radius: 20px;
    box-shadow: var(--about-shadow);
    transition: all var(--transition-smooth, 0.35s ease);
    position: relative;
    overflow: hidden;
    cursor: default;
    border: 1px solid var(--about-border-color);
}

/* Responsive card padding */
@media (max-width: 768px) {
    .about__feature {
        padding: 2.2rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .about__feature {
        padding: 1.8rem;
    }
}

.about__feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--about-card-hover-gradient);
    opacity: 0;
    transition: opacity var(--transition-smooth, 0.35s ease);
    pointer-events: none;
}

/* Hover effects for devices that support hover */
@media (hover: hover) {
    .about__feature:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--about-shadow-hover);
        border-color: var(--about-primary-color);
    }

    .about__feature:hover::before {
        opacity: 1;
    }

    .about__feature:hover .feature__icon {
        transform: rotate(6deg) scale(1.05);
    }
}

/* Touch device feedback */
@media (hover: none) {
    .about__feature:active {
        transform: scale(0.98);
    }
}

/* ICON STYLES */
.feature__icon {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    font-size: 1.8rem;
    box-shadow: var(--about-icon-shadow);
    transition: transform var(--transition-base, 0.3s ease);
    color: #ffffff;
}

/* Responsive icon */
@media (max-width: 768px) {
    .feature__icon {
        width: 65px;
        height: 65px;
        border-radius: 16px;
        font-size: 1.6rem;
        margin-bottom: 1.4rem;
    }
}

@media (max-width: 480px) {
    .feature__icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
}

/* Ensure SVG icons inherit color properly */
.feature__icon svg {
    color: inherit;
    stroke: currentColor;
}

.feature__icon svg path {
    stroke: currentColor;
}

/* ICON COLOR VARIANTS */
.feature__icon--blue {
    background: var(--icon-blue);
}
.feature__icon--green {
    background: var(--icon-green);
}
.feature__icon--purple {
    background: var(--icon-purple);
}
.feature__icon--orange {
    background: var(--icon-orange);
}
.feature__icon--teal {
    background: var(--icon-teal);
}
.feature__icon--red {
    background: var(--icon-red);
}
.feature__icon--gold {
    background: var(--icon-gold);
    color: var(--icon-gold-text);
}

.feature__icon--gold svg,
.feature__icon--gold svg path {
    color: var(--icon-gold-text);
    stroke: currentColor;
}

/* TEXT CONTENT */
.feature__title {
    font-size: 1.45rem;
    color: var(--about-text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color var(--transition-base, 0.3s ease);
}

/* Responsive title */
@media (max-width: 768px) {
    .feature__title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .feature__title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
}

.feature__description {
    color: var(--about-text-light);
    line-height: 1.75;
    font-size: 1rem;
    transition: color var(--transition-base, 0.3s ease);
}

/* Responsive description */
@media (max-width: 480px) {
    .feature__description {
        font-size: 0.9rem;
    }
}

/* ULTRA-WIDE SCREENS */
@media (min-width: 1600px) {
    .about__grid {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* MOBILE SPECIFIC ADJUSTMENTS */
@media (max-width: 640px) {
    .about {
        padding: 2.5rem 0;
    }
}

@media (max-width: 400px) {
    .about {
        padding: 2rem 0;
    }
    
    .about__header {
        margin-bottom: 2rem;
    }
}

/* LANDSCAPE ORIENTATION on Small Screens */
@media (max-height: 500px) and (orientation: landscape) {
    .about {
        padding: 2rem 0;
    }
    
    .about__header {
        margin-bottom: 1.5rem;
    }
    
    .about__grid {
        gap: 1rem;
    }
}

/* PRINT STYLES */
@media print {
    .about {
        padding: 2rem 0;
        background: white !important;
        color: black !important;
    }
    
    .about::before {
        display: none;
    }
    
    .about__feature {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        background: white !important;
    }
    
    .about .section__title,
    .feature__title {
        color: black !important;
    }
    
    .about .section__description,
    .feature__description {
        color: #333 !important;
    }
}

/* REDUCED MOTION for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .about::before {
        animation: none;
    }
}

/* HIGH CONTRAST MODE Support */
@media (prefers-contrast: high) {
    .about {
        --about-border-color: #000;
        --about-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    }
    
    .about__feature {
        border: 2px solid var(--about-border-color);
    }
}

/* FALLBACKS FOR VERY OLD BROWSERS */

/* No CSS Variables Fallback */
.no-css-variables .about {
    background: #f8fafc;
    color: #1e1e2f;
}

.no-css-variables .about__feature {
    background: #ffffff;
    color: #1e1e2f;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.no-css-variables .about .section__title {
    color: #1e1e2f;
}

.no-css-variables .about .section__description,
.no-css-variables .feature__description {
    color: #555555;
}

.no-css-variables .feature__title {
    color: #1e1e2f;
}

.no-css-variables .about .section__label {
    background: #e3f2fd;
    color: #1a73e8;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Icon fallback colors */
.no-css-variables .feature__icon--blue { background: #1a73e8; }
.no-css-variables .feature__icon--green { background: #34a853; }
.no-css-variables .feature__icon--purple { background: #9c27b0; }
.no-css-variables .feature__icon--orange { background: #ff6f00; }
.no-css-variables .feature__icon--teal { background: #00897b; }
.no-css-variables .feature__icon--red { background: #e53935; }
.no-css-variables .feature__icon--gold { background: #fbc02d; color: #1a1a2e; }

