:root {
    --primary-color: #8e44ad;
    --primary-dark: #6c3483;
    --primary-light: #a569bd;
    --secondary-color: #f39c12;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --font-main: 'Vazirmatn', sans-serif;
    --curve-height: 50px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

/* کلاس‌های کمکی */
.text-purple {
    color: var(--primary-color) !important;
}

.bg-purple {
    background-color: var(--primary-color) !important;
}

.fs-7 {
    font-size: 0.85rem;
}

/* هدر و نوار ناوبری */
/* Header & Navbar - Glassmorphism */
.site-header {
    transition: all 0.4s ease;
    padding-top: 20px;
    padding-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-header .container-fluid,
.site-header .navbar,
.site-header .navbar>.container-fluid {
    max-width: 100%;
    min-width: 0;
}

.site-header .navbar>.container-fluid {
    flex-wrap: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    /* More opaque on scroll */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Solid header for inner pages (no glass effect) */
.site-header.header-solid {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid #eceff3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Ensure text remains readable/correct color */
.site-header .nav-link,
.site-header .navbar-brand {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .nav-link,
.site-header.scrolled .navbar-brand,
.site-header.scrolled .btn i {
    color: #333 !important;
    text-shadow: none;
}

/* Hover effect for glass menu items */
.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.site-header.scrolled .navbar-brand,
.site-header.scrolled .nav-link,
.site-header.scrolled .btn i {
    color: #333 !important;
}

.site-header.header-solid .navbar-brand,
.site-header.header-solid .nav-link,
.site-header.header-solid .btn i {
    color: #333 !important;
    text-shadow: none;
}

.site-header.header-solid .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-weight: 900;
    display: flex;
    align-items: center;
    min-width: 0;
}

.navbar-brand img,
.custom-logo-link img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
    margin-top: 5px;
    /* Push down slightly as requested */
}

.site-header.scrolled .navbar-brand img,
.site-header.scrolled .custom-logo-link img {
    max-height: 40px;
    margin-top: 0;
    /* Reset on scroll for tighter fit */
}

.nav-link {
    color: #fff;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    /* Scrolled logic handled above */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.hero-slider .item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(142, 68, 173, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Section - Redesign */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
}

.hero-slider .item {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Lighter overlay to see image better */
}

/* Centered Card Style */
.hero-content-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content-card h2 {
    color: #333;
    font-weight: 900;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content-card p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Custom Buttons */
.btn-hero {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-hero-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-hero-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-hero-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-hero-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Slider Controls */
.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px !important;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .owl-nav button.owl-prev:hover,
.hero-slider .owl-nav button.owl-next:hover {
    background: var(--primary-color) !important;
}

.hero-slider .owl-nav button.owl-prev {
    right: 30px;
}

.hero-slider .owl-nav button.owl-next {
    left: 30px;
}

/* Custom "01 / 03" Counter Style - handled via JS or separate elements, 
   but we can style the dots to look similar or add a counter element */
.slider-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-progress {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.slider-progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    /* RTL */
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.3s;
}

/* Hide default dots if we use custom counter */
.hero-slider .owl-dots {
    display: none !important;
}

.owl-carousel,
.owl-carousel .owl-stage-outer {
    max-width: 100%;
    overflow: hidden;
}

/* Projects */
.project-card {
    border-radius: 15px;
    cursor: pointer;
}

.project-card img {
    transition: transform 0.5s ease;
    border-radius: 15px;
}

.project-card:hover img {
    transform: scale(1.1);
}

.gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Testimonials */
.testimonial-section {
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.bg-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    /* Fallback */
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.grayscale-logos img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.grayscale-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Features */
.feature-item {
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    border-top-left-radius: 50% 100px;
    /* Curved effect approximation */
    border-top-right-radius: 50% 100px;
    margin-top: -50px;
    /* Pull up to overlap */
    z-index: 10;
}

.footer-curve {
    /* Alternative curve method if border-radius isn't enough */
}

.quick-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: #fff;
    padding-right: 5px;
}

/* Mobile Bottom Tab Bar */
.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    font-size: 0.75rem;
    width: 20%;
    transition: color 0.3s;
}

.tab-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.tab-item.active {
    color: var(--primary-color);
}

/* Center Floating Button */
.tab-item-center-wrapper {
    position: relative;
    top: -25px;
    width: 20%;
    display: flex;
    justify-content: center;
}

.tab-item-center {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    /* Orange/Gold accent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    transition: transform 0.2s;
    border: 5px solid #fff;
    /* Rings to blend with white bar */
}

.tab-item-center:active {
    transform: scale(0.95);
}

.tab-item span {
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Fixes */
@media (max-width: 991.98px) {

    /* Adjust header for mobile */
    .site-header {
        background: transparent;
        /* Or a slight gradient */
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    /* Collection Grid */
    .collection-item {
        margin-bottom: 10px;
    }

    /* Padding for bottom nav */
    body {
        padding-bottom: 80px;
    }

    .site-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-header .container-fluid {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .navbar-brand img,
    .custom-logo-link img {
        max-width: 150px;
        max-height: 42px;
    }

    .hero-content-card {
        width: calc(100% - 24px);
        max-width: 100%;
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .hero-content-card h2 {
        font-size: 1.8rem;
        line-height: 1.35;
    }

    .hero-content-card p {
        font-size: 1rem;
    }

    .hero-content-card .d-flex {
        flex-wrap: wrap;
    }

    .btn-hero {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .hero-section,
    .hero-slider .item {
        min-height: 560px;
        height: 100svh;
    }

    .hero-slider .owl-nav button.owl-prev,
    .hero-slider .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
    }

    .hero-slider .owl-nav button.owl-prev {
        right: 10px;
    }

    .hero-slider .owl-nav button.owl-next {
        left: 10px;
    }

    .hero-content-card {
        padding: 1.5rem 1rem;
    }

    .hero-content-card h2 {
        font-size: 1.55rem;
    }

    .hero-content-card .d-flex {
        gap: 0.75rem !important;
    }

    .btn-hero {
        width: 100%;
        padding: 11px 16px;
    }

    .collection-section {
        padding: 50px 0;
    }

    .texture-3d-wrapper {
        padding-right: 0;
        padding-left: 0;
    }
}

/* 3D Texture Collection Styles */
.collection-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.texture-3d-wrapper {
    perspective: 1000px;
    padding: 20px 10px 50px 10px;
    /* Extra bottom padding for shadow/hover lift */
    cursor: pointer;
    width: 100%;
}

.texture-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* Aspect Ratio 1:1 */
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.texture-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e0e0e0;
    /* Fallback */
}

/* Front Face */
.texture-front {
    transform: translateZ(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Simulated Thickness (Sides) */
.texture-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Darken based on texture color ideally, using generic shadow here */
    background-color: #888;
    transform: rotateY(-90deg) translateZ(-10px);
    transform-origin: left;
    filter: brightness(0.7);
}

.texture-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #666;
    transform: rotateX(-90deg) translateZ(10px);
    transform-origin: bottom;
    filter: brightness(0.5);
}

/* Hover Effects */
.texture-3d-wrapper:hover .texture-block {
    transform: rotateX(25deg) rotateY(25deg) scale(1.05);
    /* Stronger tilt as requested */
}

.texture-caption {
    margin-top: 30px;
    font-weight: 800;
    color: #444;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.texture-3d-wrapper:hover .texture-caption {
    color: var(--primary-color);
}

/* Shadow underneath */
.texture-shadow {
    position: absolute;
    bottom: -40px;
    left: 20%;
    width: 60%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(15px);
    transform: rotateX(90deg);
    transition: all 0.6s;
    z-index: -1;
    opacity: 0;
    border-radius: 50%;
}

/* Projects Grid Layout (Bento Grid) */
.projects-grid-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    /* 4 Columns concept */
    grid-template-rows: 250px 200px;
    /* Top row taller */
    gap: 20px;
}

.project-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-grid-item:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-grid-item:hover .project-image {
    transform: scale(1.05);
}

/* Specific Grid Areas */
/* Left Large Item (Spans 2 rows, 1 col) */
.item-large-start {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 100%;
}

/* Top Wide Item (Spans 1 row, 3 cols) */
.item-wide-top {
    grid-column: 2 / 5;
    grid-row: 1 / 2;
}

/* Small Items (Row 2, 1 col each) */
.item-small {
    grid-row: 2 / 3;
    /* Columns autoplaced or define if needed */
}

/* Badge Style */
.project-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    white-space: nowrap;
    max-width: 90%;
    justify-content: space-between;
}

.badge-text {
    font-size: 0.8rem;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-indicator {
    width: 25px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 4px;
    display: inline-block;
}

/* Button Purple */
.btn-purple {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Projects Grid - Responsive Fixes */
@media (max-width: 992px) {
    .projects-grid-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .item-large-start {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 350px;
        /* Taller for main item */
    }

    .item-wide-top {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 250px;
    }

    .item-small {
        grid-column: span 1;
        grid-row: auto;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .projects-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .item-large-start,
    .item-wide-top,
    .item-small {
        grid-column: 1 / -1;
        width: 100%;
        height: 280px;
        /* Consistent height for all on mobile */
    }

    /* Button visibility on mobile */
    .projects-grid-wrapper+.text-center {
        margin-bottom: 60px;
        /* Space for sticky nav */
        padding-bottom: 20px;
    }

    .btn-purple {
        width: 100%;
        /* Full width button on mobile */
        display: block;
        padding: 15px 0;
        white-space: normal;
    }
}

/* Testimonials Redesign (Glassmorphism) */
.testimonial-section {
    padding: 100px 0;
    overflow: hidden;
}

.testimonial-section .bg-image-overlay {
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.1);
    /* Prevent blur edges */
}

/* Main Glass Card */
.glass-card-main {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    /* Glossy gradient reflection */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
}

.quote-icon-large {
    font-size: 4rem;
    color: #a569bd;
    /* Light Purple */
    opacity: 0.8;
}

.testimonial-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #333;
}

.author-name {
    color: #333;
    font-size: 1.1rem;
}

/* --- Testimonials: Additional Styles & Mobile Optimization --- */
.author-role {
    color: #555;
    font-size: 0.9rem;
}

.engineer-img {
    border-radius: 20px;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.glass-card-logos {
    background: rgba(240, 230, 250, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Layout (App-like) */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 50px 0 100px 0;
        /* Space for bottom nav */
    }

    .glass-card-main {
        border-radius: 24px;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
    }

    /* Force Image to Top */
    .glass-card-main .col-md-5 {
        order: 1 !important;
        padding-top: 30px !important;
        margin-bottom: -40px;
        z-index: 2;
    }

    .glass-card-main .col-md-7 {
        order: 2 !important;
        padding-top: 50px !important;
    }

    .author-image-wrapper {
        width: 130px;
        height: 130px;
        margin: 0 auto;
        border-radius: 50%;
        padding: 5px;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .engineer-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #fff;
    }

    .testimonial-content {
        text-align: center;
        padding: 40px 20px 30px 20px !important;
    }

    .quote-icon-large {
        font-size: 2.5rem;
        display: block;
        margin: 0 auto 15px auto;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    /* Logos - Wrap instead of Scroll to avoid visual scrollbar */
    .glass-card-logos {
        padding: 15px !important;
        overflow: hidden;
        /* Prevent scrolling */
    }

    .glass-card-logos .row {
        display: flex;
        flex-wrap: wrap !important;
        /* Force wrap */
        justify-content: center;
        gap: 15px;
    }

    .glass-card-logos .col-3 {
        width: 45%;
        /* 2 per row */
        flex: 0 0 45%;
        max-width: 45%;
        margin-bottom: 10px;
        padding: 0;
    }
}

/* --- About Us Section Redesign (Organic Blob) --- */
.about-section {
    background-color: #fff;
    position: relative;
}

.text-purple-gradient {
    background: linear-gradient(135deg, var(--primary-color), #d35400);
    /* Purple to Orange/Red */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Feature Grid */
.feature-icon-box i {
    transition: transform 0.3s;
}

.feature-icon-box:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Tagline Gradient Box */
.tagline-gradient-box {
    background: linear-gradient(90deg, #6c3483, #e67e22);
    /* Purple to Orange */
    padding: 20px 30px;
    border-radius: 20px 20px 20px 0;
    /* Unique shape */
    box-shadow: 0 10px 25px rgba(108, 52, 131, 0.3);
    text-align: right;
    color: #fff;
}

@media (min-width: 992px) {
    .tagline-gradient-box {
        margin-right: -20px;
        /* Slight offset for dynamic feel */
    }
}

/* Blob Image Wrapper */
.blob-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Decoration Blob (Background) */
.blob-shape-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8e44ad, #e67e22);
    top: 10px;
    left: 10px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Organic Shape */
    opacity: 0.8;
    z-index: 1;
    animation: blob-float 6s ease-in-out infinite;
}

/* The Image Mask (Foreground) */
.blob-mask {
    position: relative;
    width: 95%;
    height: 95%;
    overflow: hidden;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Matches shape */
    z-index: 2;
    background: #fff;
    border: 5px solid #fff;
    /* White border separation */
}

.blob-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Zoom in slightly */
}

@keyframes blob-float {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0);
    }

    50% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
        transform: translate(-5px, 5px);
    }
}

/* Wave Decorations */
.waves-bg-top {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: repeating-radial-gradient(circle, #f3e5f5 0, #f3e5f5 1px, transparent 1px, transparent 10px);
    opacity: 0.5;
    z-index: 0;
    border-radius: 50%;
}

.waves-bg-bottom {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-image: repeating-radial-gradient(circle, #f3e5f5 0, #f3e5f5 1px, transparent 1px, transparent 15px);
    opacity: 0.4;
    z-index: 0;
    border-radius: 50%;
}

@media (max-width: 991px) {
    .blob-image-wrapper {
        height: 300px;
        margin-bottom: 30px;
    }

    .blob-shape-bg,
    .blob-mask {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    .tagline-gradient-box {
        text-align: center;
        margin-top: 30px;
        border-radius: 15px;
    }
}

@media (max-width: 575.98px) {
    .about-section .row.g-4.text-center>.col-4 {
        width: 100%;
        flex: 0 0 100%;
    }

    .tagline-gradient-box {
        padding: 18px 16px;
    }

    .tagline-gradient-box p {
        font-size: 1rem !important;
        line-height: 1.8;
    }

    .blob-image-wrapper {
        height: 260px;
    }

    .waves-bg-top,
    .waves-bg-bottom {
        display: none;
    }
}

/* --- Redesigned Footer (Premium) --- */
.site-footer-premium {
    background: linear-gradient(135deg, #a569bd 0%, #6c3483 100%);
    color: #fff;
    margin-top: 100px;
    position: relative;
    padding-top: 180px;
    /* Increased to clear the wave */
}

/* Top Wave - Animated */
.footer-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Mobile height */
    overflow: hidden;
    z-index: 1;
    line-height: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

/* Animation Keyframes defined below */
@media (min-width: 992px) {
    .footer-wave-top {
        height: 150px;
        /* Desktop height */
    }
}

/* Animation */
.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (min-width: 992px) {
    .footer-wave-top {
        height: 150px;
    }
}

/* Links & Typography */
.footer-links-premium a,
.footer-contact-premium li {
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-links-premium a:hover {
    color: #fff;
    transform: translateX(-5px);
}

/* Social Buttons */
.social-btn-glass {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    transition: all 0.4s;
}

.social-btn-glass:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Bottom Curve Area */
.footer-bottom-curve-area {
    margin-top: 50px;
    position: relative;
    padding-bottom: 20px;
}

.bottom-curve-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    /* Fixed height for the wave strip */
    overflow: hidden;
    z-index: 0;
}

.bottom-curve-svg svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100%;
    /* No rotation for bottom wave */
}

.bottom-curve-svg .shape-fill {
    fill: #4a235a;
    /* Darker purple for the curve */
}

/* Trust Badges */
.trust-badge-premium {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 auto;
    /* Center in column */
}

.trust-badge-premium:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .site-footer-premium {
        text-align: center;
    }

    .social-icons-premium {
        flex-wrap: wrap;
    }
}

/* Mobile drawer styles moved to mobile-drawer.css */
