:root {
    /* Brand Colors */
    --primary-color: #ff7b00;
    --primary-hover: #e66f00;
    --primary-light: rgba(255, 123, 0, 0.1);

    /* Neutral Colors */
    --dark-bg: #111827;
    --card-bg: #1f2937;
    --body-bg: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff7b00 0%, #ff9f43 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    padding-top: 76px;
    /* Navbar height */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

/* Navbar Modernization */
.navbar {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 120px;
    background-size: cover;
    background-position: center;
    margin-top: -76px;
    /* Pull behind navbar */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(255, 123, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 123, 0, 0.4);
}

.btn-outline-light {
    border-width: 2px;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Feature Cards (Glassmorphism) */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--body-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

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

/* Blog Cards */
.card {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-body {
    padding: 2rem;
}

.badge {
    padding: 0.5em 1em;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #9ca3af;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Utilities */
.hover-lift {
    transition: transform 0.3s ease;
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 123, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--dark-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 123, 0, 0.1), transparent 40%);
}

/* 3D Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 140px;
    background: var(--dark-bg);
    overflow: hidden;
    margin-top: -76px;
}

.hero-bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 123, 0, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 123, 0, 0.1), transparent 25%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual-wrapper {
    position: relative;
    height: 400px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: float-hero 6s ease-in-out infinite;
}

.hero-main-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateZ(0px);
    /* Push back slightly or keep at base */
    opacity: 0.9;
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    /* More opaque to stand out */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    color: var(--text-main);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    transform-style: preserve-3d;
    z-index: 10;
    /* Force z-index */
}

.floating-icon.icon-1 {
    top: 15%;
    right: 5%;
    animation: float-delayed 5s ease-in-out infinite;
    transform: translateZ(80px);
    /* Bring forward significantly */
}

.floating-icon.icon-2 {
    bottom: 15%;
    left: 0%;
    animation: float-delayed 7s ease-in-out infinite reverse;
    transform: translateZ(100px);
    /* Bring forward significantly */
}

.floating-icon.icon-3 {
    top: 45%;
    right: -10%;
    animation: float-delayed 6s ease-in-out infinite 1s;
    transform: translateZ(60px);
    /* Bring forward significantly */
}

.floating-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Compact Feature Cards */
.compact-feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.compact-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.compact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.compact-feature-card:hover .compact-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    padding: 100px 0;
    background: var(--dark-bg);
    overflow: hidden;
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-input-group {
    background: #fff;
    padding: 0.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
    background: transparent;
}

.newsletter-btn {
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float-hero {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-20px) rotateX(2deg);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}