/* ========================================
   ARTIVA - Creative Agency CSS
   ======================================== */

/* ========================================
   1. CSS VARIABLES & RESET
   ======================================== */
:root {
    /* Modern Color Palette */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-color: #0f0f23;
    --light-color: #fafbff;
    --text-color: #1a1a2e;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Modern Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    
    /* Modern Border Radius */
    --border-radius: 24px;
    --border-radius-sm: 16px;
    --border-radius-lg: 32px;
    
    --section-padding: 120px 0;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--light-color);
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   2. UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
}

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

.logo .logo-text {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.logo .logo-subtitle {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-top: 2px;
}

.navbar.scrolled .logo .logo-subtitle {
    color: var(--text-light);
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--text-color);
}

/* ========================================
   4. HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    z-index: -1;
}

/* Particles.js container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(118, 75, 162, 0.25) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero-text-section {
    text-align: left;
}

.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #667eea 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    line-height: 1.7;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* ========================================
   5. SECTION HEADERS
   ======================================== */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    font-family: var(--font-display);
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-description {
    font-size: 20px;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ========================================
   6. ABOUT SECTION
   ======================================== */
.about {
    background: var(--light-color);
}

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

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    transition: var(--transition);
}

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

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

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

/* ========================================
   7. SERVICES SECTION
   ======================================== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.service-card {
    background: white;
    padding: 48px 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(240, 147, 251, 0.03));
    transform: translateY(100%);
    transition: var(--transition);
}

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

.service-card:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    perspective: 1000px;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card.featured {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(0deg);
    transition: all 0.3s ease;
    z-index: 2;
}

.service-card:hover .service-badge {
    transform: rotate(-3deg) scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 36px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card.featured .service-icon i {
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(8deg);
}

.service-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    flex-shrink: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

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

.service-card.featured .service-features i {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   8. PORTFOLIO SECTION
   ======================================== */
.portfolio {
    background: var(--light-color);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: white;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item.hide {
    display: none;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.portfolio-category {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.portfolio-link:hover {
    transform: scale(1.1);
}

/* ========================================
   9. CONTACT SECTION
   ======================================== */
.contact {
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: stretch; /* stretch children to same height */
    position: relative;
}

.contact-info {
    background: var(--gradient-primary);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;              /* keep the effect behind content */
    pointer-events: none;    /* don't block clicks */
}

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

.contact-info-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.contact-info-text {
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.contact-items {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.contact-item-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item-icon i {
    font-size: 20px;
}

.contact-item-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item-content p {
    font-size: 14px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
}
.contact-info .social-links { margin-top: auto; position: relative; z-index: 1; }

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Full-width map spanning both columns */
.contact-map-full {
    grid-column: 1 / -1;
    margin-top: 40px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.contact-map-full iframe { width: 100%; height: 380px; border:0; display:block; }
@media (max-width:1024px){ .contact-map-full iframe{ height:320px;} }
@media (max-width:768px){ .contact-map-full iframe{ height:260px;} }

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Modifier: stack inputs vertically regardless of screen width */
.contact-form.stacked .form-row { grid-template-columns: 1fr; }

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* ========================================
   10. FOOTER
   ======================================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.footer-logo .logo-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-top: 2px;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

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

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

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

/* ========================================
   11. BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ========================================
   13. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 100px 40px 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        color: var(--text-color);
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text-section {
        text-align: center;
    }
    
    .hero-animation lottie-player {
        width: 350px !important;
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-animation lottie-player {
        width: 280px !important;
        height: 280px !important;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ========================================
   14. BLOG HOME SECTION
   ======================================== */
.blog-home {
    background: white;
}

.blog-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-home-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.blog-home-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

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

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

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

.blog-home-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.blog-home-content {
    padding: 25px;
}

.blog-home-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 14px;
}

.blog-home-meta span {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-home-meta i {
    color: var(--primary-color);
}

.blog-home-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-home-content h3 a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.blog-home-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.blog-home-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.blog-home-link:hover {
    gap: 12px;
}

.blog-home-more {
    text-align: center;
}

/* ========================================
   15. BLOG PAGES
   ======================================== */

/* Page Header */
.page-header {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -1;
}

.page-header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(108, 92, 231, 0.2) 0%, transparent 50%);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.page-header-content {
    text-align: center;
    color: white;
}

.page-title {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    opacity: 0.5;
}

/* Blog Section */
.blog-section {
    background: var(--light-color);
    padding-top: 40px; /* gap below hero */
}

/* Blog Hero (added for blog page layout) */
.blog-hero {
    padding: 160px 0 60px; /* balanced top/bottom */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* revert to gradient */
    position: relative;
    overflow: hidden;
}
.blog-hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.blog-hero-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}
.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff; /* on gradient hero */
}
.blog-hero-content p {
    font-size: 1.1rem;
    opacity: .9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Blog Controls */
.blog-controls {
    margin-bottom: 40px;
}

.blog-search {
    display: flex;
    margin-bottom: 20px;
}

.blog-search input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 15px 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.blog-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Blog Filters (tags/chips above grid) */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 18px; /* more space between chips */
    align-items: center;
    justify-content: flex-start; /* align with grid content */
    width: 100%;
    margin-bottom: 32px; /* clear space under filters */
}

@media (max-width: 768px) {
    .blog-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 24px;
        gap: 14px; /* slightly tighter on small screens */
    }
    .blog-filters::-webkit-scrollbar { display: none; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .blog-grid { grid-template-columns: 1fr; } }

/* Blog Card */
.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.blog-image { /* alias for existing markup */
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.blog-card-content {
    padding: 24px 26px 28px;
}
.blog-content { /* alias for existing markup */
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.blog-meta { /* alias */
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary-color);
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.blog-title { /* alias */
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-card-title a {
    color: var(--text-color);
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.blog-excerpt { /* alias */
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.blog-link { /* alias */
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.blog-card-link:hover {
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 14px; /* more breathing room */
    margin: 40px 0 20px; /* separate from grid & footer */
}

.pagination-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    background: rgba(255,255,255,0.85);
    border-radius: 50%; /* circular */
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102,126,234,0.25);
    transform: translateY(-3px);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(118,75,162,0.35);
    transform: translateY(-4px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Validation helper classes */
[v-cloak] { display:none; }
.is-invalid { border:2px solid #e74c3c !important; background:#fff5f5; box-shadow:0 0 0 3px rgba(231,76,60,0.15); }
.is-valid { border:2px solid #2ecc71 !important; background:#f6fff9; box-shadow:0 0 0 3px rgba(46,204,113,0.15); }
.field-error { margin-top:6px; font-size:12px; line-height:1.3; color:#e74c3c; font-weight:500; letter-spacing:.2px; }
.contact-form.stacked .field-error { margin-left:4px; }

@media (max-width: 600px) {
    .pagination { gap: 10px; margin: 32px 0 16px; }
    .pagination-btn { width: 42px; height: 42px; }
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-search {
    display: flex;
}

.sidebar-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
}

.sidebar-search button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Category List */
.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-color);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.category-list .count {
    background: var(--light-color);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.popular-post:last-child {
    margin-bottom: 0;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.popular-post-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.popular-post-content h4 a {
    color: var(--text-color);
    transition: var(--transition);
}

.popular-post-content h4 a:hover {
    color: var(--primary-color);
}

.popular-post-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: var(--light-color);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.newsletter-form button {
    width: 100%;
    background: white;
    color: var(--primary-color);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* ========================================
   15. BLOG DETAIL PAGE
   ======================================== */
.blog-detail-section {
    padding: 60px 0;
    background: var(--light-color);
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.blog-detail-main {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.blog-detail-main .breadcrumb {
    justify-content: flex-start;
    margin-bottom: 30px;
    color: var(--text-color);
}

.blog-detail-main .breadcrumb a {
    color: var(--text-color);
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
}

.post-category-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.post-title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    font-size: 16px;
    display: block;
}

.author-role {
    font-size: 13px;
    color: var(--text-light);
    display: block;
}

.post-meta-items {
    display: flex;
    gap: 20px;
}

/* Featured Image */
.post-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Post Content */
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content .lead {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.post-quote {
    background: var(--light-color);
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin: 40px 0;
    position: relative;
}

.post-quote i {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.post-quote p {
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-quote cite {
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
}

.post-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.post-image-grid img {
    width: 100%;
    border-radius: var(--border-radius);
}

.post-highlight {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(108, 92, 231, 0.1));
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.post-highlight h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-highlight p {
    margin: 0;
}

/* Post Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.post-tags h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Post Share */
.post-share {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.post-share h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.email { background: #ea4335; }

.share-btn:hover {
    transform: translateY(-3px);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 30px;
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.author-bio-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.author-bio-role {
    color: var(--text-light);
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.author-bio-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-bio-social {
    display: flex;
    gap: 10px;
}

.author-bio-social a {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.author-bio-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

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

.related-post-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

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

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

.related-post-content {
    padding: 20px;
}

.related-post-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.related-post-content h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-post-content h3 a {
    color: var(--text-color);
    transition: var(--transition);
}

.related-post-content h3 a:hover {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
}

.comments-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 16px;
    font-weight: 700;
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.comment-reply-btn {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.comment-reply-btn:hover {
    gap: 10px;
}

/* Comment Form */
.comment-form-wrapper {
    margin-top: 40px;
    padding: 40px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.comment-form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Author Card in Sidebar */
.author-card {
    text-align: center;
}

.author-card-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.author-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.author-card-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.author-card-social a {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.author-card-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   16. BLOG RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .blog-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-layout,
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-home-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .blog-detail-main {
        padding: 30px 20px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .post-meta-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-image-grid {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio-avatar {
        margin: 0 auto;
    }
    
    .author-bio-social {
        justify-content: center;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-form-wrapper {
        padding: 30px 20px;
    }
}


/* ========================================
   17. ULTRA MODERN TYPOGRAPHY
   ======================================== */

/* Headings with Display Font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Body remains Inter */
body, p, span, a, li {
    font-family: var(--font-primary);
}

/* Extra Bold Headlines */
.hero-title,
.section-title,
.page-title {
    font-variation-settings: 'wght' 700;
}

/* Smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   18. PORTFOLIO LIGHTBOX
   ======================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    max-width: 1200px;
    width: 90%;
    max-height: 90%;
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 80vh;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-info {
    padding: 40px;
    background: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lightbox-header {
    margin-bottom: 30px;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.lightbox-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lightbox-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 30px;
    flex-grow: 1;
}

.lightbox-counter {
    padding: 15px 25px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .lightbox-image-container {
        height: 50vh;
    }
    
    .lightbox-info {
        padding: 30px 20px;
    }
    
    .lightbox-title {
        font-size: 24px;
    }
    
    .lightbox-description {
        font-size: 16px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ========================================
   19. WHATSAPP CHAT BUTTON
   ======================================== */
.whatsapp-chat {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    cursor: pointer;
}

.whatsapp-button {
    position: relative;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    color: white;
    font-size: 32px;
    transition: var(--transition);
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.15);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 80px;
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 280px;
    overflow: hidden;
}

.whatsapp-chat:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    padding: 20px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tooltip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tooltip-info {
    display: flex;
    flex-direction: column;
}

.tooltip-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.tooltip-status {
    font-size: 12px;
    color: #25D366;
    font-weight: 500;
}

.tooltip-message {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* WhatsApp Chat Animation */
.whatsapp-chat {
    animation: whatsappBounce 3s ease-in-out infinite;
}

@keyframes whatsappBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-chat {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-icon {
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        width: 250px;
        left: -10px;
    }
    
    .tooltip-content {
        padding: 16px;
    }
}

/* ========================================
    20. BLOG SINGLE PAGE
    ======================================== */
.blog-detail-hero { padding: 140px 0 40px; }
.blog-detail-hero-content h1 { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.2rem); line-height:1.1; letter-spacing:-0.02em; margin-bottom:20px; }
.blog-detail-hero-content p { max-width:760px; font-size:1.05rem; color:var(--text-color); font-weight:400; }
.blog-detail-meta { margin-top:20px; display:flex; gap:20px; font-size:.9rem; color:var(--text-light); }

.blog-content-section { padding:0 0 80px; }
.blog-content-container { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:60px; }
@media (max-width:1100px){ .blog-content-container{grid-template-columns:1fr 320px; gap:40px;} }
@media (max-width:900px){ .blog-content-container{grid-template-columns:1fr;} .blog-sidebar{order:2;} }

.blog-main-content { background:#fff; border-radius:var(--border-radius); box-shadow:var(--shadow-md); padding:32px 36px 48px; }
.blog-featured-image { width:100%; border-radius:var(--border-radius-sm); margin:0 0 30px; box-shadow:var(--shadow-sm); }
.blog-content { font-size:1.05rem; line-height:1.75; max-width:740px; }
.blog-content h2,.blog-content h3,.blog-content h4 { font-family:var(--font-display); margin-top:48px; margin-bottom:20px; letter-spacing:-0.01em; }
.blog-content h2 { font-size:2rem; }
.blog-content h3 { font-size:1.5rem; }
.blog-content h4 { font-size:1.25rem; }
.blog-content p { margin:0 0 24px; }
.blog-content ul,.blog-content ol { margin:0 0 28px 28px; }
.blog-content blockquote { margin:40px 0; padding:24px 30px; background:var(--gradient-primary); color:#fff; border-radius:var(--border-radius-sm); font-size:1.15rem; box-shadow:var(--shadow-sm); }
.blog-content code { background:#f1f5f9; padding:2px 6px; border-radius:6px; font-size:.85rem; }

.blog-navigation { display:flex; justify-content:space-between; margin:60px 0 10px; gap:20px; }
.nav-post { flex:1; display:flex; align-items:center; gap:18px; padding:18px 22px; background:#fff; border-radius:var(--border-radius-sm); box-shadow:var(--shadow-sm); transition:var(--transition-fast); color:var(--text-color); }
.nav-post:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); }
.nav-post h5 { font-size:.9rem; font-weight:600; letter-spacing:.5px; text-transform:uppercase; margin:0 0 4px; color:var(--text-light); }
.nav-post span { font-size:.8rem; color:var(--text-color); }
.nav-post i { font-size:1rem; color:var(--primary-color); }
@media (max-width:600px){ .blog-navigation{flex-direction:column;} .nav-post{justify-content:flex-start;} }

.blog-sidebar { display:flex; flex-direction:column; gap:30px; }
.sidebar-widget { background:#fff; padding:26px 28px 30px; border-radius:var(--border-radius); box-shadow:var(--shadow-md); }
.sidebar-widget h4 { margin:0 0 18px; font-family:var(--font-display); font-size:1.3rem; }

.author-card { text-align:center; padding:40px 32px; }
.author-avatar { width:72px; height:72px; border-radius:50%; margin:0 auto 18px; object-fit:cover; box-shadow:0 0 0 4px #fff,0 0 0 8px rgba(102,126,234,.15); }
.author-name { font-weight:600; font-size:1.05rem; }
.author-title { font-size:.75rem; text-transform:uppercase; letter-spacing:1px; margin:6px 0 14px; color:var(--text-light); }
.author-bio { font-size:.9rem; line-height:1.6; color:var(--text-light); }
.author-social { display:flex; justify-content:center; gap:12px; margin-top:22px; }
.author-social a { width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:var(--gradient-primary); color:#fff; border-radius:50%; font-size:.9rem; box-shadow:var(--shadow-sm); }
.author-social a:hover { box-shadow:var(--shadow-lg); transform:translateY(-3px); }

.related-posts { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:22px; }
.related-post { display:flex; gap:16px; }
.related-post img { width:120px; height:80px; object-fit:cover; border-radius:14px; box-shadow:var(--shadow-sm); }
.related-post-content h5 { font-size:.9rem; margin:0 0 6px; font-weight:600; line-height:1.3; }
.related-post-content span { font-size:.7rem; color:var(--text-light); letter-spacing:.5px; }
.related-post a { color:var(--primary-color); }
.related-post a:hover { text-decoration:underline; }

.tags-list { display:flex; flex-wrap:wrap; gap:10px; }
.tag { display:inline-flex; align-items:center; gap:4px; padding:8px 14px; background:#f1f5f9; border-radius:999px; font-size:.75rem; font-weight:500; color:#334155; text-decoration:none; transition:var(--transition-fast); }
.tag:hover { background:var(--gradient-primary); color:#fff; box-shadow:var(--shadow-sm); }

.share-buttons { display:flex; gap:16px; }
.share-btn { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.05rem; cursor:pointer; box-shadow:var(--shadow-sm); transition:var(--transition-fast); }
.share-btn i { color:#fff; }
.share-btn.facebook{ background:#1877F2; }
.share-btn.twitter{ background:#1DA1F2; }
.share-btn.linkedin{ background:#0A66C2; }
.share-btn.whatsapp{ background:#25D366; }
.share-btn:hover { filter:brightness(1.1); box-shadow:var(--shadow-lg); transform:translateY(-3px); }

@media (max-width:600px){ .blog-main-content{padding:26px 24px 40px;} .blog-content h2{font-size:1.7rem;} .blog-content h3{font-size:1.35rem;} .blog-content h4{font-size:1.15rem;} .blog-navigation{margin:40px 0 0;} }

/* Content widgets inside article */
.content-widget { background:#fff; border-radius:var(--border-radius); box-shadow:var(--shadow-md); padding:26px 28px 30px; margin-top:36px; }
.content-widget h4 { margin:0 0 18px; font-family:var(--font-display); font-size:1.3rem; }

