:root {
    --bs-gutter-x: 0rem;
}

body {
    padding-top: 56px;
    background-image: url('images/banner.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: top center;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,123,255,0.1) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 10vw, 6rem);
    position: relative;
    z-index: 1;
}

.hero-section h1 img {
    width: 80vw;
    max-width: 1400px;
    height: auto;
    max-width: min(80vw, 1400px);
    animation: scaleIn 1.5s ease-out, floatAnimation 6s ease-in-out infinite 1.5s;
    filter: drop-shadow(0 10px 30px rgba(0,123,255,0.3));
    transition: transform 0.3s ease;
}

.hero-section h1 img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(0,123,255,0.5));
}

.hero-section .btn {
    animation: slideInBottom 1s ease-out 0.5s backwards;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-section .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-section .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.4);
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.back-to-top i {
    font-size: 20px;
}

.hero-section .lead {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.content-wrapper {
    width: 100vw;
    max-width: 1500px;
    margin-left: calc(50% - 50vw);
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    padding-bottom: calc(2rem + 90px);
}

main .accordion-item-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border-radius: 20px;
    margin-bottom: 35px;
    padding: 3vw;
}

main .accordion-item-container:last-child {
    margin-bottom: 0;
}

main .accordion .accordion-item {
    margin-bottom: 30px;
    border-radius: 20px;
    border: none;
}

main .accordion .accordion-item:last-child {
    margin-bottom: 0;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

h1.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.3rem);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

h2.animate {
    opacity: 1;
    transform: translateX(0);
    animation: fadeInLeft 0.8s ease-out forwards;
}

h3 {
    font-weight: 600;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

h3.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.7s ease-out forwards;
}

p {
    font-size: clamp(1.0rem, 1.0rem + 0.6vw, 1.6rem);
    line-height: clamp(1.0, 1.0 + 0.0vw, 1.6);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

p.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

.card p.text-center {
    font-size: 2rem;
    margin-top: 80px;
}

.card {
    background: none;
    border: none;
    border-radius: 20px;
}

.accordion-button {
    background-color: white !important;
    border: none !important;
    box-shadow: none !important;
    font-size: clamp(2.2rem, 5vw, 2.6rem);
    line-height: clamp(2.2rem, 5vw, 2.6rem);
    font-weight: 600;
    outline: none !important;
}

.accordion-button:not(.collapsed) {
    color: inherit;
    background-color: white !important;
    border: none !important;
    box-shadow: none !important;
    font-size: clamp(2.2rem, 5vw, 2.6rem);
    line-height: clamp(2.2rem, 5vw, 2.6rem);
    font-weight: 600;
    outline: none !important;
}

.accordion-button:hover {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background-color: white !important;
}

.accordion-button::after {
    font-size: 4rem;
}

.accordion-header {
    border: none;
}

.accordion-body {
    border-radius: 0;
    font-size: clamp(1.0rem, 1.0rem + 0.6vw, 1.6rem);
    line-height: clamp(1.0, 1.0 + 0.6vw, 1.6);
}

footer {
    background-color: #212529 !important;
    margin-top: 100px;
    padding: 100px 1.5rem !important;
}

footer .container {
    max-width: 1500px;
    margin: auto;
}

.navbar .container-fluid, footer .container-fluid {
    padding-left: calc(var(--bs-gutter-x) * .01) !important;
    padding-right: calc(var(--bs-gutter-x) * .01) !important;
}

@media (min-width: 1501px) {
    .content-wrapper {
        margin: 0 auto;
    }
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    margin-top: 35px;
    margin-bottom: 35px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card img.animate {
    opacity: 1;
    transform: scale(1);
    animation: zoomIn 0.8s ease-out forwards;
}

.card img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,123,255,0.3);
}

@media (min-width: 768px) {
    .card img {
        height: 400px;
        object-position: center;
    }
}

.content-wrapper img[src*="schema1.svg"] {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.content-wrapper img[src*="schema1.svg"].animate {
    opacity: 1;
    transform: scale(1);
    animation: zoomIn 1s ease-out forwards;
}

.content-wrapper img[src*="schema1.svg"]:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 10px 30px rgba(0,123,255,0.2));
}

/* Image positioning for HeadingTwo section */
.accordion-body .image-container {
    position: relative;
    float: right;
    margin: 0 0 15px 15px;
    max-width: 250px;
    z-index: 10;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.accordion-body .image-container.animate {
    opacity: 1;
    transform: translateX(0);
    animation: fadeInRight 0.8s ease-out forwards;
}

.accordion-body .top-right-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.accordion-body .top-right-image:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 10px 25px rgba(0,123,255,0.3);
}

/* List animations */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

ul li.animate {
    opacity: 1;
    transform: translateX(0);
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #007bff;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

ul li:hover::before {
    transform: translateX(5px);
    color: #0056b3;
}

ul li:hover {
    padding-left: 35px;
}

/* Accordion animations */
.accordion-item-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.accordion-item-container.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

.accordion-button {
    position: relative;
    overflow: hidden;
}

.accordion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: left 0.5s ease;
}

.accordion-button:hover::before {
    left: 100%;
}

/* Card animations */
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.card.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 768px) {
    .accordion-body .image-container {
        float: none;
        margin: 0 auto 15px auto;
        max-width: 200px;
    }
}

/* Stagger animation delays for list items */
ul li:nth-child(1) { transition-delay: 0.1s; }
ul li:nth-child(2) { transition-delay: 0.2s; }
ul li:nth-child(3) { transition-delay: 0.3s; }
ul li:nth-child(4) { transition-delay: 0.4s; }
ul li:nth-child(5) { transition-delay: 0.5s; }
ul li:nth-child(6) { transition-delay: 0.6s; }
ul li:nth-child(7) { transition-delay: 0.7s; }
ul li:nth-child(8) { transition-delay: 0.8s; }
