/**
 * Madyo Web - Main Styles
 * Modern CSS with Custom Properties
 */

:root {
    /* Primary Colors - Madyo Orange/Amber */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --accent: #f59e0b;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', sans-serif;

    /* Spacing */
    --container: 1280px;
    --section-padding: 80px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition: 0.3s ease;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-top {
    background: var(--white);
    color: var(--gray-600);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info a,
.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
}

.contact-info a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--gray-500);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* Main Navigation */
.main-nav {
    padding: 0 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 110px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu>li>a:hover::after,
.nav-menu>li.active>a::after {
    width: 100%;
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
    color: var(--primary);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 15px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--gray-700);
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-menu li.active a {
    color: var(--primary);
    font-weight: 600;
    background: var(--gray-50);
}

.dropdown-menu li.view-all {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
}

.dropdown-menu li.view-all a {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-900);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
    padding: 60px 0;
}

.hero-bg {
    display: none;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-mascot {
    flex: 0 0 400px;
}

.mascot-img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 25px;
    font-style: italic;
}

.hero-contact {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-contact .contact-item {
    flex: 1;
    min-width: 200px;
    /* Ensure they don't get too squished */
    margin: 0;
    width: auto;
    /* Override global 100% */
}

.hero-contact span {
    color: var(--gray-800);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-contact i {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.hero .btn-outline:hover {
    border-color: var(--gray-900);
    background: var(--gray-900);
    color: var(--white);
}

/* Floating Decorative Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.float-el {
    position: absolute;
    opacity: 0.8;
}

.triangle-orange {
    top: 15%;
    right: 12%;
    width: 40px;
    animation: floatRotate 8s ease-in-out infinite;
}

.triangle-blue {
    top: 20%;
    right: 10%;
    width: 35px;
    animation: floatRotate 10s ease-in-out infinite reverse;
}

.circle-el {
    bottom: 40%;
    right: 8%;
    width: 30px;
    animation: pulse 3s ease-in-out infinite;
}

.cross-1 {
    top: 25%;
    left: 3%;
    font-size: 24px;
    color: var(--gray-400);
    animation: floatY 4s ease-in-out infinite;
}

.cross-2 {
    bottom: 20%;
    right: 5%;
    font-size: 20px;
    color: var(--gray-500);
    animation: floatY 5s ease-in-out infinite reverse;
}

.plus-1 {
    top: 40%;
    right: 18%;
    font-size: 18px;
    color: #f472b6;
    animation: floatY 6s ease-in-out infinite;
}

.plus-2 {
    bottom: 35%;
    left: 5%;
    font-size: 16px;
    color: #facc15;
    animation: floatY 4.5s ease-in-out infinite reverse;
}

.dot-1 {
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    top: 30%;
    right: 30%;
    animation: pulse 2s ease-in-out infinite;
}

.dot-2 {
    width: 6px;
    height: 6px;
    background: #f472b6;
    border-radius: 50%;
    bottom: 25%;
    left: 15%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes floatRotate {

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

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

@keyframes floatY {

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Floating Graphics around Mascot */
.hero-mascot {
    flex: 0 0 550px;
    position: relative;
    margin-left: 60px;
}

.float-graphic {
    position: absolute;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Pie Chart - Top Left */
.graphic-pie {
    top: -30px;
    left: -140px;
    width: 250px;
    animation: float 4s ease-in-out infinite;
}

/* Line Chart - Bottom Left */
.graphic-line {
    bottom: -20px;
    left: -100px;
    width: 220px;
    animation: float 5s ease-in-out infinite 0.5s;
}

/* Code Editor - Top Right of mascot */
.graphic-code {
    top: 10px;
    right: -10px;
    width: 250px;
    animation: float 3.5s ease-in-out infinite 0.3s;
}

/* Orange Progress Bar - Right side of mascot */
.graphic-bar {
    top: 30%;
    right: -30px;
    width: 250px;
    animation: float 4.5s ease-in-out infinite 0.7s;
}

/* Small X decorations */
.float-x {
    position: absolute;
    font-size: 14px;
    color: var(--gray-400);
    animation: floatY 4s ease-in-out infinite;
}

.x-1 {
    top: 5%;
    left: -110px;
}

.x-2 {
    top: 40%;
    right: -50px;
}

/* Small pink dot */
.float-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot-pink {
    background: #f472b6;
    bottom: -20px;
    left: 40%;
}

/* Typewriter Effect */
.hero-typewriter {
    font-size: 3.5rem;
    font-weight: 700;
    min-height: 140px;
    margin-bottom: 15px;
}

.hero-typewriter span {
    background: linear-gradient(135deg, #f97316, #ea580c, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    animation: blink 1s infinite;
    -webkit-text-fill-color: var(--primary) !important;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Hero Contact Styling - Premium Design */
.hero-contact {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 0.95rem;
    /* Reduced from 1.05rem to make it smaller */
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 6px 16px 6px 6px;
    /* Reduced vertical padding */
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-item span {
    white-space: nowrap;
    /* Prevent line break */
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.15);
}

.contact-item i {
    width: 36px;
    /* Reduced from 40px */
    height: 36px;
    /* Reduced from 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #ff8533);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.95rem;
}

.contact-divider {
    color: var(--gray-300);
    font-weight: 300;
    font-size: 1.5rem;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

/* Page Title Section */
/* Page Title Section - Premium */
.page-title-section {
    background-color: #112240;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 25%),
        linear-gradient(135deg, #0b1a30 0%, #122544 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title-section h1 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}


/* ==================== ABOUT SECTION ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray-600);
}

.about-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.step-card {
    background: var(--gray-50);
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ==================== SERVICES ==================== */
.section-services {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 28px;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Service List Page */
.services-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-list-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-list-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-list-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.service-list-content {
    flex: 1;
}

.service-list-content h3 {
    margin-bottom: 8px;
}

.service-list-content p {
    color: var(--gray-500);
    font-size: 14px;
}

.service-list-arrow {
    color: var(--primary);
    font-size: 20px;
}

/* Service Detail */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.service-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-content {
    line-height: 1.8;
}

.service-content p {
    margin-bottom: 20px;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--gray-50);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.service-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
}

.service-nav li a:hover,
.service-nav li.active a {
    background: var(--primary);
    color: var(--white);
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.cta-widget h4 {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-widget .btn {
    background: var(--white);
    color: var(--primary);
}

/* ==================== PORTFOLIO ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/12;
    background: var(--gray-100);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

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

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

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.portfolio-overlay span {
    color: var(--gray-400);
    font-size: 13px;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
}

/* Portfolio Page */
.portfolio-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-card-lg {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--gray-100);
}

.portfolio-card-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-card-lg .portfolio-overlay {
    opacity: 0;
}

.portfolio-card-lg:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    display: block;
    margin-top: 5px;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ==================== BLOG ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.blog-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
}

.blog-card-content {
    padding: 25px;
}

.blog-date {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.blog-card-content h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    font-weight: 500;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Blog Single */
.blog-single-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.blog-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--gray-500);
    font-size: 14px;
}

.blog-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.blog-content {
    line-height: 1.9;
    font-size: 17px;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h2 {
    margin: 30px 0 15px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
    margin-top: 40px;
}

.blog-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
}

.blog-share a:hover {
    background: var(--primary);
    color: var(--white);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.recent-posts li {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    font-weight: 500;
    color: var(--gray-800);
}

.recent-posts a:hover {
    color: var(--primary);
}

.post-date {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 5px;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 10px;
}

.contact-info>p {
    color: var(--gray-500);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gray-800);
}

.contact-item p {
    color: var(--gray-500);
    font-size: 14px;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 18px;
}

.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-50);
    padding: 50px;
    border-radius: var(--radius-xl);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.map-section {
    margin-top: -1px;
}

.map-section iframe {
    display: block;
}

/* ==================== CTA SECTION ==================== */
.section-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-content .btn-primary {
    background: var(--white);
    color: var(--primary);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background-color: #112240;
    background-image: linear-gradient(135deg, #0b1a30 0%, #122544 100%);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

/* ==================== ERROR PAGE ==================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    text-align: center;
    padding: 40px;
}

.error-content h1 {
    font-size: 10rem;
    color: var(--primary);
    line-height: 1;
}

.error-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.error-content p {
    color: var(--gray-400);
    margin-bottom: 30px;
}

/* About Page */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Career Page */
.career-intro {
    max-width: 600px;
    margin: 0 auto 50px;
}

.career-intro p {
    color: var(--gray-500);
}

.career-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.career-card {
    background: var(--gray-50);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.career-card h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.career-card h3 i {
    color: var(--primary);
}

.career-card p {
    color: var(--gray-600);
}

.career-card a {
    color: var(--primary);
    font-weight: 500;
}

/* No Items */
.no-items {
    text-align: center;
    padding: 60px;
    color: var(--gray-400);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.footer-logo-img {
    height: 70px;
    width: auto;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {

    .about-grid,
    .service-detail-grid,
    .blog-single-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .header-top {
        display: none;
    }

    .nav-inner {
        height: 70px;
    }

    .mobile-toggle {
        display: block;
    }

    .logo-img {
        max-height: 50px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding-bottom: 80px;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--gray-100);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-mascot {
        flex: 0 0 auto;
        order: -1;
    }

    .mascot-img {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-contact {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        justify-content: center;
    }

    /* Hide floating elements on mobile */
    .floating-elements {
        display: none;
    }

    .float-graphic {
        display: none;
    }

    .hero-code-editor {
        display: none;
    }

    .hero-typewriter {
        font-size: 2rem;
        min-height: 80px;
    }

    .about-steps {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social,
    .contact-social {
        justify-content: center;
    }
}

/* WordPress Content Styling */
.wp-content {
    font-size: 16px;
    line-height: (1.8);
    color: var(--gray-700);
}

.wp-content p {
    margin-bottom: 20px;
}

.wp-content h2,
.wp-content h3,
.wp-content h4 {
    color: var(--gray-900);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.wp-content h2 {
    font-size: 28px;
}

.wp-content h3 {
    font-size: 24px;
}

.wp-content h4 {
    font-size: 20px;
}

.wp-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.wp-content figure {
    margin: 0;
}

.wp-content ul,
.wp-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.wp-content li {
    margin-bottom: 10px;
}

/* Animations */
.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page Redesign */
.about-split-section {
    padding: 80px 0;
}

.about-text-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.about-text-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.floating-mascot {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

/* Stats Section */
.stats-section {
    background: #1e3a5f;
    padding: 60px 0;
    color: var(--white);
    margin: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

/* Colorful Features */
.about-features-container {
    padding-bottom: 80px;
}

.feature-card.modern {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card.modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-card.modern .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    background: var(--gray-50);
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card.modern:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-card.modern h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Process Steps Section */
.process-section {
    padding: 60px 0;
}

.process-card {
    background: #fffafa;
    /* Light cream/off-white bg */
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-color: var(--gray-100);
}

.process-icon-img {
    height: 80px;
    width: auto;
    margin-bottom: 25px;
    object-fit: contain;
}

.process-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1e3a5f;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.process-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-600);
}

/* Content Typography */
.content-header {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 30px;
    line-height: 1.4;
}

.content-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-600);

    margin-bottom: 20px;
}

/* Service List Grid (Madyo ?) */
.services-section {
    padding: 60px 0;
    background: #fff;
}

.services-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
    /* Wider horizontal gap */
    margin-top: 40px;
}

@media (max-width: 768px) {
    .services-list-grid {
        grid-template-columns: 1fr;
    }
}

.service-list-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.service-check-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    /* Ensure icon size matches screenshot */
}

.service-list-content h6 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e3a5f;
}

.service-list-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}


.section-big-title {
    font-size: 42px;
    font-weight: 800;
    color: #1e3a5f;
    margin-top: 10px;
}

/* Custom Grid System (Mobile First) */
/* Custom Grid System (Mobile First) */


.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-3,
.col-md-6,
.col-lg-12,
.col-12 {
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
    /* Default mobile width */
}

.mb-30 {
    margin-bottom: 30px;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-3 {
        width: 25%;
    }

    .col-lg-4 {
        width: 33.333333%;
    }

    .col-lg-8 {
        width: 66.666667%;
    }

    .col-lg-12 {
        width: 100%;
    }
}

/* Process Card Variations */
.process-section {
    padding: 30px 0 10px;
    /* Reduced from 60px */
}

.process-card.step-1 {
    background: #fdfdff;
    border: 1px solid #f0f0f5;
}

/* Tanışma */
.process-card.step-2 {
    background: #fffcf5;
    border: 1px solid #f9f0e5;
}

/* Brief */
.process-card.step-3 {
    background: #f5fffa;
    border: 1px solid #e5f9f0;
}

/* Tasarım */
.process-card.step-4 {
    background: #fdfff5;
    border: 1px solid #f5f9e5;
}

/* Sonuç */

.process-card .process-title {
    font-size: 18px;
    /* Increase size */
    margin-top: 15px;
}

.process-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    /* Reduced vertical padding */
}

/* --- Final Polish --- */

/* Global Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #F47C20;
    /* Brand Orange on hover */
}

/* Brand Selection Color */
::selection {
    background: #F47C20;
    /* Brand Orange */
    color: #fff;
}

/* Updated Feature Cards (Global) */
.feature-card:hover,
.service-card:hover,
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Service List Item Hover Effect */
.service-list-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.service-list-item:hover {
    transform: translateX(10px);
    background: rgba(244, 124, 32, 0.03);
    /* Very subtle orange tint */
    border-color: rgba(244, 124, 32, 0.1);
}

.service-check-img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-list-item:hover .service-check-img {
    transform: scale(1.1) rotate(5deg);
}

/* ==================== PORTFOLIO ==================== */
.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    justify-content: center;
    padding: 0;
}

@media (max-width: 1024px) {
    .portfolio-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-masonry {
        grid-template-columns: 1fr;
    }
}

.portfolio-card-lg {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.portfolio-card-lg img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.8;
}

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

.portfolio-card-lg:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.portfolio-card-lg:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--gray-900);
}

.portfolio-category {
    font-size: 12px;
    color: var(--gray-500);
    display: block;
    margin-bottom: 8px;
}

.portfolio-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
}

/* ==================== BEAUTIFICATION & PREMIUM STYLES ==================== */

/* Glassmorphism Utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Contact Page Enhancements */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    padding: 20px;
}

.contact-details {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

/* Decorative background for contact form */
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form .form-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control,
.contact-form input,
.contact-form textarea {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 15px;
    transition: var(--transition);
    width: 100%;
}

.contact-form .form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    outline: none;
}

/* Blog Grid Modernization */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-card-content h3 a {
    color: var(--gray-900);
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s;
}

.blog-card-content h3 a:hover {
    background-size: 100% 2px;
    color: var(--primary);
}

/* About Page / Process Visuals */
.process-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
}

.process-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: left;
}

.process-card:hover::after {
    transform: scaleX(1);
    background: var(--primary);
}

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

.process-icon-img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-card:hover .process-icon-img {
    transform: scale(1.2) rotate(5deg);
}

/* Step Colors */
.process-card.step-1:hover {
    border-color: var(--primary);
}

.process-card.step-2:hover {
    border-color: #ff6b00;
}

.process-card.step-3:hover {
    border-color: #00d285;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.process-card.step-4:hover {
    border-color: #6366f1;
}

/* Responsive Adjustments */
/* Contact Grid Layout Fix (Global) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* More space for form */
    gap: 60px;
    /* Increase gap */
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for contact items */
    gap: 25px;
    margin-top: 40px;
}

.contact-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f5;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #fff5eb;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Make Address item span full row */
.contact-item:nth-child(1) {
    grid-column: 1 / -1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }
}

/* ==================== SERVICE DETAIL PAGE ==================== */
.service-detail-section {
    padding: 80px 0;
    background: #fdfdff;
}

@media (min-width: 992px) {
    .service-detail-section .col-lg-8 {
        padding-left: 50px;
    }
}

/* Service Content Formatting */
.service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--gray-700);
}

.service-list li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 14px;
}

/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f0f5;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--primary-dark);
}

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

.service-nav li {
    margin-bottom: 10px;
}

.service-nav li a {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9fc;
    border-radius: 8px;
    color: var(--gray-700);
    transition: all 0.3s ease;
    font-weight: 500;
}

.service-nav li a i {
    margin-right: 12px;
    color: var(--gray-400);
    transition: 0.3s;
}

.service-nav li a:hover,
.service-nav li.active a {
    background: var(--primary);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.service-nav li a:hover i,
.service-nav li.active a i {
    color: #fff;
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
}

.cta-widget h4 {
    color: #fff;
    margin-bottom: 10px;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 14px;
}

.download-widget .doc-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #F3F4F6;
    border-radius: 8px;
    margin-bottom: 10px;
    color: var(--gray-700);
    transition: 0.3s;
    border: 1px solid transparent;
}

.download-widget .doc-link:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-widget .doc-link i {
    font-size: 20px;
    margin-right: 15px;
    color: var(--primary);
}

/* Main Content */
.service-detail-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f5;
}

.service-hero-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.service-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-hero-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-hero-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    /* Limit height */
    object-fit: cover;
    /* Maintain aspect ratio */
    display: block;
    transition: transform 0.5s ease;
}

.service-hero-image:hover img {
    transform: scale(1.02);
}

.service-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.editor-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.editor-content h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.editor-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.editor-content li {
    margin-bottom: 10px;
}

/* Feature Boxes */
.feature-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.feature-box i {
    font-size: 30px;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-box h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.feature-box p {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

/* Service Content Enrichment */
.editor-content h3 {
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.lead-text {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Process Steps Row */
.process-steps-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile/tablet */
    gap: 25px;
}

@media (min-width: 768px) {
    .process-steps-row {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on desktop */
    }
}

.process-step-item {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    border: 1px solid #f0f0f5;
    transition: 0.3s;
}

.process-step-item:hover .step-icon {
    transform: translateY(-5px);
    border-color: var(--primary);
    color: var(--primary);
}

.step-icon i {
    font-size: 24px;
    color: var(--primary-dark);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.process-step-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-step-item p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Spacing Utilities */
.mt-1 {
    margin-top: 10px !important;
}

.mt-2 {
    margin-top: 20px !important;
}

.mt-3 {
    margin-top: 30px !important;
}

.mt-4 {
    margin-top: 40px !important;
}

.mt-5 {
    margin-top: 80px !important;
}

.mb-1 {
    margin-bottom: 10px !important;
}

.mb-2 {
    margin-bottom: 20px !important;
}

.mb-3 {
    margin-bottom: 30px !important;
}

.mb-4 {
    margin-bottom: 40px !important;
}

.mb-5 {
    margin-bottom: 80px !important;
}

.process-step-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-step-item p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Hero Contact Fixed Styles */
.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 15px 8px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 48px;
}

.hero-contact-item span {
    white-space: nowrap;
}

.hero-contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.15);
    background: #fff;
}

.hero-contact-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #ff8533);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
}