@import url('variables.css');

/* ============================================================
   ABOUT INTRO — 3D Animated & Gorgeous
   ============================================================ */
.about-intro-section {
    background: #fdfdfd;
    padding: 130px 6%;
    position: relative;
    overflow: hidden;
}
/* 3D Animated Floating Orbs */
.about-intro-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb1 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
.about-intro-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb2 15s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}
@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}
@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -40px) scale(1.15); }
}

.about-intro-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 90px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hierarchy & 3D Typography */
.about-intro-text h4 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.25;
    background: linear-gradient(135deg, #111111 0%, #444444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.05); /* Subtle depth */
}
.about-intro-text h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab);
    border-radius: 10px;
}
.about-intro-text p {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 2;
    color: #4a4a4a;
    margin-bottom: 35px;
    font-weight: 400;
}
.about-intro-text em {
    color: #000;
    font-style: italic;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
}

/* 3D Perspective Image Block */
.about-intro-img {
    position: relative;
    perspective: 1500px; /* Enforces 3D space */
    padding: 20px;
}
/* Floating Glassmorphism Layer Behind */
.about-intro-img::before {
    content: '';
    position: absolute;
    top: 5%;
    right: -5%;
    width: 90%;
    height: 90%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    z-index: 0;
    transform: rotateY(-10deg) translateZ(-50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* The 3D Image Itself */
.about-intro-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 85vh; /* Massive height like the slider */
    object-fit: cover;
    border-radius: 10px;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg) scale(0.95);
    box-shadow: -20px 30px 50px rgba(0,0,0,0.15);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Sensational Hover Effect */
.about-intro-img:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05) translateZ(80px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
}
.about-intro-img:hover::before {
    transform: rotateY(0deg) translateZ(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
/* Ambient floor shadow for realism */
.about-intro-img::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20%;
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}
.about-intro-img:hover::after {
    bottom: -35px;
    width: 70%;
    left: 15%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, transparent 70%);
}

@media (max-width: 900px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-intro-section { padding: 80px 5%; }
    .about-intro-text h4 { font-size: 2.2rem; }
    .about-intro-img { perspective: 1000px; padding: 0; }
    .about-intro-img img { min-height: 400px; transform: rotateY(0deg) scale(1); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
    .about-intro-img::before { transform: rotateY(0deg); right: 0; }
    .about-intro-img:hover img { transform: translateY(-10px) scale(1.02); }
}

/* ============================================================
   HISTORY SECTION - Framer Style Card
   ============================================================ */
.history-wrapper {
    padding: 140px 5%;
    background: #ffffff; /* Clean bg for the card to float in */
}
.history-section {
    background-image: url('../images/projects/about.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Pure CSS Parallax */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 120px 5%;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    max-width: 1600px;
    margin: 0 auto;
}
.history-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Soft dark gradient for readability */
    background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%);
    z-index: 1;
}
.history-section .container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}
.history-section .section-title {
    font-size: clamp(3rem, 6vw, 4.5rem) !important;
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    font-weight: 500;
}
.history-section .lead {
    font-size: 1.35rem;
    line-height: 2;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    text-align: justify;
}
#counter-section {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.counter-box {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 50px 30px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}
.counter-box:hover {
    transform: translateY(-15px);
    background: rgba(255,255,255,0.08);
}
.counter-box .counter-number {
    font-family: var(--font-primary);
    font-size: 4rem !important;
    color: #d4af37;
    margin-bottom: 10px;
    line-height: 1;
}
.counter-box p {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   QUOTE SECTION - Framer Typography Focus
   ============================================================ */
.quote-section {
    padding: 160px 6%;
    background: #FAFAFC;
    display: flex;
    justify-content: center;
}
.quote-content {
    max-width: 1200px;
}
.quote-text {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 auto 40px;
}
.quote-author {
    font-size: 1.1rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* ============================================================
   VISION & MISSION - Ultra Modern Editorial
   ============================================================ */
.vision-mission-section {
    padding: 160px 5%;
    background: #fff;
    overflow: hidden;
}
.vm-row {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 120px;
    gap: 80px;
}
.vm-row.reverse {
    flex-direction: row-reverse;
}
.vm-image {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 700px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}
.vm-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.vm-image:hover img {
    transform: scale(1.06);
}

/* Animated Inner Border on Hover */
.vm-image::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 10;
}
.vm-image:hover::before {
    opacity: 1;
    transform: scale(1);
}
.vm-text-wrap {
    flex: 1;
    position: relative;
    padding: 40px 0;
}
.vm-watermark {
    position: absolute;
    top: -60px;
    left: -30px;
    font-family: var(--font-primary);
    font-size: clamp(8rem, 15vw, 12rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0,0,0,0.03);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}
.vm-text {
    position: relative;
    z-index: 1;
}
.vm-text h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: #111;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    font-weight: 400;
}
.vm-text p {
    font-size: 1.35rem;
    line-height: 2;
    color: #444;
    max-width: 95%;
    font-weight: 300;
}
.vm-accent {
    width: 80px;
    height: 2px;
    background: #d4af37;
    margin-bottom: 40px;
}

/* ============================================================
   VALUES SECTION - Gorgeous Bento Grid
   ============================================================ */
.values-section {
    padding: 140px 5%;
    background: #FAFAFC;
}
.values-section .section-title {
    font-size: clamp(3rem, 5vw, 4rem) !important;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -0.02em;
    color: #111;
}
.values-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}
.value-bento-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 10px;
    padding: 60px 45px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.value-bento-card:hover {
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.2);
}

/* Animated Inner Border on Hover */
.value-bento-card::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 10;
}
.value-bento-card:hover::before {
    opacity: 1;
    transform: scale(1);
}
.value-bento-icon {
    width: 70px;
    height: 70px;
    background: #FAFAFC;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
    margin-bottom: 40px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
}
.value-bento-card:hover .value-bento-icon {
    transform: scale(1.15) rotate(-5deg);
    background: #fdfaf3; /* light gold tint */
}
.value-bento-icon img {
    height: 35px;
}
.value-bento-card h5 {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.value-bento-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

@media (max-width: 992px) {
    .vision-mission-section {
        padding: 80px 5%;
    }
    .vm-row,
    .vm-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }
    .vm-row.reverse .vm-text-wrap {
        padding-left: 0 !important;
    }
    .vm-image {
        height: 400px;
        width: 100%;
    }
    .vm-text h2 {
        font-size: 2.5rem;
    }
    .vm-text p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    .vm-watermark {
        font-size: 6rem;
        top: -30px;
        left: 0;
    }
    .values-bento-grid {
        grid-template-columns: 1fr;
    }
}
