/*
* Arjuna Jati Manufacture - Main Stylesheet
* Version: 1.0
*/

/* ===============
   0. Preloader
   =============== */
   .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fadeOut {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 150px;
    margin-bottom: 20px;
}

.spinner {
    margin: 20px auto;
    width: 70px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    margin: 0 3px;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1.0);
    }
}

/* ===============
   1. General Styles
   =============== */
:root {
    --primary-color: #8B4513;   /* Brown for wood theme */
    --secondary-color: #A0522D; /* Sienna */
    --text-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --section-padding: 80px 0;
    --vh: 1vh;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important; /* Remove body padding */
    margin: 0;
}

h1, h2, h3, h4, h5, h6,
.section-title, .section-subtitle {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--secondary-color);
}

.section-location {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.btn {
    padding: 10px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-dark {
    color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline-dark:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.btn-outline-light {
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-outline-light:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* ===============
   2. Header Styles
   =============== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.navbar-hidden {
    transform: translateY(-100%);
}

/* Header layout adjustments */
.navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.brand-container {
    width: 25%; /* 2/8 of the width */
    padding-left: 6.25%; /* 1/16 padding */
}

.nav-container {
    width: 68.75%; /* 5/8 + 1/16 of the width */
    padding-right: 6.25%; /* 1/16 padding */
}

/* Justified navigation */
.nav-justified {
    display: flex;
    justify-content: space-between;
}

.nav-justified .nav-item {
    flex: 1;
    text-align: center;
}

/* Navigation styling */
.navbar-nav .nav-link {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--text-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

/* Add glow effect to nav links on transparent header */
.main-header:not(.scrolled) .navbar-nav .nav-link:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* Logo styling */
.logo-img {
    height: 60px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333; /* Dark color for better contrast on transparent header */
}

.company-tagline {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Style adjustments for transparent header */
.main-header:not(.scrolled) .nav-link {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.main-header:not(.scrolled) .company-name,
.main-header:not(.scrolled) .company-tagline {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--text-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

/* Add glow effect to nav links on transparent header */
.main-header:not(.scrolled) .navbar-nav .nav-link:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(139, 69, 19, 0.1);
    color: var(--primary-color);
}

/* ===============
   3. Hero Slider
   =============== */
.hero-slider-container {
    position: relative;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
    perspective: 1000px;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: transform 800ms ease, opacity 800ms ease, visibility 800ms ease;
    transform-origin: center center;
}

.hero-slide.active {
    visibility: visible;
    opacity: 1;
    z-index: 2;
    transform: translateZ(0) rotateY(0deg) scale(1);
}

.hero-slide.slide-previous {
    visibility: visible;
    opacity: 0.5;
    z-index: 1;
    transform: translateX(-30%) translateZ(-200px) rotateY(25deg);
}

.hero-slide.slide-next {
    visibility: visible;
    opacity: 0.5;
    z-index: 1;
    transform: translateX(30%) translateZ(-200px) rotateY(-25deg);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 7s ease;
    transform: scale(1);
    will-change: transform;
}

.hero-slide.active .slide-bg {
    transform: scale(1.1) !important;
    transition: transform 7s ease !important;
}

/* Text animation for slide content */
@keyframes slideInRight {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    max-width: 600px;
    width: 100%;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: -1;
}

/* FIXED: Make content visible by default */
.hero-slide .slide-content {
    z-index: 10;
    position: relative;
}

/* Only animate these elements with slideInRight */
.hero-slide.active .slide-content .slide-number,
.hero-slide.active .slide-content .btn {
    animation: slideInRight 0.8s forwards;
}

.slide-number {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.slide-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: none;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Button Animation Styles */
.hero-slide .btn-outline-light {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: none;
    padding-right: 35px;
}

/* Pulsating glow effect for active slide button */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
}

/* Slide-in effect for the button when slide becomes active */
@keyframes buttonSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for the button hover effect */
.hero-slide .btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.hero-slide .btn-outline-light:hover::before {
    left: 0;
}

/* Active slide button animations */
.hero-slide.active .btn-outline-light {
    animation: buttonSlideUp 0.8s forwards 0.8s, buttonPulse 2s infinite 1.6s;
}

/* Hover state enhancements */
.hero-slide .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

/* For touch devices */
.touch-device .hero-slide .btn-outline-light {
    animation-duration: 0.5s !important; /* Reduce animation time on touch devices */
}

/* Add subtle arrow animation */
.hero-slide .btn-outline-light::after {
    content: '→';
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slide .btn-outline-light:hover::after {
    opacity: 1;
    right: 10px;
}

/* Improved slider arrow buttons */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:focus {
    outline: none;
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

/* ===============
   4. Text Animation Styles (FIXED)
   =============== */
/* Splitting.js basic styles */
.splitting .word,
.splitting .char {
  display: inline-block;
}

/* Ensure characters are visible */
.splitting .char {
  position: relative;
  opacity: 1;
}

/* For WebKit browsers to properly handle the CSS variables */
.char {
  --char-index: 0;
}

/* Text animation core styles */
.splitting .char {
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Slide animation for inactive slides */
.hero-slide:not(.active) .slide-title.text--slide .char,
.hero-slide:not(.active) .slide-description.text--slide .char {
  opacity: 0;
  transform: translate(-100px, 0) skewX(10deg);
  transition: all 0.3s ease;
}

/* Animation for active slide */
.hero-slide.active .slide-title.text--slide .char {
  opacity: 1;
  transform: translate(0, 0) skewX(0);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: calc(0.05s * var(--char-index));
}

.hero-slide.active .slide-description.text--slide .char {
  opacity: 1;
  transform: translate(0, 0) skewX(0);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: calc(0.4s + (0.03s * var(--char-index)));
}

/* Make sure active slide text is always visible */
.hero-slide.active .slide-title,
.hero-slide.active .slide-description {
  opacity: 1 !important;
  visibility: visible !important;
}

.about-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.background-text {
    position: absolute;
    font-size: 15vw;
    font-weight: 900;
    color: #000;
    opacity: 0.2;
    z-index: 0;
    white-space: nowrap;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-family: Arial, sans-serif;
    letter-spacing: 4px;
}

.about-content, .about-image {
    position: relative;
    z-index: 1;
}

.about-content {
    padding-left: 30px;
}

.about-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===============
   5. Services Section
   =============== */
.service-content {
    padding-right: 30px;
}

.service-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===============
   6. Collection Section
   =============== */
.collection-content {
    padding: 80px;
    background-color: var(--light-color);
}

.collection-image img {
    height: 100%;
    object-fit: cover;
}

/* ===============
   7. Portfolio Section
   =============== */
.portfolio-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.portfolio-content {
    position: relative;
    z-index: 1;
}

/* ===============
   8. Furniture Collection Section
   =============== */
.furniture-collection-section {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.furniture-collection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.furniture-collection-section .container {
    position: relative;
    z-index: 1;
}

/* ===============
   9. Footer Styles
   =============== */
.main-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-logo {
    height: 60px;
}

.footer-heading {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links,
.footer-contact {
    padding: 0;
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
    text-decoration: none;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Touch-friendly styles */
.touch-friendly {
    padding: 10px !important;
}

.touch-device .btn {
    padding: 12px 20px;
}

/* ===============
   Responsive Styles 
   =============== */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
    }
    
    .section-location {
        font-size: 1.3rem;
    }
    
    .slide-title {
        font-size: 5rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .main-header {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
    }
    
    .main-header .company-name {
        font-size: 1.5rem;
        color: var(--text-color) !important;
        text-shadow: none !important;
    }
    
    .main-header .company-tagline {
        font-size: 0.9rem;
        color: var(--secondary-color) !important;
        text-shadow: none !important;
    }
    
    .main-header .navbar-toggler {
        border-color: var(--primary-color);
        margin-right: 15px;
    }
    
    .main-header .navbar-collapse {
        background-color: white;
        margin-top: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }
    
    .main-header .nav-link {
        color: var(--text-color) !important;
        text-shadow: none !important;
        text-align: left;
        padding: 10px 15px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-header .dropdown-menu {
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        padding: 0;
        margin: 0;
    }
    
    .main-header .dropdown-item {
        padding: 10px 30px;
    }
    
    .brand-container {
        width: auto;
        padding-left: 15px;
    }
    
    .nav-container {
        width: 100%;
        padding-right: 0;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .slide-title {
        font-size: 4rem;
    }
    
    .slide-content {
        left: 8%;
        max-width: 500px;
    }
    
    .hero-slider-container {
        height: 90vh;
        height: calc(var(--vh, 1vh) * 90);
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-arrow-prev {
        left: 20px;
    }
    
    .slider-arrow-next {
        right: 20px;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .background-text {
        display: none; /* Hide background text on smaller screens */
    }
    
    .service-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .collection-content {
        padding: 50px 30px;
    }
    
    .collection-image img {
        height: 400px;
    }
    
    .main-footer {
        padding: 60px 0 20px;
    }
    
    .footer-heading {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .slide-title {
        font-size: 3.2rem;
        white-space: normal; /* Allow line breaks on mobile */
        line-height: 1.1;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .slide-content {
        left: 5%;
        max-width: 90%;
        text-align: center;
    }
    
    .hero-slider-container {
        height: 80vh;
        height: calc(var(--vh, 1vh) * 80);
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .btn {
        margin-top: 10px;
    }
    
    .service-content {
        text-align: center;
    }
    
    .collection-content {
        padding: 40px 20px;
        text-align: center;
    }
    
    .collection-image img {
        height: 300px;
    }
    
    .portfolio-content {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .furniture-collection-section .btn {
        margin-top: 10px;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
        display: block;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-links li, 
    .footer-contact li {
        text-align: center;
    }
    
    /* Fix for dropdown alignment */
    .dropdown-menu {
        margin-left: 20px;
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .hero-slide .btn {
        padding: 7px 15px;
        font-size: 0.8rem;
    }
    
    .hero-slider-container {
        height: 70vh;
        height: calc(var(--vh, 1vh) * 70);
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .slider-arrow-prev {
        left: 10px;
    }
    
    .slider-arrow-next {
        right: 10px;
    }
    
    .main-header {
        padding: 8px 0;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .company-tagline {
        font-size: 0.8rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .preloader-logo {
        width: 120px;
    }
    
    .spinner > div {
        width: 14px;
        height: 14px;
    }
}

/* Orientation Specific Adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    /* Adjustments for landscape mode on phones */
    .hero-slider-container {
        height: 100vh; /* Use full height in landscape */
        height: calc(var(--vh, 1vh) * 100);
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
}

/* Add these stronger rules to your style.css */

/* More specific and forceful zoom effect */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1) !important;
    transition: none !important;
    will-change: transform;
}

/* Force the zoom animation for active slides */
.hero-slide.active .slide-bg {
    transform: scale(1.1) !important;
    transition: transform 7s ease !important;
}

/* Make sure inactive slides reset to initial state */
.hero-slide:not(.active) .slide-bg {
    transform: scale(1) !important;
    transition: none !important;
}

/* Animation styles for scroll effects */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Add staggered delays to children elements */
.about-content .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.about-content .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.about-content .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.about-content .animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.about-content .animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

/* Card Flip Effect for About Image */
.flip-card {
    background-color: transparent;
    width: 100%;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.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; /* Safari */
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: transparent;
    color: black;
}

.flip-card-back {
    background-color: transparent;
    color: white;
    transform: rotateY(180deg);
    position: relative;
}

.flip-card-back .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 20px;
}

.flip-card img {
    width: 100%;
    height: auto;
}

/* Fix height issues */
.flip-card, .flip-card-inner, .flip-card-front, .flip-card-back {
    height: auto;
}

.flip-card-front img, .flip-card-back img {
    display: block;
}

/* Make it touch friendly */
@media (hover: none) {
    .flip-card:active .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Add this to your style.css file */

/* Custom Contact Icon Styling */
.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

/* Improve footer contact links */
.footer-contact li a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-contact li a:hover {
    color: white;
    text-decoration: none;
}

/* Adjust vertical alignment */
.footer-contact li a span {
    vertical-align: middle;
}