/* Technology Banner */

.technology-banner {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.technology-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/assets/technology-page-bg.png) no-repeat center center/cover;
    z-index: -1;
    transform: scale(1.1);
    animation: parallaxShift 15s infinite ease-in-out;
}

@keyframes parallaxShift {

    0%,
    100% {
        transform: scale(1.1) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(-2%, -2%);
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px;
    opacity: 0;
    /* Initial state for GSAP */
}

.banner-content h1 {
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 65px;
}

.banner-content p {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    color: #e0e0e0;
}

.banner-content .btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #007BFF;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.banner-content .btn:hover {
    background: #0056b3;
}


/* Section 2 */

.sec-2 {
    text-align: center;
    background-color: #f8f9fa;
    padding: 80px 20px 80px 20px;
    overflow: hidden;
}

.sec-2 h1 {
    font-size: 34px;
    font-weight: 700;
    color: #222;
    margin-bottom: 7px;
}

.sec-2 h2 {
    font-size: 24px;
    color: #28a745;
    margin-bottom: 50px;
    margin-top: 20px;
}

.sec-2 .tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    opacity: 0;
    /* Initial state for GSAP */
}

.sec-2 .tech-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid transparent;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sec-2 .tech-card img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.sec-2 .tech-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #007BFF;
    background: linear-gradient(135deg, #007BFF, #00BFFF);
    color: white;
}

.sec-2 .tech-card:hover img {
    transform: rotate(15deg);
    filter: brightness(0) invert(1);
}

.sec-2 .tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sec-2 .tech-card:hover::after {
    opacity: 1;
}


/* Section 3 */

.sec-3 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4473d9 0%, #738dc1 100%);
    padding: 20px 20px;
    position: relative;
    overflow: hidden;
}

.sec-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(68, 115, 217, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.main-heading {
    width: 10%;
    font-size: 3.2rem;
    line-height: 4rem;
    font-weight: 800;
    margin: 0 20px 0 0;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(107, 156, 255, 0.5);
    transform: translateY(30px) rotate(-90deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    width: 95%;
    max-width: 1600px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(107, 156, 255, 0.3);
    overflow: hidden;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.left-panel {
    width: 100%;
    background: rgba(68, 115, 217, 0.1);
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: max-height 0.5s ease, display 0.5s ease;
    overflow-y: auto;
}

.left-panel::-webkit-scrollbar {
    width: 8px;
}

.left-panel::-webkit-scrollbar-thumb {
    background: #6b9cff;
    border-radius: 4px;
}

.left-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.left-panel.collapsed {
    max-height: 0;
    display: none;
    /* Completely hide when collapsed */
}

.left-panel.expanded {
    max-height: 1000px;
    display: block;
    /* Show when expanded */
    background: linear-gradient(135deg, #4476d9 0%, #738de1 100%);
}

.toggle-btn {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    background: #6b9cff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 6;
    /* Higher than left-panel for accessibility */
}

.sub-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 10px 0;
    color: #ffffff;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
}

.sub-heading:hover,
.sub-heading.active {
    background: linear-gradient(90deg, #6b9cff, #a3c1ff);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(107, 156, 255, 0.5);
}

.sub-heading::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sub-heading.active::after {
    transform: rotate(180deg);
}

.options {
    list-style-type: none;
    padding: 0 10px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.options li {
    color: #ffffff;
    padding: 12px 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    position: relative;
    opacity: 0;
}

.options li:hover,
.options li.active {
    background: #6b9cff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(107, 156, 255, 0.3);
}

.options li::after {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.options li:hover::after,
.options li.active::after {
    opacity: 1;
}

.right-panel {
    width: 100%;
    padding: 40px;
    background: rgba(45, 73, 133, 0.1);
    color: #ffffff;
}

.right-panel h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(107, 156, 255, 0.4);
    opacity: 0;
}

.right-panel p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0;
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
    background: rgba(255, 255, 255, 0.948);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 156, 255, 0.3);
    opacity: 0;
}

.icon-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(215, 228, 252, 0.3);
    background: rgba(255, 254, 254, 0.842);
}

.icon-item img {
    width: 100px;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.icon-item span {
    margin-top: 15px;
    font-size: 1rem;
    color: #000000;
    font-weight: 600;
}


/* Responsive Design */

@media (max-width: 1500px) {
    .banner-content h1 {
        font-size: 87px;
    }

    .banner-content p {
        font-size: 30px;
    }
}

@media (max-width: 1400px) {
    .banner-content h1 {
        font-size: 80px;
    }

    .banner-content p {
        font-size: 29px;
    }
}

@media (max-width: 1300px) {
    .banner-content h1 {
        font-size: 75px;
    }

    .banner-content p {
        font-size: 27px;
    }
}

@media (max-width: 1200px) {
    .sec-2 h1 {
        font-size: 32px;
    }

    .sec-2 h2 {
        font-size: 22px;
    }

    .sec-2 .tech-card {
        font-size: 16px;
        padding: 12px 22px;
    }

    .main-heading {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .left-panel {
        width: 35%;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    .right-panel {
        width: 65%;
    }
}

@media (max-width: 992px) {
    .technology-banner {
        height: 90vh;
    }

    .banner-content h1 {
        font-size: 70px;
    }

    .banner-content p {
        font-size: 25px;
    }

    .banner-content .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .sec-3 {
        flex-direction: column;
        padding: 40px 15px;
        min-height: auto;
    }

    .main-heading {
        width: 100%;
        font-size: 2.5rem;
        margin: 0 0 30px 0;
        transform: none;
    }

    .container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .technology-banner {
        height: 90vh;
        background-attachment: scroll;
    }

    .banner-content h1 {
        font-size: 65px;
    }

    .banner-content p {
        font-size: 23px;
    }

    .banner-content .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .sec-2 h1 {
        font-size: 28px;
    }

    .sec-2 h2 {
        font-size: 20px;
    }

    .sec-2 .tech-card {
        font-size: 16px;
        padding: 10px 20px;
    }

    .sec-2 .tech-card img {
        width: 25px;
        height: 25px;
    }

    .sec-3 {
        flex-direction: column;
        padding: 60px 15px 40px 15px;
        /* Add top padding for toggle button */
        min-height: auto;
        position: relative;
    }

    .main-heading {
        width: 100%;
        font-size: 2rem;
        margin: 40px 0 20px 0;
        /* Add top margin to avoid overlap */
        text-align: center;
        transform: none;
        display: block;
        padding: 10px 0;
    }

    .container {
        width: 100%;
        margin: 0;
        border-radius: 10px;
        background: transparent;
        /* Remove semi-transparent background */
        position: static;
        /* Remove stacking context interference */
    }

    .left-panel {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, display 0.5s ease;
        background: linear-gradient(135deg, #4476d9 0%, #738de1 100%);
        display: none;
    }

    .left-panel.collapsed {
        max-height: 0;
        display: none;
    }

    .left-panel.expanded {
        max-height: 1000px;
        display: block;
        z-index: 5;
        /* Ensure it's above right-panel */
    }

    .toggle-btn {
        display: block;
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 14px;
        z-index: 6;
    }

    .right-panel {
        width: 100%;
        padding: 15px;
        /* Fully opaque background */
        z-index: 1;
        /* Below expanded left-panel */
        margin-top: 20px;
        /* Add spacing when left-panel is expanded */
    }

    .right-panel h2 {
        font-size: 1.8rem;
        /* Reduced font size for mobile */
    }

    .right-panel p {
        font-size: 1rem;
        /* Reduced font size for mobile */
    }

    .icon-container {
        justify-content: center;
        gap: 15px;
    }

    .icon-item {
        width: 120px;
        padding: 15px;
    }

    .icon-item img {
        width: 50px;
        height: 50px;
    }

    .icon-item span {
        font-size: 0.9rem;
        /* Reduced font size for mobile */
    }
}

@media (max-width: 620px) {
    .technology-banner {
        height: 90vh;
        background-attachment: scroll;
    }

    .banner-content h1 {
        font-size: 55px;
    }

    .banner-content p {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .technology-banner {
        height: 90vh;
        background-attachment: scroll;
    }

    .banner-content h1 {
        font-size: 55px;
    }

    .banner-content p {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .technology-banner {
        height: 86vh;
    }

    .banner-content h1 {
        font-size: 42px;
    }

    .banner-content p {
        font-size: 20px;
    }

    .banner-content .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .sec-2 .tech-card {
        font-size: 14px;
        padding: 8px 15px;
    }

    .sec-2 .tech-card img {
        width: 20px;
        height: 20px;
    }

    .main-heading {
        font-size: 1.5rem;
    }

    .right-panel {
        padding: 15px;
    }

    .right-panel h2 {
        font-size: 1.5rem;
        /* Further reduced for smaller screens */
    }

    .right-panel p {
        font-size: 0.9rem;
        /* Further reduced for smaller screens */
    }

    .icon-item {
        width: 100px;
    }

    .icon-item img {
        width: 40px;
        height: 40px;
    }

    .icon-item span {
        font-size: 0.8rem;
        /* Further reduced for smaller screens */
    }
}

@media (max-width: 380px) {
    .technology-banner {
        height: 85vh;
    }

    .banner-content h1 {
        font-size: 38px;
    }

    .banner-content p {
        font-size: 16px;
    }
}

.footer .footer-brand {
    text-align: left !important;
    margin-left: 00px;
}

@media (max-width: 640px) {
    .footer-description {
        color: #a0a0a0 !important;
        max-width: 18rem !important;
        margin: 0px 0px 1.5rem !important;
        line-height: 1.5 !important;
        font-size: 0.875rem !important;
        text-align: justify !important;
    }

    .footer .social-links {
        display: flex !important;
        gap: 1rem !important;
        list-style: none !important;
        align-items: center !important;
        margin-left: -30px !important;
        justify-content: flex-start !important;
    }
}
