/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Clash Display', sans-serif;
    overflow-x: hidden;
    background: var(--dark-bg);
    color: #ffffff;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, #1e3a8a 0%, var(--dark-bg) 50%);
}

.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite alternate;
}

.animated-bg::before {
    background: var(--primary-blue);
    top: -200px;
    left: -200px;
}

.brand-code {
    color: #FFFFFF;
    /* Light Grey */
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 2px;
    font-family: 'Inter', sans-serif;
    align-self: center;
    /* Center align with flex parent */
    margin-top: 4px;
    /* Slight optical adjustment */
}

.animated-bg::after {
    background: var(--primary-purple);
    bottom: -200px;
    right: -200px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.brand-main {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
}

.brand-code {
    color: #ffffff;
    /* Will now work reliably */
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    opacity: 0.9;
}

.nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border: none;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    display: inline-block;
    font-size: 0.95rem;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 0.95rem;
}

.btn-outline-custom:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* Typography Override */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.hero-title {
    font-family: 'Clash Display', sans-serif;
}

/* Ensure Clash Display font is applied */
.hero-title {
    font-family: 'Clash Display', sans-serif !important;
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: float-icon 6s ease-in-out infinite;
}

.icon-box-purple {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    transform: rotate(-15deg);
    top: 20%;
    left: -40px;
}

.icon-box-blue {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    top: 40%;
    right: -20px;
}

.icon-box-link {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    bottom: 10%;
    left: -30px;
    border-radius: 15px;
    transform: rotate(15deg);
}

.diamond {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #60a5fa;
    transform: rotate(45deg);
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Next Layer Text Box */
.highlight-box {
    display: inline-block;
    position: relative;
    padding: 0px 0px;
    margin-top: 5px;
    border-radius: 4px;
    vertical-align: middle;
}

.highlight-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 2px;
}

.handle-tl {
    top: -4px;
    left: -4px;
}

.handle-tr {
    top: -4px;
    right: -4px;
}

.handle-bl {
    bottom: -4px;
    left: -4px;
}

.handle-br {
    bottom: -4px;
    right: -4px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    background: none;
    -webkit-text-fill-color: initial;
}

.highlight-text {
    color: white;
    /* Or keep it white as per design */
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.icon-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icon-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* Professional Sleek Service Cards */
.service-pro-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    transition: all 0.35s ease;
    height: 100%;
    backdrop-filter: blur(8px);
}

.service-pro-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: white;
    transition: all 0.35s ease;
}

.service-pro-card:hover .service-icon-wrapper {
    transform: scale(1.08);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: white;
    letter-spacing: -0.3px;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #d1d5db;
    margin: 0;
}

/* Keep your existing icon gradient classes */
.icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.icon-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icon-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.service-link {
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* Compact Service Style - matches your reference image */
.service-compact {
    padding: 0;
    background: transparent;
    border: none;
    transition: transform 0.4s ease;
}

.service-compact:hover {
    transform: translateY(-12px);
}

/* Updated - Smaller, more professional service icons */
.service-icon-wrapper {
    width: 52px;
    /* Reduced from 64px → more compact */
    height: 52px;
    border-radius: 12px;
    /* Slightly softer corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    /* Slightly less space below icon */
    font-size: 1.35rem;
    /* Icon itself is smaller (was 1.6rem) */
    color: white;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    /* Subtle shadow for depth */
}

.service-pro-card:hover .service-icon-wrapper {
    transform: scale(1.08);
    /* Gentle hover enlargement */
}

/* Optional: Even smaller variant - very minimal & modern */
.service-icon-wrapper.small-variant {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.service-compact p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* Process Section - exact style match to reference */
.process-item {
    text-align: left;
}

.process-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
}

.process-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.process-block i {
    font-size: 1.8rem;
    color: white;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.process-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #d1d5db;
    margin: 0;
    max-width: 340px;
}

/* Optional - subtle left border accent on hover */
.process-item:hover .process-description {
    color: #e5e7eb;
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: -40px;
    /* Pull stats up closer to hero */
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Professional, Sleek Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.stat-pro-item {
    padding: 1.25rem 1rem;
    transition: transform 0.4s ease;
}

.stat-pro-item:hover {
    transform: translateY(-6px);
}

.stat-number {
    font-size: 3.2rem;
    /* Reduced from 3.5rem */
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: white;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, #ffffff, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number .plus,
.stat-number .percent {
    font-size: 2.1rem;
    font-weight: 600;
    opacity: 0.85;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
}

/* Optional: Very minimal version - almost no background */
.stat-pro-item.minimal {
    padding: 1rem 0.8rem;
    background: transparent;
    border: none;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.testimonial-text {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.stars {
    color: #f59e0b;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: white;
}

.form-control::placeholder {
    color: #6b7280;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-blue);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
    }
}

/* Section Styling */
.section-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.section-title {
    /* font-size: clamp(2rem, 4vw, 3rem); */
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-image {
    border-radius: 20px;
    width: 100%;
    height: auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-link {
        margin: 0.5rem 0;
    }

    .nav-link::after {
        display: none;
    }

    .btn-gradient.ms-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card-bg);
    /* Dark theme card background */
    border: 1px solid var(--border-color);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(59, 130, 246, 0.35);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0));
    padding: 30px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    backdrop-filter: blur(2px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    font-family: 'Clash Display', sans-serif;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-blue);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.portfolio-tag:hover {
    background: var(--primary-blue);
    color: white;
}