:root {
    --tech-primary: #0d6efd;
    --tech-cyan: #00d9ff;
    --tech-purple: #7b2cbf;
    --tech-accent: #ff006e;
    --tech-dark: #0a0e27;
}

.page-section {
    padding: 5rem 0;
    position: relative;
}

#technical-areas {
    position: relative;
    overflow: hidden;
}

/* Subtle animated background for the section */
#technical-areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.03) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
}

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

#technical-areas h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: #212529;
    position: relative;
    z-index: 1;
}

#technical-areas hr {
    position: relative;
    z-index: 1;
}

#myCarousel {
    box-shadow: 
        0 0 60px rgba(13, 110, 253, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(13, 110, 253, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

#myCarousel:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 0 80px rgba(13, 110, 253, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(13, 110, 253, 0.15);
}

.carousel-item {
    min-height: 500px;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* SVG backgrounds */
.carousel-item svg.bd-placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
}

.carousel-item svg.bd-placeholder-img rect {
    fill: var(--tech-primary);
}

/* Icon container - Fixed for all screen sizes */
.icon-container {
    position: absolute;
    top: 50%;
    right: 8%;
    width: 200px;
    height: 200px;
    margin-top: -100px; /* Half of height for centering */
    filter: drop-shadow(0 10px 30px rgba(13, 110, 253, 0.2));
    z-index: 2;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Subtle float animation that doesn't interfere with positioning */
.carousel-item.active .icon-container {
    animation: subtleFloat 6s ease-in-out infinite 0.3s;
}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateX(0); 
    }
    50% { 
        transform: translateX(-8px); 
    }
}

.carousel-caption {
    text-align: left;
    left: 8%;
    right: 35%;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    z-index: 3;
}

.carousel-caption .border-start {
    border-color: var(--tech-primary) !important;
    border-width: 4px !important;
    padding-left: 2rem !important;
    padding-right: 1rem !important;
    margin-bottom: 0 !important;
    background: linear-gradient(90deg, 
        rgba(13, 110, 253, 0.05) 0%, 
        transparent 100%);
    border-radius: 0 8px 8px 0;
}

.carousel-caption h5 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    color: #212529;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.carousel-caption p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    line-height: 1.6;
}

.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    background: rgba(13, 110, 253, 0.1) !important;
    color: var(--tech-primary) !important;
    border: 1px solid rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge:hover {
    background: rgba(13, 110, 253, 0.2) !important;
    border-color: rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Custom carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 110, 253, 0.1);
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

#myCarousel:hover .carousel-control-prev,
#myCarousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(13, 110, 253, 0.2);
    border-color: var(--tech-primary);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* Custom indicators */
.carousel-indicators {
    margin-bottom: 2rem;
    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.3);
    border: 2px solid rgba(13, 110, 253, 0.4);
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 40px;
    border-radius: 6px;
    background: var(--tech-primary);
    border-color: var(--tech-primary);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

/* Responsive Design - Mobile First Approach */

/* Screens 1280px to 1366px */
@media (max-width: 1366px) {
    .icon-container {
        width: 170px;
        height: 170px;
        margin-top: -85px;
        right: 6%;
    }

    .carousel-caption {
        right: 30%;
        left: 6%;
    }

    .carousel-caption h5 {
        font-size: 2.05rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }

    .carousel-caption .border-start {
        padding-right: 0.75rem !important;
    }
}

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .icon-container {
        width: 160px;
        height: 160px;
        margin-top: -80px;
        right: 5%;
    }

    .carousel-caption {
        right: 28%;
        left: 5%;
    }

    .carousel-caption h5 {
        font-size: 1.9rem;
    }

    .carousel-caption p {
        font-size: 0.92rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    #myCarousel {
        width: 85% !important;
    }

    .icon-container {
        width: 140px;
        height: 140px;
        margin-top: -70px;
        right: 4%;
    }

    .carousel-caption {
        right: 26%;
        left: 4%;
    }

    .carousel-caption h5 {
        font-size: 1.75rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.85rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }
}

/* Small tablets and large phones (landscape) */
@media (max-width: 768px) {
    .page-section {
        padding: 3rem 0;
    }

    #technical-areas h1 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    #myCarousel {
        width: 90% !important;
        margin-top: 2rem !important;
    }

    .carousel-item {
        min-height: auto;
        padding: 2.5rem 1rem;
    }

    /* Switch to vertical layout */
    .icon-container {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 1.5rem;
        width: 100px;
        height: 100px;
        display: block;
    }

    .carousel-item.active .icon-container {
        animation: none; /* Remove float animation on mobile */
    }

    .carousel-caption {
        position: relative;
        top: auto;
        transform: none;
        left: 0 !important;
        right: 0 !important;
        padding: 0 1.5rem;
        text-align: center;
        width: 100%;
    }

    .carousel-caption .border-start {
        border-left: none !important;
        border-top: 4px solid var(--tech-primary) !important;
        padding-left: 0 !important;
        padding-top: 1.25rem !important;
        padding-bottom: 1rem;
        border-radius: 8px 8px 0 0;
        background: linear-gradient(180deg, 
            rgba(13, 110, 253, 0.05) 0%, 
            transparent 100%);
    }

    .carousel-caption h5 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .carousel-caption p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .d-flex.gap-2 {
        justify-content: center !important;
        gap: 0.5rem !important;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }

    .carousel-indicators {
        margin-bottom: 1.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .page-section {
        padding: 2rem 0;
    }

    #technical-areas h1 {
        font-size: 1.85rem;
        padding: 0 1rem;
    }

    #myCarousel {
        width: 95% !important;
        margin-top: 1.5rem !important;
        border-radius: 16px;
    }

    .carousel-item {
        padding: 2rem 0.75rem;
    }

    .icon-container {
        width: 85px;
        height: 85px;
        margin-bottom: 1.25rem;
    }

    .carousel-caption {
        padding: 0 1rem;
    }

    .carousel-caption .border-start {
        padding-top: 1rem !important;
    }

    .carousel-caption h5 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.02em;
    }

    .carousel-caption p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.85rem;
    }

    .d-flex.gap-2 {
        gap: 0.4rem !important;
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        letter-spacing: 0.03em;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .carousel-indicators .active {
        width: 28px;
        border-radius: 4px;
    }

    .carousel-indicators {
        margin-bottom: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 0.7;
    }

    #myCarousel:hover .carousel-control-prev,
    #myCarousel:hover .carousel-control-next {
        opacity: 0.9;
    }

    .carousel-control-prev {
        left: 8px;
    }

    .carousel-control-next {
        right: 8px;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    #technical-areas h1 {
        font-size: 1.65rem;
    }

    .carousel-item {
        padding: 1.75rem 0.5rem;
    }

    .icon-container {
        width: 75px;
        height: 75px;
        margin-bottom: 1rem;
    }

    .carousel-caption h5 {
        font-size: 1.1rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
    }
}
</style>
<style>
:root {
    --mission-primary: #0d6efd;
    --mission-accent: #0dcaf0;
    --mission-dark: #212529;
    --mission-light: #f8f9fa;
}

.page-section {
    padding: 5rem 0;
}

#mission {
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
#mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(13, 110, 253, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(13, 202, 240, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

#mission h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--mission-dark);
    margin-bottom: 1rem;
}

#mission hr {
    margin-bottom: 4rem;
}

/* Mission item container */
.mission-item {
    margin-bottom: 6rem;
    position: relative;
}

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

/* Icon container */
.mission-icon {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.mission-icon:hover {
    transform: scale(1.1) rotate(3deg);
}

/* Icon background circle */
.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.08) 100%);
    border-radius: 50%;
    border: 2px solid rgba(13, 110, 253, 0.15);
    transition: all 0.4s ease;
}

.icon-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.mission-icon:hover .icon-bg {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(13, 202, 240, 0.15) 100%);
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.2);
}

.mission-icon svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* Content styling */
.mission-content h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--mission-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.mission-content h5 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .mission-item {
        display: flex;
        align-items: center;
        gap: 3rem;
    }

    .mission-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .mission-icon-wrapper {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 160px;
    }

    .mission-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 160px;
    }
}

@media (min-width: 992px) {
    .mission-item {
        gap: 4rem;
    }
}

@media (max-width: 767px) {
    #mission h1 {
        font-size: 2.25rem;
    }

    .mission-icon {
        width: 140px;
        height: 140px;
        margin-bottom: 2rem;
    }

    .mission-content h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .mission-content h5 {
        font-size: 1rem;
        text-align: center;
    }

    .mission-item {
        margin-bottom: 4rem;
    }

    .mission-icon-wrapper {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .mission-icon {
        width: 120px;
        height: 120px;
    }

    .mission-content h3 {
        font-size: 1.5rem;
    }

    .mission-content h5 {
        font-size: 0.95rem;
        width: 90%;
    }
}

/* Animation on scroll */
.mission-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.mission-item:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
</style>
<style>
:root {
    --primary-blue: #0d6efd;
    --accent-cyan: #0dcaf0;
    --dark-bg: #1a1d29;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

.page-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(13, 110, 253, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 202, 240, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

#services h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

#services h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
}

.section-divider {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 4rem 0 2rem;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    /* content: ''; */
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
}

.section-divider::before {
    left: 50%;
    transform: translateX(-200px);
}

.section-divider::after {
    right: 50%;
    transform: translateX(200px);
}

/* Service Card Styling */
.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
}

.service-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.08) 100%);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-bg {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(13, 202, 240, 0.12) 100%);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.2);
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.service-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-btn,
.service-dropdown-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 140px;
}

.service-btn:hover,
.service-dropdown-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.dropdown-menu {
    border-radius: 12px;
    border: 2px solid rgba(13, 110, 253, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.1));
    color: var(--primary-blue);
}

/* Fade-in animation */
.service-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Responsive adjustments */
@media (max-width: 767px) {
    #services h1 {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 2rem 1.25rem;
    }

    .section-divider::before,
    .section-divider::after {
        width: 40px;
    }

    .section-divider::before {
        transform: translateX(-120px);
    }

    .section-divider::after {
        transform: translateX(120px);
    }
}