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

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

:root {
    /* Light Theme - Clean and bright */
    --primary: #ffffff;
    --accent: #ffbaba;
    --accent-dark: #e8a5a5;
    --accent-light: #ffd4d4;
    --text-light: #7d828c;
    --text-dark: #62626e;
    --bg-dark: #f9fafb;
    --bg-section: #ffffff;
    --bg-card: #ffffff;
    --border-subtle: rgba(97, 97, 125, 0.15);
    --gradient-1: linear-gradient(135deg, #ffbaba 0%, #c0d6ff 100%);
    --gradient-2: linear-gradient(135deg, #c0d6ff 0%, #ffbaba 100%);
    --gradient-accent: linear-gradient(135deg, #ffbaba 0%, #c0d6ff 100%);
    --shadow-elegant: 0 10px 40px rgba(98, 98, 110, 0.08);
    --shadow-hover: 0 20px 60px rgba(255, 186, 186, 0.25);
    --pattern-bg-1: #e5e7eb;
    --pattern-bg-2: #f3f4f6;
    --pattern-overlay: rgba(255, 255, 255, 0.85);
    --pattern-text: #62626e;
    --pattern-text-light: #7d828c;

    /* Brand colors */
    --brand-primary: #61617d;
    --brand-primary-hover: #4d4d66;
    --gray-medium: #62626e;
    --blue-accent: #c0d6ff;
    --nav-icon-color: #3d6bc2;

    /* Card and element gradients */
    --gradient-card-highlight: linear-gradient(135deg, #62626e 0%, #ffbaba 100%);
    --gradient-stat-highlight: linear-gradient(135deg, #62626e 0%, #62626e 50%, #ffbaba 100%);
}

/* Dark Theme */
:root[data-theme="dark"] {
    --primary: #0d0d12;
    --accent: #ffbaba;
    --accent-dark: #e8a5a5;
    --accent-light: #ffd4d4;
    --text-light: #9ca3af;
    --text-dark: #f3f4f6;
    --bg-dark: #0d0d12;
    --bg-section: #16161d;
    --bg-card: #1e1e27;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, #ffbaba 0%, #c0d6ff 100%);
    --gradient-2: linear-gradient(135deg, #c0d6ff 0%, #ffbaba 100%);
    --gradient-accent: linear-gradient(135deg, #ffbaba 0%, #c0d6ff 100%);
    --shadow-elegant: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(255, 186, 186, 0.15);
    --pattern-bg-1: #16161d;
    --pattern-bg-2: #1e1e27;
    --pattern-overlay: rgba(13, 13, 18, 0.85);
    --pattern-text: #f3f4f6;
    --pattern-text-light: #9ca3af;

    /* Brand colors - adjusted for dark mode */
    --brand-primary: #9ca3af;
    --brand-primary-hover: #d1d5db;
    --gray-medium: #9ca3af;
    --blue-accent: #c0d6ff;
    --nav-icon-color: #93b4f4;

    /* Card and element gradients */
    --gradient-card-highlight: linear-gradient(135deg, #2a2a36 0%, #ffbaba 100%);
    --gradient-stat-highlight: linear-gradient(135deg, #2a2a36 0%, #2a2a36 50%, #ffbaba 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    /* Enable smooth scrolling */
    scroll-padding-top: 100px;
    /* Account for fixed navigation when scrolling to anchors */
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: var(--bg-section);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-subtle);
}

nav.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-elegant);
    background: var(--bg-section);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 2rem;
    margin-left: -10px;
    flex-shrink: 0;
}

.logo-img {
    width: auto;
    height: auto;
    max-height: 50px;
    transition: all 0.3s ease;
    filter: invert(0.4) sepia(0.1) saturate(0.5) hue-rotate(200deg) brightness(0.7);
}

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

:root[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1) opacity(0.9);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

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

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-section);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 280px;
    max-width: 320px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: var(--shadow-elegant);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 186, 186, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
    padding-left: 1.75rem;
}

.nav-dropdown-menu .count {
    color: var(--accent-light);
    font-size: 0.85rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0 0 0;
    /* Top padding for fixed nav - horizontal handled by .hero-content */
    margin-top: 0;
    /* Ensure no top margin */
    background: radial-gradient(ellipse at center top, rgba(255, 186, 186, 0.08) 0%, var(--bg-dark) 70%);
}

:root[data-theme="dark"] .hero {
    background: radial-gradient(ellipse at center top, #1e1e27 0%, var(--bg-dark) 70%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-tagline {
    color: var(--brand-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Compact Hero for secondary pages */
.hero-compact {
    min-height: 50vh;
    padding-top: 120px;
}

.hero-compact h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-compact .hero-description {
    margin-bottom: 0;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-elegant);
    border: none;
}

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

.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Hero-specific button styles */
.hero .btn-primary {
    background: var(--brand-primary);
    box-shadow: 0 10px 40px rgba(97, 97, 125, 0.2);
}

.hero .btn-primary:hover {
    background: var(--brand-primary-hover);
    box-shadow: 0 20px 60px rgba(97, 97, 125, 0.3);
}

.hero .btn-secondary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.hero .btn-secondary:hover {
    background: var(--brand-primary);
    color: white;
}

/* About Section */
.about {
    padding: 8rem 0 6rem 0;
    /* Vertical padding only - horizontal handled by .container */
    background: var(--bg-section);
    position: relative;
    z-index: 1;
    /* Ensure proper layering */
}

/* First section after navbar needs extra top padding */
.about.first-section {
    padding-top: 10rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--brand-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Top gradient bar for stats */
.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-stat-highlight);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.stat:hover::before {
    transform: translateX(0);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow:
        var(--shadow-hover),
        0 0 25px rgba(98, 98, 110, 0.15);
    border-color: rgba(97, 97, 125, 0.4);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-dark);
    font-size: 1rem;
}

/* Triangle layout for stats */
.stats-triangle {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stats-row-top {
    justify-content: center;
}

.stats-row-bottom {
    justify-content: center;
}

.stats-triangle .stat {
    flex: 0 1 auto;
    min-width: 200px;
}

/* Services Section */
.services {
    padding: 6rem 0;
    /* Vertical padding only - horizontal handled by .container */
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-card-highlight);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(98, 98, 110, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 8px;
}

/* Remove emoji text, use visual backgrounds instead */
.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #ffbaba 0%, #c0d6ff 100%);
}

.service-card:nth-child(1) .service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 20%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2) 15%, transparent 15%);
    animation: pulse 2s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #c0d6ff 0%, #ffbaba 100%);
}

.service-card:nth-child(2) .service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 15px 15px, 20px 20px;
    animation: neuralPulse 3s ease-in-out infinite;
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #ffbaba 0%, #7d828c 100%);
}

.service-card:nth-child(3) .service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: scanLine 2s ease-in-out infinite;
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--brand-primary) 100%);
}

.service-card:nth-child(4) .service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 10px 10px;
}

.service-card:nth-child(5) .service-icon {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--blue-accent) 100%);
}

.service-card:nth-child(5) .service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.1) 5px, rgba(255, 255, 255, 0.1) 10px);
}

.service-card:nth-child(6) .service-icon {
    background: linear-gradient(135deg, #7d828c 0%, #ffbaba 100%);
}

.service-card:nth-child(6) .service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 25%, transparent 25%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.service-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: flex-start;
}

.service-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    /* Vertical padding only - horizontal handled by .container */
    background: var(--bg-dark);
}

.portfolio-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: -1rem auto 4rem;
}

/* Category Overview */
.category-overview {
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
}

/* Top gradient bar */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-card-highlight);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

/* Shimmer effect */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(98, 98, 110, 0.15) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::before {
    transform: translateX(0);
}

.category-card:hover::after {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        var(--shadow-hover),
        0 0 30px rgba(98, 98, 110, 0.2);
    border-color: rgba(98, 98, 110, 0.4);
    background: linear-gradient(135deg,
        rgba(98, 98, 110, 0.05) 0%,
        rgba(255, 186, 186, 0.05) 100%),
        var(--bg-card);
}

.category-card:active {
    transform: translateY(-4px) scale(1);
    transition: all 0.1s ease;
}

.category-card-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: flex-start;
}

.category-card-count {
    color: var(--brand-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.category-card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
}

/* Navigation Cards Section */
.nav-cards-section {
    padding: 6rem 0;
    background: var(--bg-section);
    position: relative;
    z-index: 10;
}

.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.nav-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

/* Top gradient bar */
.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-card-highlight);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

/* Shimmer effect */
.nav-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(98, 98, 110, 0.15) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.nav-card:hover::before {
    transform: translateX(0);
}

.nav-card:hover::after {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        var(--shadow-hover),
        0 0 30px rgba(98, 98, 110, 0.2);
    border-color: rgba(98, 98, 110, 0.4);
    background: linear-gradient(135deg,
        rgba(98, 98, 110, 0.05) 0%,
        rgba(255, 186, 186, 0.05) 100%),
        var(--bg-card);
}

.nav-card:active {
    transform: translateY(-4px) scale(1);
    transition: all 0.1s ease;
}

.nav-card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 3;
    line-height: 1.3;
    height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back to Categories Button */
.back-to-categories {
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.back-to-categories button {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-categories button:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateX(-3px);
}

/* Projects Container */
.projects-container {
    display: block;
}

.portfolio-category {
    margin-bottom: 6rem;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(98, 98, 110, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-card-highlight);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(98, 98, 110, 0.3);
}

/* CSS-Generated Pattern Backgrounds for Project Cards */
.project-card[data-pattern] {
    min-height: 400px;
    padding: 2rem;
}

/* Base overlay for all patterns to ensure text readability */
.project-card[data-pattern]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pattern-overlay);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

/* Ensure content appears above patterns */
.project-card[data-pattern] > * {
    position: relative;
    z-index: 2;
}

/* Pattern 1: Diagonal Lines */
.project-card[data-pattern="1"] {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(99, 102, 241, 0.03),
            rgba(99, 102, 241, 0.03) 1px,
            transparent 1px,
            transparent 30px
        ),
        linear-gradient(135deg, var(--pattern-bg-1) 0%, var(--pattern-bg-2) 100%);
}

/* Pattern 2: Grid */
.project-card[data-pattern="2"] {
    background:
        linear-gradient(rgba(255, 186, 186, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 186, 186, 0.03) 1px, transparent 1px),
        linear-gradient(135deg, var(--pattern-bg-1) 0%, var(--pattern-bg-2) 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

/* Pattern 3: Subtle Corner Glow */
.project-card[data-pattern="3"] {
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, var(--pattern-bg-1) 0%, var(--pattern-bg-2) 100%);
}

/* Pattern 4: Simple Diagonal */
.project-card[data-pattern="4"] {
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, transparent 100%),
        linear-gradient(135deg, var(--pattern-bg-2) 0%, var(--pattern-bg-1) 100%);
}

/* Pattern 5: Horizontal Lines */
.project-card[data-pattern="5"] {
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 186, 186, 0.025),
            rgba(255, 186, 186, 0.025) 1px,
            transparent 1px,
            transparent 40px
        ),
        linear-gradient(135deg, var(--pattern-bg-1) 0%, var(--pattern-bg-2) 100%);
}

/* Pattern 6: Minimal Dots */
.project-card[data-pattern="6"] {
    background:
        radial-gradient(circle, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, var(--pattern-bg-2) 0%, var(--pattern-bg-1) 100%);
    background-size: 40px 40px, 100% 100%;
}

/* Pattern 7: Subtle Glow */
.project-card[data-pattern="7"] {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 186, 186, 0.04) 0%, transparent 60%),
        linear-gradient(135deg, var(--pattern-bg-1) 0%, var(--pattern-bg-2) 100%);
}

/* Pattern 8: Vertical Lines */
.project-card[data-pattern="8"] {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 186, 186, 0.025),
            rgba(255, 186, 186, 0.025) 1px,
            transparent 1px,
            transparent 40px
        ),
        linear-gradient(135deg, var(--pattern-bg-2) 0%, var(--pattern-bg-1) 100%);
}

/* Pattern 9: Soft Gradient */
.project-card[data-pattern="9"] {
    background:
        linear-gradient(45deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%),
        linear-gradient(135deg, var(--pattern-bg-1) 0%, var(--pattern-bg-2) 100%);
}

/* Pattern 10: Minimal Crosshatch */
.project-card[data-pattern="10"] {
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(139, 92, 246, 0.02) 30px,
            rgba(139, 92, 246, 0.02) 31px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(255, 186, 186, 0.02) 30px,
            rgba(255, 186, 186, 0.02) 31px
        ),
        linear-gradient(135deg, var(--pattern-bg-2) 0%, var(--pattern-bg-1) 100%);
}

/* Pattern 11: Bottom Glow */
.project-card[data-pattern="11"] {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 186, 186, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--pattern-bg-1) 0%, var(--pattern-bg-2) 100%);
}

/* Pattern 12: Top Corner Accent */
.project-card[data-pattern="12"] {
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, var(--pattern-bg-2) 0%, var(--pattern-bg-1) 100%);
}

/* Text colors on pattern cards */
.project-card[data-pattern] .project-title {
    color: var(--pattern-text);
}

.project-card[data-pattern] .project-description {
    color: var(--pattern-text-light);
}

.project-card[data-pattern] .project-client {
    color: var(--accent);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.3) 100%);
    pointer-events: none;
}

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

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

/* Sophisticated placeholders matching AI image quality */
.project-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Add sophisticated overlay patterns */
.placeholder-gradient::before,
.placeholder-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
}

.placeholder-gradient::before {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.placeholder-gradient::after {
    width: 120px;
    height: 120px;
    bottom: -20px;
    left: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

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

    33% {
        transform: translate(20px, -20px) rotate(120deg);
    }

    66% {
        transform: translate(-15px, 15px) rotate(240deg);
    }
}

/* ERP2 - Ministry Enterprise with network nodes */
.gradient-enterprise {
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 186, 186, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

.gradient-enterprise::before {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px),
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px);
}

/* AFAQ - Municipal with civic patterns */
.gradient-municipal {
    background:
        radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(34, 211, 238, 0.3) 0%, transparent 45%),
        linear-gradient(135deg, #0e7490 0%, #06b6d4 50%, #22d3ee 100%);
}

.gradient-municipal::before {
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
}

/* VIIA Freight - Dynamic rail network */
.gradient-freight {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(251, 146, 60, 0.3) 0%, transparent 60%),
        linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

.gradient-freight::before {
    background:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.05) 20px, rgba(255, 255, 255, 0.05) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.04) 20px, rgba(255, 255, 255, 0.04) 40px);
    animation: railMove 20s linear infinite;
}

@keyframes railMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(40px, 40px) rotate(0deg);
    }
}

/* AI Intelligence - Neural network pattern */
.gradient-ai {
    background:
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(167, 139, 250, 0.3) 0%, transparent 45%),
        linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    animation: aiPulse 3s ease-in-out infinite;
}

.gradient-ai::before {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 40px 40px;
    animation: neuralPulse 4s ease-in-out infinite;
}

@keyframes neuralPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* ITUS Computer Vision - Scan line effect */
.gradient-vision {
    background:
        radial-gradient(circle at 35% 35%, rgba(168, 85, 247, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 65% 65%, rgba(192, 132, 252, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    animation: aiPulse 3s ease-in-out infinite 1.5s;
}

.gradient-vision::before {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: scanLine 3s ease-in-out infinite;
    border-radius: 0;
}

@keyframes scanLine {

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

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* UTrade - E-commerce grid pattern */
.gradient-ecommerce {
    background:
        radial-gradient(circle at 45% 45%, rgba(16, 185, 129, 0.3) 0%, transparent 55%),
        radial-gradient(circle at 55% 55%, rgba(52, 211, 153, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.gradient-ecommerce::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridSlide 15s linear infinite;
}

@keyframes gridSlide {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

/* NAQL Marketplace - Connection nodes */
.gradient-marketplace {
    background:
        radial-gradient(circle at 30% 40%, rgba(6, 182, 212, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
}

.gradient-marketplace::before {
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 3px, transparent 3px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 2px, transparent 2px);
    background-size: 80px 80px;
}

@keyframes aiPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.project-header {
    margin-bottom: 1rem;
    position: relative;
}

.project-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-client {
    display: block;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-badge {
    display: inline-block;
    background: rgba(255, 186, 186, 0.2);
    color: var(--accent-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 186, 186, 0.4);
}

.project-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-team {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.project-link:hover {
    color: var(--accent-dark);
    transform: translateX(3px);
}

/* Special highlighting for AI projects */
.highlight-ai {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.highlight-ai::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.highlight-ai:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.highlight-ai .project-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Expertise Section */
.expertise {
    padding: 6rem 0;
    /* Vertical padding only - horizontal handled by .container */
    background: var(--bg-section);
}

.expertise-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.expertise-tag {
    background: rgba(97, 97, 125, 0.15);
    color: var(--brand-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(97, 97, 125, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(97, 97, 125, 0.3);
}

/* Success Stories Section */
.success-stories {
    padding: 8rem 0 6rem 0;
    background: var(--bg-section);
    position: relative;
    z-index: 1;
}

.success-stories.first-section {
    padding-top: 10rem;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: -1rem auto 4rem;
    line-height: 1.6;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Case Study Card */
.case-study-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-card-highlight);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.case-study-card:hover::before {
    transform: translateX(0);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(98, 98, 110, 0.3);
}

.case-study-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.case-study-industry,
.case-study-service {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-industry {
    background: rgba(97, 97, 125, 0.15);
    color: var(--brand-primary);
    border: 1px solid rgba(97, 97, 125, 0.3);
}

.case-study-service {
    background: rgba(255, 186, 186, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 186, 186, 0.3);
}

.case-study-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.case-study-client {
    color: var(--brand-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.case-study-summary {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.case-study-results {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.case-study-link::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

.case-study-link:hover {
    color: var(--accent);
}

.case-study-link:hover::after {
    transform: translateX(4px);
}

/* Success Stories Mobile */
@media (max-width: 768px) {
    .success-stories {
        padding: 4rem 0;
    }

    .success-stories.first-section {
        padding-top: 8rem;
    }

    .section-intro {
        font-size: 1rem;
        margin: -0.5rem auto 2rem;
        padding: 0 10px;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-study-card {
        padding: 1.75rem;
    }

    .case-study-title {
        font-size: 1.3rem;
    }

    .case-study-results {
        gap: 1.5rem;
    }

    .result-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .case-study-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .case-study-industry,
    .case-study-service {
        align-self: flex-start;
    }

    .case-study-card {
        padding: 1.5rem;
    }

    .case-study-title {
        font-size: 1.2rem;
    }

    .result-number {
        font-size: 1.35rem;
    }

    .result-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   Case Study Article Page Styles
   ============================================ */

/* Article Hero */
.article-hero {
    padding: 12rem 0 4rem;
    background: var(--bg-section);
    position: relative;
}

.article-hero .container {
    max-width: 900px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--brand-primary);
}

.article-breadcrumb span {
    color: var(--text-light);
    opacity: 0.5;
}

.article-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-hero h1 {
    font-size: 2.75rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-client {
    font-size: 1.2rem;
    color: var(--brand-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.article-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Article Content */
.article-content {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.article-content .container {
    max-width: 900px;
}

.article-section {
    margin-bottom: 4rem;
}

.article-section:last-child {
    margin-bottom: 0;
}

.article-section h2 {
    font-size: 1.75rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-subtle);
}

.article-section p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.article-section li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.article-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--gradient-card-highlight);
    border-radius: 50%;
}

/* Article Results Grid */
.article-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-result-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-card-highlight);
}

.article-result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.article-result-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Technologies Used */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: rgba(97, 97, 125, 0.1);
    color: var(--brand-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(97, 97, 125, 0.2);
}

/* Article Navigation */
.article-nav {
    padding: 3rem 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border-subtle);
}

.article-nav .container {
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.article-nav-link:hover {
    transform: translateX(3px);
}

.article-nav-link.prev:hover {
    transform: translateX(-3px);
}

.article-nav-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-nav-title {
    font-size: 1rem;
    color: var(--brand-primary);
    font-weight: 600;
}

.article-nav-link.prev {
    text-align: left;
    align-items: flex-start;
}

.article-nav-link.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    flex: 0 0 auto;
}

.article-nav-link.home:hover {
    background: var(--bg-card);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.article-nav-link.next {
    text-align: right;
    align-items: flex-end;
}

/* Article Mobile Styles */
@media (max-width: 768px) {
    .article-hero {
        padding: 10rem 0 3rem;
    }

    .article-hero h1 {
        font-size: 2rem;
    }

    .article-client {
        font-size: 1.1rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .article-content {
        padding: 3rem 0;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section p,
    .article-section li {
        font-size: 1rem;
    }

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

    .article-result-number {
        font-size: 2rem;
    }

    .article-nav {
        padding: 1.5rem 0;
    }

    .article-nav .container {
        flex-direction: row;
        gap: 0.5rem;
    }

    .article-nav-link {
        flex: 1;
        padding: 0.75rem 0.5rem;
        background: var(--bg-card);
        border-radius: 8px;
        align-items: center;
        text-align: center;
    }

    .article-nav-link .article-nav-label,
    .article-nav-link .article-nav-title {
        display: none;
    }

    .article-nav-link.prev::before {
        content: "← Prev";
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--brand-primary);
    }

    .article-nav-link.home::before {
        content: "Home";
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--brand-primary);
    }

    .article-nav-link.next::before {
        content: "Next →";
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--brand-primary);
    }

    .article-nav-link.home {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        border: none;
    }
}

@media (max-width: 480px) {
    .article-hero h1 {
        font-size: 1.75rem;
    }

    .article-results-grid {
        grid-template-columns: 1fr;
    }

    .article-result-card {
        padding: 1.5rem;
    }

    .article-result-number {
        font-size: 1.75rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    /* Vertical padding only - horizontal handled by .container */
    background: var(--bg-section);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--brand-primary);
    box-shadow: 0 10px 40px rgba(97, 97, 125, 0.2);
}

.cta-section .btn-primary:hover {
    background: var(--brand-primary-hover);
    box-shadow: 0 20px 60px rgba(97, 97, 125, 0.3);
}

.cta-section .btn-secondary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.cta-section .btn-secondary:hover {
    background: var(--brand-primary);
    color: white;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-section);
    box-shadow: 0 0 20px rgba(255, 186, 186, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Modern Send Button Styling */
.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1.125rem 2.5rem;
    border-radius: 12px;
    background: var(--brand-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-send:hover::before {
    width: 300px;
    height: 300px;
}

.btn-send:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(97, 97, 125, 0.3);
}

.btn-send:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(97, 97, 125, 0.25);
}

.btn-send .btn-text {
    position: relative;
    z-index: 1;
}

.btn-send .btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-send:hover .btn-icon {
    transform: translateX(4px) translateY(-4px);
}

/* Disabled state for sending */
.btn-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-send:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-elegant);
}

.btn-send:disabled .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Dark theme adjustments */
:root[data-theme="dark"] .btn-send {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .btn-send:hover {
    box-shadow: 0 12px 40px rgba(255, 186, 186, 0.2);
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Form Success and Error Messages */
.form-success-message,
.form-error-message {
    animation: slideInDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Footer */
footer {
    padding: 3rem 0;
    /* Vertical padding only - horizontal handled by .footer-content */
    background: var(--bg-dark);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 200px;
    height: auto;
    max-height: 60px;
    transition: all 0.3s ease;
    filter: invert(0.4) sepia(0.1) saturate(0.5) hue-rotate(200deg) brightness(0.7);
}

:root[data-theme="dark"] .footer-logo-img {
    filter: brightness(0) invert(1) opacity(0.9);
}

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

.footer-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-location {
    color: var(--brand-primary);
    font-weight: 500;
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle svg {
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: absolute;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--nav-icon-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Tablet/Small Desktop */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-links {
        gap: 1.2rem;
    }

    .logo {
        margin-right: 1rem;
    }
}

/* Tablet Nav Cards */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .theme-toggle {
        position: absolute;
        top: 50%;
        right: 70px;
        transform: translateY(-50%);
        margin-left: 0;
        width: 40px;
        height: 40px;
    }

    .theme-toggle:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .hero {
        align-items: flex-start;
        padding-top: 140px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-section);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 186, 186, 0.15);
        color: var(--accent-light);
        transform: scale(1.05);
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 0;
        max-height: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.4s ease;
        background: rgba(45, 55, 72, 0.95);
        margin: 0.5rem auto 0;
        width: 90%;
        max-width: 400px;
        border-radius: 8px;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        opacity: 1;
        max-height: 600px;
        visibility: visible;
    }

    .nav-dropdown-menu a {
        font-size: 1.1rem;
        padding: 0.9rem 1.5rem;
    }

    /* Portfolio Mobile Fixes */
    .portfolio {
        padding: 4rem 0;
    }

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

    .portfolio-intro {
        font-size: 1rem;
        margin: -0.5rem auto 2rem;
        padding: 0 10px;
    }

    /* Category Overview Mobile */
    .category-overview {
        margin-bottom: 2rem;
    }

    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 5px;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .category-card-count {
        font-size: 1rem;
    }

    .category-card-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Navigation Cards Mobile */
    .nav-cards-section {
        padding: 4rem 0;
    }

    .nav-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .nav-card {
        padding: 1.5rem 1rem;
        aspect-ratio: 1 / 1;
    }

    .nav-card-title {
        font-size: 1.3rem;
        height: 2.6em;
    }

    /* Compact Hero Mobile */
    .hero-compact {
        min-height: 40vh;
        padding-top: 100px;
    }

    /* Back Button Mobile */
    .back-to-categories {
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .back-to-categories button {
        width: 100%;
        max-width: 300px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Projects Container Mobile */
    .projects-container {
        padding: 0 5px;
    }

    .portfolio-category {
        margin-bottom: 4rem;
    }

    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .stats-row {
        flex-direction: column;
        align-items: center;
    }

    .stats-triangle .stat {
        width: 100%;
        max-width: 300px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card[data-pattern] {
        min-height: 350px;
        padding: 1.5rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-form .btn {
        width: 100%;
        max-width: none;
        margin: 0;
    }

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

    .footer-logo-img {
        width: 200px;
        max-height: 60px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .portfolio-intro {
        font-size: 0.95rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-card-count {
        font-size: 0.95rem;
    }

    .category-card-description {
        font-size: 0.85rem;
    }

    .service-description {
        font-size: 0.85rem;
    }

    .back-to-categories button {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-card[data-pattern] {
        min-height: 320px;
        padding: 1.25rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .nav-dropdown-menu {
        width: 95%;
        max-width: 350px;
        padding: 0.5rem 0;
    }

    .nav-dropdown-menu a {
        font-size: 1rem;
        padding: 0.8rem 1.25rem;
    }
}

/* Floating background elements */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-card-highlight);
    opacity: 0.05;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: -5%;
    animation-delay: 10s;
}

@keyframes float {

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

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}