/* Import modern typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Root Design System Tokens --- */
:root {
    /* Color Palette - Dark Premium */
    --bg-base: #08080a;
    --bg-surface: #101014;
    --bg-surface-hover: #16161c;
    --bg-glass: rgba(16, 16, 20, 0.7);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.15);
    --accent-purple-glow-strong: rgba(139, 92, 246, 0.4);
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #3b82f6 100%);
    --gradient-text: linear-gradient(135deg, #f3f4f6 30%, #a78bfa 70%, #8b5cf6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(59, 130, 246, 0.1) 100%);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Transition Definitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typographical System --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

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

/* --- Layout Components --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-surface);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(8, 8, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(8, 8, 10, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-purple);
    display: inline-block;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

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

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

.nav-cta {
    background: var(--gradient-primary);
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.burger span {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 10px;
    position: relative;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 8px 25px var(--accent-purple-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass-hover);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

/* --- Card Styles (Glassmorphism & Glow) --- */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(139, 92, 246, 0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-title {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-container {
    position: relative;
    width: 380px;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-glass-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

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

.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-overlay h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-overlay span {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 600;
}

/* Background grid animation */
.bg-grid-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* --- Stats Grid Section --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 2rem 1rem;
    border-radius: 16px;
    transition: var(--transition-normal);
}

.stat-box:hover {
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

.stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

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

/* --- Specialties Pillars --- */
.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title-wrap p {
    font-size: 1.1rem;
}

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

.pillar-card {
    display: flex;
    gap: 1.5rem;
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-purple-glow);
    border: 1px solid var(--border-glass-hover);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-purple);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pillar-card:nth-child(even) .pillar-icon {
    background-color: var(--accent-blue-glow);
    color: var(--accent-blue);
}

.pillar-card h3 {
    margin-top: 0.25rem;
}

/* --- Tech Stack --- */
.tech-wrap {
    text-align: center;
    margin-top: 50px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.25rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.tech-tag img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.7);
    transition: var(--transition-normal);
}

.tech-tag:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background-color: var(--bg-surface-hover);
    box-shadow: 0 0 15px var(--accent-purple-glow);
    transform: translateY(-2px);
}

.tech-tag:hover img {
    filter: grayscale(0) opacity(1);
}

/* --- Interactive Case Study Chart --- */
.chart-toggle-wrap {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.chart-toggle-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chart-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
}

.chart-toggle-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.case-visual {
    position: relative;
    width: 100%;
}

.chart-tooltip {
    position: absolute;
    background: rgba(16, 16, 20, 0.95);
    border: 1px solid var(--accent-purple);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -120%);
    transition: opacity 0.15s ease, transform 0.15s ease, left 0.15s ease, top 0.15s ease;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    min-width: 140px;
    text-align: center;
}

.chart-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: rgba(16, 16, 20, 0.95);
    border-right: 1px solid var(--accent-purple);
    border-bottom: 1px solid var(--accent-purple);
}

.chart-tooltip.active {
    opacity: 1;
    visibility: visible;
}

.tooltip-month {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tooltip-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.tooltip-growth {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.chart-area, .chart-path {
    transition: d 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Featured Case Study --- */
.featured-case {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.case-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--accent-purple-glow);
    border: 1px solid var(--accent-purple-glow-strong);
    color: var(--accent-purple);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.case-stats-summary {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.case-stat-item {
    border-left: 2px solid var(--accent-purple);
    padding-left: 1rem;
}

.case-stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.case-stat-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Page Header Template --- */
.page-header {
    padding: 140px 0 60px 0;
    background-image: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.page-header h1 {
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Services Page Layout --- */
.services-detailed-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.service-block:last-child {
    border-bottom: none;
}

.service-meta {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.service-num {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.service-features-list {
    list-style: none;
    margin-top: 2rem;
}

.service-features-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.service-features-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

/* --- Case Study Detailed Layout --- */
.case-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 5px 15px var(--accent-purple-glow);
}

.case-content-pane {
    display: none;
}

.case-content-pane.active {
    display: block;
    animation: fadeIn var(--transition-slow);
}

.case-grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

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

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.metric-card-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.metric-card-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.metric-card-change {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981; /* green */
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.metric-card-change.negative {
    color: #ef4444; /* red */
}

/* SVG Chart styling */
.chart-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.svg-chart {
    width: 100%;
    height: auto;
    display: block;
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dashoffset 2s ease-in-out;
}

.chart-area {
    opacity: 0.15;
}

.chart-axis-text {
    fill: var(--text-muted);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
}

/* Timeline component */
.timeline {
    position: relative;
    margin-top: 3rem;
    padding-left: 2rem;
    border-left: 2px solid var(--border-glass);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
    border: 2px solid var(--bg-base);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
}

.timeline-content ul {
    list-style: none;
    margin-top: 0.75rem;
}

.timeline-content li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.timeline-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* Grid of smaller projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    padding: 2rem;
}

.project-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-stat-badge {
    margin-top: auto;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    display: inline-flex;
    justify-content: space-between;
}

.project-stat-val {
    color: var(--accent-purple);
}

/* --- Blog Hub Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-tag {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.blog-card:hover h3 {
    color: var(--accent-purple);
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-readmore {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-purple);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.blog-readmore::after {
    content: '→';
    transition: var(--transition-fast);
}

.blog-card:hover .blog-readmore::after {
    transform: translateX(5px);
}

/* --- Contact Page Layout --- */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.contact-item-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.contact-item-details a, .contact-item-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-item-details a:hover {
    color: var(--accent-purple);
}

/* Form Styles */
.contact-form-wrap {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-input {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background-color: rgba(255,255,255,0.04);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* Form Submission Status Animations */
.submit-status-msg {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
    animation: fadeIn var(--transition-normal);
}

.submit-status-msg.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    display: block;
}

.submit-status-msg.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: block;
}

/* FAQ Accordion */
.faq-wrap {
    margin-top: 6px;
}

.faq-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question-btn {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    padding: 0 1.5rem;
}

.faq-answer-inner {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: var(--accent-purple-glow-strong);
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

/* --- Call To Action (Section CTA) --- */
.cta-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(139, 92, 246, 0.03) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.cta-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3.5rem;
    align-items: center;
    text-align: left;
}

.cta-image-col {
    display: flex;
    justify-content: center;
}

.cta-img {
    width: 240px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-glass-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-base);
}

.cta-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding-bottom: 0;
}

.cta-box h2::after {
    display: none;
}

.cta-box p {
    margin: 0 0 2rem 0;
}

@media (max-width: 900px) {
    .cta-box {
        padding: 3rem 2rem;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-image-col {
        order: -1;
    }
    
    .cta-content-col {
        align-items: center;
    }
    
    .cta-img {
        width: 180px;
        height: 210px;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-purple);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background-color: var(--accent-purple-glow);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Entrance Animations & Utility Classes --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid, .featured-case, .case-grid-layout, .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .profile-container {
        width: 280px;
        height: 330px;
    }
    
    .service-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
    
    .service-meta {
        position: relative;
        top: 0;
    }
    
    .projects-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(8, 8, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-normal);
        z-index: 999;
        border-top: 1px solid var(--border-glass);
    }
    
    .nav.open {
        left: 0;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrap {
        padding: 2rem 1.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
