:root {
    --ef-primary: #0d6efd;
    --ef-secondary: #20c997;
    --ef-dark: #0b1220;
    --ef-muted: #64748b;
    --ef-soft: #f4f8ff;
    --ef-border: rgba(13, 110, 253, 0.13);
    --ef-radius: 28px;
}

* {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ef-dark);
    background: #ffffff;
    overflow-x: hidden;
}

main {
    padding-top: 90px;
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-logo {
    width: clamp(112px, 10vw, 132px);
    height: 66px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-logo {
    width: min(170px, 100%);
    height: auto;
    border-radius: 12px;
}

.navbar .nav-link {
    color: #263244;
    font-weight: 600;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--ef-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ef-primary), #6610f2);
    border: 0;
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(13, 110, 253, 0.28);
}

.btn-outline-primary {
    border-color: rgba(13, 110, 253, 0.35);
    color: var(--ef-primary);
}

.hero-section {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    padding: 95px 0 80px;
    background:
        radial-gradient(circle at 15% 20%, rgba(32, 201, 151, 0.14), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(13, 110, 253, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.page-hero {
    padding: 95px 0 70px;
    background:
        radial-gradient(circle at 20% 20%, rgba(32, 201, 151, 0.13), transparent 28%),
        radial-gradient(circle at 80% 5%, rgba(13, 110, 253, 0.12), transparent 35%),
        linear-gradient(180deg, #ffffff, #f7fbff);
}

.contact-hero {
    padding-bottom: 55px;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    color: var(--ef-primary);
    background: rgba(13, 110, 253, 0.08);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-label {
    margin-bottom: 0.75rem;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.section-padding {
    padding: 90px 0;
}

.bg-soft {
    background: var(--ef-soft);
}

.hero-stats .stat-card {
    background: #ffffff;
    border: 1px solid var(--ef-border);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.stat-card strong {
    display: block;
    color: var(--ef-primary);
    font-size: 1.2rem;
}

.stat-card span {
    color: var(--ef-muted);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    border-radius: 44px;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.96), rgba(102, 16, 242, 0.9)),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4), transparent 25%);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(13, 30, 70, 0.18);
}

.hero-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 610px;
    border-radius: 44px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 40px 80px rgba(13, 30, 70, 0.2);
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(7, 17, 31, 0.42));
    pointer-events: none;
}

.hero-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-badge {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    color: #ffffff;
    background: rgba(7, 17, 31, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    backdrop-filter: blur(12px);
}

.hero-photo-badge i {
    color: var(--ef-secondary);
    font-size: 1.7rem;
}

.hero-photo-badge strong,
.hero-photo-badge span {
    display: block;
}

.hero-photo-badge span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.fiber-lines,
.fiber-lines::before,
.fiber-lines::after {
    position: absolute;
    content: "";
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.fiber-lines {
    inset: -90px -30px auto auto;
    width: 390px;
    height: 390px;
}

.fiber-lines::before {
    width: 520px;
    height: 520px;
    top: 95px;
    right: 100px;
}

.fiber-lines::after {
    width: 680px;
    height: 680px;
    top: 210px;
    right: -130px;
}

.visual-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.16);
}

.visual-card i {
    color: var(--ef-primary);
}

.visual-card-main {
    left: 44px;
    right: 44px;
    bottom: 44px;
    padding: 2rem;
}

.visual-card-main i {
    font-size: 3.2rem;
}

.visual-card-main h3 {
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

.visual-card-main p {
    color: var(--ef-muted);
    margin-bottom: 0;
}

.visual-card-small {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.2rem;
    font-weight: 800;
}

.visual-card-small i {
    font-size: 1.7rem;
}

.top-card {
    top: 55px;
    left: 45px;
}

.bottom-card {
    right: 45px;
    top: 185px;
}

.service-card,
.detail-card,
.gallery-card,
.contact-form-card,
.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.service-card {
    padding: 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.12);
}

.service-card i,
.icon-box i {
    font-size: 2rem;
    color: var(--ef-primary);
}

.service-card h3,
.gallery-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 1rem 0 0.65rem;
}

.service-card p,
.gallery-card p {
    color: var(--ef-muted);
    margin-bottom: 0;
}

.image-panel {
    min-height: 460px;
    border-radius: 42px;
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.1), rgba(13, 110, 253, 0.17)),
        repeating-linear-gradient(90deg, rgba(13, 110, 253, 0.12) 0 2px, transparent 2px 62px),
        radial-gradient(circle at 35% 35%, rgba(32, 201, 151, 0.32), transparent 24%),
        #eef6ff;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.12), 0 25px 55px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.image-panel::after {
    content: "Energy Fiber";
    position: absolute;
    left: 32px;
    bottom: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ef-primary), var(--ef-secondary));
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.25);
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 42px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.13);
}

.project-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image figcaption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 0.9rem 1rem;
    color: #ffffff;
    background: rgba(7, 17, 31, 0.82);
    border-radius: 18px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.process-list {
    display: grid;
    gap: 1rem;
}

.process-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--ef-border);
    border-radius: 24px;
    background: #ffffff;
}

.process-item span {
    min-width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    color: var(--ef-primary);
    font-weight: 900;
}

.process-item h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.process-item p {
    margin-bottom: 0;
    color: var(--ef-muted);
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0b1220, #0d6efd 55%, #20c997);
}

.compact-cta {
    padding: 55px 0;
}

.cta-box {
    max-width: 850px;
    margin: 0 auto;
}

.detail-card {
    padding: 2rem;
}

.detail-card h2 {
    font-size: 1.45rem;
    font-weight: 850;
    margin: 1rem 0 0.65rem;
}

.detail-card p {
    color: var(--ef-muted);
}

.icon-box {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(13, 110, 253, 0.09);
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: grid;
    gap: 0.6rem;
}

.check-list li {
    color: #334155;
    display: flex;
    gap: 0.55rem;
}

.check-list li::before {
    content: "✓";
    color: var(--ef-secondary);
    font-weight: 900;
}

.technical-table-wrapper {
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.technical-table thead th {
    background: #0b1220;
    color: #ffffff;
    border: 0;
    padding: 1rem;
}

.technical-table tbody td {
    padding: 1rem;
    color: #334155;
}

.gallery-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-gallery-card {
    grid-column: span 4;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.project-gallery-card.gallery-item-wide {
    grid-column: span 8;
}

.gallery-image-button {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #0b1220;
    cursor: zoom-in;
}

.gallery-item-wide .gallery-image-button {
    height: auto;
    aspect-ratio: 16 / 9;
}

.gallery-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-image-button:hover img {
    transform: scale(1.035);
}

.gallery-zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(7, 17, 31, 0.78);
    border-radius: 50%;
    backdrop-filter: blur(8px);
}

.project-gallery-copy {
    padding: 1.4rem;
}

.project-gallery-copy h2 {
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.project-gallery-copy p {
    margin-bottom: 0;
    color: var(--ef-muted);
}

.gallery-modal .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

.gallery-modal .modal-body img {
    display: block;
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 16px;
    background: #07111f;
}

.gallery-visual {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.92), rgba(32, 201, 151, 0.82));
    position: relative;
    overflow: hidden;
}

.gallery-visual::before {
    content: "";
    position: absolute;
    inset: 30px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: 28px;
}

.gallery-visual i {
    color: #ffffff;
    font-size: 4.8rem;
    z-index: 1;
}

.gallery-visual-2,
.gallery-visual-5 {
    background: linear-gradient(135deg, #0b1220, #0d6efd);
}

.gallery-visual-3,
.gallery-visual-6 {
    background: linear-gradient(135deg, #6610f2, #20c997);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.quality-grid div {
    padding: 1.3rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--ef-border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 800;
}

.quality-grid i {
    color: var(--ef-secondary);
    font-size: 1.4rem;
}

.contact-form-card,
.contact-info-card {
    padding: 2rem;
}

.contact-info-card h2 {
    font-weight: 850;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    color: var(--ef-primary);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 850;
}

.contact-email {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    margin-top: 0.75rem;
    color: var(--ef-primary);
    text-decoration: none;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.contact-email:hover {
    color: #0a58ca;
}

.contact-points {
    display: grid;
    gap: 1rem;
}

.contact-points div {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: #334155;
}

.contact-points i {
    color: var(--ef-secondary);
    font-size: 1.25rem;
}

.form-control,
.form-select {
    border-radius: 16px;
    border-color: rgba(15, 23, 42, 0.12);
    padding: 0.82rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.09);
}

.site-footer {
    background: #07111f;
    color: #ffffff;
}

.footer-title {
    color: #ffffff;
    font-weight: 850;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.62);
}

.footer-links a,
.footer-phone,
.footer-email {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.footer-links a:hover,
.footer-phone:hover,
.footer-email:hover {
    color: #ffffff;
}

.footer-email {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.65rem;
    overflow-wrap: anywhere;
}

.footer-line {
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.footer-legal-link:hover {
    color: #ffffff;
}

.legal-hero {
    padding-bottom: 55px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 105px;
    display: grid;
    gap: 0.55rem;
    padding: 1.4rem;
    background: #ffffff;
    border: 1px solid var(--ef-border);
    border-radius: 22px;
}

.legal-nav strong {
    margin-bottom: 0.35rem;
}

.legal-nav a {
    color: var(--ef-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.legal-nav a:hover {
    color: var(--ef-primary);
}

.legal-card {
    padding: clamp(1.4rem, 4vw, 3.2rem);
    background: #ffffff;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.legal-card section {
    scroll-margin-top: 110px;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(15, 23, 42, 0.09);
    margin-top: 1.4rem;
}

.legal-card h2 {
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.legal-card p {
    color: #475569;
    line-height: 1.75;
}

.legal-intro {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.legal-intro img {
    width: 150px;
    border-radius: 14px;
}

.legal-intro p {
    margin-bottom: 0;
}

.legal-contact {
    display: flex;
    gap: 0.9rem;
    margin-top: 2rem;
    padding: 1.2rem;
    background: var(--ef-soft);
    border-radius: 18px;
}

.legal-contact i {
    color: var(--ef-primary);
    font-size: 1.3rem;
}

.legal-contact p {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    main {
        padding-top: 82px;
    }

    .hero-section,
    .section-padding {
        padding: 65px 0;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-visual {
        min-height: 430px;
        border-radius: 32px;
    }

    .hero-photo {
        aspect-ratio: 4 / 5;
        max-height: 520px;
        border-radius: 32px;
    }

    .project-image {
        max-height: 520px;
    }

    .project-gallery-card,
    .project-gallery-card.gallery-item-wide {
        grid-column: span 6;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-nav strong {
        grid-column: 1 / -1;
    }

    .bottom-card {
        top: 150px;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .brand-logo {
        width: 116px;
        height: 58px;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.35rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-photo {
        width: min(100%, 440px);
        max-height: none;
        margin-inline: auto;
    }

    .project-gallery-card,
    .project-gallery-card.gallery-item-wide {
        grid-column: 1 / -1;
    }

    .gallery-image-button,
    .gallery-item-wide .gallery-image-button {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-image {
        aspect-ratio: 4 / 3;
        min-height: 0;
        border-radius: 28px;
    }

    .hero-photo-badge {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .legal-nav {
        display: none;
    }

    .legal-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .visual-card-main {
        left: 22px;
        right: 22px;
        bottom: 22px;
        padding: 1.4rem;
    }

    .visual-card-small {
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
    }

    .top-card {
        top: 28px;
        left: 22px;
    }

    .bottom-card {
        right: 22px;
        top: 120px;
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card,
    .contact-info-card,
    .detail-card {
        padding: 1.35rem;
        border-radius: 22px;
    }
}

@media (max-width: 479.98px) {
    .brand-logo {
        width: 104px;
        height: 52px;
    }

    .hero-photo {
        aspect-ratio: 3 / 4;
        border-radius: 26px;
    }

    .hero-photo-badge {
        left: 12px;
        right: 12px;
        bottom: 12px;
        gap: 0.65rem;
        padding: 0.8rem 0.9rem;
        border-radius: 16px;
    }

    .hero-photo-badge i {
        font-size: 1.35rem;
    }

    .hero-photo-badge span {
        font-size: 0.8rem;
    }

    .project-image figcaption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
        border-radius: 14px;
    }

    .project-gallery {
        gap: 1rem;
    }

    .gallery-image-button,
    .gallery-item-wide .gallery-image-button {
        aspect-ratio: 1 / 1;
    }

    .gallery-modal .modal-body {
        padding: 0.5rem;
    }

    .gallery-modal .modal-body img {
        max-height: 70vh;
    }

    .legal-intro img {
        width: min(130px, 100%);
    }
}
