/* ============================================
   BRIAN SALAZAR - LUXURY EDITORIAL THEME
   ============================================ */

:root {
    /* Colors - Warm & Sophisticated */
    --bg-primary: #f2eacc;
    --bg-secondary: #e8dfc0;
    --bg-card: #ffffff;
    --bg-dark: #560915;

    --accent-primary: #f66d25;
    --accent-secondary: #e75523;
    --accent-gradient: linear-gradient(135deg, #f66d25 0%, #e75523 100%);

    --text-primary: #560915;
    --text-secondary: #7a3a42;
    --text-muted: #9a6a70;
    --text-light: #f2eacc;

    --border-color: rgba(86, 9, 21, 0.12);
    --shadow-soft: 0 4px 30px rgba(86, 9, 21, 0.08);
    --shadow-medium: 0 8px 40px rgba(86, 9, 21, 0.12);
    --shadow-strong: 0 20px 60px rgba(86, 9, 21, 0.15);

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Spacing */
    --section-padding: 140px;
    --container-width: 1200px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-medium: 0.5s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

::selection {
    background: var(--accent-primary);
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(242, 234, 204, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.logo span {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 3px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    letter-spacing: 0.01em;
}

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

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

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

.nav-link-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-icon svg {
    flex-shrink: 0;
}

.nav-cta {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0;
    transition: var(--transition-medium);
    border: 2px solid var(--text-primary);
}

.nav-cta:hover {
    background: var(--text-primary);
    color: var(--text-light);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-medium);
    margin-top: 10px;
}

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

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

/* Decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(246, 109, 37, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(86, 9, 21, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.02em;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--accent-primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.75;
    max-width: 520px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(246, 109, 37, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(246, 109, 37, 0.4);
}

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

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--text-light);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hero-image {
    width: 100%;
    border-radius: 24px;
    position: relative;
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 24px;
    opacity: 0.4;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 22px;
    z-index: 3;
    box-shadow: var(--shadow-medium);
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 8%;
    right: -15%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 15%;
    left: -12%;
    animation-delay: 3s;
}

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

.floating-card .card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.floating-card .card-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.floating-card .card-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.floating-card .card-value {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-block;
    background: rgba(246, 109, 37, 0.12);
    color: var(--accent-secondary);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.service-card.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(246, 109, 37, 0.2), var(--shadow-medium);
}

/* Service Image Area */
.service-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.service-placeholder svg {
    width: 50px;
    height: 50px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
}

.service-card:hover .service-placeholder svg {
    color: white;
    transform: scale(1.1);
}

/* Service Info Area */
.service-info {
    padding: 24px;
}

.service-category {
    display: inline-block;
    background: rgba(246, 109, 37, 0.1);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-link {
    color: var(--accent-secondary);
}

/* ============================================
   AI POWERED SECTION
   ============================================ */
.ai-powered {
    padding: 80px 0;
    background: linear-gradient(135deg,
        rgba(246, 109, 37, 0.08) 0%,
        rgba(246, 109, 37, 0.03) 50%,
        rgba(246, 109, 37, 0.08) 100%
    );
    border-top: 1px solid rgba(246, 109, 37, 0.1);
    border-bottom: 1px solid rgba(246, 109, 37, 0.1);
    position: relative;
    overflow: hidden;
}

.ai-powered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-primary) 50%,
        transparent 100%
    );
    opacity: 0.3;
}

.ai-powered-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.ai-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(246, 109, 37, 0.3);
    position: relative;
}

.ai-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.ai-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.ai-text {
    flex: 1;
}

.ai-title {
    margin: 0 0 12px 0;
}

.ai-badge-inline {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(246, 109, 37, 0.25);
}

.ai-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.ai-description strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients {
    padding: 100px 0;
    background: var(--bg-card);
}

.clients-header {
    text-align: center;
    margin-bottom: 50px;
}

.clients-header .section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0.6;
    transition: var(--transition-fast);
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative gradient */
.about::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(246, 109, 37, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Speaker Gallery */
.about-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gallery-item {
    position: relative;
}

.gallery-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.02);
}

/* Main image - larger with accent border */
.gallery-main .gallery-image-wrapper {
    box-shadow: var(--shadow-strong);
}

.gallery-main .gallery-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(246, 109, 37, 0.3), transparent 50%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Secondary image - slightly smaller feel */
.gallery-secondary .gallery-image-wrapper {
    box-shadow: var(--shadow-medium);
}

.gallery-secondary .gallery-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid rgba(86, 9, 21, 0.1);
    pointer-events: none;
}

/* Decorative element */
.gallery-decoration {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 40px;
    height: 120px;
    background: var(--accent-gradient);
    border-radius: 8px;
    opacity: 0.15;
    z-index: -1;
}

/* Gallery Captions */
.gallery-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 0 4px;
}

.caption-event {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.caption-role {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Content Side */
.about-content {
    max-width: 520px;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 28px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Inline Stats */
.about-stats-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 36px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-inline {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 4px;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* Tech Stack */
.tech-stack {
    margin-top: 32px;
}

.tech-stack-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-soft);
}

.tech-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(246, 109, 37, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.cta-description {
    font-size: 1.15rem;
    color: rgba(242, 234, 204, 0.7);
    max-width: 550px;
    margin: 0 auto 48px;
    line-height: 1.75;
}

.cta .btn-primary {
    background: var(--text-light);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(246, 109, 37, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.footer-logo span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 2px;
}

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

.footer-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-primary);
}

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

.social-link {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-soft);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.social-link:hover svg {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 28px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--bg-secondary);
}

.blog-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.blog-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.blog-posts {
    padding: 100px 0;
    background: var(--bg-primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.post-image {
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
}

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

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

.post-content {
    padding: 28px;
}

.post-category {
    display: inline-block;
    background: rgba(246, 109, 37, 0.12);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.post-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .blog-hero {
        padding: 140px 0 60px;
    }
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.post-single {
    padding-top: 100px;
}

.post-header {
    padding: 80px 0 60px;
    background: var(--bg-secondary);
    text-align: center;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.post-back:hover {
    color: var(--accent-primary);
}

.post-header .post-category {
    margin-bottom: 20px;
}

.post-single-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-single-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}

.post-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-separator {
    opacity: 0.5;
}

.container-narrow {
    max-width: 720px;
}

.post-body {
    padding: 80px 0;
    background: var(--bg-primary);
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.post-body .post-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.post-body h2 {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
}

.post-body ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-body li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
    list-style: disc;
}

.post-body blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 20px 30px;
    margin: 40px 0;
    background: var(--bg-card);
    border-radius: 0 12px 12px 0;
}

.post-body blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

.post-body a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--accent-secondary);
}

.post-cta {
    padding: 0 0 100px;
    background: var(--bg-primary);
}

.post-cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.post-cta-box h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.post-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .post-header {
        padding: 60px 0 40px;
    }

    .post-body {
        padding: 60px 0;
    }

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s var(--ease-out-expo);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .container {
        padding: 0 24px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 320px;
    }

    .floating-card.card-1 {
        right: -5%;
        top: 5%;
    }

    .floating-card.card-2 {
        left: -5%;
        bottom: 10%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .about-gallery {
        max-width: 600px;
        margin: 0 auto;
    }

    .gallery-decoration {
        display: none;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-stats-inline {
        justify-content: center;
    }

    .tech-tags {
        justify-content: center;
    }
}

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

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
    }

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

    .nav-menu .nav-link {
        font-size: 1.5rem;
    }

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

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

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

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

    .hero-title {
        font-size: 2.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .btn {
        width: 100%;
    }

    .hero-visual {
        display: none;
    }

    /* About Section Mobile */
    .about-gallery {
        gap: 20px;
    }

    .gallery-caption {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .gallery-image-wrapper {
        border-radius: 12px;
    }

    .gallery-image-wrapper img {
        border-radius: 12px;
    }

    .gallery-main .gallery-image-wrapper::after,
    .gallery-secondary .gallery-image-wrapper::after {
        border-radius: 12px;
    }

    .about-stats-inline {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-inline {
        flex: 0 0 calc(50% - 16px);
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Services responsive 768px */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* AI Powered responsive 768px */
    .ai-powered {
        padding: 60px 0;
    }

    .ai-powered-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .ai-icon {
        width: 70px;
        height: 70px;
    }

    .ai-icon svg {
        width: 35px;
        height: 35px;
    }

    .ai-badge-inline {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .ai-description {
        font-size: 0.95rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

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

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

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

    .service-card {
        padding: 32px 28px;
    }

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

    .cta-description {
        font-size: 1rem;
    }
}

/* ===========================
   404 Error Page
   =========================== */

.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(246, 109, 37, 0.3);
}

.error-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

.error-title {
    font-size: 8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-subtitle {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-suggestions {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.suggestions-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestions-list a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.suggestions-list a:hover {
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .error-title {
        font-size: 5rem;
    }

    .error-subtitle {
        font-size: 1.5rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

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