/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

:root {
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-heading: 'Sora', 'Inter', system-ui, sans-serif;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --bg-page: #e8edf5;
    --bg-alt: #f0f4fa;
    --primary: #5B7FCC;
    --primary-700: #4A6CB5;
    --secondary: #7B9FD4;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--bg-page);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(106, 78, 233, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(106, 78, 233, 0.15);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Navigation - Floating Navbar */
.navbar-floating {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 1000;
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(91,127,204,0.1);
    border-radius: 100px;
    padding: 10px 12px 10px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
}

.nav-brand .logo {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--color-text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-circle:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.dark-mode-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

.btn-nav-cta {
    padding: 10px 20px;
    border-radius: 100px;
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid #d1d5db;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-nav-cta:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    cursor: pointer;
    z-index: 1002; /* above dropdown */
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(180deg, #dce3f0 0%, #e8edf5 50%, #edf1f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91,127,204,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123,159,212,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.hero-description {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(91,127,204,0.12);
    box-shadow: 0 20px 60px rgba(91,127,204,0.12), 0 4px 16px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.profile-card:hover {
    transform: scale(1.03);
    box-shadow: 0 28px 72px rgba(91,127,204,0.18), 0 8px 20px rgba(0,0,0,0.06);
    border-color: rgba(91,127,204,0.2);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(91,127,204,0.3);
}

.profile-avatar .profile-icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.view-all {
    color: #3B5FAA;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

/* Services Section */
.services {
    background: var(--bg-alt);
}

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(91,127,204,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(91,127,204,0.1);
    border-color: rgba(91,127,204,0.15);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(91,127,204,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--color-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}

.service-features .fas {
    color: var(--primary);
    font-size: 12px;
}

/* Projects Section */
.projects {
    background: var(--bg-page);
}

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

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(91,127,204,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(91,127,204,0.1);
    border-color: rgba(91,127,204,0.15);
}

.project-image {
    position: relative;
    height: 300px;
    background: #e8edf5;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 78, 233, 0.85) 0%, rgba(34, 125, 255, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1e293b;
}

.project-content p {
    color: #64748b;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* Projects Hero */
.projects-hero {
    position: relative;
    padding: 120px 0 40px;
    overflow: hidden;
    background: linear-gradient(180deg, #dce3f0 0%, #e8edf5 50%, #edf1f8 100%);
    border-bottom: 1px solid rgba(91,127,204,0.08);
}

.projects-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: radial-gradient(circle at 25% 0%, rgba(91,127,204, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 100%, rgba(123,159,212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.projects-hero-overlay {
    display: none;
}

.projects-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.projects-hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(106, 78, 233, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.projects-hero-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0f172a;
    line-height: 1.15;
}

.projects-hero-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto 20px;
}

.projects-hero-stats {
    display: flex;
    justify-content: center;
}

.projects-hero-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(106, 78, 233, 0.06);
    border: 1px solid rgba(106, 78, 233, 0.12);
}

.projects-hero-stat-num {
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #6A4EE9, #227dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-hero-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Project List Page */
.projects-intro {
    padding: 0 0 40px;
    background: var(--bg-page);
}
.projects-intro-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    text-align: center;
}
.projects-intro-content h1 {
    display: none;
}
.projects-list-page {
    padding: 0 0 80px;
    background: var(--bg-page);
    min-height: 100vh;
}

.project-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-list-item {
    display: flex;
    gap: 32px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: flex-start;
}

.project-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.project-list-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.project-list-item:hover .project-list-thumb img {
    transform: scale(1.05);
}

.project-list-content {
    flex: 1;
    min-width: 0;
}

.project-list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.project-list-category,
.project-list-year,
.project-list-client {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
}

.project-list-category {
    background: rgba(91,127,204,0.1);
    color: var(--primary);
}

.project-list-year {
    background: rgba(91,127,204,0.06);
    color: #6b8ab8;
}

.project-list-client {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.project-list-title {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.project-list-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-list-title a:hover {
    color: var(--primary);
}

.project-list-summary {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-list-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.project-list-link:hover {
    gap: 10px;
    color: #5a3ed0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Blog Section */
.blog {
    background: var(--bg-alt);
}

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

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(91,127,204,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(91,127,204,0.1);
    border-color: rgba(91,127,204,0.15);
}

.blog-image {
    height: 200px;
    background: #e8edf5;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 18px;
    margin: 10px 0;
}

.blog-content h3 a {
    text-decoration: none;
    color: inherit;
}

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

.blog-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

/* Testimonials Cards */
.testimonials {
    background: var(--bg-alt);
    padding: 80px 0;
}

.testimonials-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.testimonials-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3B5FAA;
    margin-bottom: 8px;
}

.testimonials-heading h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.testimonials-nav {
    display: flex;
    gap: 8px;
}

.testimonials-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.testimonials-track-wrapper {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    flex: 0 0 calc(50% - 8px);
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-location {
    font-size: 0.72rem;
    color: var(--color-muted);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 12px;
}

.testimonial-quote {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #475569;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testimonials-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.testimonials-dot::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: all 0.3s;
}

.testimonials-dot.active::after {
    background: var(--primary);
    width: 20px;
    border-radius: 3px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

/* New horizontal contact items row */
.contact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
}

/* Size and color local SVG icons like Fiverr */
.contact-item .icon-svg {
    width: 22px;
    height: 22px;
    display: block;
    /* Make dark SVG appear white */
    filter: invert(1) brightness(200%);
}

.contact-item h3,
.contact-item h4 {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 18px;
}

.contact-item p {
    opacity: 1;
    color: #ffffff;
}

/* Make contact links inherit white color */
.contact-item[href] {
    color: #ffffff;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.footer-social a {
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-heading h2 {
        font-size: 24px;
    }

    .testimonials-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }

    .testimonials-nav {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 100%;
        padding: 20px;
    }

    .testimonial-quote {
        font-size: 0.82rem;
    }

    .testimonials-dots {
        margin-top: 24px;
    }

    .contact-items {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar .container {
        position: relative;
        gap: 12px;
    }

    .hamburger {
        display: inline-flex;
    }

    /* Hide large CTA to prevent overlap and give space */
    .navbar .btn {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Project list responsive */
@media (max-width: 768px) {
    .projects-hero {
        padding: 100px 0 30px;
    }

    .projects-hero-content h1 {
        font-size: 26px;
    }

    .projects-hero-content p {
        font-size: 13px;
    }

    .projects-hero-stat {
        padding: 4px 12px;
    }

    .project-list {
        gap: 24px;
    }

    .project-list-item {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .project-list-thumb {
        width: 100%;
        height: 200px;
    }

    .project-list-title {
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .project-list {
        gap: 20px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

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

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

.hero-content,
.service-card,
.project-card,
.blog-card {
    animation: fadeInUp 0.6s ease-out;
}


/* Modern Blog Page Styles - Complementing existing design */
.blog-page {
    padding: 120px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1e293b;
}

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

.blog-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: white;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(106, 78, 233, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.blog-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-image-modern {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
}

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

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

.blog-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(106, 78, 233, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
}

.blog-card-modern:hover .blog-overlay {
    opacity: 1;
}

.blog-content-modern {
    padding: 1.5rem;
}

.blog-meta-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-category {
    background: var(--gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-content-modern h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content-modern h3 a {
    color: #1e293b;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.blog-content-modern p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-modern {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.read-more-modern {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more-modern:hover {
    color: #4f46e5;
    transform: translateX(3px);
}

.author-modern {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.pagination-modern .pagination-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-modern .pagination-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.pagination-modern .pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-modern .pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-modern .pagination-number:hover,
.pagination-modern .pagination-number.active {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

/* Blog Page Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-meta-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .blog-footer-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .pagination-modern {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }
}

/* ============================================================
   PROJECT / ARTICLE SINGLE PAGE
   ============================================================ */

/* --- Utility: narrow container --- */
.container--narrow {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SINGLE PROJECT PAGE — Redesigned
   ============================================================ */

/* ── Scroll Progress ── */
.sp-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7b9fd4);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
}

/* ── Hero ── */
.sp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
    padding: 140px 0 60px;
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(91,127,204,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(123,159,212,0.08) 0%, transparent 50%);
    z-index: 1;
}

.sp-hero-grain {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

.sp-hero .container {
    position: relative;
    z-index: 3;
}

.sp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.sp-hero-left {
    max-width: 520px;
}

.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.sp-back:hover {
    color: #fff;
}

.sp-back svg {
    transition: transform 0.3s;
}

.sp-back:hover svg {
    transform: translateX(-3px);
}

.sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.sp-tag {
    background: rgba(91,127,204,0.15);
    color: #93b3e8;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(91,127,204,0.2);
}

.sp-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #fff;
}

.sp-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.sp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.sp-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.sp-hero-meta-item svg {
    opacity: 0.5;
}

.sp-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0f172a;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.sp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.sp-cta svg {
    transition: transform 0.3s;
}

.sp-cta:hover svg {
    transform: translate(2px, -2px);
}

/* ── Device Mockup ── */
.sp-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-hero-device {
    width: 100%;
    max-width: 480px;
    background: #1a1f35;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-hero-device:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.sp-device-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #151a2e;
}

.sp-device-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.sp-device-bar span:first-child { background: #ff5f57; }
.sp-device-bar span:nth-child(2) { background: #febc2e; }
.sp-device-bar span:last-child { background: #28c840; }

.sp-hero-device img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Content Area ── */
.sp-content-area {
    padding: 64px 0 80px;
    background: var(--bg-page);
}

.sp-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
}

/* ── Sidebar ── */
.sp-sidebar {
    position: sticky;
    top: 90px;
}

.sp-sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.sp-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7b9fd4);
    border-radius: 14px 14px 0 0;
}

.sp-toc-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-muted);
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sp-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-toc-list li {
    margin-bottom: 4px;
}

.sp-toc-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--color-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.sp-toc-link:hover {
    background: rgba(91,127,204,0.06);
    color: var(--color-text);
    padding-left: 14px;
}

.sp-toc-link.active {
    background: rgba(91,127,204,0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
    padding-left: 14px;
}

.sp-sidebar-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-sidebar-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(91,127,204,0.2);
}

.sp-sidebar-author h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.sp-sidebar-author p {
    font-size: 0.72rem;
    color: var(--color-muted);
    margin: 2px 0 0;
}

/* ── Main Content ── */
.sp-main {
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.sp-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

.sp-content h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 44px 0 14px;
    padding-top: 20px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.sp-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

.sp-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: -20px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(91,127,204,0.15), transparent);
}

.sp-content h2:first-child::before {
    display: none;
}

.sp-content h2 .section-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

.sp-content h2 .section-badge--challenge  { background: #fef2f2; color: #dc2626; }
.sp-content h2 .section-badge--approach   { background: #eff6ff; color: #2563eb; }
.sp-content h2 .section-badge--highlights { background: #f0fdf4; color: #16a34a; }
.sp-content h2 .section-badge--techstack  { background: #faf5ff; color: #9333ea; }
.sp-content h2 .section-badge--role       { background: #fff7ed; color: #ea580c; }
.sp-content h2 .section-badge--roadmap    { background: #f0f9ff; color: #0891b2; }

.sp-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 28px 0 10px;
}

.sp-content p {
    margin-bottom: 18px;
}

.sp-content ul,
.sp-content ol {
    padding-left: 1.5em;
    margin-bottom: 18px;
}

.sp-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.sp-content li::marker {
    color: var(--primary);
}

.sp-content strong {
    font-weight: 600;
    color: var(--color-text);
}

.sp-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--primary);
    background: rgba(91,127,204,0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.sp-content blockquote p:last-child {
    margin-bottom: 0;
}

.sp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.sp-content thead {
    background: linear-gradient(135deg, rgba(91,127,204,0.08), rgba(91,127,204,0.04));
}

.sp-content th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    border-bottom: 2px solid rgba(91,127,204,0.1);
}

.sp-content td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.sp-content tbody tr {
    transition: background 0.2s;
}

.sp-content tbody tr:hover {
    background: rgba(91,127,204,0.03);
}

.sp-content figure {
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.sp-content figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.sp-content figure:hover img {
    transform: scale(1.02);
}

.sp-content figure figcaption {
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--color-muted);
    background: linear-gradient(135deg, #f8f9fa, #f1f5f9);
    text-align: center;
}

.sp-content figure.expanded {
    position: fixed;
    inset: 5%;
    z-index: 1000;
    border-radius: 12px;
    cursor: zoom-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sp-content figure.expanded img {
    height: 100%;
    object-fit: contain;
}

.sp-content img:not(figure img) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sp-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(91,127,204,0.3);
    transition: text-decoration-color 0.2s;
}

.sp-content a:hover {
    text-decoration-color: var(--primary);
    opacity: 1;
}

.sp-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    margin: 32px 0;
}

.sp-content code {
    background: rgba(91,127,204,0.06);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'JetBrains Mono', monospace;
}

.sp-content pre {
    margin: 20px 0;
    padding: 16px 20px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.sp-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Tech stack pills */
.sp-content ul.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 12px 0 20px;
}

.sp-content ul.project-tech-stack li {
    background: rgba(91,127,204,0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(91,127,204,0.12);
    transition: all 0.2s;
}

.sp-content ul.project-tech-stack li:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* ── Project Nav ── */
.sp-nav {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.sp-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0,0,0,0.06);
}

.sp-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px 24px;
    text-decoration: none;
    background: #fff;
    transition: background 0.2s;
}

.sp-nav-item:hover {
    background: #f8fafc;
}

.sp-nav-next {
    text-align: right;
}

.sp-nav-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-nav-next .sp-nav-label {
    justify-content: flex-end;
}

.sp-nav-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}

/* ── Back to Top ── */
.sp-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(91,127,204,0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 100;
}

.sp-back-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.sp-back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(91,127,204,0.45);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .sp-hero-grid {
        grid-template-columns: 1fr;
    }

    .sp-hero-right {
        display: none;
    }

    .sp-hero {
        padding: 120px 0 48px;
    }

    .sp-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sp-sidebar-card {
        margin-top: 0 !important;
    }

    .sp-sidebar-card::before {
        display: none;
    }

    .sp-main {
        padding: 28px 24px;
    }

    .sp-nav-inner {
        grid-template-columns: 1fr;
    }

    .sp-nav-next {
        text-align: left;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
}

@media (max-width: 600px) {
    .sp-hero {
        padding: 110px 0 36px;
    }

    .sp-title {
        font-size: 1.8rem;
    }

    .sp-hero-meta {
        flex-direction: column;
        gap: 8px;
    }

    .sp-sidebar {
        grid-template-columns: 1fr;
    }

    .sp-main {
        padding: 20px 16px;
    }

    .sp-content h2 {
        font-size: 1.25rem;
    }
}

/* --- Blog single (non-projects) --- */
.article-single {
    background: var(--bg-page);
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

/* ===== Blog Single (MaxReach Style) ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 120px 1.5rem 4rem;
}
.blog-main {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    min-width: 0;
}
.bm-share-float {
    position: sticky;
    top: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}
.bm-share-float-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 0.25rem;
}
.bm-share-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #94a3b8;
    transition: all 0.2s ease;
    text-decoration: none;
}
.bm-share-float a:hover {
    color: #5B7FCC;
    background: rgba(91,127,204,0.08);
}
.bm-share-float-line {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    margin-top: 0.25rem;
}
.bm-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: #5B7FCC;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.bm-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #0f172a;
}
.bm-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.bm-meta-sep {
    color: #cbd5e1;
}
.bm-summarize {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.bm-summarize span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}
.bm-summarize-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.bm-summarize-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: #5B7FCC;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(91,127,204,0.08);
    transition: all 0.2s ease;
}
.bm-summarize-links a:hover {
    background: #5B7FCC;
    color: white;
}
.bm-hero {
    position: relative;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
}
.bm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.75) 100%);
    z-index: 1;
}
.bm-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    width: 100%;
}
.bm-hero-content .bm-category {
    margin-bottom: 0.75rem;
}
.bm-hero-content .bm-title {
    color: #fff;
    margin-bottom: 0.75rem;
}
.bm-hero-content .bm-meta {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}
.bm-hero-content .bm-meta-sep {
    color: rgba(255,255,255,0.4);
}
.bm-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}
.bm-content h1,
.bm-content h2,
.bm-content h3,
.bm-content h4,
.bm-content h5,
.bm-content h6 {
    color: #0f172a;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.bm-content h2 {
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}
.bm-content h3 {
    font-size: 1.25rem;
}
.bm-content p {
    margin-bottom: 1.5rem;
}
.bm-content ul,
.bm-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}
.bm-content li {
    margin-bottom: 0.5rem;
}
.bm-content blockquote {
    border-left: 4px solid #5B7FCC;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
}
.bm-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}
.bm-content th,
.bm-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.bm-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}
.bm-content code {
    background: rgba(91,127,204,0.06);
    color: #5B7FCC;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
}
.bm-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}
.bm-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-weight: 400;
}
.bm-content figure {
    margin: 2rem auto;
    text-align: center;
    max-width: 900px;
}
.bm-content figure img,
.bm-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    width: min(900px, 100%);
}
.bm-content figure figcaption {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}
.bm-footer {
    margin-top: 3rem;
}
.bm-author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.bm-author-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8edf5;
}
.bm-author-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.bm-author-card-body p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}
.bm-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
.bm-post-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.bm-post-nav a:hover {
    background: #f8fafc;
}
.bm-post-nav-prev {
    text-align: left;
}
.bm-post-nav-next {
    text-align: right;
    justify-content: flex-end;
}
.bm-post-nav a div span {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}
.bm-post-nav a div strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bm-post-nav svg {
    flex-shrink: 0;
    color: #5B7FCC;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.sidebar-widget {
    margin-bottom: 2rem;
}
.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}
.sidebar-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-recent li {
    margin-bottom: 1rem;
}
.sidebar-recent li a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    align-items: flex-start;
}
.sidebar-recent li a img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8edf5;
}
.sidebar-recent li a div strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sidebar-recent li a div span {
    font-size: 0.75rem;
    color: #94a3b8;
}
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li {
    margin-bottom: 0.5rem;
}
.sidebar-categories li a {
    display: inline-block;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.sidebar-categories li a:hover {
    background: rgba(91,127,204,0.08);
    color: #5B7FCC;
}
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 100px;
    }
    .blog-sidebar {
        position: static;
    }
    .bm-post-nav {
        grid-template-columns: 1fr;
    }
    .bm-summarize {
        flex-direction: column;
        align-items: flex-start;
    }
    .bm-share-float {
        display: none;
    }
}

/* FAQ Page Styles - Matching site design system */
/* ══════════════════════════════════════════════
   FAQ PAGE
   ══════════════════════════════════════════════ */

.faq-hero {
    position: relative;
    padding: 120px 0 48px;
    background: linear-gradient(180deg, #dce3f0 0%, #e8edf5 100%);
    border-bottom: 1px solid rgba(91,127,204,0.08);
    overflow: hidden;
}

.faq-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(91,127,204,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(123,159,212,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.faq-hero-content {
    position: relative;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.faq-hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(91,127,204,0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.faq-hero-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 12px;
}

.faq-hero-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* ── FAQ Section ── */
.faq-section {
    padding: 60px 0 80px;
    background: var(--bg-page);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

/* ── FAQ Item ── */
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(91,127,204,0.1);
}

.faq-item.open {
    box-shadow: 0 4px 16px rgba(91,127,204,0.08);
    border-color: rgba(91,127,204,0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform 0.3s, color 0.3s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 12px;
    padding: 0 24px;
}

.faq-answer p:first-child {
    padding-top: 4px;
}

.faq-answer p:last-child {
    margin-bottom: 20px;
}

.faq-answer ul,
.faq-answer ol {
    margin: 8px 0 12px 24px;
    padding: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.75;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer strong {
    color: var(--color-text);
    font-weight: 600;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer a:hover {
    opacity: 0.8;
}

/* ── CTA ── */
.faq-cta {
    text-align: center;
    margin-top: 56px;
    padding: 48px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.faq-cta p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.faq-cta-btn:hover {
    background: #4a6ab8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91,127,204,0.35);
}

.faq-cta-btn svg {
    transition: transform 0.3s;
}

.faq-cta-btn:hover svg {
    transform: translateX(3px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .faq-hero {
        padding: 100px 0 36px;
    }

    .faq-hero-content h1 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.88rem;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 18px;
    }

    .faq-cta {
        padding: 32px 20px;
    }
}

/* ══════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════ */

.contact-page {
    padding: 60px 0 80px;
    background: var(--bg-page);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

/* ── Form Card ── */
.contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-form-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-form-card > p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 28px;
}

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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--color-text);
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91,127,204,0.1);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

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

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    background: #4a6ab8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91,127,204,0.35);
}

.form-submit svg {
    transition: transform 0.3s;
}

.form-submit:hover svg {
    transform: translate(2px, -2px);
}

/* ── Info Side ── */
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-info-card > p {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-channel:hover {
    background: rgba(91,127,204,0.04);
    border-color: rgba(91,127,204,0.1);
}

.contact-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(91,127,204,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-channel-icon img {
    width: 20px;
    height: 20px;
}

.contact-channel-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-muted);
    font-weight: 600;
}

.contact-channel-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #059669;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-card {
        padding: 24px;
    }

    .contact-info-card {
        padding: 20px;
    }
}

/* ══════════════════════════════════════════════
   New Sections (Shilov[DEV] inspired)
   ══════════════════════════════════════════════ */

/* ── Floating Icons Around Profile ── */
.profile-card-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
}

.floating-icons {
    position: absolute;
    inset: -180px;
    pointer-events: none;
}

.fi {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(91,127,204,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

/* Each icon gets its own unique orbit path, speed, and distance */
.fi-1 { animation: orbit1 6s ease-in-out infinite; }
.fi-2 { animation: orbit2 7.5s ease-in-out infinite; }
.fi-3 { animation: orbit3 5.5s ease-in-out infinite; }
.fi-4 { animation: orbit4 8s ease-in-out infinite; }
.fi-5 { animation: orbit5 6.5s ease-in-out infinite; }
.fi-6 { animation: orbit6 7s ease-in-out infinite; }
.fi-7 { animation: orbit7 5s ease-in-out infinite; }
.fi-8 { animation: orbit8 8.5s ease-in-out infinite; }

/* Unique orbital keyframes - each moves in its own elliptical path */
@keyframes orbit1 {
    0%   { transform: translate(-160px, -120px); }
    25%  { transform: translate(-170px, -105px); }
    50%  { transform: translate(-150px, -135px); }
    75%  { transform: translate(-165px, -115px); }
    100% { transform: translate(-160px, -120px); }
}
@keyframes orbit2 {
    0%   { transform: translate(155px, -110px); }
    25%  { transform: translate(165px, -95px); }
    50%  { transform: translate(145px, -125px); }
    75%  { transform: translate(160px, -105px); }
    100% { transform: translate(155px, -110px); }
}
@keyframes orbit3 {
    0%   { transform: translate(165px, 90px); }
    25%  { transform: translate(155px, 105px); }
    50%  { transform: translate(175px, 80px); }
    75%  { transform: translate(160px, 95px); }
    100% { transform: translate(165px, 90px); }
}
@keyframes orbit4 {
    0%   { transform: translate(-165px, 85px); }
    25%  { transform: translate(-155px, 100px); }
    50%  { transform: translate(-175px, 75px); }
    75%  { transform: translate(-160px, 90px); }
    100% { transform: translate(-165px, 85px); }
}
@keyframes orbit5 {
    0%   { transform: translate(5px, -165px); }
    25%  { transform: translate(15px, -155px); }
    50%  { transform: translate(-5px, -175px); }
    75%  { transform: translate(10px, -160px); }
    100% { transform: translate(5px, -165px); }
}
@keyframes orbit6 {
    0%   { transform: translate(-130px, -160px); }
    25%  { transform: translate(-120px, -150px); }
    50%  { transform: translate(-140px, -170px); }
    75%  { transform: translate(-125px, -155px); }
    100% { transform: translate(-130px, -160px); }
}
@keyframes orbit7 {
    0%   { transform: translate(140px, 160px); }
    25%  { transform: translate(150px, 150px); }
    50%  { transform: translate(130px, 170px); }
    75%  { transform: translate(145px, 155px); }
    100% { transform: translate(140px, 160px); }
}
@keyframes orbit8 {
    0%   { transform: translate(-165px, 130px); }
    25%  { transform: translate(-155px, 140px); }
    50%  { transform: translate(-175px, 120px); }
    75%  { transform: translate(-160px, 135px); }
    100% { transform: translate(-165px, 130px); }
}

/* Hover: pause animations, icons spread outward smoothly */
.profile-card-wrapper:hover .fi {
    animation-play-state: paused;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-card-wrapper:hover .fi-1 { transform: translate(-200px, -150px); }
.profile-card-wrapper:hover .fi-2 { transform: translate(195px, -135px); }
.profile-card-wrapper:hover .fi-3 { transform: translate(205px, 115px); }
.profile-card-wrapper:hover .fi-4 { transform: translate(-205px, 110px); }
.profile-card-wrapper:hover .fi-5 { transform: translate(5px, -205px); }
.profile-card-wrapper:hover .fi-6 { transform: translate(-160px, -200px); }
.profile-card-wrapper:hover .fi-7 { transform: translate(175px, 200px); }
.profile-card-wrapper:hover .fi-8 { transform: translate(-205px, 165px); }

/* Individual icon hover */
.fi:hover {
    animation-play-state: paused !important;
    background: var(--primary) !important;
    box-shadow: 0 6px 20px rgba(91,127,204,0.3) !important;
    border-color: var(--primary) !important;
    z-index: 10;
    transform: scale(1.15) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.fi:hover svg {
    filter: brightness(0) invert(1);
}

/* ── Projects Section (Homepage) ── */
.projects-section {
    padding: 100px 0;
    background: #fff;
}

.projects-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
    align-items: start;
}

.projects-header-left h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.view-all-btn {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.view-all-btn:hover {
    gap: 12px;
}

.team-tagline {
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.team-tagline strong {
    color: var(--color-text);
}

.projects-stats-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.projects-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.projects-stat-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.projects-stat-label {
    font-size: 13px;
    color: var(--color-muted);
}

.projects-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-home-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-home-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    flex-direction: row;
}

.project-home-top {
    padding: 24px;
}

.project-home-card:first-child .project-home-top {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-home-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.project-home-tag-filter {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(91,127,204,0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}

.project-home-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.project-home-card:first-child .project-home-title {
    font-size: 22px;
}

.project-home-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-home-title a:hover {
    color: var(--primary);
}

.project-home-desc {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
}

.project-home-bottom {
    margin-top: auto;
    padding-top: 12px;
}

.project-home-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-home-tech-tag {
    padding: 4px 12px;
    border-radius: 100px;
    background: #f1f5f9;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
}

.project-home-image {
    overflow: hidden;
    background: #f0f4ff;
    min-height: 200px;
}

.project-home-card:first-child .project-home-image {
    border-radius: 14px;
    margin: 32px 32px 32px 0;
}

.project-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Services Section (Homepage) ── */
.services-section {
    padding: 100px 0;
    background: #fff;
}

.services-row {
    margin-bottom: 48px;
}

.services-left {
    position: relative;
}

.services-left h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.services-desc {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 28px;
}

.decor-glow {
    display: none;
}

.services-tabs {
    display: flex;
    gap: 8px;
}

.services-tab {
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.services-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.services-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.services-tab-content {
    display: none;
}

.services-tab-content.active {
    display: block;
}

.services-rows {
    display: flex;
    flex-direction: column;
}

.services-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.services-row-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 50%, rgba(91, 127, 204, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-row-item:hover::before {
    opacity: 1;
}

.services-row-item:hover {
    border-color: rgba(91, 127, 204, 0.15);
    box-shadow: 0 8px 24px rgba(91, 127, 204, 0.06);
}

.services-row-col {
    flex: 1;
}

.services-row-col:last-child {
    text-align: right;
}

.services-row-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.services-row-desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 400px;
}

.services-row-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.services-row-deadlines {
    font-size: 13px;
    color: var(--color-muted);
}

/* ── Blog Section (Homepage) ── */
.blog-section {
    padding: 100px 0;
    background: #fafbfe;
}

.blog-section .section-header {
    margin-bottom: 48px;
}

.blog-section .section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.blog-section .section-header p {
    color: var(--color-muted);
    font-size: 15px;
}

/* ── CTA Section ── */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.cta-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.cta-body h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-body p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 400px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-section .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section .contact-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(91,127,204,0.3);
}

.cta-section .contact-item i,
.cta-section .contact-item .contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(91,127,204,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.cta-section .contact-item .icon-svg {
    width: 20px;
    height: 20px;
}

.cta-section .contact-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cta-section .contact-item p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ── Stats Section (Updated) ── */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91,127,204,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* ── Responsive (New Sections) ── */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image {
        display: none;
    }

    .projects-header-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .projects-home-grid {
        grid-template-columns: 1fr;
    }

    .project-home-card:first-child {
        grid-template-columns: 1fr;
    }

    .project-home-card:first-child .project-home-image {
        margin: 0;
        border-radius: 0;
        min-height: 240px;
    }

    .cta-box {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }

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

    .services-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .services-row-col:last-child {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
    }

    .cta-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Floating Navbar Responsive ── */
@media (max-width: 900px) {
    .navbar-floating {
        width: calc(100% - 24px);
        top: 12px;
    }

    .navbar-inner {
        padding: 8px 8px 8px 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(91,127,204,0.1);
        border-radius: 20px;
        padding: 16px;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 16px;
        border-radius: 12px;
        display: block;
    }

    .nav-menu a:hover {
        background: #f1f5f9;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .nav-right {
        order: 3;
    }

    .nav-social-icons {
        display: none;
    }

    .dark-mode-toggle {
        display: none;
    }

    .btn-nav-cta {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar-inner {
        padding: 6px 6px 6px 16px;
    }

    .nav-brand .logo {
        font-size: 14px;
    }

    .btn-nav-cta {
        padding: 7px 12px;
        font-size: 11px;
    }
}

