/*
  ZEDZEN Agency Website Redesign
  Modern, High-Converting Design with Purple Gradient Theme
  #8B5CF6 to #A855F7
*/

/* ===================================
   1. General Styles
====================================== */
:root {
    --primary-color-start: #8B5CF6;
    --primary-color-end: #A855F7;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #1F2937;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section {
    padding: 100px 0;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   2. Redesigned Preloader
====================================== */
.redesigned-preloader {
    background: #fff;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redesigned-preloader .loader-animation {
    width: 80px;
    height: 80px;
    position: relative;
}

.redesigned-preloader .circular {
    animation: rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.redesigned-preloader .path {
    stroke: url(#gradient);
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}

.redesigned-preloader .loading-text {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--primary-color-start);
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

/* ===================================
   3. Header & Navigation
====================================== */
.header-area {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav .logo {
    transition: var(--transition);
}

.main-nav .logo:hover {
    transform: scale(1.05);
}

.main-nav .nav {
    margin-left: auto;
}

.main-nav .nav li a {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 15px;
    padding: 0 15px;
    transition: var(--transition);
}

.main-nav .nav li a:hover,
.main-nav .nav li a.active {
    color: var(--primary-color-start);
}

.main-nav .nav li.has-sub > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
    transition: var(--transition);
}

.main-nav .nav li.has-sub:hover > a::after {
    transform: rotate(180deg);
}

.main-nav .nav li .sub-menu {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    min-width: 200px;
}

.main-nav .nav li .sub-menu li a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
}

.main-nav .nav li .sub-menu li a:hover,
.main-nav .nav li .sub-menu li a.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--primary-color-start);
}

.main-cta-button {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
    transition: var(--transition) !important;
}

.main-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.5);
}

/* ===================================
   4. Hero Section
====================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    padding: 180px 0 140px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.5;
}

.social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.social-proof-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-proof-badge i {
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.main-button {
    background: white;
    color: var(--primary-color-start) !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.second-button {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.second-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-illustration {
    position: relative;
    z-index: 2;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
}

.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.particle:nth-child(1) {
    width: 10px;
    height: 10px;
    top: 20%;
    left: 20%;
    animation: particleAnimation 8s linear infinite;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    left: 30%;
    animation: particleAnimation 12s linear infinite;
}

.particle:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 40%;
    left: 60%;
    animation: particleAnimation 9s linear infinite;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    top: 70%;
    left: 70%;
    animation: particleAnimation 14s linear infinite;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    top: 30%;
    left: 80%;
    animation: particleAnimation 10s linear infinite;
}

@keyframes particleAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0.4;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.8;
    }
}

.hero-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 78px;
}

.hero-shape-divider .shape-fill {
    fill: var(--white);
}

/* ===================================
   5. Clients Section
====================================== */
.clients-section {
    padding: 60px 0;
    background-color: var(--white);
}

.client-logo img {
    max-height: 50px;
    max-width: 80%;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
    margin: 0 auto;
}

.client-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===================================
   6. Services Section
====================================== */
.services-section {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-heading h2 em {
    font-style: normal;
    color: var(--primary-color-start);
}

.section-heading h2 span {
    color: var(--primary-color-end);
}

.section-heading .line-dec {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    margin: 0 auto 20px;
}

.services-row {
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color-start);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

.service-features {
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.service-features li i {
    color: var(--primary-color-start);
    margin-right: 10px;
    font-size: 12px;
}

.service-link {
    color: var(--primary-color-start);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-color-end);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===================================
   7. About Section
====================================== */
.about-section {
    padding: 120px 0;
    background-color: var(--white);
}

.about-image {
    position: relative;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content {
    padding-left: 30px;
}

.about-content .section-heading {
    text-align: left;
}

.about-content .section-heading .line-dec {
    margin: 0 0 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 22px;
    color: var(--primary-color-start);
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 14px;
    margin: 0;
    color: var(--text-light);
}

.about-cta {
    margin-top: 40px;
}

/* ===================================
   8. Case Studies Section
====================================== */
.case-studies-section {
    background-color: var(--light-gray);
    padding: 120px 0;
}

.case-study-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 15px;
}

.case-study-image {
    position: relative;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.case-detail-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color-start);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.case-study-item:hover .case-overlay {
    opacity: 1;
}

.case-study-item:hover .case-detail-link {
    transform: translateY(0);
    opacity: 1;
}

.case-study-item:hover .case-study-image img {
    transform: scale(1.1);
}

.case-study-content {
    padding: 25px;
}

.case-category {
    color: var(--primary-color-start);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.case-study-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.case-study-content p {
    font-size: 15px;
    margin-bottom: 15px;
}

.case-metrics {
    display: flex;
    gap: 15px;
}

.case-metrics span {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-metrics span i {
    color: var(--primary-color-start);
}

/* ===================================
   9. Testimonials & Stats Section
====================================== */
.testimonials-stats-section {
    padding: 120px 0;
    background-color: var(--white);
}

.testimonial-item {
    position: relative;
    margin: 15px 0;
}

.testimonial-content {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    margin-bottom: 30px;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 25px;
    width: 25px;
    height: 25px;
    background: var(--light-gray);
    transform: rotate(45deg);
}

.testimonial-icon {
    margin-bottom: 15px;
}

.testimonial-icon i {
    color: var(--primary-color-start);
    font-size: 24px;
}

.testimonial-content p {
    font-size: 16px;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

.stats-container {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    border-radius: var(--border-radius);
    padding: 40px;
    color: white;
    height: 100%;
}

.stats-container .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.stats-container .section-heading h2 {
    color: white;
}

.stats-container .section-heading .line-dec {
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 20px;
}

.stats-row {
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    margin-bottom: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.stats-cta {
    text-align: center;
}

.stats-cta .main-button {
    background: white;
    color: var(--primary-color-start) !important;
}

/* ===================================
   10. Process Section
====================================== */
.process-section {
    background-color: var(--light-gray);
    padding: 120px 0;
    position: relative;
}

.process-timeline {
    position: relative;
    z-index: 2;
}

.process-step {
    text-align: center;
    padding: 0 15px;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -30px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    box-shadow: var(--box-shadow);
}

.process-icon::before {
    content: attr(data-step);
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.process-icon i {
    font-size: 36px;
    color: var(--primary-color-start);
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.process-step p {
    margin-bottom: 20px;
}

.process-details {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
}

.process-step:hover .process-details {
    max-height: 200px;
    opacity: 1;
}

.process-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.process-details ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.process-details ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color-start);
}

/* ===================================
   11. Blog Section
====================================== */
.blog-section {
    padding: 120px 0;
    background-color: var(--white);
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 60px;
}

.blog-date .day {
    font-size: 18px;
    line-height: 1;
    display: block;
}

.blog-date .month {
    font-size: 12px;
    text-transform: uppercase;
    display: block;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    color: var(--primary-color-start);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: var(--primary-color-start);
}

.blog-content p {
    margin-bottom: 15px;
}

.blog-link {
    color: var(--primary-color-start);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.blog-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--primary-color-end);
}

.blog-link:hover i {
    transform: translateX(5px);
}

.blog-cta {
    margin-top: 50px;
}

/* ===================================
   12. CTA Section
====================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/cta-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.phone-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.phone-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ===================================
   13. Contact Section
====================================== */
.contact-section {
    padding: 120px 0;
    background-color: var(--white);
}

.contact-info {
    padding-right: 30px;
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-item .icon i {
    font-size: 22px;
    color: var(--primary-color-start);
}

.contact-item .text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item .text p,
.contact-item .text p a {
    color: var(--text-light);
    margin: 0;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item .text p a:hover {
    color: var(--primary-color-start);
}

.contact-map {
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    height: 100%;
}

.contact-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.contact-form-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-form-header p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color-start);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gdpr-consent input {
    width: auto;
    margin-top: 5px;
}

.gdpr-consent label {
    font-size: 14px;
    color: var(--text-light);
}

.form-validation {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 12px;
    color: #e74c3c;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

/* ===================================
   14. Footer
====================================== */
.footer {
    background: var(--dark-gray);
    padding: 80px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info {
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    transform: translateY(-3px);
}

.footer-links {
    margin-bottom: 40px;
}

.footer-links h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
}

.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter {
    margin-bottom: 40px;
}

.footer-newsletter h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-newsletter button {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.copyright span {
    color: var(--primary-color-start);
}

/* ===================================
   15. Back to Top Button
====================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
    color: white;
}

/* ===================================
   16. Case Study Modal
====================================== */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    border: none;
}

.modal-title {
    font-weight: 600;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.case-study-details {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
}

.detail-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.detail-label {
    font-weight: 600;
    margin-right: 10px;
    min-width: 80px;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    border: none;
}

/* ===================================
   17. Responsive Styles
====================================== */
@media (max-width: 1199px) {
    .hero-section h1 {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-heading h2 {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    section, .section {
        padding: 80px 0;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .process-step::after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 40px;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 50px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    section, .section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-illustration {
        margin-top: 50px;
    }
    
    .section-heading h2 {
        font-size: 28px;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .stats-container {
        margin-top: 50px;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-content p {
        font-size: 14px;
    }
    
    .blog-card {
        margin-bottom: 30px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter button {
        width: 100%;
        padding: 12px;
    }
    
    /* Fix for mobile menu */
    .header-area {
        position: relative;
    }
    
    .header-area .main-nav .menu-trigger {
        cursor: pointer;
        z-index: 9999; /* Ensure it's above other elements */
        touch-action: manipulation; /* Improve touch handling */
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
    }
    
    .header-area .main-nav .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 998; /* Ensure menu is below trigger but above content */
        max-height: 80vh; /* Limit height and enable scrolling */
        overflow-y: auto;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
        background: #fff;
        margin-top: 0 !important; /* Remove margin that causes white space */
    }
    
    /* Prevent content shifting when menu opens */
    .header-area .main-nav .nav li {
        opacity: 1;
        transform: none;
    }
    
    /* Improve menu trigger styling */
    .header-area .main-nav .menu-trigger {
        width: 50px; 
        height: 50px;
        padding: 10px;
    }
    
    .header-area .main-nav .menu-trigger span,
    .header-area .main-nav .menu-trigger span:before,
    .header-area .main-nav .menu-trigger span:after {
        transition: all 0.3s ease; /* Slower transition to avoid conflicts */
    }
    
    /* Improve menu items styling */
    .header-area .main-nav .nav li a {
        padding: 0 15px;
    }
    
    /* Fix for menu closing immediately */
    body.menu-open {
        overflow: hidden; /* Prevent scrolling when menu is open */
    }
    
    /* Global fix for mobile menu overlay */
    @media (max-width: 767px) {
        /* Remove all margins and transitions that cause layout shifts */
        .header-area .main-nav .nav,
        .header-area.header-sticky .nav, 
        .background-header.header-sticky .nav {
            margin-top: 0 !important;
            transition: opacity 0.3s ease !important;
        }
        
        /* Prevent animations that might cause layout shifts */
        .header-area .main-nav .nav li {
            transition: background 0.3s ease !important;
        }
        
        /* Override any slideToggle behavior to use opacity fade instead */
        .header-area .main-nav .nav.slide-in {
            display: block !important;
            opacity: 1;
        }
        
        .header-area .main-nav .nav.slide-out {
            display: block !important;
            opacity: 0;
            pointer-events: none;
        }
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-proof {
        flex-direction: column;
    }
    
    .main-button, .second-button, .phone-button {
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}