/* Alison By IconicThemes */

/*  ==========================================================================
    Table of Contets
    ==========================================================================
    
    1.0 Common Styles
    2.0 Header Section
    3.0 Hero Section
    4.0 About Section
    5.0 Feature Section
    6.0 Video Section
    7.0 Screenshot Section
    8.0 Pricing Section
    9.0 Counter Section
    10.0 Testimonial Section
    11.0 Blog Section
    12.0 Download Section
    13.0 Subscribe Section
    14.0 Footer Section
    15.0 Scrool To Top
    
    ==========================================================================
    Alison Portfolio Template Version 0.1
    ========================================================================== */

	@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,500,600,700|Oswald:400,500,600,700');
	
/*  ==========================================================================
    Common Styles
    ========================================================================== */
*{
	padding: 0;
	margin: 0;
}
body{
    background-color: #050505;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: #777;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Oswald', sans-serif;
    -webkit-font-smoothing:antialiased;
	color: #333;
}
h1{
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -0.05em;
}
h2{
    font-size: 32px;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}
h3,h4{
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.7;
    color: #fff;
    letter-spacing: -0.01em;
}
h3{
    font-size: 18px;
}
h4{
    font-size: 16px;
}
h5,h6{
    font-size: 14px;
    margin: 0 0 10px;
}
img{
    border: none;
    outline:none;
    max-width: 100%;
}
ul{
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}
p, li, a, span{}
p{
    font-size: 15px;
    margin-bottom: 15px;
}
a, a:hover{
    text-decoration: none;
}
a:focus{
    outline: 0;
    text-decoration: none;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder{
   color: #ddd !important;
}

input:-moz-placeholder,
textarea:-moz-placeholder{ /* Firefox 18- */
   color: #ddd !important;  
}

input::-moz-placeholder,
textarea::-moz-placeholder{  /* Firefox 19+ */
   color: #ddd !important;  
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder{  
   color: #ddd !important;  
}
button{
    border: none;
	background: none;
}
/* Helper Class */
.padding{
    padding: 100px 0;
}
.no-padding{
    padding: 0;
}
.padding-15{padding: 15px;}
.padding-20{padding: 20px;}

.bg-white{ background-color: #fff; }
.bg-grey{ background-color: #eef3f9;}
.bg-dark{ background-color: #050505!important;}
.bd-top{ border-top: 1px solid #eaeaea;}
.bd-bottom{ border-bottom: 1px solid #eaeaea;}

.mb-10{ margin-bottom: 10px; }
.mb-15{ margin-bottom: 15px; }
.mb-20{ margin-bottom: 20px; }
.mb-25{ margin-bottom: 25px; }
.mb-30{ margin-bottom: 30px; }
.mb-35{ margin-bottom: 35px; }
.mb-40{ margin-bottom: 40px; }
.mb-45{ margin-bottom: 45px; }
.mb-50{ margin-bottom: 50px; }
.ml-15{ margin-left: 15px; }
.ml-20{ margin-left: 20px; }
.ml-25{ margin-left: 25px; }
.ml-30{ margin-left: 30px; }
.ml-35{ margin-left: 35px; }
.fz-28{ font-size: 28px; }
.fz-24{ font-size: 24px; }
.fz-22{ font-size: 22px; }
.fz-20{ font-size: 20px; }
.fz-18{ font-size: 18px; }
.fz-16{ font-size: 16px; }
.pd-15{ padding: 15px; }
.pdl-80{ padding-left: 80px; }
.text-black{
    color: #333;
}
.text-white{
    color: #ffffff;
}
.align-left{
    text-align: left;
}
.align-right{
    text-align: right;
}
.align-center{
    text-align: center;
}
.fl-right{
    float: right;
}
.fl-left{
    float: left;
}

.overlay{
    width: 100%;
    position: relative;
    z-index: 1;
}
.overlay:before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

/* Preloader Styles */
.loaded .site-preloader-wrap {
    opacity: 0;
    visibility: hidden;
}
.site-preloader-wrap {
    position: fixed;
    z-index: 9999;
    height: 100%;
    width: 100%;
    background: #111;
    top: 0;left: 0
}

.site-preloader-wrap .spinner {
    background-color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -20px;
    margin-top: -20px;
}

.spinner {
  width: 40px;
  height: 40px;

  border-radius: 100%;  
  -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
  0% { -webkit-transform: scale(0) }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% { 
    -webkit-transform: scale(0);
    transform: scale(0);
  } 100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}

/* Button Style */
.btn_group{}
.btn_group a{
    margin: 5px;
}
.default-btn{
    font-family: "Open Sans",sans-serif;
    letter-spacing: 2px;
    background-color: #ff4c4c;
    color: #ddd;
    line-height: 45px;
    display: inline-block;
    padding: 0 25px;
    border-radius: 0;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    z-index: 1;
    -webkit-transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     -o-transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.default-btn:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #fff;
    -webkit-transform-origin: right center;
       -moz-transform-origin: right center;
        -ms-transform-origin: right center;
            transform-origin: right center;
    -webkit-transform: scale(0, 1);
       -moz-transform: scale(0, 1);
        -ms-transform: scale(0, 1);
         -o-transform: scale(0, 1);
            transform: scale(0, 1);
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
       -moz-transition: -moz-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -ms-transition: -ms-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
         -o-transition: -o-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.default-btn:hover{
    color: #111;
}
.default-btn:hover:before{
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -ms-transform-origin: left center;
        transform-origin: left center;
    -webkit-transform: scale(1, 1);
       -moz-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
         -o-transform: scale(1, 1);
            transform: scale(1, 1);
}
.default-btn.btn_sm{
    line-height: 40px;
    padding: 0 15px;
}

/* Transition Effect */
a,a:hover, .overlay, img, .form-control,  .form-control:hover, button{
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}
/* ==========================================================================
   Header Section
   ========================================================================== */
.header-section{
    background-color: transparent;
    width: 100%;
    height: 80px;
    z-index: 999;
    position: fixed;
    left: 0;
    top: 0;
    padding: 10px 0;
}
.navbar-fixed-top.header-section{
    background-color: #111;
    box-shadow: 0px 16px 28px 0px rgba(0, 0, 0, 0.05);
    height: 70px;
    border-bottom: 0;
    padding: 0;
}

.social-link li a {
    color: #fff;
    font-size: 20px;
    margin: 0 10px;
}
.mainmenu .download-btn{
    background-color: #ef5560;
    box-shadow: 0 10px 35px 2px rgba(239, 85, 96, 0.8);
    border-radius: 30px;
    display: inline-block;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    line-height: 25px;
    margin: 14px 0;
}
.navbar-fixed-top .mainmenu .download-btn{
    background-color: #23262e;
    color: #fff;
}
.mainmenu .download-btn:hover{
    border-radius: 0;
    box-shadow: none;
}
.navbar-fixed-top ul.nav > li > a{
    color: #ddd;
}
.navbar-fixed-top ul.nav > li > a:hover,
.navbar-fixed-top ul.nav > li > a:focus,
.navbar-fixed-top ul.nav > li.active > a{
    color: #fff;
}
.logo-light,
.navbar-fixed-top .logo-light,
.logo-dark,
.navbar-fixed-top .logo-dark,
.navbar-fixed-top.header-section,
.header-section{
    transition: all 0.3s ease-in-out;
}
.navbar{
    border: medium none;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -ms-border-radius: 0;
    border-radius: 0;
    margin: 0;
    position: relative;
    padding: 0;
}
.navbar-header {
    padding: 17px 0;
}
.navbar-header .brand{
    font-size: 25px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: -1px;
    font-weight: 600;
	margin-left: 13px;
}
.navbar-header .nav-btn{
    padding: 8px;
    border-radius: 1px;
}
.navbar-header .nav-btn .icon-bar{
    background-color: #fff;
    width: 18px;
}
.navbar-fixed-top .navbar-header .nav-btn .icon-bar{
    background-color: #777;
}
.navbar-header .nav-btn:hover,
.navbar-header .nav-btn:focus{
    opacity: 0.8;
}
.btn-primary {
    color: #fff;
    background-color: #e73c3c;
    border-color: #a7aeb5;
}
/* Nav Menu */
#navbar{
    z-index: 999;
    padding: 0 15px;
}
ul.nav{}
ul.nav > li{}
ul.nav > li > a{
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    display: inline-block;
    vertical-align: middle;
    padding: 0 10px;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 70px;
    z-index: 1;
}
ul.nav > li > a:hover,
ul.nav > li > a:focus,
ul.nav > li > a.active{
    background: none;
    color: #fff;
    opacity: 1;
}
.menu-btn{
    margin-left: 10px;
    margin-top: 10px;
}

/*Mobile Menu */
.menu-wrap{
    position: relative;
}
.slicknav_menu {
    background: none;
    padding: 4px 0;
    display:none;
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
}
.slicknav_nav {
    background-color: #fff;
}
.slicknav_btn{
    background-color: transparent;
    margin: 17px 5px 19px;
}
.slicknav_nav .slicknav_row:hover,
.slicknav_nav .slicknav_row, 
.slicknav_nav a,
.slicknav_nav a:hover{
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -o-border-radius: 0;
    border-radius: 0;
}
.slicknav_nav .slicknav_row, 
.slicknav_nav a {
    padding: 10px 15px;
    margin: 0;
    color: #777;
}
.slicknav_nav a .caret{
    display: none;
}
.slicknav_nav ul{
    margin: 0;
}
.slicknav_nav ul li a{
    padding-left: 30px;
    font-size: 12px;
}
.slicknav_nav .slicknav_row:hover,
.slicknav_nav a:hover{
    background-color: transparent;
    color: #333;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section{
    background-image: url(../img/hero-background.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* .img-right {
    margin-left: auto;
    display: block;
} */

.hero-content h1{
    font-size: 80px;
    text-transform: uppercase;
}
.hero-content h5{
    color: #ddd;
    text-transform: uppercase;
}
.hero-content p{
    color: #ddd;
    margin-bottom: 50px;
}
.social-link{}
.social-link li{
    display: inline-block;
    margin: 0 10px;
}
.social-link li a{
    display: inline-block;
    color: #bbb;
    font-size: 18px;
}
.social-link li a:hover{
    color: #fff;
}
.down-arrow a {
    position: absolute;
    width: 40px;
    height: auto;
    left: calc(50% - 25px);
    bottom: 50px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    color: #ddd;
    writing-mode: vertical-rl;
    text-align: center;
    line-height: 40px;
    animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    -moz-animation: bounce 2s infinite;
    -o-animation: bounce 2s infinite;
}

/* Down Arrow Animation */
@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);} 
    40% {-webkit-transform: translateY(-20px);}
    60% {-webkit-transform: translateY(-10px);}
}
 
@-moz-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-moz-transform: translateY(0);}
    40% {-moz-transform: translateY(-20px);}
    60% {-moz-transform: translateY(-10px);}
}
 
@-o-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-o-transform: translateY(0);}
    40% {-o-transform: translateY(-20px);}
    60% {-o-transform: translateY(-10px);}
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}
/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-bottom: -9rem;
    padding-top: -11rem;
}

.bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.container-fluid {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.circular-portrait {
    width: min(100%, 400px);
    height: min(100%, 400px);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.circular-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-content {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, background;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.18) !important;
}

.about-content:hover::before {
    opacity: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .about-content {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 1.75rem;
    }
}

/* Row and Column Adjustments */
.about-section .row {
    align-items: center;
    padding: 4rem 0;
}

.about-section .col-lg-5,
.about-section .col-lg-6 {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .about-section .row {
        min-height: auto;
    }
    
    .about-section .col-lg-5,
    .about-section .col-lg-6 {
        padding: 1rem;
    }
}

/* ==========================================================================
   Service Section
   ========================================================================== */
.service-section {
    background-image: url(../img/services-background.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    margin-top: -1px;
    padding-bottom: 1rem;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.service-area {
    position: relative;
    z-index: 2;
}

#services {
    scroll-margin-top: 80px;
}

.service-section .section-heading p{
    color: #ddd;
}
.service-wrap {
    margin-top: 1rem;
}
.service-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.service-content:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}
.service-content i {
    font-size: 2.5rem;
    color: #ff4c4c;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.service-content:hover i {
    transform: scale(1.2);
    color: #ff4c4c;
}
.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}
.service-content:hover h3 {
    color: #ff4c4c;
}
.service-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    transition: all 0.3s ease;
}
.service-content:hover p {
    color: #fff;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-section {
    position: relative;
    background: url('../img/festival.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    overflow: hidden;
    padding-bottom: 60px;
}

/* Add loading state */
.portfolio-section.loading {
    background: #1a1a1a;
}

.portfolio-section.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

/* Enhanced background overlay with gradient */
.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 25%,
        rgba(0, 0, 0, 0.75) 50%,
        rgba(0, 0, 0, 0.85) 75%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}

.portfolio-section .container-fluid {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.portfolio-section .section-heading p {
    color: #ddd;
}

.portfolio-section .section-heading .default-btn {
    margin-top: 1.5rem;
    display: inline-block;
}

.portfolio-wrap {
    display: flex;
    align-items: center;
}

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 1rem;
    margin-top: -4rem;
    margin-bottom: 2.5rem;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
    aspect-ratio: 16/9;
}

.project-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.project-item.featured .project-content {
    height: 100%;
}

.project-item.featured .ratio {
    height: 100%;
}

.project-item.featured .project-video {
    height: 100%;
    object-fit: cover;
}

.project-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.project-video,
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.project-item:hover .project-video,
.project-item:hover .project-image {
    transform: scale(1.1);
}

.project-info {
    text-align: center;
    color: #fff;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-links a {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Video container adjustments */
.ratio-16x9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    margin: 0;
    padding: 0;
    height: 100%;
    display: block;
}

.ratio-16x9 iframe,
.ratio-16x9 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .project-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .portfolio-wrap {
        flex-direction: column;
    }
    
    .portfolio-section .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .portfolio-section .section-heading {
        padding: 0;
    }
    
    .project-grid {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .portfolio-section {
        padding: 60px 0;
    }
    
    .portfolio-section .section-heading {
        margin-bottom: 1.5rem;
    }
    
    .project-grid {
        margin-top: 1rem;
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section{}
.cta-section{
    padding: 130px 0;
}
.cta-section .cta-content h2{
    font-size: 40px;
    margin-bottom: 25px;
}


/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background: var(--dark-bg);
    position: relative;
    z-index: 2 !important;
    margin-top: -1px; /* Ensures no gap between sections */
    isolation: isolate; /* Creates a new stacking context */
}

/* Contact Section Overlays (match testimonial section) */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Opacity overlay */
    z-index: 0 !important;
    pointer-events: none;
}
.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1 !important;
    pointer-events: none;
}
.contact-section > .container {
    position: relative;
    z-index: 2;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: stretch;
    gap: 30px;
}

.contact-section .col-lg-6 {
    padding: 0 15px;
    margin-bottom: 0;
    flex: 1;
    min-width: 300px;
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0;
    height: 100%;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-info-card .icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.contact-info-card h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 16px;
}

.contact-info-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea.form-control {
    resize: none;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 400px;
}

@media (max-width: 991px) {
    .contact-info-wrapper {
        margin-bottom: 30px;
    }
    
    .contact-form-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-section{
    background-color: #111;
    display: block;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
.footer-section p{
    text-transform: uppercase;
    font-size: 12px;
    margin: 0;
}  

/* ==========================================================================
   Scroll To Top
   ========================================================================== */
#scroll-to-top{
    background-color: #fff;
    display: none;
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 14px;
    border-radius: 50%;
    line-height: 45px;
    color: #555;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
#scroll-to-top:hover{
    background-color: #282828;
    color: #fff;
}

/* Horizontal Scroller Styles */
.horizontal-scroller-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scroller-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.scroller-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.scroller-arrow-left {
    left: 10px;
}

.scroller-arrow-right {
    right: 10px;
}

.horizontal-scroller-wrapper:hover .scroller-arrow {
    opacity: 1;
}

.horizontal-scroller {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
}

.horizontal-scroller-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px 0;
}

.horizontal-scroller-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.horizontal-scroller-item {
    flex: 0 0 auto;
    width: 100%;
    max-width: 800px;
    margin-right: 20px;
}

/* Video Player Styles */
.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}

.project-video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
}

.project-video::-webkit-media-controls-panel {
    padding: 0 10px;
}

.video-play-btn {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-play-btn i {
    margin-right: 8px;
}

/* Video Player States */
.project-item.playing .project-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Exception for autoplaying videos */
.project-item .project-video[autoplay] ~ .project-overlay {
    opacity: 1 !important;
    pointer-events: none;
}

.project-item .project-video[autoplay] ~ .project-overlay .video-play-btn {
    display: none;
}

.project-item.playing .project-video {
    transform: none;
}

/* VenoBox Video Popup Styles */
.vbox-overlay {
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999 !important;
}

.vbox-container {
    max-width: 90vw !important;
    max-height: 90vh !important;
    z-index: 1000000 !important;
}

/* Custom Close Button */
.vbox-close,
.vbox-close:before,
.vbox-close:after {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: #ff0000 !important; /* Bright red background */
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 1000001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    border: 2px solid white !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.5) !important;
}

.vbox-close:before,
.vbox-close:after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 3px !important; /* Thicker X */
    background: white !important;
    transform-origin: center !important;
}

.vbox-close:before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.vbox-close:after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.vbox-close:hover {
    background: #ff3333 !important; /* Lighter red on hover */
    transform: scale(1.1) !important;
}

/* Video container styles */
.vbox-content {
    position: relative !important;
    z-index: 1000000 !important;
}

.vbox-content video {
    max-width: 100% !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
    display: block !important;
    z-index: 1000000 !important;
}

/* Ensure video doesn't block interactions */
.vbox-content video::-webkit-media-controls {
    z-index: 1000001 !important;
}

/* Add a text label to the close button */
.vbox-close::after {
    content: 'Close' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: white !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    text-shadow: 0 0 5px rgba(0,0,0,0.5) !important;
}

/* Video Popup Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 66.666%; /* 2/3 of screen width */
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-modal video,
.video-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

#modalVideoContainer {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

#modalVideo,
#modalYouTube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#modalYouTube {
    display: none;
}

/* Responsive adjustments for modal */
@media (max-width: 992px) {
    .video-modal-content {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}  

/* Form Message Styles */
.form-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 300px;
    backdrop-filter: blur(10px);
}

.form-message.active {
    display: flex;
}

.success-message {
    display: none;
}

.error-message {
    display: none;
}

.form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.form-overlay.active {
    display: block;
}  

/* Testimonial Section Styles */
.testimonials-section {
    position: relative;
    overflow: hidden;
    z-index: 1 !important;
    padding-bottom: 0; /* Remove bottom padding */
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/testimonial-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0 !important;
    transform: translateZ(0); /* Force GPU acceleration */
}

.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1 !important;
    pointer-events: none;
}

.testimonials-section .container {
    position: relative;
    z-index: 2 !important;
    padding-bottom: 80px; /* Add padding to container instead */
}

.testimonials-section .section-header {
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.testimonials-section .section-header h2 {
    margin-bottom: 0.5rem;
}

.testimonials-section .section-header .lead {
    margin-bottom: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 15px;
    position: relative;
    z-index: 1;
    margin-top: -10px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 15px;
    position: relative;
    transition: all 0.4s ease;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0;
        margin-top: -20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonials-section .section-header h2 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
}

/* Video Watch Button */
.watch-video-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-video-btn i {
    font-size: 1rem;
}

.watch-video-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-item .project-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
}

.video-item:hover .watch-video-btn {
    background: rgba(255, 255, 255, 0.2);
}

.about-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.projects-section {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.5s ease !important;
}

.projects-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url(../img/projects-bg.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transform: scale(1.2) !important;
    animation: slowZoom 15s ease-in-out infinite alternate !important;
    z-index: -1 !important;
    transition: all 0.5s ease !important;
}

.projects-section:hover::before {
    transform: scale(1.4) !important;
    filter: brightness(1.2) contrast(1.1) !important;
    animation-play-state: paused !important;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.2) translate(0, 0) !important;
    }
    50% {
        transform: scale(1.3) translate(-2%, -2%) !important;
    }
    100% {
        transform: scale(1.2) translate(2%, 2%) !important;
    }
}

.projects-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: -1 !important;
    transition: all 0.5s ease !important;
}

.projects-section:hover::after {
    background: rgba(0, 0, 0, 0.65) !important;
}  

/* Enhanced hover states */
.testimonial-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: 0.6s;
    opacity: 0;
}

.testimonial-card:hover::before {
    transform: translateX(100%);
    opacity: 1;
}

/* Corner decorations */
.testimonial-card .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.testimonial-card .corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.testimonial-card .corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.testimonial-card .corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.testimonial-card .corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.testimonial-card:hover .corner {
    width: 30px;
    height: 30px;
    border-color: rgba(255, 255, 255, 0.3);
}

.testimonial-card:hover .corner-tl {
    transform: translate(-5px, -5px);
}

.testimonial-card:hover .corner-tr {
    transform: translate(5px, -5px);
}

.testimonial-card:hover .corner-bl {
    transform: translate(-5px, 5px);
}

.testimonial-card:hover .corner-br {
    transform: translate(5px, 5px);
}

/* Rating stars */
.testimonial-rating i {
    color: #ffd700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-rating {
    opacity: 1;
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Quote icon effects */
.quote-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.testimonial-card:hover .quote-icon {
    transform: scale(1.2) rotate(10deg);
    color: rgba(255, 255, 255, 0.4);
}

.testimonial-card:hover .quote-icon::after {
    transform: scale(1.5);
}

/* Text effects */
.testimonial-card:hover .testimonial-text {
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

/* Author section effects */
.testimonial-card:hover .testimonial-author {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.author-info h5 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
    position: relative;
    display: inline-block;
}

.author-info h5::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.5));
    transition: width 0.4s ease;
}

.testimonial-card:hover .author-info h5::after {
    width: 100%;
}

/* Share button */
.testimonial-share {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-share {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-share button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.testimonial-share button:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.testimonial-card {
    animation: float 6s ease-in-out infinite;
}

.testimonial-card:nth-child(2n) {
    animation-delay: 1s;
}

.testimonial-card:nth-child(3n) {
    animation-delay: 2s;
}  

/* Section Positioning with stronger z-index values */
.testimonials-section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.contact-section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Ensure background elements stay within their sections */
.testimonials-section::before,
.testimonials-section::after {
    z-index: 0 !important;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1 !important;
}  