/* =============================================================
   3D Effects & Component Styles
   ============================================================= */

/* ---------- Tilt / 3D card ---------- */
.tilt {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s;
    will-change: transform;
}
.tilt:hover {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(8px);
    box-shadow: var(--shadow-3);
}
.tilt__inner { transform: translateZ(40px); }
.tilt__icon  { transform: translateZ(60px); }
.tilt__title { transform: translateZ(30px); }
.tilt__text  { transform: translateZ(20px); }

/* ---------- Floating 3D shapes ---------- */
.float-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    transform-style: preserve-3d;
}
.float-shape--1 { width: 220px; height: 220px; top: -40px; right: -60px;
    background: radial-gradient(circle at 30% 30%, var(--c-primary), transparent 70%);
    opacity: 0.5;
}
.float-shape--2 { width: 160px; height: 160px; bottom: 20px; left: -40px;
    background: radial-gradient(circle at 70% 30%, var(--c-accent), transparent 70%);
    opacity: 0.35; animation-delay: -2s;
}
.float-shape--3 { width: 90px; height: 90px; top: 50%; right: 10%;
    background: radial-gradient(circle at 30% 30%, #fff, transparent 70%);
    opacity: 0.25; animation-delay: -4s;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-30px) rotate(8deg); }
}

/* ---------- Hero 3D Cube ---------- */
.hero-cube {
    width: 320px; height: 320px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeSpin 22s linear infinite;
    margin: 0 auto;
}
.hero-cube__face {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    border: 1.5px solid rgba(201, 163, 93, 0.45);
    background: linear-gradient(135deg, rgba(201, 163, 93, 0.18), rgba(10, 31, 68, 0.4));
    backdrop-filter: blur(10px);
    box-shadow: 0 0 60px rgba(201, 163, 93, 0.15) inset, 0 0 40px rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
}
.hero-cube__face::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    animation: shine 4s linear infinite;
}
.hero-cube__face--front  { transform: translateZ(160px); }
.hero-cube__face--back   { transform: rotateY(180deg) translateZ(160px); }
.hero-cube__face--right  { transform: rotateY(90deg)  translateZ(160px); }
.hero-cube__face--left   { transform: rotateY(-90deg) translateZ(160px); }
.hero-cube__face--top    { transform: rotateX(90deg)  translateZ(160px); }
.hero-cube__face--bottom { transform: rotateX(-90deg) translateZ(160px); }
.hero-cube__face .fa-solid,
.hero-cube__face .fa-brands { font-size: 4.5rem; color: var(--c-primary); }
@keyframes cubeSpin {
    to { transform: rotateX(360deg) rotateY(360deg); }
}
@keyframes shine { to { transform: translateX(120%); } }

.hero-orbit {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    pointer-events: none;
}
.hero-orbit__ring {
    position: absolute;
    border: 1px dashed rgba(201, 163, 93, 0.25);
    border-radius: 50%;
    animation: ringSpin 30s linear infinite;
}
.hero-orbit__ring--1 { width: 420px; height: 420px; }
.hero-orbit__ring--2 { width: 540px; height: 540px; animation-duration: 50s; animation-direction: reverse; }
.hero-orbit__ring--3 { width: 680px; height: 680px; animation-duration: 80s; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.hero-orbit__chip {
    position: absolute;
    width: 70px; height: 70px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.8), rgba(7, 20, 46, 0.9));
    border: 1px solid var(--c-primary);
    border-radius: 50%;
    color: var(--c-primary);
    font-size: 1.4rem;
    box-shadow: 0 0 30px rgba(201, 163, 93, 0.4);
    animation: chipFloat 4s ease-in-out infinite;
}
.hero-orbit__chip:nth-child(1) { top: -35px; left: 50%; transform: translateX(-50%); }
.hero-orbit__chip:nth-child(2) { right: -35px; top: 50%; transform: translateY(-50%); animation-delay: -1s; }
.hero-orbit__chip:nth-child(3) { bottom: -35px; left: 50%; transform: translateX(-50%); animation-delay: -2s; }
.hero-orbit__chip:nth-child(4) { left: -35px; top: 50%; transform: translateY(-50%); animation-delay: -3s; }
@keyframes chipFloat { 0%,100% { transform: translate(var(--tx, -50%), var(--ty, 0)) scale(1); } 50% { transform: translate(var(--tx, -50%), var(--ty, 0)) scale(1.1); } }

/* ---------- Hero image with parallax & glow ---------- */
.hero-img-wrap {
    position: relative;
    width: 360px; height: 460px;
    border-radius: var(--r-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-12deg) rotateX(6deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 163, 93, 0.2);
    transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.hero-img-wrap:hover { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) scale(1.02); }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 12s ease; }
.hero-img-wrap:hover img { transform: scale(1.1); }
.hero-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 20, 46, 0.85) 100%);
}
.hero-img-wrap__badge {
    position: absolute; bottom: 24px; left: 24px; right: 24px;
    z-index: 2;
    background: rgba(7, 20, 46, 0.6); backdrop-filter: blur(16px);
    border: 1px solid var(--c-border);
    padding: 1rem 1.2rem; border-radius: var(--r-md);
    display: flex; gap: 1rem; align-items: center;
}
.hero-img-wrap__badge i { font-size: 1.6rem; color: var(--c-primary); }
.hero-img-wrap__badge strong { color: #fff; display: block; }
.hero-img-wrap__badge span { color: var(--c-text-mute); font-size: 0.85rem; }

.hero-img-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201, 163, 93, 0.4), transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; } }

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    padding: 1.6rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: rgba(7, 20, 46, 0.5);
}
.marquee__track {
    display: flex; gap: 4rem;
    animation: marquee 35s linear infinite;
    width: max-content;
}
.marquee__item {
    display: flex; align-items: center; gap: 0.8rem;
    font-family: var(--f-head); font-size: 1.6rem; color: var(--c-text-mute);
    white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.15em;
}
.marquee__item i { color: var(--c-primary); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.service-card {
    display: flex; flex-direction: column;
    height: 100%;
    text-align: left;
}
.service-card .card__icon { width: 78px; height: 78px; font-size: 1.8rem; }
.service-card ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.service-card ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--c-text-mute); font-size: 0.92rem;
}
.service-card ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 0.55rem;
    color: var(--c-primary); font-size: 0.85rem;
}

/* ---------- Products ---------- */
.product-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    transition: all var(--t-med);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); border-color: var(--c-primary); }
.product-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}
.product-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.12); }
.product-card__img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(7, 20, 46, 0.7) 100%);
}
.product-card__tag {
    position: absolute; top: 16px; left: 16px;
    z-index: 2;
    padding: 0.35rem 0.8rem; border-radius: 50px;
    background: rgba(201, 163, 93, 0.9); color: #0a1f44;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.product-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-card__title { color: #fff; font-size: 1.2rem; margin-bottom: 0.4rem; }
.product-card__text { color: var(--c-text-mute); font-size: 0.9rem; flex: 1; }
.product-card__link {
    margin-top: 1rem;
    color: var(--c-primary); font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: gap var(--t-fast);
}
.product-card__link:hover { gap: 0.8rem; }

/* ---------- Gallery / Filter ---------- */
.gallery-filter {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
    margin-bottom: 2.5rem;
}
.gallery-filter button {
    padding: 0.6rem 1.2rem; border-radius: 50px;
    background: var(--c-glass); color: var(--c-text);
    border: 1px solid var(--c-border);
    cursor: pointer; font-size: 0.9rem;
    transition: all var(--t-fast);
}
.gallery-filter button:hover, .gallery-filter button.active {
    background: var(--c-primary); color: #0a1f44; border-color: var(--c-primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.gallery-item {
    position: relative; overflow: hidden;
    border-radius: var(--r-md);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 1px solid var(--c-border);
    transition: all var(--t-med);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--c-primary); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item__overlay {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 20, 46, 0.9));
    opacity: 0; transition: opacity var(--t-med);
    padding: 1rem; text-align: center;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay h4 { color: #fff; margin: 0 0 0.3rem; font-size: 1.1rem; }
.gallery-item__overlay p  { color: var(--c-primary); font-size: 0.85rem; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(5, 13, 32, 0.95);
    display: none; place-items: center; padding: 2rem;
    cursor: zoom-out;
    backdrop-filter: blur(8px);
}
.lightbox.open { display: grid; animation: fadeIn 0.3s; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.lightbox__close {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px; display: grid; place-items: center;
    background: rgba(255,255,255,0.1); border: 1px solid var(--c-border);
    color: #fff; border-radius: 50%;
    cursor: pointer; transition: all var(--t-fast);
}
.lightbox__close:hover { background: var(--c-primary); color: #0a1f44; transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Testimonials / Swiper ---------- */
.testimonial {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 2rem;
    margin: 0.5rem;
    position: relative;
}
.testimonial::before {
    content: '\201C';
    position: absolute; top: -20px; left: 24px;
    font-family: var(--f-head); font-size: 5rem; color: var(--c-primary);
    line-height: 1;
}
.testimonial__stars { color: var(--c-primary); margin-bottom: 1rem; }
.testimonial__text { color: var(--c-text); font-size: 1rem; font-style: italic; margin-bottom: 1.5rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial__avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
    display: grid; place-items: center; color: #0a1f44; font-weight: 700;
}
.testimonial__name { color: #fff; font-weight: 600; }
.testimonial__role { color: var(--c-text-mute); font-size: 0.85rem; }

.swiper-pagination-bullet { background: var(--c-text-mute) !important; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--c-primary) !important; opacity: 1; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-2);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image__stat {
    position: absolute; bottom: 24px; right: 24px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
    color: #0a1f44; padding: 1.4rem 1.6rem; border-radius: var(--r-md);
    text-align: center; box-shadow: var(--shadow-2);
}
.about-image__stat strong { display: block; font-family: var(--f-head); font-size: 2.2rem; line-height: 1; }
.about-image__stat span { font-size: 0.85rem; font-weight: 600; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.about-feature { display: flex; gap: 0.8rem; }
.about-feature__icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    display: grid; place-items: center;
    color: var(--c-primary);
}
.about-feature h5 { color: #fff; font-size: 1rem; margin: 0 0 0.2rem; }
.about-feature p  { color: var(--c-text-mute); font-size: 0.85rem; margin: 0; }

/* Values / timeline */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--r-lg);
    background: var(--c-card);
    border: 1px solid var(--c-border);
    transition: all var(--t-med);
}
.value-card:hover { transform: translateY(-6px); border-color: var(--c-primary); }
.value-card__icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.2rem;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
    color: #0a1f44;
    border-radius: 50%;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(201, 163, 93, 0.4);
}

/* ---------- License table ---------- */
.license-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.license-table th, .license-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.95rem;
}
.license-table th {
    background: linear-gradient(135deg, rgba(201, 163, 93, 0.18), rgba(201, 163, 93, 0.05));
    color: var(--c-primary);
    font-family: var(--f-head);
    font-weight: 600;
    width: 38%;
}
.license-table tr:last-child th, .license-table tr:last-child td { border-bottom: 0; }
.license-table tr:hover td { background: rgba(201, 163, 93, 0.05); }

.license-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.license-badge {
    flex: 1 1 200px;
    padding: 1.2rem;
    border-radius: var(--r-md);
    background: var(--c-card);
    border: 1px solid var(--c-border);
    display: flex; gap: 0.8rem; align-items: center;
}
.license-badge i { color: var(--c-primary); font-size: 1.3rem; }
.license-badge strong { color: #fff; display: block; }
.license-badge span { color: var(--c-text-mute); font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.contact-card {
    padding: 1.5rem;
    border-radius: var(--r-md);
    background: var(--c-card);
    border: 1px solid var(--c-border);
    transition: all var(--t-med);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--c-primary); }
.contact-card__icon {
    width: 50px; height: 50px;
    display: grid; place-items: center;
    background: rgba(201, 163, 93, 0.15);
    color: var(--c-primary);
    border-radius: 50%;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.contact-card h5 { color: #fff; font-size: 1rem; margin: 0 0 0.4rem; }
.contact-card p, .contact-card a { color: var(--c-text-mute); font-size: 0.9rem; margin: 0; }

.map-wrap {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-2);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.6); }

/* ---------- Process / Timeline ---------- */
.process { position: relative; }
.process::before {
    content: '';
    position: absolute; top: 30px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--c-primary), transparent);
    opacity: 0.3;
}
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.process-step {
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}
.process-step__num {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
    color: #0a1f44;
    border-radius: 50%;
    font-family: var(--f-head);
    font-size: 1.4rem; font-weight: 800;
    box-shadow: 0 0 0 6px rgba(201, 163, 93, 0.15), 0 10px 25px rgba(201, 163, 93, 0.3);
}
.process-step h4 { color: #fff; font-size: 1.1rem; margin: 0 0 0.4rem; }
.process-step p  { color: var(--c-text-mute); font-size: 0.88rem; margin: 0; }

/* ---------- Animations helpers ---------- */
.reveal-up   { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal-up.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }

.glow-ring {
    position: absolute; inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, transparent 70%, var(--c-primary));
    filter: blur(8px);
    opacity: 0; transition: opacity var(--t-med);
    z-index: -1;
    animation: ringRotate 6s linear infinite;
}
.glow-ring:hover, *:hover > .glow-ring { opacity: 0.6; }
@keyframes ringRotate { to { transform: rotate(360deg); } }
