/* Portfolio Page - Modern Clean Design */
/* Color Palette - Refined & Professional */

:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F0EEF6;
    --bg-lavender: #E8E4F8;
    --accent-purple: #7B68EE;
    --accent-purple-dark: #5B4BC9;
    --accent-pink: #FF6B9D;
    --accent-yellow: #FFD93D;
    --accent-orange: #FF9F43;
    --accent-mint: #34D399;
    --accent-blue: #6366F1;
    --card-pink: #FFF0F5;
    --card-yellow: #FFFBEB;
    --card-mint: #ECFDF5;
    --card-peach: #FFF7ED;
    --card-blue: #EEF2FF;
    --text-dark: #111827;
    --text-medium: #4B5563;
    --text-light: #9CA3AF;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    overflow-x: hidden;
}

body.portfolio-page {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.portfolio-page h1, 
.portfolio-page h2, 
.portfolio-page h3, 
.portfolio-page h4, 
.portfolio-page h5, 
.portfolio-page h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.portfolio-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.portfolio-page h2 { font-size: clamp(2rem, 4vw, 3rem); }
.portfolio-page h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.portfolio-page h4 { font-size: 1.25rem; }

.portfolio-page p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== HEADER ==================== */
.portfolio-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.85rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.portfolio-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1); /* Make logo white in footer */
}

.portfolio-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.portfolio-nav a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.portfolio-nav a:hover,
.portfolio-nav a.active {
    color: var(--text-dark);
}

.portfolio-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

.portfolio-nav a:hover::after,
.portfolio-nav a.active::after {
    width: 100%;
}

.header-cta {
    background: var(--text-dark);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-cta:hover {
    background: var(--accent-purple);
    transform: translateY(-1px);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */
.portfolio-hero {
    padding: 9rem 2rem 6rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-shape.shape-1 {
    top: -15%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: rgba(123, 104, 238, 0.08);
    animation: heroFloat1 8s ease-in-out infinite;
}

.hero-shape.shape-2 {
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(52, 211, 153, 0.06);
    animation: heroFloat2 10s ease-in-out infinite;
}

.hero-shape.shape-3 {
    top: 30%;
    right: 25%;
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 157, 0.05);
    animation: heroFloat3 7s ease-in-out infinite;
}

@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.08); }
}

@keyframes heroFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}

.portfolio-hero .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

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

.hero-image {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s ease;
}

.hero-img:hover {
    transform: translateY(-8px);
}

/* Hero Floating Cards */
.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
    z-index: 2;
}

.hero-floating-card.card-top {
    top: -10px;
    right: -20px;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-floating-card.card-bottom {
    bottom: 20px;
    left: -30px;
    animation: floatCard 4s ease-in-out infinite 1s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(123, 104, 238, 0.1);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-card-icon.mint {
    background: rgba(52, 211, 153, 0.1);
    color: #059669;
}

.floating-card-title {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.floating-card-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Hero Trust Strip */
.hero-trust-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-trust-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.hero-trust-label {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-trust-divider {
    width: 1px;
    height: 30px;
    background: rgba(0,0,0,0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-yellow);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400E;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
    width: fit-content;
}

.hero-badge::before {
    content: '✦';
    font-size: 0.75rem;
}

.portfolio-hero h1 {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    color: var(--accent-purple);
    position: relative;
}

.portfolio-hero .hero-description {
    max-width: 600px;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--white);
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.25);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* ==================== SERVICES GRID ==================== */
.services-section {
    padding: 7rem 2rem;
    background: var(--bg-primary);
}

.services-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-blue);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent-purple);
}

.text-accent-white {
    color: var(--accent-yellow);
}

.section-header p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-purple);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

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

.service-card-featured {
    border: 1px solid rgba(123, 104, 238, 0.15);
    background: linear-gradient(135deg, var(--white) 0%, var(--card-blue) 100%);
}

.service-card-featured::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
}

.service-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-icon-wrap.pink-icon { background: var(--card-pink); color: var(--accent-pink); }
.service-icon-wrap.blue-icon { background: var(--card-blue); color: var(--accent-blue); }
.service-icon-wrap.mint-icon { background: var(--card-mint); color: var(--accent-mint); }
.service-icon-wrap.peach-icon { background: var(--card-peach); color: var(--accent-orange); }
.service-icon-wrap.lavender-icon { background: var(--bg-lavender); color: var(--accent-purple); }
.service-icon-wrap.yellow-icon { background: var(--card-yellow); color: #D97706; }
.service-icon-wrap.seo-icon { background: #ECFDF5; color: #059669; }
.service-icon-wrap.dm-icon { background: #FEF3C7; color: #D97706; }

.service-card:hover .service-icon-wrap {
    transform: scale(1.08);
}

.service-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    color: var(--text-medium);
    line-height: 1.65;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-tag {
    background: var(--bg-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
}

.service-card:hover .service-tag {
    background: rgba(123, 104, 238, 0.1);
    color: var(--accent-purple);
}

.service-arrow {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    opacity: 0;
}

.service-card:hover .service-arrow {
    opacity: 1;
    background: var(--accent-purple);
    color: var(--white);
}

/* ==================== SEO RESULTS SECTION ==================== */
.seo-results-section {
    padding: 7rem 2rem;
    background: var(--white);
}

.seo-results-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.seo-badge {
    background: #ECFDF5;
    color: #059669;
}

/* SEO Metrics Bar */
.seo-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.seo-metric-highlight {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.seo-metric-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34D399);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.seo-metric-highlight::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.04);
    transition: var(--transition);
}

.seo-metric-highlight:hover::before {
    transform: scaleX(1);
}

.seo-metric-highlight:hover::after {
    transform: scale(1.5);
    background: rgba(5, 150, 105, 0.06);
}

.seo-metric-highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.12);
}

.seo-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.seo-metric-highlight:hover .seo-metric-icon {
    background: linear-gradient(135deg, #059669, #34D399);
    color: var(--white);
    transform: scale(1.08);
}

.seo-metric-data {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.seo-metric-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.seo-metric-highlight:hover .seo-metric-number {
    color: #059669;
}

.seo-metric-text {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}

.seo-metric-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.1);
}

/* SEO Before/After Showcase */
.seo-clients-showcase {
    margin-bottom: 3rem;
}

.seo-showcase-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.seo-ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.seo-ba-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.seo-ba-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.seo-ba-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.seo-ba-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.seo-ba-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: #EEF2FF;
    color: var(--accent-purple);
}

.seo-ba-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.seo-ba-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    background: #ECFDF5;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
}

/* SEO Process */
.seo-process {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid rgba(0,0,0,0.04);
}

.seo-process-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.seo-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.seo-process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple) 0%, #059669 100%);
    opacity: 0.2;
}

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

.seo-step-number {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-purple);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.seo-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(123, 104, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent-purple);
    transition: var(--transition);
}

.seo-step:hover .seo-step-icon {
    background: var(--accent-purple);
    color: var(--white);
    border-color: var(--accent-purple);
}

.seo-step h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.seo-step p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==================== DIGITAL MARKETING SHOWCASE ==================== */
.dm-showcase-section {
    padding: 7rem 2rem;
    background: var(--bg-primary);
}

.dm-showcase-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.dm-badge {
    background: #FEF3C7;
    color: #D97706;
}

.dm-clients-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.dm-client-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dm-client-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-mint));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.dm-client-card:hover::after {
    transform: scaleX(1);
}

.dm-client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dm-client-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dm-client-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--text-dark);
}

.dm-client-info span {
    font-size: 0.78rem;
    color: var(--text-light);
}

.dm-growth-badge {
    background: #ECFDF5;
    color: #059669;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

/* Screenshot Before/After Layout */
.dm-screenshots {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dm-screenshot {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--bg-primary);
}

.dm-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dm-client-card:hover .dm-screenshot img {
    transform: scale(1.02);
}

.dm-screenshot-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dm-screenshot.before .dm-screenshot-label {
    background: rgba(107, 114, 128, 0.85);
    color: var(--white);
}

.dm-screenshot.after .dm-screenshot-label {
    background: rgba(5, 150, 105, 0.9);
    color: var(--white);
}

.dm-screenshot-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-mint);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Metric Pills */
.dm-client-metrics {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dm-metric-pill {
    flex: 1;
    min-width: 0;
    background: var(--bg-primary);
    border-radius: 100px;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(0,0,0,0.04);
}

.dm-metric-pill.accent {
    background: #ECFDF5;
    border-color: rgba(5, 150, 105, 0.1);
}

.dm-pill-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-light);
    white-space: nowrap;
}

.dm-pill-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.dm-metric-pill.accent .dm-pill-value {
    color: #059669;
}

/* DM Impact Summary */
.dm-impact-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.dm-impact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.dm-impact-item svg {
    flex-shrink: 0;
    color: var(--accent-purple);
    opacity: 0.8;
}

.dm-impact-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
}

.dm-impact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(123, 104, 238, 0.04);
    border-radius: 50%;
}

.stats-section .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stats-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.stats-left {
    color: var(--text-dark);
}

.stats-badge {
    background: rgba(123, 104, 238, 0.1);
    color: var(--accent-purple);
}

.stats-left h2 {
    color: var(--text-dark);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.stats-left p {
    color: var(--text-medium);
    font-size: 1rem;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon-modern {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(123, 104, 238, 0.1);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-mint));
    border-radius: 100px;
    transition: width 1s ease;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* ==================== PORTFOLIO PROJECTS ==================== */
.projects-section {
    padding: 7rem 2rem;
    background: var(--white);
}

.projects-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.6rem 1.35rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
}

.filter-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.filter-btn.active {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
}

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

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

/* Project Before/After Showcase */
.project-ba-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    gap: 2px;
    background: rgba(0,0,0,0.06);
}

.project-ba-img {
    position: relative;
    overflow: hidden;
}

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

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

.project-ba-label {
    position: absolute;
    bottom: 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    z-index: 2;
}

.project-ba-label.before-label {
    left: 0.5rem;
    background: rgba(107, 114, 128, 0.85);
    color: var(--white);
}

.project-ba-label.after-label {
    right: 0.5rem;
    background: rgba(5, 150, 105, 0.9);
    color: var(--white);
}

.project-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-pink);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.project-overlay a {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-overlay a:hover {
    background: var(--accent-purple);
    color: var(--white);
}

.project-content {
    padding: 1.5rem;
}

.project-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.project-content p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.project-details {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    background: var(--bg-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-medium);
}



/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
    padding: 7rem 2rem;
    background: var(--bg-primary);
}

.testimonials-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card.pink { border-left: 3px solid var(--accent-pink); }
.testimonial-card.yellow { border-left: 3px solid var(--accent-yellow); }
.testimonial-card.mint { border-left: 3px solid var(--accent-mint); }
.testimonial-card.peach { border-left: 3px solid var(--accent-orange); }

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-purple);
}

.author-info h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 7rem 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cta-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-md);
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-highlight {
    color: var(--accent-purple);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

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

/* Decorative elements */
.cta-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-md);
    opacity: 0.6;
}

.cta-decoration.star {
    top: 2rem;
    left: 10%;
    background: var(--accent-yellow);
    transform: rotate(15deg);
}

.cta-decoration.circle {
    bottom: 2rem;
    right: 10%;
    background: var(--accent-mint);
    border-radius: 50%;
}

/* ==================== FOOTER ==================== */
.portfolio-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.portfolio-footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-purple);
    transform: translateY(-3px);
}

.footer-column h5 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==================== RESPONSIVE ==================== */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .seo-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .seo-ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-floating-card {
        padding: 0.6rem 0.85rem;
    }
    .floating-card-value {
        font-size: 0.9rem;
    }
    .floating-card-title {
        font-size: 0.6rem;
    }
    .hero-content {
        gap: 2.5rem;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .stats-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .dm-impact-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .dm-clients-showcase {
        grid-template-columns: 1fr;
    }
    .seo-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .seo-process-grid::before {
        display: none;
    }
    .seo-ba-grid {
        grid-template-columns: 1fr;
    }
    .hero-floating-card.card-top {
        top: -5px;
        right: -10px;
    }
    .hero-floating-card.card-bottom {
        bottom: 15px;
        left: -15px;
    }
    .hero-trust-strip {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content {
        gap: 2rem;
    }
    .hero-image {
        max-width: 400px;
    }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
    /* Header / Nav */
    .portfolio-header .container {
        padding: 0 1rem;
    }

    .portfolio-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 999;
        align-items: center;
        justify-content: center;
    }

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

    .portfolio-nav a {
        font-size: 1.15rem;
        font-weight: 600;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hero */
    .portfolio-hero {
        padding: 6rem 1.25rem 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }

    .hero-left {
        align-items: center;
    }

    .hero-right {
        order: -1;
    }

    .hero-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-floating-card {
        display: none;
    }

    .hero-bg-shapes .hero-shape {
        opacity: 0.1;
    }

    .hero-shape.shape-1 {
        width: 250px;
        height: 250px;
    }

    .hero-shape.shape-2 {
        width: 200px;
        height: 200px;
    }

    .hero-shape.shape-3 {
        display: none;
    }

    .hero-badge {
        margin-bottom: 1rem;
    }

    .portfolio-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .portfolio-hero .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }

    .hero-trust-strip {
        flex-wrap: wrap;
        gap: 1.25rem;
        justify-content: center;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .hero-trust-divider {
        display: none;
    }

    .hero-trust-number {
        font-size: 1.15rem;
    }

    .hero-trust-label {
        font-size: 0.68rem;
    }

    /* Sections padding */
    .services-section,
    .projects-section,
    .testimonials-section,
    .cta-section,
    .seo-results-section,
    .dm-showcase-section,
    .stats-section {
        padding: 3.5rem 1.25rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.92rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-arrow {
        display: none;
    }

    /* SEO Section */
    .seo-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .seo-metric-highlight {
        padding: 1.25rem 1rem;
    }

    .seo-metric-number {
        font-size: 1.65rem;
    }

    .seo-metric-icon {
        width: 36px;
        height: 36px;
    }

    .seo-ba-grid {
        grid-template-columns: 1fr;
    }

    .seo-ba-card {
        padding: 1.25rem;
    }

    .seo-ba-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .seo-process {
        padding: 1.5rem;
    }

    .seo-process-title {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .seo-process-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .seo-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .seo-step-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .seo-step-number {
        position: absolute;
        top: -6px;
        right: -6px;
        background: var(--accent-purple);
        color: var(--white);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        font-size: 0.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }

    .seo-step-icon {
        position: relative;
    }

    /* DM Section */
    .dm-clients-showcase {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .dm-client-card {
        padding: 1.25rem;
    }

    .dm-screenshots {
        gap: 0.5rem;
    }

    .dm-screenshot-arrow {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .dm-screenshot-arrow svg {
        width: 18px;
        height: 18px;
    }

    .dm-client-metrics {
        gap: 0.35rem;
    }

    .dm-metric-pill {
        padding: 0.4rem 0.6rem;
    }

    .dm-pill-label {
        font-size: 0.6rem;
    }

    .dm-pill-value {
        font-size: 0.75rem;
    }

    .dm-impact-summary {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .dm-impact-number {
        font-size: 1.35rem;
    }

    .dm-impact-label {
        font-size: 0.75rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.85rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-filter {
        gap: 0.35rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
    }

    .project-image {
        height: 200px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* CTA */
    .cta-section .container {
        padding: 2rem 1.25rem;
    }

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

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

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .cta-decoration {
        width: 50px;
        height: 50px;
        opacity: 0.3;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .portfolio-footer {
        padding: 3rem 1.25rem 1.5rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .portfolio-hero {
        padding: 5.5rem 1rem 2.5rem;
    }

    .portfolio-hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .portfolio-hero .hero-description {
        font-size: 0.92rem;
    }

    .hero-image {
        max-width: 260px;
    }

    .hero-img {
        border-radius: var(--border-radius-md);
    }

    .hero-trust-strip {
        gap: 1rem;
        padding-top: 1rem;
        margin-top: 1.5rem;
    }

    .hero-trust-number {
        font-size: 1rem;
    }

    /* Sections */
    .services-section,
    .projects-section,
    .testimonials-section,
    .cta-section,
    .seo-results-section,
    .dm-showcase-section,
    .stats-section {
        padding: 3rem 1rem;
    }

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

    .section-header p {
        font-size: 0.85rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* SEO Metrics */
    .seo-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .seo-metric-highlight {
        padding: 1rem 0.85rem;
        border-radius: var(--border-radius-md);
    }

    .seo-metric-number {
        font-size: 1.4rem;
    }

    .seo-metric-text {
        font-size: 0.72rem;
    }

    .seo-metric-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .seo-metric-icon svg {
        width: 16px;
        height: 16px;
    }

    .seo-metric-badge {
        font-size: 0.58rem;
        padding: 0.15rem 0.5rem;
    }

    /* SEO BA Cards */
    .seo-ba-card {
        padding: 1rem;
    }

    .seo-ba-header h4 {
        font-size: 0.95rem;
    }

    .seo-ba-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .seo-ba-results {
        flex-direction: column;
        gap: 0.35rem;
    }

    .seo-ba-pill {
        font-size: 0.68rem;
        padding: 0.3rem 0.65rem;
    }

    /* SEO Process */
    .seo-process {
        padding: 1.25rem;
        border-radius: var(--border-radius-md);
    }

    .seo-process-title {
        font-size: 1.05rem;
    }

    .seo-step-icon {
        width: 40px;
        height: 40px;
    }

    .seo-step h5 {
        font-size: 0.85rem;
    }

    .seo-step p {
        font-size: 0.72rem;
        display: none;
    }

    /* DM Section */
    .dm-client-card {
        padding: 1rem;
    }

    .dm-client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dm-client-info h4 {
        font-size: 0.95rem;
    }

    .dm-client-info span {
        font-size: 0.7rem;
    }

    .dm-growth-badge {
        align-self: flex-start;
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }

    .dm-screenshots {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dm-screenshot-arrow {
        transform: rotate(90deg);
        width: 26px;
        height: 26px;
        align-self: center;
    }

    .dm-screenshot-arrow svg {
        width: 14px;
        height: 14px;
    }

    .dm-client-metrics {
        flex-direction: column;
        gap: 0.3rem;
    }

    .dm-metric-pill {
        border-radius: var(--border-radius-sm);
        justify-content: space-between;
        padding: 0.45rem 0.75rem;
    }

    .dm-impact-summary {
        padding: 1.25rem 0.85rem;
        border-radius: var(--border-radius-md);
    }

    .dm-impact-number {
        font-size: 1.25rem;
    }

    .dm-impact-label {
        font-size: 0.7rem;
    }

    .dm-impact-item svg {
        width: 20px;
        height: 20px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        padding: 1.25rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat-icon-modern {
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 1.75rem;
        flex: 1;
    }

    .stat-label {
        width: 100%;
    }

    .stat-bar {
        width: 100%;
    }

    /* Projects */
    .projects-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .projects-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 0.4rem 0.85rem;
        font-size: 0.72rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-content h4 {
        font-size: 0.95rem;
    }

    .project-content p {
        font-size: 0.8rem;
    }

    .tech-tag {
        font-size: 0.62rem;
        padding: 0.2rem 0.55rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem;
    }

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

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    /* CTA */
    .cta-section .container {
        padding: 1.75rem 1rem;
        border-radius: var(--border-radius-md);
    }

    .cta-section h2 {
        font-size: 1.35rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .cta-decoration {
        display: none;
    }

    /* Footer */
    .portfolio-footer {
        padding: 2.5rem 1rem 1.25rem;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .social-links {
        gap: 0.65rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .footer-column h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .footer-column a {
        font-size: 0.82rem;
    }

    .footer-column li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .footer-bottom-links a {
        font-size: 0.75rem;
    }

    .footer-bottom-links {
        gap: 1rem;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .portfolio-hero {
        padding: 5rem 0.75rem 2rem;
    }

    .portfolio-hero h1 {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.68rem;
        padding: 0.35rem 0.85rem;
    }

    .hero-image {
        max-width: 220px;
    }

    .hero-trust-strip {
        gap: 0.75rem;
    }

    .hero-trust-number {
        font-size: 0.9rem;
    }

    .hero-trust-label {
        font-size: 0.62rem;
    }

    .services-section,
    .projects-section,
    .testimonials-section,
    .cta-section,
    .seo-results-section,
    .dm-showcase-section,
    .stats-section {
        padding: 2.5rem 0.75rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .section-badge {
        font-size: 0.68rem;
    }

    .section-header p {
        font-size: 0.8rem;
    }

    /* SEO */
    .seo-metrics-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .seo-metric-highlight {
        padding: 0.85rem 0.7rem;
    }

    .seo-metric-number {
        font-size: 1.2rem;
    }

    .seo-metric-text {
        font-size: 0.65rem;
    }

    .seo-metric-badge {
        font-size: 0.55rem;
    }

    .seo-showcase-title {
        font-size: 1.05rem;
    }

    /* DM */
    .dm-client-card {
        padding: 0.85rem;
    }

    .dm-client-info h4 {
        font-size: 0.85rem;
    }

    .dm-growth-badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }

    .dm-screenshot-label {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }

    .dm-pill-label {
        font-size: 0.55rem;
    }

    .dm-pill-value {
        font-size: 0.68rem;
    }

    .dm-impact-summary {
        padding: 1rem 0.65rem;
    }

    .dm-impact-number {
        font-size: 1.05rem;
    }

    .dm-impact-label {
        font-size: 0.62rem;
    }

    /* Service cards */
    .service-card {
        padding: 1.15rem;
    }

    .service-card h4 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    .service-tag {
        font-size: 0.65rem;
    }

    /* Projects */
    .project-image {
        height: 160px;
    }

    .project-content {
        padding: 1rem;
    }

    /* Footer */
    .portfolio-footer {
        padding: 2rem 0.75rem 1rem;
    }

    .logo-image {
        height: 38px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }

/* Prevent horizontal overflow from any section */
.portfolio-page section {
    overflow-x: hidden;
}

.portfolio-page .container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Scroll Reveal Animation Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Custom Scrollbar */
.portfolio-page::-webkit-scrollbar {
    width: 6px;
}

.portfolio-page::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.portfolio-page::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 100px;
}

.portfolio-page::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple-dark);
}
