/* --- COLOUR PALETTE (CSS VARIABLES) --- */
:root {
    --bg-color: #0D0D0D;
    --text-color: #FFFFFF;
    --accent-primary: #00FF85; 
    --accent-secondary: #1E90FF; 
    --accent-hover: #FF0099;
    --bg-section-darker: #1a1a1a;
}
/* --- End COLOUR PALETTE (CSS VARIABLES) --- */

/* --- GENERAL STYLES AND THEME --- */
body {
    background-color: var(--bg-color); 
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    padding-top: 80px; 
}
html { scroll-behavior: smooth; }
/* --- End GENERAL STYLES AND THEME--- */

/* --- HEADER AND NAVIGATION --- */
.navbar {
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out;
}
.navbar .navbar-brand, .navbar .nav-link { color: var(--text-color); transition: color 0.2s ease; font-weight: 500;}
.navbar .nav-link:hover { color: var(--accent-primary); }
.navbar .nav-link.active { color: var(--accent-primary) !important; font-weight: bold; }
.navbar-toggler { border: 1px solid #555; }
.navbar-toggler-icon { 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* --- End HEADER AND NAVIGATION--- */

/* --- BUTTONS --- */
.btn {
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
}
.btn-primary {
    background-color: var(--accent-primary);
    color: #0D0D0D;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--text-color);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-hover);
}
.btn-success {
    background-color: var(--accent-secondary);
    color: var(--text-color);
}
.btn-success:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-hover);
}

/* Style for secondary outline button */
.btn-outline-secondary {
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
    background-color: transparent;
}
.btn-outline-secondary:hover {
    color: var(--text-color);
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-hover);
}
/* --- End BUTTONS --- */

/* --- SECTION DESIGN --- */
.bg-dark-section {
    background-color: var(--bg-section-darker);
    position: relative;
}
/* Northern Lights effect */
.bg-dark-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent-primary), transparent);
    box-shadow: 0 0 20px var(--accent-secondary), 0 0 30px var(--accent-primary);
    opacity: 0.7;
}
#contact.bg-dark-section::after { display: none; }

.bg-dark-section .bi-search { color: var(--accent-hover); }
.bg-dark-section .bi-phone-off { color: var(--accent-secondary); }
.bg-dark-section .bi-x-circle-fill { color: var(--accent-primary); }
/* --- End SECTION DESIGN --- */

/* --- UNIFIED STYLE FOR ALL CARDS (Packages and Portfolio) --- */
/* 1. General style for all cards */
#pricing .card, .portfolio-card {
    background-color: var(--bg-section-darker);
    border: 1px solid #444;
    transition: all 0.3s ease;
    color: var(--text-color);
    overflow: hidden; 
    display: flex;       
    flex-direction: column;
}

/* 2. We make the body of the card stretch */
.card-body {
    flex-grow: 1; /* This class will make .card-body take all available space, pushing the footer to the bottom */
}

/* 3. Reset background for child elements to show parent background */
.card-body, .card-footer {
    background-color: transparent;
}

/* 4. We add a border for the footer in the portfolio for a unified style */
.portfolio-card .card-footer {
    border-top: 1px solid #444;
}

/* 5. UNIFIED HOVER EFFECT (for all cards) */
#pricing .card:hover, .portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 35px -5px var(--accent-primary); /* Our powerful neon shadow */
}

/* --- Separate styles that only apply to PRICE cards--- */
#pricing .card-header {
    background: var(--accent-primary);
    border-bottom: 1px solid var(--accent-primary);
    color: var(--bg-color);
    font-weight: bold;
    padding: 1rem;
}
#pricing .card-title {
    color: #a0a0a0;
}
#pricing .card:hover .card-title {
    color: var(--text-color);
}
/* --- End UNIFORM STYLE FOR ALL CARDS (Packages and Portfolios) --- */


/* --- INSTALLMENT BLOCK --- */
.installment-card {
    background-color: var(--bg-section-darker);
    border-radius: 12px;
    padding: 2rem;
}
.installment-card h4 { color: var(--accent-secondary); }

/* --- Language Switch Stylisation --- */
.lang-switcher {
    background: none;
    border: 1px solid transparent;
    color: #a0a0a0;
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.lang-switcher:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}
.lang-switcher.active {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    font-weight: bold;
}
/* --- EndINSTALLMENT BLOCK --- */

/* --- ANIMATION APPEARANCE --- */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.8s ease-out;
}
section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- End ANIMATION OF APPEARANCE --- */

/* --- STYLES FOR FOOTER --- */
.footer {
    background-color: var(--bg-color); /* Black background */
}

.footer-brand {
    color: var(--text-color);
    font-weight: bold;
}

.footer-col {
    display: flex;
    align-items: center;
}

.footer-col i {
    color: var(--accent-primary); /* Neon green icons */
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.footer-col a, .footer-col span {
    color: #a0a0a0; /* Muted text color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text-color); /* On hover, text becomes bright */
}

.footer .border-top {
    border-color: #444 !important; /* More noticeable divider line */
}
/* --- End STYLES FOR FOOTER --- */

/* --- STYLES FOR PACKAGES PAGE --- */
.package-features li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.package-features .bi-check-circle-fill {
    color: var(--accent-primary);
    margin-right: 1rem;
}

.price-card {
    background-color: var(--bg-section-darker);
    border: 1px solid #444;
    text-align: center;
}


/* Adaptability for mobile devices */
@media (max-width: 991px) {
    .packages-grid-container {
        grid-template-columns: 1fr; /* One column on mobile */
    }

    /* On mobile, revert to standard order for the second and fourth packages */
    .packages-grid-container > .package-price-block:nth-of-type(3) {
        order: 4;
    }
    .packages-grid-container > .package-text-block:nth-of-type(4) {
        order: 3;
    }
     .packages-grid-container > .package-price-block:nth-of-type(7) {
        order: 8;
    }
    .packages-grid-container > .package-text-block:nth-of-type(8) {
        order: 7;
    }
}


/* Styles for comparison table */
.comparison-table {
    border-color: #444;
}

/* Styles for FAQ (accordion) */
.accordion-item {
    background-color: var(--bg-section-darker);
    border: 1px solid #444;
    color: var(--text-color);
}
.accordion-button {
    background-color: var(--bg-section-darker);
    color: var(--text-color);
    font-weight: bold;
}
.accordion-button:not(.collapsed) {
    background-color: #333;
    color: var(--accent-primary);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 133, 0.25);
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300FF85'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
/* --- End STYLES FOR PACKAGES PAGE --- */

/* --- STYLES FOR LOGO --- */
.logo-img {
    max-height: 40px; /* Set maximum height. Width will adjust automatically */
    width: auto;
    transition: transform 0.3s ease; /* Smooth transition for animation */
}

/* Effect on hover for logo in header and footer */
.navbar-brand:hover .logo-img,
.footer a:hover .logo-img {
    transform: scale(1.1); /* Slightly increase logo size */
}
/* --- End STYLES FOR LOGO --- */

/* --- STYLES FOR TEAM SECTION (CAROUSEL) --- */
#team .carousel-item {
    padding: 2rem 5%; /* 2rem (32px) top and bottom for shadow */
}

.team-avatar {
    width: 220px;   /* Slightly increased size */
    height: 220px;  /* Slightly increased size */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary); /* Made shadow slightly more noticeable */
}

/* Styles for arrows (unchanged) */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--accent-secondary);
    border-radius: 50%;
    padding: 1.2rem;
}
/* --- End STYLES FOR TEAM SECTION (CAROUSEL) --- */

/* --- STYLES FOR PORTFOLIO PAGE --- */
.filter-btn {
    border: 2px solid #444;
    color: #a0a0a0;
    margin: 0 5px;
    font-weight: bold;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--text-color);
}
.filter-btn.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #0D0D0D;
}
.portfolio-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-content {
    background-color: var(--bg-section-darker);
    border: 1px solid #444;
}
.modal-header, .modal-footer {
    border-color: #444;
}
.btn-close {
    background-color: #fff;
}
/* --- End STYLES FOR PORTFOLIO PAGE --- */

/* --- COOKIE --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Initially hidden off-screen */
    left: 0;
    width: 100%;
    background-color: var(--bg-section-darker);
    border-top: 1px solid #444;
    padding: 1rem 0;
    z-index: 1050; /* Should be above all */
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0; /* Smoothly slides up */
}

.cookie-banner p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.cookie-policy-link {
    color: var(--accent-primary);
    text-decoration: underline;
}
.cookie-policy-link:hover {
    color: var(--accent-hover);
}
/* --- End COOKIE BANNER --- */

/* --- STYLES FOR 404 PAGE --- */
.error-page-main {
    min-height: calc(100vh - 160px); /* Height of the screen minus approximate header and footer height */
}
.error-404-title {
    font-size: 10rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-primary);
}
/* --- End STYLES FOR 404 PAGE --- */


/* ---- Styles for the ‘Device Pyramid’ animation ---- */

:root {
    --neon-green: #00ff9d;
    --neon-blue: #528bff;
    --base-glow: rgba(0, 255, 157, 0.4);
    --blue-glow: rgba(82, 139, 255, 0.4);
}

.hologram-assembly-container {
    position: relative;
    height: 450px; /* Slightly increase height for composition */
    perspective: 1200px;
}


/* 1. BASIC POSITION AND DIMENSIONS OF DEVICES */
/* Place the devices in their final positions */
.ui-blueprint {
    position: absolute;
    border-radius: 12px;
    background: transparent;

    /* Initial state (before animation) */
    opacity: 0;
    transition: transform 1s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.7s ease-out;
}

/* Desktop - the base of the pyramid */
.ui-desktop {
    width: 380px;
    height: 240px;
    bottom: 0;
    left: 50%;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 25px var(--blue-glow);
    z-index: 1;

    /* Initial transformation: shifted down and reduced */
    transform: translateX(-50%) translateY(100%) scale(0.9);
}

/* Tablet and phone - top row */
.ui-tablet, .ui-mobile {
    top: 0; /* Place on top */
    z-index: 2;
    /* Initial transformation: shifted upwards and reduced */
    transform: translateY(-100%) scale(0.9);
}

.ui-tablet {
    width: 260px;
    height: 180px;
    left: 50%;
    margin-left: 25px; /* Shift to the right of the centre */
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--blue-glow);
}
.ui-mobile {
    width: 100px;
    height: 180px;
    right: 50%;
    margin-right: 25px; /* Shift left from centre */
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px var(--base-glow);
}


/* 2. APPEARANCE ANIMATION (when adding .animate-in) */
/* Return devices to their original position without shifts */

.animate-in .ui-desktop {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0.2s; /* Appears a little later */
}
.animate-in .ui-tablet,
.animate-in .ui-mobile {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0s; /* Appear first */
}


/* 3. CONTENT RENDERING (delays corrected) */
.ui-elem {
    position: absolute; background: transparent; border-radius: 4px; opacity: 0;
    animation: draw-and-fade-in 0.7s ease-out forwards;
}
@keyframes draw-and-fade-in {
    0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); opacity: 0; }
    60% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
    100% { opacity: 1; }
}

/* The first frame is drawn 1.2 seconds after the start of the entire animation */
.ui-mobile .ui-elem,
.ui-tablet .ui-elem { border: 1px solid var(--neon-green); }
.ui-mobile .header, .ui-tablet .header  { animation-delay: 1.2s; }
.ui-mobile .mobile-card:nth-of-type(2)  { animation-delay: 1.4s; }
.ui-mobile .mobile-card:nth-of-type(3)  { animation-delay: 1.5s; }
.ui-tablet .tablet-card-1              { animation-delay: 1.4s; }
.ui-tablet .tablet-card-2              { animation-delay: 1.5s; }

.ui-desktop .ui-elem { border: 1px solid var(--neon-green); }
.ui-desktop .header             { animation-delay: 1.6s; }
.ui-desktop .sidebar            { animation-delay: 1.8s; }
.ui-desktop .content-block-1    { animation-delay: 1.9s; }
.ui-desktop .content-block-2    { animation-delay: 2.0s; }


/* Location of elements inside devices */
.ui-desktop .header { top: 15px; left: 15px; width: calc(100% - 30px); height: 30px; }
.ui-desktop .sidebar { top: 60px; left: 15px; width: 80px; height: calc(100% - 75px); }
.ui-desktop .content-block-1 { top: 60px; left: 110px; right: 15px; height: 75px; }
.ui-desktop .content-block-2 { bottom: 15px; left: 110px; right: 15px; top: 150px; }
.ui-tablet .header { top: 10px; left: 10px; width: calc(100% - 20px); height: 25px; }
.ui-tablet .tablet-card-1 { top: 45px; left: 10px; width: calc(50% - 15px); height: calc(100% - 55px); }
.ui-tablet .tablet-card-2 { top: 45px; right: 10px; width: calc(50% - 15px); height: calc(100% - 55px); }
.ui-mobile .header { top: 10px; left: 10px; width: calc(100% - 20px); height: 20px; }
.ui-mobile .mobile-card { left: 10px; width: calc(100% - 20px); height: 55px; }
.ui-mobile .mobile-card:nth-of-type(2) { top: 40px; }
.ui-mobile .mobile-card:nth-of-type(3) { top: 105px; }

/* ---- End Styles for the ‘Device Pyramid’ animation ---- */