/* ==========================================================================
   Imports
   ========================================================================== */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
    --primary-color: #2187c7;
    --primary-color-dark: #1d9be9;
    --primary-color-light: #6dcff6;
    --orange-color: #ff8400;
    --orange-color-dark: #f77f00;
    --orange-color-light: #ffbe6f;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #e8e8e8;
    --dark-color: #212529;
    --font-family: 'Poppins', sans-serif;
    --bg-color-primary: rgba(39, 177, 243, 0.8);
    --bg-color-primary-dark: rgba(29, 155, 233, 0.8);
    --bg-color-secondary: rgba(251, 154, 49, 0.8);
    --bg-color-secondary-dark: rgba(247, 127, 0, 0.8);
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
html,
body {
    overflow-x: hidden !important;
    width: 100vw !important;
    position: relative;
}

body {
    font-family: var(--font-family);
    background: url('/assets/images/home-banner-g.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--dark-color);
    font-weight: 500;
    background-color: black !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.mt-15 {
    margin-top: 20vh !important;
}

.primary-text {
    color: var(--primary-color);
    transition: all 0.5s ease;
}

.secondary-text {
    color: var(--orange-color);
}

.orange-text {
    color: var(--orange-color);
}

.text-xsmall {
    font-size: 0.8rem;
}

.opacity-text {
    opacity: 0.7;
}

.text-shadow {
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
}

.text-shadow-sm {
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}

.text-shadow-white {
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color-dark) 45%, var(--orange-color-dark) 55%, var(--orange-color) 100%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Navbar */
.custom-navbar {
    background-color: rgba(0, 0, 0, 0.20);
    border-radius: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
    margin: 0.5rem 1rem;
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    color: white !important;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"%3E%3Cpath stroke="white" stroke-width="2" stroke-linecap="round" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}

.dropdown-menu {
    background-color: rgba(0, 0, 0, 1);
    border-radius: 1rem;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
}

.dropdown-item {
    color: white;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
}

/* Cards */
.col {
    perspective: 1200px;
}

.card {
    position: relative;
    transition: transform 1000ms;
    transform-style: preserve-3d;
    border-radius: 2rem;
    background: none;
    height: 200px;
    width: 100%;
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.front,
.back {
    height: 100%;
    width: 100%;
    border-radius: 2rem;
    position: absolute;
    backface-visibility: hidden;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 1), 0 4px 8px rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.front {
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.back {
    background-color: rgb(255, 255, 255);
    transform: rotateY(180deg);
}

.card-glass {
    background: rgba(0, 0, 0, 0.1);
    border: rgba(255, 255, 255, 0.5) 2px solid;
    border-radius: 2rem;
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3), 0px 4px 8px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease;
    padding: 1rem;
}

.card-cloud {
    background: rgba(255, 255, 255, 1);
    border: rgba(255, 255, 255, 0.5) 2px solid;
    border-radius: 2rem;
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3), 0px 4px 8px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease;
    padding: 1rem;
}

/* Buttons */
.btn-glass {
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.4) 100%);
    border: rgba(255, 255, 255, 0.5) 1px solid;
    box-shadow: 0 0px 4px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
    color: white;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    color: white;
    border: rgba(255, 255, 255, 0.3) 1px solid;
    box-shadow: 0 0px 8px rgba(255, 255, 255, 0.8);
}

.btn-gradient {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--orange-color) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Inputs */
.input {
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.4) 100%);
    border: rgba(255, 255, 255, 0.5) 1px solid;
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3), 0px 4px 8px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease;
    color: white !important;
    padding: .5rem;
    border-radius: .5rem;
    transition: all 0.3s ease;
}

.input::placeholder {
    color: white;
}

.input:focus {
    outline: none;
    border: rgba(255, 255, 255, 0.7) 1px solid;
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.5), 0px 4px 8px rgba(255, 255, 255, 0.5);
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.4) 100%);
    transition: all 0.3s ease;
    color: white !important;
}

.inline-input::placeholder {
    color: white;
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.glass-table {
    background: linear-gradient(30deg, rgba(42, 42, 42, 0.3), rgba(42, 42, 42, 0.1), rgba(42, 42, 42, 0.2), rgba(42, 42, 42, 0.1), rgba(42, 42, 42, 0.3)) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.12), 0 1.5px 8px rgba(0, 0, 0, 0.18) !important;
    color: #e0e0e0 !important;
    overflow: hidden;
}

.glass-table th,
.glass-table td {
    background: rgba(30, 30, 30, 0.45) !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.glass-table th {
    background: rgba(30, 30, 30, 0.45);
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.glass-table,
.table-hover {
    background: transparent !important;
}

th,
td {
    padding: 8px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.table-wrapper {
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 20px;
    overflow-x: auto;
}

/* Accordion */
.accordion-item {
    background: rgba(0, 0, 0, 0.1);
    border: rgba(255, 255, 255, 0.5) 1px solid;
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3), 0px 4px 8px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease;
    color: white;
}

.accordion-item:first-child {
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    border-bottom-left-radius: 0rem;
    border-bottom-right-radius: 0rem;
}

.accordion-item:nth-child(2) {
    border-top-left-radius: 0rem;
    border-top-right-radius: 0rem;
    border-bottom-left-radius: 0rem;
    border-bottom-right-radius: 0rem;
}

.accordion-item:last-child {
    border-top-left-radius: 0rem;
    border-top-right-radius: 0rem;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

button.accordion-button::after {
    filter: invert(1);
}

button.accordion-button:focus {
    box-shadow: none;
}

/* ==========================================================================
   Page-Specific Styles
   ========================================================================== */

/* Home Banner */
.home-banner {
    height: 90vh;
    margin-top: 10vh;
}

.header-text {
    font-size: 7rem;
    font-weight: bold;
    text-align: center;
}

.highlighted-text {
    color: var(--orange-color);
    font-weight: bold;
}

.tagline {
    font-size: 2rem;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* Clouds */
.cloud,
.cloud-1,
.cloud-2 {
    position: absolute;
    height: 100vh;
    width: 100%;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cloud {
    background-image: url('/assets/images/Cloud.png');
}

.cloud-1 {
    background-image: url('/assets/images/Cloud-1.png');
    -webkit-animation: leftCloud 3s ease-in-out forwards;
    animation: leftCloud 3s ease-in-out forwards;
    z-index: 1000;
}

.cloud-2 {
    background-image: url('/assets/images/Cloud-1.png');
    -webkit-animation: rightCloud 3s ease-in-out forwards;
    animation: rightCloud 3s ease-in-out forwards;
    z-index: 1000;
}

.floating-cloud {
    -webkit-animation: floatCloud 4s ease-in-out infinite;
    animation: floatCloud 4s ease-in-out infinite;
    z-index: 999;
}

/* Login Page */
.login-card {
    margin-top: 15vh;
    width: 60%;
    border-radius: 3rem !important;
}

/* Other Images */
.broadband-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: -34vh;
    left: -10vw;
    z-index: -1;
}

.about-image {
    width: 60%;
    height: auto;
    border-radius: 10px;
}

.map {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 1), 0 4px 8px rgba(255, 255, 255, 1);
}

#most-popular {
    position: absolute;
    top: -1.4rem;
    right: 50%;
    transform: translateX(50%);
    font-size: 1.2rem;
}

.fiber-home {
    width: 200px;
    height: auto;
    z-index: -1;
    filter: drop-shadow(0px 0px 10px rgba(255, 106, 0, 0.3));
}

#fiber-i {
    margin-left: -60px;
    margin-right: -60px;
}

#fiber-e {
    margin-left: -30px;
    margin-right: -30px;
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCloud {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes leftCloud {
    0% {
        transform: translateX(0px);
        opacity: 1;
    }

    100% {
        transform: translateX(-50vw);
        opacity: 0;
    }
}

@keyframes rightCloud {
    0% {
        transform: translateX(0px);
        opacity: 1;
    }

    100% {
        transform: translateX(50vw);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.5s ease-out;
}

.fade-in {
    opacity: 0;
}

.slide-up {
    opacity: 0;
    transform: translateY(200px);
}

.slide-left {
    opacity: 0;
    transform: translateX(-200px);
}

.slide-right {
    opacity: 0;
    transform: translateX(200px);
}

.zoom-in {
    transition: all 0.1s ease-in-out;
}

/* Active states for scroll animations */
.fade-in.active {
    opacity: 1;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in:hover {
    transition: all 0.1s ease-in-out;
    transform: scale(1.05);
}

/* Animation Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-600 {
    transition-delay: 600ms;
}

.animation-delay-100 {
    animation-delay: 0.2s;
}

.animation-delay-200 {
    animation-delay: 0.4s;
}

.animation-delay-300 {
    animation-delay: 0.6s;
}

.animation-delay-400 {
    animation-delay: 0.8s;
}

.animation-delay-500 {
    animation-delay: 1s;
}

#adsl-img {
    width: 60%;
    height: auto;
}

#corporate-img {
    position: absolute;
    z-index: -1;
    filter: opacity(0.7) blur(2px);
}

.mt-15 {
    margin-top: 10vh !important;
}

.custom-banner {
    height: 90vh !important;
}

.vh-100-custom {
    height: 100vh;
}

.fs-xl {
    font-size: 4rem !important;
}

#broadband-banner {
    margin-top: 0;
    height: 100vh;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}

.form-check-input:checked {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.form-check-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0rem;
}

/* Pagination */
.pagination .page-link {
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.4) 100%);
    border: rgba(255, 255, 255, 0.5) 1px solid;
    box-shadow: 0 0px 4px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
    color: white;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 0 5px;
    border-radius: 2rem !important;
    padding: 0.5rem 1rem !important;
}

.pagination .page-link:hover {
    color: white;
    border: rgba(255, 255, 255, 0.3) 1px solid;
    box-shadow: 0 0px 8px rgba(255, 255, 255, 0.8);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.4) 75%, rgba(255, 255, 255, 0.6) 100%);
    border: rgba(255, 255, 255, 0.7) 1px solid;
    box-shadow: 0 0px 8px rgba(255, 255, 255, 0.8);
}

.pagination .page-item.disabled .page-link {
    background: rgba(0, 0, 0, 0.1);
    border: rgba(255, 255, 255, 0.2) 1px solid;
    color: rgba(255, 255, 255, 0.5);
}