/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

/* Color Palette & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden; 
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f141c;
    color: #e2e8f0;
    line-height: 1.6;
    position: relative;
}

/* BACKGROUND LAYER */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -999;
    pointer-events: none;
    overflow: hidden;
}

.site-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.3);
}

.site-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 20, 28, 0.88), rgba(15, 20, 28, 0.98));
}

/* NAVIGATION (Sticky) */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(15, 20, 28, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    color: #b3c2e6;
    letter-spacing: 1px;
}

.logo-img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(179, 194, 230, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: #f29ec1;
}

/* PAGE WRAPPER */
.page-wrapper {
    padding-top: 60px; 
    padding-bottom: 60px;
    padding-left: 5%;
    padding-right: 5%;
    max-width: 1350px; 
    width: 100%;
    margin: 0 auto; 
    min-height: calc(100vh - 90px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-content { width: 100%; margin-bottom: 30px; }
.header-content h1 { font-weight: 800; font-size: clamp(3rem, 5vw, 4.5rem); color: #f8fafc; letter-spacing: -1.5px; margin-bottom: 1.2rem; }
.header-content p { color: #cbd5e1; font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 850px; }

/* SIMPLIFIED 2-COLUMN BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto; 
    gap: 2rem; 
    width: 100%;
    margin: 0 auto; 
}

.bento-item {
    background: rgba(30, 41, 59, 0.6); 
    border: 1px solid #334155;
    border-radius: 30px; 
    padding: 3.5rem; 
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: #b3c2e6;
    background: rgba(30, 41, 59, 0.8);
}

.item-box {
    align-items: center;
    justify-content: center;
    background: rgba(179, 194, 230, 0.05); 
    display: flex;
}

.wide-link {
    grid-column: span 2;
    padding: 2.5rem 3.5rem; 
}

.spotlight-badge {
    display: inline-block;
    align-self: flex-start;
    border: 2px solid #b3c2e6;
    color: #b3c2e6;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.item-hero h1 { font-weight: 800; font-size: clamp(2.4rem, 3.5vw, 3.2rem); color: #f5ecdf; letter-spacing: -1px; line-height: 1.15; margin-bottom: 1.2rem; }
.item-hero p { color: #cbd5e1; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.5; max-width: 95%; }
.wide-link h3 { color: #f8fafc; font-size: clamp(1.6rem, 2vw, 2rem); font-weight: 600; margin-bottom: 0.8rem; }
.wide-link p { color: #94a3b8; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.4; max-width: 90%; }

/* CARDBOARD BOX 3D FLAPS */
.box-container {
    perspective: 1500px;
    width: 100%; 
    max-width: 320px; 
    height: 250px; 
    margin: 0 auto; 
    position: relative;
}

.cardboard-box {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* DARKER DEEP PURPLE GRADIENT */
    background: linear-gradient(rgba(45, 20, 65, 0.85), rgba(15, 5, 25, 0.95)), url('products.jpg') center/150%;
    background-color: transparent; 
    border: 6px solid #8c5a35; 
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.box-tape {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 55px; height: 100%;
    background-color: rgba(235, 225, 205, 0.7);
    border-left: 2px dashed rgba(188, 138, 95, 0.8);
    border-right: 2px dashed rgba(188, 138, 95, 0.8);
    z-index: 10; transition: opacity 0.3s ease;
}

.box-flap {
    position: absolute;
    background-image: url('cardboard.jpg');
    background-size: cover;
    background-position: center;
    background-color: #d4a373; 
    background-blend-mode: multiply; 
    border: 2px solid #8c5a35;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flap-top { top: 0; left: 0; width: 100%; height: 50%; transform-origin: top; z-index: 5; }
.flap-bottom { bottom: 0; left: 0; width: 100%; height: 50%; transform-origin: bottom; z-index: 5; }
.flap-left { top: 0; left: 0; width: 50%; height: 100%; transform-origin: left; z-index: 6; }
.flap-right { top: 0; right: 0; width: 50%; height: 100%; transform-origin: right; z-index: 6; }

.box-inside {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.box-link {
    color: #fcfcfc;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
    text-align: center;
}

.item-box:hover .flap-top { transform: rotateX(130deg); }
.item-box:hover .flap-bottom { transform: rotateX(-130deg); }
.item-box:hover .flap-left { transform: rotateY(-130deg); }
.item-box:hover .flap-right { transform: rotateY(130deg); }
.item-box:hover .box-tape { opacity: 0; }
.item-box:hover .cardboard-box {
    transform: translateY(-10px) rotateX(15deg);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.6);
}
.item-box:hover .box-inside {
    opacity: 1;
    transition-delay: 0.2s;
    z-index: 20;
}

/* --------------------------------------
   "What's Inside" Advanced Graphic Tree
--------------------------------------- */
.tree-section {
    padding: 0 5% 120px 5%;
    background: transparent;
    width: 100%;
}

.tree-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.tree-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, #b3c2e6, #f29ec1, #b3c2e6);
    top: 0;
    bottom: 120px;
    left: 50%;
    margin-left: -3px;
    z-index: 1;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(242, 158, 193, 0.3);
}

.tree-node {
    padding: 30px 50px;
    position: relative;
    width: 50%;
    z-index: 2;
}

.tree-left { left: 0; }
.tree-right { left: 50%; }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(242, 158, 193, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(242, 158, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 158, 193, 0); }
}

.tree-node::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #0f141c; 
    border: 5px solid #f29ec1;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    animation: pulseGlow 2s infinite;
}

.tree-left::after { right: -12px; }
.tree-right::after { left: -12px; }

.tree-content {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 20, 28, 0.95));
    border: 1px solid rgba(179, 194, 230, 0.1);
    border-top: 1px solid rgba(179, 194, 230, 0.3);
    border-left: 1px solid rgba(179, 194, 230, 0.3);
    border-radius: 28px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.tree-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(242, 158, 193, 0.15);
    border-top: 1px solid rgba(242, 158, 193, 0.5);
    border-left: 1px solid rgba(242, 158, 193, 0.5);
}

.tree-icon { font-size: 2.5rem; margin-bottom: 1rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }
.tree-content h3 { color: #f8fafc; font-size: 1.6rem; font-weight: 800; margin-bottom: 1.2rem; letter-spacing: -0.5px; }
.tree-content ul { list-style-type: none; padding-left: 0; }
.tree-content li { color: #cbd5e1; font-size: 1.05rem; margin-bottom: 0.6rem; position: relative; padding-left: 28px; }
.tree-content li::before { content: '→'; position: absolute; left: 0; color: #b3c2e6; font-weight: 800; transition: color 0.3s; }
.tree-content:hover li::before { color: #f29ec1; }

.tree-root { display: flex; justify-content: center; margin-top: 5rem; position: relative; z-index: 4; }

.community-box {
    background: linear-gradient(145deg, rgba(179, 194, 230, 0.1), rgba(15, 20, 28, 0.95));
    border: 2px solid #b3c2e6;
    border-radius: 40px;
    padding: 3rem 5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(179, 194, 230, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 100%;
}

.community-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 70px rgba(179, 194, 230, 0.4);
    border-color: #f29ec1;
}

.community-box h2 { color: #f8fafc; font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -1.5px; margin-top: 10px; }
.community-box p { color: #f29ec1; font-size: clamp(0.9rem, 2vw, 1.2rem); font-weight: 600; text-transform: uppercase; letter-spacing: 3px; margin-top: 0.5rem; }

/* --------------------------------------
   OUR PROGRESS & GALLERY
--------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 20, 28, 0.8));
    border: 1px solid rgba(179, 194, 230, 0.2);
    border-radius: 25px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #f29ec1;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #b3c2e6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    border: 1px solid rgba(179, 194, 230, 0.2);
    background: rgba(30, 41, 59, 0.6);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 20, 28, 0.7) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --------------------------------------
   CORE TEAM STRICT 3-COLUMN UNIFORM GRID
--------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 30px;
    padding: 3rem 2rem;
    backdrop-filter: blur(12px);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #b3c2e6;
    background: rgba(30, 41, 59, 0.85);
}

.team-photo-frame {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #b3c2e6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.2rem;
    background-color: #1e293b;
    flex-shrink: 0;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-accent-bar {
    width: 40px;
    height: 4px;
    background-color: #f29ec1;
    margin: 0 auto 1rem auto;
    border-radius: 2px;
}

.team-card h3 {
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.team-role {
    color: #b3c2e6;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-bio {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.team-contact-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #f29ec1;
    color: #f29ec1;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.team-contact-btn:hover {
    background: #f29ec1;
    color: #0f141c;
    box-shadow: 0 0 15px rgba(242, 158, 193, 0.5);
}

/* --------------------------------------
   FOOTER & SOCIAL LINKS
--------------------------------------- */
.site-footer {
    padding: 2.5rem 5%;
    border-top: 1px solid rgba(179, 194, 230, 0.1);
    background: rgba(15, 20, 28, 0.95);
    margin-top: auto;
}

.footer-content {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: #b3c2e6;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #f29ec1;
    transform: translateY(-3px);
}

/* ON-LOAD FADE-IN ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scroll-reveal.show { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeIn 1.0s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }

/* RESPONSIVE MOBILE FIXES */
@media screen and (max-width: 1024px) {
    header { flex-direction: column; gap: 15px; }
    .bento-grid { grid-template-columns: 1fr; }
    .wide-link { grid-column: span 1; }
    .team-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    .tree-container::after { left: 31px; }
    .tree-node { width: 100%; padding: 20px 15px 20px 70px; } 
    .tree-right { left: 0; }
    .tree-left::after, .tree-right::after { left: 19px; }
    .tree-content { padding: 1.5rem; }
    .community-box { padding: 2.5rem 1.5rem; }
    .footer-content { flex-direction: column-reverse; text-align: center; }
}