/* ===== Base Styles ===== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #e3f2fd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(37, 23, 23, 0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #444;
    overflow-x: hidden;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Muli', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover{
    text-decoration: none !important;
}

.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition) !important;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.95);
}

.btn-light:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Enhanced Scroll Spy & Navigation ===== */
.sticky-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: var(--transition);
    background: transparent;
}

/* Initially transparent */
.sticky-wrapper .site-navbar {
    background: transparent !important;
    padding: 1.5rem 0;
    transition: var(--transition);
}

/* When scrolled - white background with shadow */
.sticky-wrapper.is-sticky {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

.sticky-wrapper.is-sticky .site-navbar {
    padding: 1rem 0;
    background: transparent !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo */
.site-logo a {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.site-logo small {
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

/* ===== Enhanced Navigation Menu with Animated Underline ===== */
.site-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu > li {
    display: inline-block;
    margin: 0 0.25rem;
}

.site-menu > li > a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

/* Animated underline effect */
.site-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(2px);
}

.site-menu > li > a:hover::after,
.site-menu > li > a.active::after {
    left: 1rem;
    right: 1rem;
    opacity: 1;
    transform: translateY(0);
}

.site-menu > li > a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.site-menu > li > a.active {
    color: #fff;
    font-weight: 600;
}

/* FIXED: When scrolled - change navigation colors to BLUE */
.sticky-wrapper.is-sticky .site-menu > li > a {
    color: var(--primary-color) !important; /* Changed from #555 to primary blue */
}

.sticky-wrapper.is-sticky .site-menu > li > a:hover {
    color: var(--primary-dark) !important; /* Darker blue on hover */
}

.sticky-wrapper.is-sticky .site-menu > li > a.active {
    color: var(--primary-dark) !important; /* Even darker for active */
    font-weight: 600;
}

.sticky-wrapper.is-sticky .site-menu > li > a::after {
    background: var(--primary-color); /* Blue underline when scrolled */
}

/* ===== Crown Logo Styling ===== */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-text-wrapper {
    position: relative;
    display: inline-block;
    font-family: 'Muli', sans-serif;
    font-weight: 800;
}

/* Crown positioned as a hat on the "H" */
.logo-crown {
    position: absolute;
    left: -0.4rem; /* Perfect positioning over the "H" */
    top: -0.55rem; /* Hat position */
    width: 1.2rem !important; /* Relative to text size */
    height: 1.2rem !important;
    object-fit: contain !important;
    transform: rotate(-8deg);
    transform-origin: center center;
    filter: brightness(0) invert(1); /* White initially */
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: crownLand 1.2s ease-out forwards 0.5s;
}

/* Crown landing animation */
@keyframes crownLand {
    0% {
        opacity: 0;
        transform: rotate(-15deg) translateY(-3px);
        filter: brightness(0) invert(1) drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    }
    40% {
        opacity: 1;
        transform: rotate(-5deg) translateY(0px);
    }
    60% {
        transform: rotate(-10deg) translateY(-1px);
    }
    80% {
        transform: rotate(-7deg) translateY(0px);
    }
    100% {
        opacity: 1;
        transform: rotate(-8deg) translateY(0px);
        filter: brightness(0) invert(1);
    }
}

/* Hover animation - subtle wobble */
@keyframes crownWobble {
    0%, 100% {
        transform: rotate(-8deg) translateY(0);
    }
    25% {
        transform: rotate(-10deg) translateY(-1px);
    }
    75% {
        transform: rotate(-6deg) translateY(-1px);
    }
}

.logo-container:hover .logo-crown {
    animation: crownWobble 0.8s ease-in-out;
}

/* Text styling */
.logo-text {
    font-size: 1.5rem !important;
    line-height: 1.2;
    position: relative;
    z-index: 5;
    display: inline-block;
    letter-spacing: -0.3px;
    color: white;
    font-weight: 800;
}

/* When scrolled - change crown color to blue */
.sticky-wrapper.is-sticky .logo-crown {
    filter: brightness(0) saturate(100%) invert(24%) sepia(89%) saturate(2476%) hue-rotate(210deg) brightness(96%) contrast(101%);
}

.sticky-wrapper.is-sticky .logo-text {
    color: var(--primary-color) !important;
}

/* ===== Mobile Menu Styles ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 100;
}

/* FIXED: Mobile toggle color when scrolled */
.sticky-wrapper.is-sticky .mobile-menu-toggle {
    color: var(--primary-color) !important;
}

/* Mobile menu drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1050;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    right: 0;
}

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

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.mobile-menu-body {
    padding: 1.5rem;
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    margin-bottom: 0.5rem;
}

.mobile-menu-nav a {
    display: block;
    padding: 1rem;
    color: #333;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding-left: 1.5rem !important;
}

/* Mobile menu active indicator */
.mobile-menu-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 70%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-nav a:hover::before,
.mobile-menu-nav a.active::before {
    transform: translateY(-50%) scaleY(1);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.mobile-menu-nav a.active {
    font-weight: 600;
}

.section-padding {
    padding-top:20px;
}

/* ===== Hero Section ===== */
.intro-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 1;
}

@media (min-width: 992px) {
    .intro-section::before {
        clip-path: polygon(0 0, 75% 0, 60% 100%, 0 100%);
    }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Hero Buttons - Stacked on mobile */
.hero-buttons .d-flex {
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin-bottom: 1rem !important;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-buttons .d-flex {
        flex-wrap: nowrap;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin-right: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .hero-buttons .btn:last-child {
        margin-right: 0 !important;
    }
}

/* Trust Indicators */
.trust-indicators {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    padding: 1rem;
}

.trust-icon {
    opacity: 0.9;
}

.trust-text {
    color: #fff;
}

.trust-text .fw-bold {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.trust-text small {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-main-image {
    position: relative;
    z-index: 1;
}

.hero-main-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.hero-main-image:hover img {
    transform: translateY(-10px);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -20px;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 20px;
    left: 30px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    content: none !important;
}

.icon-circle::before,
.icon-circle::after {
    content: none !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== About Section ===== */
.about-section {
    padding: 6rem 0;
    background: #fff;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.badge-content {
    color: #fff;
    text-align: center;
}

.badge-content .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.badge-content .label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* About Content */
.section-sub-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Features List */
.features-list li {
    padding-left: 0;
    font-weight: 500;
}

.features-list i {
    font-size: 1.1rem;
}

/* Stats Grid */
.stat-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Work Section (Modern) ===== */
.work-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.work-section .section-header {
    margin-bottom: 4rem;
}

.section-description {
    color: #666;
    line-height: 1.7;
}

/* Stats Counter */
.stats-counter .stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stats-counter .stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stats-counter .stat-icon {
    margin-bottom: 1.5rem;
}

.stats-counter .stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Project Cards */
.project-card {
    transition: var(--transition);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.project-image {
    height: 250px;
    overflow: hidden;
}

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

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

.project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

/* Testimonials Carousel */
.testimonials-carousel .owl-nav,
.testimonials-carousel .owl-dots {
    display: none;
}

.testimonial-item {
    padding: 2rem;
}

.testimonial-content {
    position: relative;
    padding-top: 3rem !important;
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* ===== Services Section ===== */
.services-section {
    padding: 6rem 0;
    background: #fff;
}

.service-card {
    transition: var(--transition);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

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

.hover-lift:hover {
    transform: translateY(-5px);
}

.service-icon .icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    color: #222;
    font-weight: 700;
}

.service-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* Additional Services */
.additional-service {
    background: #fff;
    transition: var(--transition);
}

.additional-service:hover {
    background: var(--primary-color);
    color: #fff;
}

.additional-service:hover h4,
.additional-service:hover p {
    color: #fff !important;
}

.additional-service:hover .service-icon-small i {
    color: #fff !important;
}

.service-icon-small i {
    transition: var(--transition);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.hover-white:hover {
    color: #fff !important;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Info */
.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info .contact-item i {
    margin-top: 0.25rem;
}

.contact-info a:hover {
    color: #fff !important;
}

/* Legal Links */
.legal-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.legal-links a:hover {
    color: #fff;
}

/* ===== WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e, #0a6e5c);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    text-decoration:none;
}

/* Contact button styling */
.contact-btn {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* FIXED: Contact button when scrolled */
.sticky-wrapper.is-sticky .contact-btn {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.sticky-wrapper.is-sticky .contact-btn:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
    /* On mobile, show transparent header initially */
    .sticky-wrapper {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .sticky-wrapper.is-sticky {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .site-navbar {
        background: transparent !important;
        padding: 1rem 0 !important;
    }
    
    /* Logo styling - transparent on mobile initially */
    .logo-text {
        color: white !important;
        font-size: 1.3rem !important;
        background: transparent !important;
        padding: 0 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    
    .sticky-wrapper.is-sticky .logo-text {
        color: var(--primary-color) !important;
        text-shadow: none;
    }
    
    .logo-crown {
        width: 1rem !important;
        height: 1rem !important;
        left: -0.3rem;
        top: -0.45rem;
        filter: brightness(0) invert(1) !important;
    }
    
    .sticky-wrapper.is-sticky .logo-crown {
        filter: brightness(0) saturate(100%) invert(24%) sepia(89%) saturate(2476%) hue-rotate(210deg) brightness(96%) contrast(101%) !important;
    }
    
    /* Mobile animation for crown */
    .logo-container .logo-crown {
        animation: crownLand 1.8s ease-out forwards;
    }
    
    /* Hide desktop menu, show mobile toggle */
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    /* FIXED: Mobile toggle color when scrolled */
    .sticky-wrapper.is-sticky .mobile-menu-toggle {
        color: var(--primary-color) !important;
    }
    
    .sticky-wrapper .contact-btn {
        display: none !important;
    }
    
    /* Hero buttons stacked */
    .hero-buttons .btn {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        animation: none;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
    
    .intro-section {
        padding-top: 80px;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu-drawer {
        width: 85%;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .badge-content .years {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.2rem !important;
    }
    
    .logo-crown {
        width: 0.9rem !important;
        height: 0.9rem !important;
        left: -0.25rem;
        top: -0.4rem;
    }
}

@media (max-width: 575.98px) {
    .logo-text {
        font-size: 1.1rem !important;
    }
    
    .logo-crown {
        width: 0.8rem !important;
        height: 0.8rem !important;
        left: -0.2rem;
        top: -0.35rem;
    }
}

/* ===== Utility Classes ===== */
.bg-primary-light {
    background: var(--primary-light);
}

.rounded-3 {
    border-radius: var(--radius-md) !important;
}

.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Smooth Transitions ===== */
[data-aos] {
    transition-property: transform, opacity !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Ensure content doesn't hide under fixed header ===== */
section {
    scroll-margin-top: 100px;
}

@media (max-width: 991.98px) {
    section {
        scroll-margin-top: 80px;
    }
}

/* ===== Prevent body scroll when mobile menu is open ===== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Fix for iOS viewport */
@supports (-webkit-touch-callout: none) {
    .mobile-menu-drawer {
        height: -webkit-fill-available;
    }
}

/* Desktop menu hover effects */
@media (min-width: 992px) {
    .site-menu > li > a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: transparent;
        transition: left 0.3s ease;
        z-index: -1;
    }
    
    .site-menu > li > a:hover::before {
        left: 0;
    }
    
    .sticky-wrapper.is-sticky .site-menu > li > a::before {
        background: transparent;
    }
}

/* ===== MOBILE WHITE SPACE FIX ===== */
/* This fixes the horizontal scroll issue on mobile without breaking your layout */

@media (max-width: 991.98px) {
    /* Force viewport containment */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative;
    }
    
    /* Prevent any element from exceeding viewport */
    .container, .container-fluid {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Fix for images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix for iframes (Google Maps) */
    iframe {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Fix for floating cards in hero section */
    .floating-card {
        max-width: 90% !important;
    }
    
    /* Ensure no horizontal scroll on sections */
    section, .intro-section, .about-section, .work-section, 
    .services-section, .contact-section {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Fix for rows that might overflow */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fix for columns */
    [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Extra small devices (phones, less than 768px) */
@media (max-width: 767.98px) {
    /* Nuclear option - only if still seeing white space */
    body {
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .site-wrap {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Reset any potential overflow on direct children */
    .container > * {
        max-width: 100% !important;
    }
}

/* Emergency fix for persistent white space */
@media (max-width: 575.98px) {
    /* If white space still appears, use this */
    * {
        max-width: 100vw !important;
    }
    
    /* But exclude the body and html from this rule */
    html, body {
        max-width: 100% !important;
    }
}

/* ===== IMPRESSUM PAGE STYLES ===== */
.impressum-hero {
    min-height: 40vh !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding-top: 120px;
}

.impressum-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.impressum-logo .impressum-crown {
    filter: brightness(0) saturate(100%) invert(24%) sepia(89%) saturate(2476%) hue-rotate(210deg) brightness(96%) contrast(101%);
    width: 1.5rem !important;
    height: 1.5rem !important;
    left: -0.5rem;
    top: -0.6rem;
}

.impressum-logo .logo-text {
    font-size: 2rem !important;
    color: var(--primary-color) !important;
}

.impressum-contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.impressum-contact-info .contact-item i {
    margin-top: 0.25rem;
    min-width: 20px;
}

.impressum-detail-item {
    transition: var(--transition);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.impressum-detail-item:hover {
    transform: translateY(-3px);
}

.impressum-section-content {
    padding: 0.5rem 0; /* Reduced padding */
}

.impressum-section-icon {
    font-size: 1.25rem !important;
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.impressum-list-icon {
    font-size: 0.85rem !important;
    margin-top: 0.2rem;
    margin-right: 0.5rem;
}

.impressum-info-alert {
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
}

.impressum-update-badge {
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: var(--radius-sm);
}

/* Fix for footer link spacing (added to override impressum styles) */
.footer-links.list-unstyled li {
    margin-bottom: 0.5rem !important; /* Reduced from 0.75rem */
}

.footer .contact-info .contact-item {
    margin-bottom: 0.75rem !important; /* Reduced from 1rem */
}

/* Responsive adjustments for impressum */
@media (max-width: 768px) {
    .impressum-hero .hero-title {
        font-size: 2.25rem;
    }
    
    .impressum-hero {
        min-height: 30vh !important;
        padding-top: 100px;
    }
    
    .impressum-content .card-body {
        padding: 1.5rem !important;
    }
    
    .impressum-section-content .d-flex.align-items-start {
        flex-direction: column;
    }
    
    .impressum-section-content .d-flex.align-items-start i {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
}

/* Print styles for impressum */
@media print {
    .impressum-hero {
        background: #fff !important;
        color: #000 !important;
    }
    
    .impressum-hero .hero-title,
    .impressum-hero .hero-text,
    .impressum-hero .section-sub-title {
        color: #000 !important;
    }
}

/* Page-specific hero sections */
.datenschutz-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a56db 100%);
}

.agb-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d6efd 100%);
}

/* Content styling for legal pages */
.legal-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-content h2 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
}

.legal-content h3 {
    color: #495057;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal-content h4 {
    color: #6c757d;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.legal-content p {
    margin-bottom: 1.25rem;
    color: #495057;
}

.legal-content ul, 
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Special elements */
.legal-note {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-sm);
}

.legal-note strong {
    color: var(--primary);
}

.legal-alert {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-sm);
}

.legal-alert h5 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.legal-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.legal-table th {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.legal-table tr:nth-child(even) {
    background-color: rgba(13, 110, 253, 0.02);
}

.legal-table tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Definition lists for terms */
.legal-definition {
    background: rgba(13, 110, 253, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}

.legal-definition dt {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.legal-definition dd {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

/* Section numbering for AGB */
.legal-section-number {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    margin-right: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact info boxes */
.legal-contact-box {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.legal-contact-box h5 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .legal-table {
        display: block;
        overflow-x: auto;
    }
}

/* ===== Phone Repair Page Styling ===== */

/* Hero section for repair pages */
.repair-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* White badges for hero section */
.badge-white {
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.badge-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.badge-white .badge-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.badge-white i {
    color: white;
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Repair Service Cards */
.repair-service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.repair-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.repair-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.2) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.repair-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Better spacing for lists */
.list-unstyled.text-start {
    padding-left: 0;
}

.list-unstyled.text-start li {
    display: flex;
    align-items: flex-start;
}

.list-unstyled.text-start li i {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Repair Process Steps */
.repair-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 3rem;
}

.repair-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.repair-step-line {
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
}

.repair-step:last-child .repair-step-line {
    display: none;
}

.repair-step .repair-icon-wrapper {
    width: 70px;
    height: 70px;
}

.repair-step .repair-icon-wrapper i {
    font-size: 2rem;
}

/* Device Models Grid */
.device-model-card {
    border: 2px solid rgba(13, 110, 253, 0.1);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.device-model-card:hover {
    border-color: var(--primary);
    background: rgba(13, 110, 253, 0.02);
    transform: translateY(-5px);
}

.device-model-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-model-card.active {
    border-color: var(--primary);
    background: rgba(13, 110, 253, 0.05);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

/* Modern Accordion */
.modern-accordion .accordion-item {
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.modern-accordion .accordion-button {
    font-weight: 600;
    background: white;
    border: 1px solid rgba(13, 110, 253, 0.1);
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.modern-accordion .accordion-button .accordion-title {
    flex: 1;
    margin-right: 1rem;
}

.modern-accordion .accordion-button .accordion-icon {
    font-size: 0.875rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.modern-accordion .accordion-button:not(.collapsed) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.modern-accordion .accordion-button:not(.collapsed) .accordion-icon {
    color: white;
    transform: rotate(180deg);
}

.modern-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--primary);
}

.modern-accordion .accordion-button::after {
    display: none; /* Hide default Bootstrap chevron */
}

.modern-accordion .accordion-body {
    padding: 1.5rem;
    background: rgba(13, 110, 253, 0.02);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-top: none;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    line-height: 1.6;
}

/* CTA Section */
.repair-cta {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.1) 100%);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.repair-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.repair-cta > * {
    position: relative;
    z-index: 2;
}

/* Better spacing for icons and text */
.d-flex.align-items-start i {
    margin-top: 0.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Device model list alignment */
.device-model-card ul.list-unstyled {
    padding-left: 0;
}

.device-model-card ul.list-unstyled li {
    display: flex;
    align-items: flex-start;
}

.device-model-card ul.list-unstyled li i {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .repair-step {
        padding-left: 3.5rem;
    }
    
    .repair-step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .device-model-card {
        padding: 1rem;
    }
    
    .badge-white {
        padding: 0.5rem 1rem;
        margin: 0.25rem;
    }
    
    .badge-white .badge-text {
        font-size: 0.875rem;
    }
    
    .modern-accordion .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .modern-accordion .accordion-body {
        padding: 1.25rem;
    }
}

/* Animation delays for staggered animations */
[data-aos-delay="100"] {
    animation-delay: 100ms;
}

[data-aos-delay="200"] {
    animation-delay: 200ms;
}

[data-aos-delay="300"] {
    animation-delay: 300ms;
}

[data-aos-delay="400"] {
    animation-delay: 400ms;
}

[data-aos-delay="500"] {
    animation-delay: 500ms;
}

[data-aos-delay="600"] {
    animation-delay: 600ms;
}

/* Modern spacing utilities */
.gap-4 {
    gap: 1.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

/* Utility classes */
.ps-0 {
    padding-left: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}


/* Partners Page Specific Styles */
.partners-hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    position: relative;
    overflow: hidden;
}

.partners-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/network-pattern.png') center/cover;
    opacity: 0.1;
}

/* Partner Cards */
.partner-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

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

.partner-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.partner-logo img {
    transition: transform 0.3s ease;
}

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

/* Modern Form Styles */
.modern-form-card {
    border-radius: 15px;
    overflow: hidden;
}

/* Form Controls - Equal Size and Styling for ALL inputs and selects */
.modern-form .form-group {
    margin-bottom: 0;
}

.modern-form .form-control,
.modern-form .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    height: 56px;
    transition: all 0.3s ease;
    background-color: white;
    width: 100%;
}

/* Remove default styling from all form elements */
.modern-form .form-control,
.modern-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Add arrow/chevron ONLY to select elements */
.modern-form .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem; /* Extra padding for the arrow */
}

/* Regular text inputs should NOT have arrow/background image */
.modern-form input[type="text"],
.modern-form input[type="tel"],
.modern-form input[type="email"] {
    background-image: none !important;
    padding-right: 1rem; /* Normal padding */
}

/* Ensure consistent focus states */
.modern-form .form-control:focus,
.modern-form .form-select:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: none;
}

/* Textarea specific styling */
.modern-form textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    background-image: none !important; /* Ensure no arrow on textarea */
}

/* Labels */
.modern-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: block;
}

/* Ensure all form groups have consistent spacing */
.modern-form .form-group:not(:first-child) {
    margin-top: 1.5rem;
}

/* Privacy Checkbox */
.privacy-checkbox {
    padding: 20px;
    background: white;
    position: relative;
    margin-top: 1.5rem !important;
}

.privacy-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    margin-right: 10px;
    border: 2px solid #dee2e6;
    float: left; /* Align checkbox properly */
}

.privacy-checkbox .form-check-label {
    display: block;
    overflow: hidden; /* Clear the float */
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 10px; /* Match the inline style */
}

.privacy-checkbox .form-check-input:checked {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
}

.privacy-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.privacy-checkbox .form-check-label a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 600;
}

.privacy-checkbox .form-check-label a:hover {
    text-decoration: underline;
}

/* Invalid state for privacy checkbox (only when submitted and invalid) */
.privacy-checkbox.error .form-check-label {
    color: #dc3545 !important;
}

.privacy-checkbox.error .form-check-label a {
    color: #dc3545 !important;
}

#privacy-error {
    display: none;
    font-size: 0.875rem;
    margin-top: 5px;
    clear: both; /* Clear the floated checkbox */
}

.privacy-checkbox.error #privacy-error {
    display: block;
}

/* Submit Button - Fixed flickering */
.submit-btn {
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-color, #007bff), #0056b3);
    border: none;
    padding: 1rem 2rem;
    margin-top: 1.5rem !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0056b3, #004085);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn:disabled::before {
    opacity: 0 !important;
}

/* Form Messages */
#form-messages {
    min-height: 60px;
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Additional Partner Logos */
.hover-lift .img-fluid {
    transition: transform 0.3s ease;
}

.hover-lift:hover .img-fluid {
    transform: scale(1.1);
}

/* Consultation Process */
.steps {
    position: relative;
    padding-left: 40px;
}

.consultation-step {
    position: relative;
    margin-bottom: 50px;
}

.step-number {
    position: absolute;
    left: -40px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color, #007bff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-line {
    position: absolute;
    left: -25px;
    top: 30px;
    bottom: -50px;
    width: 2px;
    background: var(--primary-color, #007bff);
    opacity: 0.3;
}

.consultation-step:last-child .step-line {
    display: none;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Service Area Cards */
.service-area-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.service-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #007bff);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Advantage Cards */
.advantage-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA Section */
.partners-cta {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    position: relative;
    overflow: hidden;
}

.partners-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/pattern-dots.png');
    opacity: 0.1;
}

/* Form validation styles */
.modern-form .form-control.is-invalid,
.modern-form .form-select.is-invalid {
    border-color: #dc3545;
}

.modern-form .form-control.is-invalid:focus,
.modern-form .form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.modern-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .steps {
        padding-left: 30px;
    }
    
    .step-number {
        left: -30px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-line {
        left: -18px;
    }
    
    .service-area-card,
    .advantage-card {
        padding: 20px;
    }
    
    .partner-logo-wrapper {
        height: 80px;
    }
    
    .partner-logo img {
        max-height: 50px;
    }
    
    .modern-form .form-control,
    .modern-form .form-select {
        height: 52px;
        padding: 0.75rem 1rem;
    }
    
    .modern-form .form-select {
        padding-right: 2.5rem; /* Adjust for mobile */
    }
    
    .privacy-checkbox {
        padding: 15px;
    }
    
    .modern-form .form-group:not(:first-child) {
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    .modern-form .col-lg-6 {
        margin-bottom: 0;
    }
    
    .modern-form .form-group:not(:first-child) {
        margin-top: 1rem;
    }
}

/* ===== UNIFIED FORM STYLES ===== */

/* Modern Form Styles for ALL forms */
.modern-form .form-group {
    margin-bottom: 0;
}

.modern-form .form-control,
.modern-form .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    height: 56px;
    transition: all 0.3s ease;
    background-color: white;
    width: 100%;
}

/* Remove default styling from all form elements */
.modern-form .form-control,
.modern-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Add arrow/chevron ONLY to select elements */
.modern-form .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem; /* Extra padding for the arrow */
}

/* Regular text inputs should NOT have arrow/background image */
.modern-form input[type="text"],
.modern-form input[type="tel"],
.modern-form input[type="email"] {
    background-image: none !important;
    padding-right: 1rem; /* Normal padding */
}

/* Textarea specific styling */
.modern-form textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    background-image: none !important; /* Ensure no arrow on textarea */
}

/* Labels */
.modern-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: block;
}

/* Ensure all form groups have consistent spacing */
.modern-form .form-group:not(:first-child) {
    margin-top: 1.5rem;
}

/* Focus states */
.modern-form .form-control:focus,
.modern-form .form-select:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: none;
}

/* Privacy Checkbox - Unified styling */
.modern-form .privacy-checkbox {
    padding: 20px;
    background: white;
    position: relative;
    margin-top: 1.5rem !important;
}

.modern-form .privacy-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    margin-right: 10px;
    border: 2px solid #dee2e6;
    float: left;
}

.modern-form .privacy-checkbox .form-check-label {
    display: block;
    overflow: hidden;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modern-form .privacy-checkbox .form-check-input:checked {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
}

.modern-form .privacy-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modern-form .privacy-checkbox .form-check-label a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 600;
}

.modern-form .privacy-checkbox .form-check-label a:hover {
    text-decoration: underline;
}

/* Invalid state for privacy checkbox */
.modern-form .privacy-checkbox.error .form-check-label {
    color: #dc3545 !important;
}

.modern-form .privacy-checkbox.error .form-check-label a {
    color: #dc3545 !important;
}

.modern-form .privacy-checkbox .invalid-feedback {
    display: none;
    font-size: 0.875rem;
    margin-top: 5px;
    clear: both;
}

.modern-form .privacy-checkbox.error .invalid-feedback {
    display: block;
}

/* Submit Button - Unified styling */
.modern-form .submit-btn {
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-color, #007bff), #0056b3);
    border: none;
    padding: 1rem 2rem;
    margin-top: 1.5rem !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.modern-form .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0056b3, #004085);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.modern-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.modern-form .submit-btn:hover::before {
    opacity: 1;
}

.modern-form .submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.modern-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.modern-form .submit-btn:disabled::before {
    opacity: 0 !important;
}

/* Form Messages - Unified */
.modern-form #form-messages {
    min-height: 60px;
}

.modern-form .message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-form .message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.modern-form .message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.modern-form .message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Form validation styles */
.modern-form .form-control.is-invalid,
.modern-form .form-select.is-invalid {
    border-color: #dc3545;
}

.modern-form .form-control.is-invalid:focus,
.modern-form .form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.modern-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* ===== Contact Section Specific Styles ===== */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Contact Info Card */
.contact-info-wrapper .card {
    border-radius: 2px !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

.contact-info-wrapper .card-title,
.contact-info-wrapper .company-info h4 {
    color: #fff !important;
}

.contact-info-wrapper address,
.contact-info-wrapper .contact-methods .fw-semibold,
.contact-info-wrapper .contact-methods div:not(.icon-wrapper),
.contact-info-wrapper .contact-methods a {
    color: rgba(255,255,255,0.85) !important;
}

.contact-info-wrapper .contact-item {
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 2px;
}

.contact-info-wrapper .contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-info-wrapper a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

/* Quick Buttons */
.contact-info-wrapper .btn-outline-light {
    border-radius: 2px;
    border-width: 1px;
    transition: all 0.3s ease;
}

.contact-info-wrapper .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.contact-info-wrapper .btn-success {
    border-radius: 2px;
    border: none;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    transition: all 0.3s ease;
}

.contact-info-wrapper .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Map Styling */
.map-wrapper .card {
    border-radius: 2px !important;
    overflow: hidden;
}

.map-container {
    position: relative;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    max-width: 200px;
}

.map-overlay .overlay-content {
    border-radius: 2px;
    border: 1px solid #e0e0e0;
}

/* Additional Options */
.additional-contact-options .option-item {
    transition: all 0.3s ease;
    border-radius: 2px;
}

.additional-contact-options .option-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.additional-contact-options .icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0,123,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.additional-contact-options .option-item:hover .icon-wrapper {
    background: rgba(0, 123, 255, 0.2) !important;
    transform: scale(1.05);
}

/* Process number images */
.process-number-img {
    width: 60px;
    height: 60px;
    vertical-align: middle;
    margin-right: 10px;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .modern-form .form-control,
    .modern-form .form-select {
        height: 52px;
        padding: 0.75rem 1rem;
    }
    
    .modern-form .form-select {
        padding-right: 2.5rem;
    }
    
    .map-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: -10px;
    }
    
    .map-overlay .overlay-content {
        border-radius: 0 0 2px 2px;
        border: none;
        border-top: 1px solid #e0e0e0;
    }
}

@media (max-width: 991.98px) {
    .contact-info-wrapper .card {
        margin-top: 1.5rem;
    }
}