/* Header Styles */
.navbar {
    padding: 0;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 0;
    background: var(--charcoal-grey);
}

.navbar.scrolled .nav-link, 
.navbar.scrolled .navbar-brand {
    color: #fff !important;
    padding: 0;
}

.navbar-brand img {
    max-width: 175px;
    transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-brand img {
    max-width: 175px;
}

.nav-link {
    font-weight: 500;
    color: var(--charcoal-grey);
    margin: 0 15px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition-smooth);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange) !important;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar.scrolled .fa-bars {
    color: white;
}
/* Footer Styles */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-orange);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    text-align: center;
    font-size: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
}

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

.scroll-top:hover {
    background-color: var(--charcoal-grey);
    color: #fff;
    transform: translateY(-5px);
}

/* Home Page Styles */
.py-section { padding: var(--section-padding); }

.hero-section {
    height: 75vh; /* Decreased height */
    min-height: 500px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Faster fade */
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 10s linear infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

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

.hero-section .container {
    z-index: 2;
}

.hero-section h1 {
    animation: lightSpeedIn 1s ease-out;
}

.hero-section p {
    animation: lightSpeedIn 1.2s ease-out;
}

@keyframes lightSpeedIn {
    0% {
        transform: translateX(100%) skewX(-30deg);
        opacity: 0;
    }
    60% {
        transform: translateX(-20%) skewX(20deg);
        opacity: 1;
    }
    80% {
        transform: translateX(0%) skewX(-5deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0%) skewX(0deg);
        opacity: 1;
    }
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-orange);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--hover-shadow);
    text-align: center;
}

.service-card {
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--charcoal-grey) !important;
    color: #fff !important;
}

.service-card:hover .text-secondary {
    color: rgba(255,255,255,0.7) !important;
}

.service-card .text-primary-orange:hover {
    color: var(--primary-orange);
}

/* Building Zoom Section */
.building-zoom-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.building-zoom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1);
    transition: transform 0.1s ease-out;
}

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

.bg-white-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bg-dark-glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow) !important;
}

.italic { font-style: italic; }

.testimonial-card {
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.category-card .category-img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%);
    transition: var(--transition-smooth);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(255, 140, 0, 0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stat-card {
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--primary-orange) !important;
    background: rgba(255, 140, 0, 0.05);
}

.bg-primary-orange { background-color: var(--primary-orange); }

/* Horizontal Scroll for Products */
.horizontal-scroll-container {
    overflow-x: auto;
    padding-bottom: 20px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

.horizontal-scroll-wrapper {
    display: flex;
    gap: 30px;
}

.horizontal-item {
    flex: 0 0 350px;
}

/* Zoom Out Effect Section */
.zoom-out-section {
    position: relative;
    height: 250vh; /* Increased height for longer scroll effect */
}

.zoom-out-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zoom-out-content {
    position: relative;
    z-index: 20;
    pointer-events: none;
}

.zoom-out-product {
    width: 400px;
    height: 500px;
    background-size: cover;
    background-position: center;
    z-index: 10;
    transition: transform 0.1s ease-out;
    position: relative;
}

.zoom-out-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    filter: blur(5px);
}

.grid-item {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* Client Logos */
.client-logo {
    transition: var(--transition-smooth);
    filter: grayscale(100%);
    opacity: 0.7;
}

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

/* Workspace Showcase */
.workspace-card {
    position: relative;
    cursor: pointer;
}

.workspace-card img {
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.workspace-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.object-fit-cover {
    object-fit: cover;
}

/* Timeline Effect */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-orange);
    opacity: 0.3;
    transform: translateX(-50%);
}

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

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary-orange);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px var(--primary-orange-glow);
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-dot {
        left: 20px !important;
    }
}

/* Premium Form Styles */
.premium-form-container h2, 
.premium-form-container h5 {
    font-family: 'Playfair Display', serif;
}

.form-control-premium {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    color: #fff;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control-premium:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.form-control-premium::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.radio-premium {
    position: relative;
}

.radio-premium input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-premium label {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #fff;
    min-width: 120px;
    text-align: center;
}

.radio-premium input[type="radio"]:checked + label {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.radio-premium label:hover {
    border-color: #fff;
}

.btn-premium-submit {
    background: var(--primary-orange); /* Dark green/grey as in image */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-premium-submit:hover {
    background: #fff;
    transform: translateY(-2px);
    color: var(--dark-grey);
}

.border-start-md {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
    .border-start-md {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 2rem;
    }
}

/* Premium Product & Category Styles */
.category-card-premium {
    height: 350px;
}

.category-overlay-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.category-card-premium:hover .category-overlay-premium {
    background: rgba(0, 0, 0, 0.7);
}

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

.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-orange-rgb), 0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-premium:hover .product-hover-overlay {
    opacity: 1;
}

.product-detail-card {
    min-height: 500px;
}

@media (max-width: 991px) {
    .product-detail-card {
        min-height: auto;
    }
}

/* Page Header Styles */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 250px; /* Reduced height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .page-header {
        min-height: 200px;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Sticky Horizontal Scroll Section */
.sticky-horizontal-section {
    height: 500vh; /* Control the scroll duration */
    position: relative;
}

.sticky-horizontal-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sticky-horizontal-header {
    margin-bottom: 50px;
}

.sticky-horizontal-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
}

.sticky-horizontal-content {
    display: flex;
    gap: 80px;
    padding: 0 2vw;
    will-change: transform;
}

.sticky-horizontal-item {
    flex: 0 0 1000px; /* Maximum impact */
    height: 650px;
}

@media (max-width: 768px) {
    .sticky-horizontal-item {
        flex: 0 0 85vw;
        height: 350px;
    }
    .sticky-horizontal-section {
        height: auto;
    }
    .sticky-horizontal-container {
        position: relative;
        height: auto;
        padding: 50px 0;
    }
    .sticky-horizontal-content {
        overflow-x: auto;
        padding: 0 20px;
    }
}

/* Premium Workspace Styles */
.workspace-card-premium {
    position: relative;
    cursor: pointer;
    background: #000;
}

.workspace-card-premium img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.8;
}

.workspace-card-premium:hover img {
    transform: scale(1.1);
    opacity: 0.6;
}

.workspace-overlay-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    transition: all 0.5s ease;
}

.workspace-card-premium:hover .workspace-overlay-premium {
    background: linear-gradient(to top, rgba(var(--primary-orange-rgb), 0.4) 0%, transparent 100%);
}

/* Client Slider Styles */
.client-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: #fff;
    position: relative;
}

.client-slider-container::before,
.client-slider-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.client-slider-container::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.client-slider-container::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.client-slider-track {
    display: flex;
    width: calc(250px * 62); /* 31 logos * 2 * 250px */
    animation: scrollInfinite 60s linear infinite;
}

.client-logo-item {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

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

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 31)); }
}

@media (max-width: 768px) {
    .client-slider-track {
        width: calc(150px * 62);
    }
    .client-logo-item {
        width: 150px;
        padding: 0 20px;
    }
    @keyframes scrollInfinite {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 31)); }
    }
}

/* Animated Border CTA Buttons */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.btn-cta-animate {
    --border-size: 2px;
    --border-radius: 50px;
    position: relative;
    z-index: 1;
    border: none !important;
    background: var(--primary-orange) !important;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-weight: 600;
}

.btn-cta-animate:hover {
    transform: translateY(-3px);
    color: #fff !important;
}

.btn-cta-animate::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--border-size));
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(
        from var(--border-angle), 
        transparent 20%, 
        rgba(255, 255, 255, 1) 50%,
        transparent 80%
    );
    animation: border-rotate 3s linear infinite;
}

.btn-cta-animate::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--primary-orange);
    border-radius: calc(var(--border-radius) - var(--border-size));
    transition: background 0.3s ease;
}

.btn-cta-animate:hover::after {
    background: var(--charcoal-grey);
}

@keyframes border-rotate {
    from { --border-angle: 0deg; }
    to { --border-angle: 360deg; }
}
