/* --- 1. Theming & Color Variables --- */
:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #f4f4f4;
    --primary-text: #333333;
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-shadow: rgba(0, 0, 0, 0.1);
    --accent-color: #8A2BE2;
    /* Default Accent */
    --accent-text: #FFFFFF;
}

body.dark-mode {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --primary-text: #e0e0e0;
    --header-bg: rgba(30, 30, 30, 0.9);
    --header-shadow: rgba(0, 0, 0, 0.5);
}

/* --- 2. On-Load Animations (FIXED) --- */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        scale: 0.8;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

.animate-onload {
    opacity: 1;
    /* Initially hidden */
    animation-fill-mode: forwards;
    /* IMPORTANT FIX: Keeps the final state */
}

.logo.animate-onload {
    animation: slideDown 0.8s ease-out 0.2s;
}

.cta-button.animate-onload {
    animation: fadeIn 0.8s ease-out 1.2s;
}

.nav-links li.animate-onload {
    animation: slideInFromRight 0.6s ease-out;
}

/* Staggered delay for each nav link */
.nav-links li:nth-child(1) {
    animation-delay: 0.2s;
}

.nav-links li:nth-child(2) {
    animation-delay: 0.4s;
}

.nav-links li:nth-child(3) {
    animation-delay: 0.6s;
}

.nav-links li:nth-child(4) {
    animation-delay: 0.8s;
}

.nav-links li:nth-child(5) {
    animation-delay: 1.0s;
}

.nav-links li:nth-child(6) {
    animation-delay: 1.2s;
}

.nav-links li:nth-child(7) {
    animation-delay: 1.4s;
}

.nav-links li:nth-child(8) {
    animation-delay: 1.6s;
}

/* --- 3. General, Header, Footer Styles --- */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    transition: background-color 0.4s, color 0.4s;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--header-shadow);
    transition: background-color 0.4s, box-shadow 0.4s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links .active {
    color: var(--accent-color);
}

.cta-button {
    padding: 12px 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: var(--accent-text);
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-text);
}

.content,
.footer {
    /* padding: 40px; */
}

.hero-section,
.info-section {
    padding: 60px 20px;
    background: var(--primary-bg);
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 20px;
}

/* --- 4. Theme Customizer Panel (Old Design) --- */
.settings-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--accent-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-customizer-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translate(100%, -50%);
    width: 280px;
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    padding: 20px;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: transform 0.4s ease-in-out;
}

.theme-customizer-panel.active {
    transform: translate(0, -50%);
}

.theme-customizer-panel h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--primary-text);
    padding-bottom: 10px;
}

.theme-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.accent-section {
    flex-direction: column;
    align-items: flex-start;
}

.accent-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active {
    border-color: var(--accent-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- 5. Scroll & Responsive Styles --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .header-container {
        padding: 10px 20px;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .main-nav.active {
        max-height: 500px;
        box-shadow: 0 4px 5px var(--header-shadow);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        padding: 15px;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .nav-links a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: block;
    }

    .cta-button {
        display: none;
    }

    .carousel-container {
        height: 50vh;
    }

    .slide-text h2 {
        font-size: 1.8rem;
    }

    .slide-text p {
        font-size: 1rem;
        color: burlywood;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .feature-row {
        gap: 30px;
    }

    .final-cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* --- 6. Animated Carousel Styles --- */
.carousel-section {
    padding: 0;
    background-color: var(--primary-bg);
    overflow: hidden;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%; /* Changed from 300% to handle dynamic slides */
    height: 100%;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0; /* Prevent slides from shrinking */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.slide-text {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    max-width: 600px;
    z-index: 10;
}

/* Advanced Text Animation */
.slide-text h2,
.slide-text p,
.slide-text .slide-button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.carousel-slide.active .slide-text p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;

}

.carousel-slide.active .slide-text .slide-button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.slide-text h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: burlywood;

}

.slide-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--accent-text);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.slide-button:hover {
    transform: scale(1.05);
}

/* Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s;
    opacity: 0.8;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

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

/* Pause on hover */
.carousel-container:hover .carousel-auto-play {
    animation-play-state: paused;
}

/* Responsive adjustments for Carousel */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .carousel-container {
        height: 50vh;
        min-height: 250px;
    }

    .slide-text {
        left: 5%;
        right: 5%;
        bottom: 8%;
    }

    .slide-text h2 {
        font-size: 1.8rem;
    }

    .slide-text p {
        font-size: 1rem;
        color: burlywood;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 40vh;
        min-height: 300px;
    }

    .slide-text h2 {
        font-size: 1.5rem;
    }

    .slide-text p {
        font-size: 0.9rem;
        color: burlywood;
    }

    .slide-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .final-cta-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* --- HOME: SERVICES SLIDER --- */
    .service-card-v2 {
        min-width: 280px;
    }

    /* --- PROJECTS SECTION --- */
    .projects-grid-v3 {
        grid-template-columns: 1fr;
    }

    /* Stack project cards */
    .project-card-v3 {
        height: 400px;
    }

    /* --- TABS SECTION --- */
    .tabs-container {
        flex-direction: column;
        gap: 20px;
    }

    .tab-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    /* --- ABOUT US PAGE --- */
    .story-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    /* Move timeline to the left */
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: -10px;
        /* Position dot on the line */
    }

    /* --- BLOG PAGE --- */
    .featured-post,
    .trending-cta-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form input {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 5px;
    }

    /* --- FAQ PAGE --- */
    .faq-main-section {
        flex-direction: column;
    }

    .faq-sidebar {
        position: static;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
    }

    .faq-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .faq-sidebar li a {
        border-left: none;
        border-radius: 20px;
        background: #f0f0f0;
    }

    .faq-sidebar li a.active {
        background: var(--accent-color);
        color: white;
    }

    /* --- CONTACT US PAGE --- */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* --- FOOTER --- */
    .footer-container,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .social-icons {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}


/* --- 7. Advanced Services Section --- */
.services-section {
    padding: 50px 50px;
    text-align: center;
    overflow: hidden;
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 50px;
    padding-bottom: 15px;
    letter-spacing: 2px;
    opacity: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.d-fex {
    display: flex;
    justify-content: center;
}

#services-title.visible::after {
    width: 80%;
    transition-delay: 0.8s;
}

#services-title.visible {
    opacity: 1;
}

#services-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: letter-reveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes letter-reveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section-cta.reveal-on-scroll.visible {
    animation: zoom-and-float 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1s;
}

@keyframes zoom-and-float {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: fit-content;
}

.service-item {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--accent-text);
    padding: 20px 20px 20px 50px;
    /* Space for the icon */
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-icon {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.service-item:hover .service-icon {
    transform: translateY(-50%) rotate(360deg);
}

/* Staggered animation for service items on scroll */
.service-item.reveal-on-scroll {
    transition-delay: calc(0.1s * var(--item-index));
}

.section-cta {
    margin-top: 50px;
    display: flex;
    justify-content: end;
    padding: 0 30px;
}

.cta-secondary {
    background-color: var(--accent-color);
    color: var(--accent-text);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s;
    border: 2px solid transparent;
    display: inline-block;
    animation: pulse-effect 2s infinite;
}

@keyframes pulse-effect {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.cta-secondary:hover {
    background-color: var(--accent-text);
    color: var(--accent-color);
    transform: scale(1.05);
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 80%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
}

.cta-secondary:hover::before {
    left: 100%;
}

.cta-secondary .fa-arrow-right {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-secondary:hover .fa-arrow-right {
    transform: translateX(5px);
}

/* Responsive adjustments for Services Section */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack items on smaller screens */
        gap: 50px;
    }

    .service-item {
        padding: 20px 20px 20px 40px;
    }

    .service-icon {
        left: -20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* --- 1. CORE SERVICES V2 --- */
.services-v2-section {
    padding: 20px 20px;
    background: var(--primary-bg);
    overflow: hidden;
}

.slider-nav {
    justify-self: self-end;
    padding: 10px;
}

.slider-nav .nav-arrow {
    width: 45px;
    height: 45px;
    background: var(--primary-bg);
    color: var(--primary-text);
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s;
}

.slider-nav .nav-arrow:hover {
    background: var(--accent-color);
    color: white;
}

.services-slider-container {
    overflow: hidden;
    padding: 5px 0;
}

.services-slider {
    display: flex;
    transition: transform 0.6s ease;
}

.service-card-v2 {
    min-width: 320px;
    margin: 0 15px;
    background: var(--primary-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    text-align: left;
    position: relative;
}

.service-card-v2 .card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-card-v2 .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-v2 .card-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.read-more-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: var(--accent-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    white-space: nowrap;
    font-size: 0.85rem !important;
}

.service-card-v2:hover .card-image::after {
    opacity: 1;
}

.service-card-v2:hover .card-image img {
    transform: scale(1.1);
}

.service-card-v2:hover .read-more-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Optional: Add hover animation */
.read-more-overlay:hover {
    background: white;
    color: var(--accent-color);
}

.service-card-v2 .card-content {
    padding: 25px;
    position: relative;
}

.service-card-v2 h3 {
    margin: 0 0 10px;
}

.service-card-v2 p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* --- 4. REVIEWS SECTION V2 --- */
.reviews-v2-section {
    padding: 50px 50px;
    background: var(--primary-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.review-slider-v2 {
    position: relative;
    width: 100%;
    height: 250px;
    max-width: 800px;
    margin: 0 auto;
}

.review-slide-v2 {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.review-slide-v2.active {
    opacity: 1;
}

.review-slide-v2 img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.review-slide-v2 p {
    max-width: 600px;
    font-size: 0.85rem;
    font-style: italic;
}

.review-slide-v2 h4 {
    margin: 15px 0 5px;
    color: var(--accent-color);
}

.slider-dots-v2 {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.slider-dots-v2 .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.slider-dots-v2 .dot.active {
    background: var(--accent-color);
}

.projects-v3-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
}

.projects-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.project-card-v3 {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 300px; /* Fixed height */
}

.project-card-v3 .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-card-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-v3 .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card-v3:hover .card-content {
    transform: translateY(0);
}

.project-card-v3:hover img {
    transform: scale(1.05);
}

/* Fix for hidden elements */
.project-card-v3[style*="display: none"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
.filter-buttons {
    /* margin: 30px 0; */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-btn i {
    font-size: 1rem;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.filter-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover i {
    color: white;
}

.filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

.filter-btn.active i {
    color: white;
}

.project-card-v3 .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.project-card-v3:hover .card-inner {
    transform: rotateY(10deg) rotateX(-10deg) scale(1.05);
}

.project-card-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-v3 .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 80%);
    color: #fff;
    z-index: 2;
    transform: translateZ(50px);
    /* 3D effect */
}

.category-tag {
    background: var(--accent-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 0.85rem;
    margin: 0;
}


/* --- 8. CLIENTELE SECTION --- */
.clientele-section {
    padding: 50px 50px;
    background: var(--secondary-bg);
}

.scroller {
    overflow: hidden;
    position: relative;
}

.scroller__inner {
    display: flex;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}

.scroller:hover .scroller__inner {
    animation-play-state: paused;
}

.clientele-section .scroller__inner img {
    height: 60px;
    margin: 0 30px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.4s;
    flex-shrink: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.clientele-section .scroller__inner img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Scrolling animation */
@keyframes scrollLeft {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clientele-section .scroller__inner img {
        height: 50px;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .clientele-section .scroller__inner img {
        height: 40px;
        margin: 0 15px;
    }

    .section-cta {
        padding: 0 !important;
    }

    .services-section {
        padding: 50px 20px !important;
    }

    .services-v2-section {
        padding: 50px 20px !important;
    }

    .reviews-v2-section {
        padding: 50px 20px !important;
    }

    .clientele-section {
        padding: 50px 20px !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .service-card-v2 {
        min-width: 90%;
    }

    /* Almost full width */

    /* --- PROJECTS SECTION --- */
    .filter-buttons {
        gap: 5px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    /* --- REVIEWS SECTION --- */
    .review-slide-v2 p {
        font-size: 1rem;
    }
}

/* --- 10. EXPANDED FOOTER V3 --- */
.footer-v3 {
    background: #111;
    color: #aaa;
    padding: 60px 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
}

.footer-column ul a:hover {
    color: var(--accent-color);
}

.footer-column p {
    line-height: 1.7;
    font-size: 0.85rem;
}

.footer-logo {
    width: 120px;
}

.footer-form {
    display: flex;
    margin-bottom: 20px;
}

.footer-form input {
    flex-grow: 1;
    border: none;
    padding: 12px;
    background: #333;
    color: white;
    border-radius: 5px 0 0 5px;
}

.footer-form button {
    border: none;
    padding: 0 20px;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: start;
    align-items: center;
    padding: 20px 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--accent-text);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    /* Use your theme accent or change to e.g. #0077b5 */
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* .footer-social a { color: #aaa; margin-right: 15px; font-size: 1.1rem; text-decoration: none;} */
.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-color);
    text-decoration: none;
}



/* --- 1. Page Hero Section --- */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
    
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--header-bg);
}

/* Animation for Hero Content */
.hero-content.reveal-on-scroll.visible {
    animation: fade-up 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 2. Page Content Section --- */
.page-content {
    padding: 20px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-row--reverse {
    /* On desktop, the image will be on the right */
}

.feature-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-top: 0;
    color: var(--accent-color);
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.cta-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-link:hover {
    background: var(--primary-text);
    transform: translateY(-3px);
}

/* Animations for Feature Rows */
.feature-row .feature-image.reveal-on-scroll {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.feature-row .feature-text.reveal-on-scroll {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.feature-row--reverse .feature-image {
    grid-column: 2 / 3;
    /* Image on the right */
    grid-row: 1 / 2;
}

.feature-row--reverse .feature-text {
    grid-column: 1 / 2;
    /* Text on the left */
    grid-row: 1 / 2;
}

.feature-row--reverse .feature-image.reveal-on-scroll {
    transform: translateX(50px);
    /* Animate from right */
}

.feature-row--reverse .feature-text.reveal-on-scroll {
    transform: translateX(-50px);
    /* Animate from left */
}

/* When visible, bring to original position */
.feature-row .reveal-on-scroll.visible {
    transform: translateX(0);
    opacity: 1;
}

/* --- 3. Responsive Adjustments --- */
@media (max-width: 992px) {
    .feature-row {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .feature-row,
    .feature-row--reverse {
        grid-template-columns: 1fr;
        /* Stack into a single column */
        margin-bottom: 60px;
    }

    .feature-row--reverse .feature-image {
        /* Reset grid order for consistency on mobile */
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .feature-row--reverse .feature-text {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .feature-text {
        text-align: center;
    }
}

/* --- ABOUT US PAGE STYLES (FROM SCRATCH) --- */
/* 1. About Hero */
.about-hero {
    /* Uses the same styles as .page-hero from inner-page */
    position: relative;
    height: 20vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.about-hero .hero-content h1 {
    font-size: 3.5rem;
}

/* 2. Story Section */
.story-section {
    padding: 20px 20px;
    background: var(--primary-bg);
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* .story-content .section-title { text-align: left; } */
.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 3. Mission and Vision Section */
.mission-vision-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.mission-card {
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mission-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.mission-card h3 {
    margin: 0 0 10px;
}

/* 4. Timeline Section */
.timeline-section {
    padding: 20px 20px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    /* The central line */
    content: '';
    position: absolute;
    width: 3px;
    background: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
}

.timeline-item::after {
    /* The dot on the line */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--secondary-bg);
    border: 4px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--secondary-bg);
    border-radius: 10px;
}

/* Timeline Animations */
.timeline-item.reveal-on-scroll {
    opacity: 0;
    transition: transform 0.8s, opacity 0.8s;
}

.timeline-item:nth-child(odd).reveal-on-scroll {
    transform: translateX(-50px);
}

.timeline-item:nth-child(even).reveal-on-scroll {
    transform: translateX(50px);
}

.timeline-item.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 5. CTA Section */
.cta-section {
    /* Uses .page-hero styles */
    position: relative;
    padding: 20px 20px;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.cta-content h2 {
    font-size: 2.5rem;
}

.cta-content p {
    max-width: 600px;
    margin: 15px auto 30px;
}

/* Responsive Adjustments for About Page */
@media (max-width: 992px) {
    .story-container {
        grid-template-columns: 1fr;
    }


}

@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: -10px;
    }
}

/* --- ABOUT US PAGE - REDESIGNS (V4) --- */

/* 1. Hero Section Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    animation: breadcrumb-fade-in 1s ease 0.5s forwards;
    opacity: 0;
}

.breadcrumbs ul {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
}

.breadcrumbs li {
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumbs a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs .separator {
    margin: 0 10px;
    font-size: 0.7rem;
    color: #aaa;
}

@keyframes breadcrumb-fade-in {
    to {
        opacity: 1;
    }
}

/* --- UNIVERSAL BREADCRUMBS STYLE --- */
/* .breadcrumbs {
    margin-bottom: 20px;
    animation: breadcrumb-fade-in 1s ease 0.5s forwards;
    opacity: 0;
}
.breadcrumbs ul {
    display: inline-flex; align-items: center; list-style: none;
    padding: 8px 20px; margin: 0; background: rgba(0,0,0,0.2);
    border-radius: 50px;
}
.breadcrumbs li { font-size: 0.9rem; font-weight: 500; }
.breadcrumbs a { color: #ddd; text-decoration: none; transition: color 0.3s; }
.breadcrumbs a:hover { color: white; }
.breadcrumbs .separator { margin: 0 10px; font-size: 0.7rem; color: #aaa; }
@keyframes breadcrumb-fade-in { to { opacity: 1; } } */

/* 2. Team Section V4 (New Professional Design) */
.team-v4-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.team-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.team-card-v4 {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-photo-v4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card-v4:hover .team-photo-v4 img {
    transform: scale(1.1);
}

.team-details-v4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, transparent);
    transform: translateY(calc(100% - 90px));
    /* Initially show only name/role area */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card-v4:hover .team-details-v4 {
    transform: translateY(0);
}

.team-info-v4 h4 {
    margin: 0 0 5px;
    font-size: 1.3rem;
}

.team-info-v4 p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}

.team-bio-v4 {
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    /* Delay opacity transition */
}

.team-card-v4:hover .team-bio-v4 {
    opacity: 1;
}

.team-bio-v4 p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-social-v4 {
    margin-top: 15px;
}

.team-social-v4 a {
    color: white;
    margin: 0 10px;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
}

.team-social-v4 a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* --- ABOUT US PAGE - COMPANY STATUS SECTION --- */

.stats-section {
    padding: 20px 20px;
    background-color: var(--primary-bg);
    /* Use a light background */
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--secondary-bg);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0;
}

.stat-card p {
    font-size: 1rem;
    color: #6c757d;
    margin: 5px 0 0;
}

/* Staggered animation for stat cards */
.stat-card.reveal-on-scroll {
    transition-delay: calc(0.1s * var(--item-index));
}


/* --- PORTFOLIO PAGE STYLES (FROM SCRATCH) --- */
/* 1. Portfolio Hero */
.portfolio-hero {
    /* Uses .page-hero and .about-hero styles */
    position: relative;
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.portfolio-hero .hero-content h1 {
    font-size: 3.5rem;
}

.cta-button-hero {
    margin-top: 30px;
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button-hero:hover {
    background: white;
    color: var(--accent-color);
    transform: scale(1.05);
}

/* 2. Featured Projects Section */
.featured-projects-section {
    padding: 20px 20px;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    /* Controls the height of rows */
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.featured-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    grid-column: span 1;
    grid-row: span 1;
}

.featured-card.wide {
    grid-column: span 2;
}

.featured-card.tall {
    grid-row: span 2;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover img {
    transform: scale(1.1);
}

.featured-card .card-overlay {
    /* Uses .card-overlay from previous designs, but with different text alignment */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s;
}

.featured-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    margin: 0;
}

.card-overlay p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}


@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        /* Stack all cards */
        grid-auto-rows: 250px;
        /* Reset auto rows */
    }

    .featured-card.wide,
    .featured-card.tall {
        grid-column: span 1;
        /* Reset spans */
        grid-row: span 1;
    }
}


/* --- SERVICES PAGE STYLES (FROM SCRATCH) --- */

/* 1. Hero Section */
.services-hero {
    position: relative;
    height: 40vh;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: #2c3e50;
    overflow: hidden;
}

.services-hero::before {
    /* Ken Burns Effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background-image: url('https://via.placeholder.com/1920x1080/555/fff?text=Our+Services');
    background-size: cover;
    background-position: center;
    animation: ken-burns 20s infinite;
}

@keyframes ken-burns {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.services-hero .hero-content h1 {
    font-size: 3.5rem;
}

.scroll-prompt {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* 2. Services Overview */
.overview-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-card {
    background: var(--primary-bg);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.overview-card i {
    font-size: 3rem;
    color: var(--accent-color);
    transition: transform 0.4s;
}

.overview-card:hover i {
    transform: rotateY(360deg);
}

.overview-card a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* 3. Detailed Services (Tabs) */
.detailed-services-section {
    padding: 20px 20px;
}

/* Re-uses .tabs-container, .tab-btn, .tab-content styles from previous responses */

/* 4. Process Timeline */
.process-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 40px auto 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    width: 90%;
    height: 4px;
    background: #ddd;
}

.timeline-step {
    position: relative;
    text-align: center;
    width: 25%;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 4px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.timeline-step.visible .step-icon {
    border-color: var(--accent-color);
}

/* 5. Portfolio Snippets Carousel */
.portfolio-snippet-section {
    padding: 20px 20px;
}

/* Re-uses carousel styles from previous responses */

/* 8. CTA Section */
.cta-v2-section {
    padding: 20px 20px;
    background: var(--accent-color);
    text-align: center;
    color: white;
}

.cta-v2-section h2 {
    font-size: 2.5rem;
}

.cta-v2-section .cta-button {
    background: white;
    color: var(--accent-color);
    transition: all 0.3s;
}

.cta-v2-section .cta-button:hover {
    transform: scale(1.1);
    background: #eee;
}

/* 9. FAQ Section */
.faq-section {
    padding: 20px 20px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.4s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
    padding: 0 20px 20px;
}

/* 10. Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

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

/* --- SERVICES PAGE - PORTFOLIO SNIPPET CAROUSEL --- */
.portfolio-snippet-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.portfolio-carousel {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    overflow: hidden;
}

.carousel-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.portfolio-slide {
    position: relative;
    min-width: 33.33%;
    /* Show 3 slides on desktop */
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-slide img {
    width: 100%;
    display: block;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    /* Match padding */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, transparent);
    color: white;
    padding: 40px 20px 20px;
    border-radius: 0 0 15px 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-slide:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin: 0 0 5px;
}

.portfolio-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.portfolio-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.portfolio-dots .dot.active {
    background: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .portfolio-slide {
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .portfolio-slide {
        min-width: 100%;
    }
}


/* --- BLOG PAGE STYLES (FROM SCRATCH) --- */
.blog-hero {
    position: relative;
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -20px);
    }

    60% {
        transform: translate(-50%, -10px);
    }
}

.featured-post-section {
    padding: 20px 10px;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.featured-image img {
    width: 100%;
    border-radius: 15px;
}

.blog-categories {
    padding: 0 20px 40px;
    text-align: center;
}

.blog-grid-section {
    padding: 20px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    /* Similar to .service-card from previous designs */
    background: var(--primary-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 15px;
}

.newsletter-section {
    padding: 20px 20px;
    text-align: center;
    background-color: var(--accent-color);
    color: white;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.newsletter-form input {
    width: 300px;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 0 5px 5px 0;
    background: #333;
    color: white;
    cursor: pointer;
}

.authors-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.authors-carousel {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.author-card {
    text-align: center;
}

.author-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.trending-cta-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 80px;
    align-items: center;
}

.trending-posts h3 {
    margin-top: 0;
}

.trending-posts ul {
    list-style: none;
    padding: 0;
}

.trending-posts li {
    margin-bottom: 15px;
}

.trending-posts a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
}

.views {
    float: right;
    color: #6c757d;
}

.final-cta {
    text-align: center;
}

.blog-footer {
    /* Uses styles from .footer-v3 */
    background: #111;
    color: #aaa;
    padding: 60px 20px;
}

.tags-cloud a {
    display: inline-block;
    padding: 5px 10px;
    background: #333;
    border-radius: 5px;
    margin: 5px;
    text-decoration: none;
    color: #aaa;
    transition: all 0.3s;
}

.tags-cloud a:hover {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {

    .featured-post,
    .trending-cta-section {
        grid-template-columns: 1fr;
    }
}


/* --- GALLERY PAGE STYLES (FROM SCRATCH) --- */

/* 1. Hero Section */
.gallery-hero {
    position: relative;
    height: 40vh;
    min-height: 250px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.gallery-hero h1 {
    font-size: 3.5rem;
}

/* 2. Category Filters */
.gallery-filters {
    padding: 40px 20px 0;
    text-align: center;
}

/* 3. Animated Gallery Grid (Masonry-like) */
.gallery-grid-section {
    padding: 40px 20px 80px;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Masonry responsive adjustments */
@media (max-width: 992px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 1;
    }
}

/* 4. Fullscreen Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

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

.lightbox-content {
    position: relative;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    transform: scale(0.8);
    transition: transform 0.4s;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
}

.lightbox-nav,
.lightbox-close {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-nav.prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lightbox-nav.next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* 5. Hover Effects Section */
.hover-effects-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.hover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.hover-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.hover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.5s;
}

.hover-card:hover .hover-content {
    opacity: 1;
}

/* Example Effects */
.hover-card:nth-child(1):hover img {
    filter: grayscale(1);
}

.hover-card:nth-child(3):hover img {
    filter: blur(5px);
}


/* --- FAQ PAGE STYLES (FROM SCRATCH) --- */
.faq-hero {
    /* Similar to about-hero */
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(45deg, #6a0dad, var(--accent-color));
}

.search-section {
    padding: 40px 20px;
    background: var(--secondary-bg);
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-bar input:focus {
    box-shadow: 0 0 0 3px var(--accent-color-light);
    border-color: var(--accent-color);
}

.faq-main-section {
    display: flex;
    gap: 40px;
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-sidebar {
    flex-shrink: 0;
    width: 200px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.faq-sidebar ul {
    list-style: none;
    padding: 0;
}

.faq-sidebar li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.faq-sidebar li a.active,
.faq-sidebar li a:hover {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.faq-content {
    flex-grow: 1;
}

.faq-category:not(:last-child) {
    margin-bottom: 50px;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.accordion-header i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.accordion-content p {
    padding: 0 0 15px;
    margin: 0;
    line-height: 1.7;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.submit-question-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.submit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 40px auto 0;
}

.submit-form input,
.submit-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.submit-form button {
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 992px) {
    .faq-sidebar {
        display: none;
        /* Hide sidebar on smaller screens */
    }
}


/* --- CONTACT US PAGE STYLES (FROM SCRATCH) --- */
.contact-hero {
    /* Similar to faq-hero */
    position: relative;
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(45deg, var(--accent-color), #3498db);
}

.contact-form-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
}

.contact-form-v2 {
    max-width: 800px;
    margin: 0 auto;
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 50px 0;
    border: none;
    font-size: 1rem;
    border-bottom: 2px solid #ccc;
    background: transparent;
    height: 100px;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    transition: all 0.3s;
    pointer-events: none;
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--accent-color);
    
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
    
}

.contact-form-v2 .submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.contact-form-v2 .submit-btn:hover {
    background: #333;
    transform: translateY(-3px);
}

.contact-options-section {
    padding: 20px 20px;
}

.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card a {
    display: block;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    background: var(--secondary-bg);
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.3s;
}

.contact-card a:hover {
    transform: translateY(-10px);
    background: var(--primary-bg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.faq-mini-section {
    padding: 20px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.faq-mini-section .faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-mini-section .section-title {
    text-align: center;
}

.final-cta-section {
    padding: 20px 20px;
}

.final-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.support-person {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.support-person img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.cta-box {
    padding: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 15px;
    text-align: center;
}

.cta-box .cta-button {
    background: white;
    color: var(--accent-color);
}
/* new changes  */
/* for front view pages of snadbox */
/* Add to your existing CSS */
.projects-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.project-card-v3 {
    width: 100%;
    margin-bottom: 0; /* Remove any bottom margin */
}

/* Ensure proper clearing */
.projects-v3-section {
    overflow: hidden;
    width: 100%;
}

/* Fix for hidden elements creating gaps */
.project-card-v3[style*="display: none"] {
    display: none !important;
}
.projects-v3-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
}

/* Updated Grid Layout */
.projects-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Single item centering */
.projects-grid-v3:has(.project-card-v3:only-child) {
    grid-template-columns: minmax(350px, 400px);
    justify-content: center;
}

/* Alternative for browsers without :has() support */
.projects-grid-v3-single {
    grid-template-columns: minmax(350px, 400px) !important;
    justify-content: center !important;
}

/* Ensure 3 items per row on larger screens */
@media (min-width: 1200px) {
    .projects-grid-v3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card-v3 {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 300px; /* Fixed height */
}

.project-card-v3 .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-card-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-v3 .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card-v3:hover .card-content {
    transform: translateY(0);
}

.project-card-v3:hover img {
    transform: scale(1.05);
}

/* Fix for hidden elements */
.project-card-v3[style*="display: none"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-btn i {
    font-size: 1rem;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.filter-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover i {
    color: white;
}

.filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

.filter-btn.active i {
    color: white;
}

.project-card-v3 .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.project-card-v3:hover .card-inner {
    transform: rotateY(10deg) rotateX(-10deg) scale(1.05);
}

.project-card-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-v3 .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 80%);
    color: #fff;
    z-index: 2;
    transform: translateZ(50px);
    /* 3D effect */
}

.category-tag {
    background: var(--accent-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .projects-grid-v3 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .projects-grid-v3:has(.project-card-v3:only-child) {
        grid-template-columns: minmax(300px, 350px);
    }
}

@media (max-width: 768px) {
    .projects-grid-v3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid-v3:has(.project-card-v3:only-child) {
        grid-template-columns: minmax(280px, 1fr);
    }
    
    .project-card-v3 {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem !important;
    }
    
    .projects-grid-v3 {
        gap: 15px;
    }
    
    .project-card-v3 {
        height: 220px;
    }
}