/* =========================================
   Design System & CSS Variables
   ========================================= */
:root {
    --primary-color: #00c1fa;   
    --accent-color: #f3c60b;    
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body { font-family: var(--font-main); color: var(--text-dark); overflow-x: hidden; background-color: var(--white); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.section-padding { padding: 100px 0; }
.section-header { margin-bottom: 60px; text-align: center; }
.section-subtitle { color: var(--primary-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; display: block; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); }

/* Navigation Bar */
.navbar { transition: var(--transition-smooth); padding: 20px 0; background: transparent; z-index: 1050; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 12px 0; box-shadow: var(--shadow-soft); }
.navbar-brand { font-weight: 800; font-size: 1.6rem; color: var(--white) !important; transition: var(--transition-smooth); }
.navbar.scrolled .navbar-brand { color: var(--primary-color) !important; }
.nav-link { font-weight: 600; color: var(--white) !important; margin: 0 12px; position: relative; transition: var(--transition-smooth); font-size: 1.05rem; }
.navbar.scrolled .nav-link { color: var(--text-dark) !important; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: var(--accent-color); transition: width 0.3s ease-in-out; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--primary-color) !important; }
.btn-cta { background-color: var(--primary-color); color: var(--white); border: 2px solid var(--primary-color); padding: 10px 24px; border-radius: 50px; font-weight: 700; transition: var(--transition-smooth); box-shadow: 0 4px 15px rgba(0, 193, 250, 0.2); text-decoration: none; display: inline-block; }
.btn-cta:hover { background-color: var(--accent-color); border-color: var(--accent-color); color: var(--text-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(243, 198, 11, 0.3); }
.navbar-toggler { border: none; color: var(--white); font-size: 1.5rem; }
.navbar.scrolled .navbar-toggler { color: var(--primary-color); }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991px) {
    .navbar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 15px 0;}
    .navbar-brand { color: var(--primary-color) !important; }
    .nav-link { color: var(--text-dark) !important; margin: 10px 0; }
    .navbar-toggler { color: var(--primary-color); }
    .nav-link::after { display: none; }
}

/* =========================================
   Custom Hero Image Slider
   ========================================= */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Ken Burns Zoom Effect */
.slide.active .slide-bg {
    transform: scale(1.05);
    transition: transform 6s linear;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.slide-sub {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide.active .slide-sub {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

/* Typing Effect Cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent-color);
    margin-left: 5px;
    animation: blink 0.75s step-end infinite;
    vertical-align: bottom;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.slide-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    min-height: 1.2em; /* Ensure height for typing */
}

.slide-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide.active .slide-desc {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.9s;
}

.slide-btn-group {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide.active .slide-btn-group {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 1.2s;
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    margin: 0 10px;
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-glass:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 20px rgba(0, 193, 250, 0.5);
}

.btn-glass.accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-glass.accent:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 20px rgba(243, 198, 11, 0.5);
}

/* Ripple effect on click */
.btn-glass::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-glass:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: 0s;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* =========================================
   Counters / Stats Section
   ========================================= */
.stats-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 193, 250, 0.95), rgba(0, 193, 250, 0.95)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer { background-color: #111; color: #fff; padding: 80px 0 30px; }
.footer-brand { font-size: 2rem; font-weight: 800; color: var(--white); text-decoration: none; margin-bottom: 20px; display: inline-block; }
.footer-desc { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 30px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: var(--white); border-radius: 50%; margin-right: 10px; transition: var(--transition-smooth); text-decoration: none; }
.social-links a:hover { background: var(--accent-color); color: var(--text-dark); transform: translateY(-3px); }
.footer-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--accent-color); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition-smooth); }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.newsletter-form .input-group { border-radius: 50px; overflow: hidden; }
.newsletter-form input { background: rgba(255,255,255,0.1); border: none; color: var(--white); padding: 15px 20px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { background: rgba(255,255,255,0.15); box-shadow: none; color: var(--white); }
.newsletter-form .btn { background: var(--primary-color); color: var(--white); border: none; padding: 0 25px; font-weight: 600; transition: var(--transition-smooth); }
.newsletter-form .btn:hover { background: var(--accent-color); color: var(--text-dark); }
.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* =========================================
   FAQ Accordion
   ========================================= */
.custom-accordion .accordion-item {
    border: none;
    background-color: var(--white);
    border-radius: 16px !important;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.custom-accordion .accordion-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.custom-accordion .accordion-button {
    background-color: var(--white);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 25px 30px;
    box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(0, 193, 250, 0.03);
}

.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1a1a'%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");
    transition: transform 0.4s ease;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238f0426'%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");
    transform: rotate(-180deg);
}

.custom-accordion .accordion-body {
    padding: 0 30px 25px;
    color: var(--text-muted);
    line-height: 1.8;
    background-color: rgba(0, 193, 250, 0.03);
}

/* =========================================
   Testimonial Swiper Slider
   ========================================= */
.testimonial-section {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.testimonialSwiper {
    width: 100%;
    padding-top: 20px !important;
    padding-bottom: 60px !important;
}

.testimonialSwiper .swiper-slide {
    height: auto;
    transition: all 0.4s ease;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 193, 250, 0.1);
    border-color: rgba(0, 193, 250, 0.2);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0;
    margin-bottom: 20px;
    transform: translateY(20px) scale(0.5);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonialSwiper .swiper-slide-active .quote-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.2s;
}

.testimonial-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
    font-style: italic;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.testimonialSwiper .swiper-slide-active .testimonial-text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.testimonialSwiper .swiper-slide-active .testimonial-author {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.testimonial-author img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all 0.5s ease;
}

.testimonialSwiper .swiper-slide-active .testimonial-author img {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(243, 198, 11, 0.5);
}

.testimonial-author h5 {
    color: var(--text-dark);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.testimonial-author span {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Swiper Pagination Styling */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    transition: all 0.4s ease !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    width: 40px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 10px var(--accent-color);
}

/* =========================================
   Bootstrap 3D Flip Cards (On-Click)
   ========================================= */
.bootstrap-flip-card {
    background-color: transparent;
    height: 380px;
    perspective: 1500px;
    cursor: pointer;
    border-radius: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

/* Toggle flip on hover */
.bootstrap-flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.flip-card-front {
    background: var(--white);
    transition: all 0.5s ease;
}

.flip-card-front:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px);
}

.bootstrap-flip-card:hover .flip-card-front:hover {
    transform: none; /* disable hover lift when flipped */
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, #007a9e 100%);
    color: white;
    transform: rotateY(180deg);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #007a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 193, 250, 0.2);
    transition: transform 0.5s ease;
}

.bootstrap-flip-card .icon-circle {
    transform: scale(1.1) rotate(10deg);
}

.bounce-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bounce-btn:hover {
    transform: scale(1.05);
    background: transparent;
    color: var(--white) !important;
    border-color: var(--white);
}

/* =========================================
   Our Work / Portfolio Section
   ========================================= */
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 193, 250, 0.2);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 193, 250, 0.95) 0%, rgba(0, 193, 250, 0.4) 50%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-category {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.portfolio-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
}

/* =========================================
   Client Logo Marquee
   ========================================= */
.logo-marquee-section {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    width: 200%; /* Double width for smooth loop */
    animation: scroll-marquee 20s linear infinite;
}

.marquee-container:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    width: 50%; /* Half the container width */
    align-items: center;
}

.client-logo {
    max-height: 50px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    padding: 0 40px;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
