/* Homepage Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

@media (max-width: 640px) {
    .breadcrumb {
        font-size: 0.75rem;
        padding: var(--space-xs) 0;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding-top: 120px;
    padding-bottom: 80px;
    margin-bottom: 0;
    contain: layout paint;
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    contain: strict;
    will-change: auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
    contain: layout style;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-content {
    color: var(--hero-text-primary);
    padding: var(--space-lg) 0;
    contain: layout style;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    font-size: 0.8125rem;
    color: #ffffff;
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: var(--space-lg);
    color: var(--hero-text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--hero-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .hero-description {
        margin: 0 auto var(--space-lg);
    }
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .hero-buttons {
        justify-content: center;
    }
}

.hero-btn-primary {
    background: var(--hero-btn-primary-bg, #ffffff);
    color: var(--hero-btn-primary-color, #4338ca);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--hero-btn-primary-color, #4338ca);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hero-btn-secondary-color, #ffffff);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid var(--hero-btn-secondary-border, rgba(255, 255, 255, 0.4));
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

@media (max-width: 1024px) {
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        gap: var(--space-lg);
    }
}

.hero-stat {
    text-align: left;
}

@media (max-width: 1024px) {
    .hero-stat {
        text-align: center;
    }
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
}

.hero-visual {
    position: relative;
}

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
}

.hero-visual-card {
    background: var(--hero-code-bg, rgba(15, 23, 42, 0.9));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid var(--hero-code-border, rgba(255, 255, 255, 0.15));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-code .keyword { color: #f472b6; }
.hero-code .function { color: #818cf8; }
.hero-code .string { color: #34d399; }
.hero-code .number { color: #fbbf24; }
.hero-code .comment { color: rgba(255, 255, 255, 0.4); }

.hero-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    contain: strict;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: -50px;
    left: 10%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--accent);
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

/* Services Section */
.services {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid var(--border-color);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--card-accent-color, var(--primary));
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

/* Card 1 - AFL Development (Purple/Indigo) */
.service-card:nth-child(1) {
    --card-accent-color: #6366f1;
}

/* Card 2 - DLL Conversion (Cyan/Indigo) */
.service-card:nth-child(2) {
    --card-accent-color: #0ea5e9;
}
.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

/* Card 3 - License Management (Green/Cyan) */
.service-card:nth-child(3) {
    --card-accent-color: #10b981;
}
.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
}

/* Card 4 - Extra (Orange/Red) */
.service-card:nth-child(4) {
    --card-accent-color: #f59e0b;
}
.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition);
}

.service-link:hover {
    gap: var(--space-md);
}

/* About Section - Modern Design */
.about-modern {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.about-header .section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 1024px) {
    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

.about-feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    text-align: center;
    contain: layout style;
    min-height: 200px;
}

.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.about-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: white;
    font-size: 1.5rem;
}

.about-feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
    color: var(--text-primary);
}

.about-feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Stats Bar */
.about-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .about-stats-bar {
        gap: var(--space-lg);
        padding: var(--space-lg);
    }
}

.about-stat-item {
    text-align: center;
    padding: 0 var(--space-lg);
}

@media (max-width: 640px) {
    .about-stat-item {
        flex: 1 1 40%;
        padding: var(--space-sm);
    }
    
    .about-stat-divider {
        display: none;
    }
}

.about-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.about-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Legacy About Section (keeping for backward compatibility) */
.about {
    padding: var(--space-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.about-image-float {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-float-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-image-float-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content p {
    margin-bottom: var(--space-lg);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.about-feature i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature span {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Advantages Section */
.advantages {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.advantage-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    contain: layout style;
    min-height: 180px;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
    transition: all var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--gradient-primary);
    color: white;
}

.advantage-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    min-height: 1.5em;
}

.advantage-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* CTA Section */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: white;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    background: #ffffff;
    color: #4338ca;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Blog Preview Section */
/* AFL Preview Section */
.afl-preview {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.afl-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .afl-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .afl-preview-grid {
        grid-template-columns: 1fr;
    }
}

.afl-preview-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.afl-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.afl-preview-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
}

.afl-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.afl-preview-card:hover .afl-preview-image img {
    transform: scale(1.05);
}

.afl-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.afl-preview-placeholder i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.afl-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.afl-preview-card:hover .afl-preview-overlay {
    opacity: 1;
}

.afl-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: white;
    color: var(--primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.afl-preview-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.afl-preview-content {
    padding: var(--space-lg);
}

.afl-preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.afl-preview-title a {
    color: var(--text-primary);
    transition: color var(--transition);
}

.afl-preview-title a:hover {
    color: var(--primary);
}

.afl-preview-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.afl-preview-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.afl-preview-link:hover {
    gap: var(--space-md);
}

/* Blog Preview Section */
.blog-preview {
    padding: var(--space-3xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 2/1;
    background: var(--bg-tertiary);
}

.blog-card-content {
    padding: var(--space-lg);
}

.blog-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-primary);
    transition: color var(--transition);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.blog-card-link:hover {
    gap: var(--space-md);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   AFL Development, Premium AFL & Blogs Pages
   ============================================ */

/* Inner Page Hero - Mobile Optimizations */
@media (max-width: 768px) {
    .hero[style*="min-height: 60vh"],
    .hero[style*="min-height: 50vh"] {
        min-height: auto !important;
        padding-top: 90px;
        padding-bottom: 40px;
    }
    
    .hero-content[style*="text-align: center"] {
        padding: var(--space-md);
    }
    
    .hero-content[style*="max-width: 800px"] {
        max-width: 100% !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        font-size: 0.9375rem !important;
        line-height: 1.7;
        max-width: 100% !important;
        padding: 0 var(--space-sm);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
        padding: 0 var(--space-md);
    }
    
    .hero-buttons[style*="justify-content: center"] {
        align-items: stretch;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 0.875rem !important;
    }
}

/* AFL Development Page - About Grid Mobile */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-grid[style*="direction: rtl"] {
        direction: ltr !important;
    }
    
    .about-grid[style*="direction: rtl"] .about-content,
    .about-grid[style*="direction: rtl"] .about-image {
        direction: ltr !important;
    }
}

@media (max-width: 768px) {
    .about-content {
        padding: 0;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-md);
    }
    
    .about-content h4 {
        font-size: 1.125rem;
        margin-top: var(--space-lg) !important;
    }
    
    .about-content p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .about-feature {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .about-feature i {
        margin-top: 3px;
        flex-shrink: 0;
    }
    
    .about-feature span {
        font-size: 0.9375rem;
    }
    
    .about-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Code Sample Card - Mobile */
@media (max-width: 768px) {
    .about-image .card[style*="background: var(--bg-secondary)"] {
        padding: var(--space-md) !important;
    }
    
    .about-image .card pre {
        font-size: 0.75rem !important;
        padding: var(--space-md) !important;
        line-height: 1.6 !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .about-image .card h4 {
        font-size: 1rem;
        margin-bottom: var(--space-md) !important;
    }
}

/* DLL Conversion Steps Card - Mobile */
@media (max-width: 768px) {
    .about-image .card[style*="padding: 0"] > div[style*="background: var(--gradient-primary)"] {
        padding: var(--space-lg) !important;
    }
    
    .about-image .card[style*="padding: 0"] > div[style*="background: var(--gradient-primary)"] i {
        font-size: 2.5rem !important;
    }
    
    .about-image .card[style*="padding: 0"] > div[style*="background: var(--gradient-primary)"] h3 {
        font-size: 1.25rem;
    }
    
    .about-image .card[style*="padding: 0"] > div[style*="padding: var(--space-xl)"] {
        padding: var(--space-md) !important;
    }
    
    .about-image .card[style*="padding: 0"] div[style*="display: flex"][style*="gap: var(--space-md)"] {
        gap: var(--space-sm) !important;
    }
    
    .about-image .card[style*="padding: 0"] div[style*="width: 40px"] {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0;
    }
}

/* License Management Section - Mobile */
@media (max-width: 768px) {
    .grid.grid-3 {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }
    
    .grid.grid-3 .card {
        margin-bottom: 0;
    }
    
    .grid.grid-3 .card-body {
        padding: var(--space-md);
    }
    
    .grid.grid-3 .advantage-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .grid.grid-3 h4 {
        font-size: 1rem;
        margin-bottom: var(--space-xs);
    }
    
    .grid.grid-3 p.text-muted {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

/* Complete Control Card - Mobile */
@media (max-width: 1024px) {
    .card[style*="background: var(--bg-secondary)"] .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .card[style*="background: var(--bg-secondary)"] .about-grid[style*="align-items: center"] > div:last-child {
        order: -1;
    }
}

@media (max-width: 768px) {
    .card[style*="background: var(--bg-secondary)"] .card-body {
        padding: var(--space-md);
    }
    
    .card[style*="background: var(--bg-secondary)"] h3 {
        font-size: 1.25rem;
    }
    
    .card[style*="background: var(--bg-secondary)"] > .card-body > .about-grid > div:last-child > div[style*="background: var(--gradient-primary)"] {
        padding: var(--space-lg) !important;
    }
    
    .card[style*="background: var(--bg-secondary)"] div[style*="background: var(--gradient-primary)"] i {
        font-size: 2.5rem !important;
    }
    
    .card[style*="background: var(--bg-secondary)"] div[style*="background: var(--gradient-primary)"] h3 {
        font-size: 1.125rem;
        margin-bottom: var(--space-xs) !important;
    }
    
    .card[style*="background: var(--bg-secondary)"] div[style*="background: var(--gradient-primary)"] p {
        font-size: 0.875rem;
        margin-bottom: var(--space-md) !important;
    }
}

/* CTA Section - Mobile */
@media (max-width: 768px) {
    .cta {
        padding: var(--space-2xl) 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 var(--space-sm);
    }
    
    .cta-description {
        font-size: 1rem;
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
        padding: 0 var(--space-md);
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9375rem;
    }
}

/* ============================================
   PREMIUM AFL PAGE - MOBILE STYLES
   ============================================ */

/* Why Premium AFL Grid - Mobile */
@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .advantage-card {
        padding: var(--space-md);
    }
    
    .advantage-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .advantage-title {
        font-size: 1rem;
    }
    
    .advantage-description {
        font-size: 0.875rem;
    }
}

/* Premium AFL Cards - Mobile */
@media (max-width: 768px) {
    .grid.grid-3 .card[style*="data-aos"] {
        margin-bottom: 0;
    }
    
    /* AFL Card Image/Gradient Header */
    .grid.grid-3 .card > div[style*="background: linear-gradient"] {
        padding: var(--space-lg) !important;
    }
    
    .grid.grid-3 .card > div[style*="background: linear-gradient"] i {
        font-size: 2rem !important;
        margin-bottom: var(--space-sm) !important;
    }
    
    .grid.grid-3 .card > div[style*="background: linear-gradient"] h3 {
        font-size: 1.125rem;
    }
    
    /* AFL Card Body */
    .grid.grid-3 .card > .card-body {
        padding: var(--space-md);
    }
    
    .grid.grid-3 .card > .card-body > h3.card-title {
        font-size: 1.125rem;
    }
    
    .grid.grid-3 .card > .card-body > p.text-muted {
        font-size: 0.875rem;
        margin-bottom: var(--space-md) !important;
    }
    
    /* Features List */
    .grid.grid-3 .card > .card-body > ul {
        margin-bottom: var(--space-md) !important;
    }
    
    .grid.grid-3 .card > .card-body > ul li {
        padding: var(--space-xs) 0 !important;
        font-size: 0.875rem;
    }
    
    /* Card Buttons */
    .grid.grid-3 .card > .card-body > .flex.gap-sm {
        flex-direction: column;
        gap: var(--space-sm) !important;
    }
    
    .grid.grid-3 .card > .card-body > .flex.gap-sm .btn {
        flex: none !important;
        width: 100%;
        justify-content: center;
        padding: var(--space-sm);
        font-size: 0.875rem;
    }
    
    .btn-block {
        padding: var(--space-sm);
        font-size: 0.875rem;
    }
}

/* Custom Development CTA Card - Mobile */
@media (max-width: 768px) {
    .card[style*="background: var(--gradient-hero)"] {
        text-align: center;
    }
    
    .card[style*="background: var(--gradient-hero)"] .card-body {
        padding: var(--space-lg) !important;
    }
    
    .card[style*="background: var(--gradient-hero)"] h3 {
        font-size: 1.25rem;
    }
    
    .card[style*="background: var(--gradient-hero)"] p {
        font-size: 0.9375rem;
        margin: var(--space-sm) auto var(--space-lg) !important;
    }
    
    .card[style*="background: var(--gradient-hero)"] .hero-btn-primary {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   BLOGS PAGE - MOBILE STYLES
   ============================================ */

/* Blog Grid - Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .blog-card {
        display: flex;
        flex-direction: row;
        overflow: hidden;
    }
    
    .blog-card-image {
        width: 120px;
        min-width: 120px;
        height: auto;
        min-height: 120px;
        object-fit: cover;
    }
    
    .blog-card-content {
        padding: var(--space-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .blog-card-date {
        font-size: 0.6875rem;
        margin-bottom: var(--space-xs);
    }
    
    .blog-card-title {
        font-size: 0.9375rem;
        margin-bottom: var(--space-xs);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .blog-card-excerpt {
        display: none;
    }
    
    .blog-card-link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .blog-card-image {
        width: 100px;
        min-width: 100px;
        min-height: 100px;
    }
    
    .blog-card-content {
        padding: var(--space-sm);
    }
    
    .blog-card-title {
        font-size: 0.875rem;
    }
}

/* Alternative: Full width cards on very small screens */
@media (max-width: 380px) {
    .blog-card {
        flex-direction: column;
    }
    
    .blog-card-image {
        width: 100%;
        min-width: auto;
        height: 160px;
        min-height: 160px;
    }
    
    .blog-card-content {
        padding: var(--space-md);
    }
    
    .blog-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .blog-card-excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        font-size: 0.875rem;
    }
}

/* Pagination - Mobile */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: var(--space-xs);
        justify-content: center;
    }
    
    .pagination-item {
        min-width: 40px;
        height: 40px;
        padding: var(--space-xs);
        font-size: 0.875rem;
    }
}

/* Empty State - Mobile */
@media (max-width: 768px) {
    .text-center[style*="padding: var(--space-3xl)"] {
        padding: var(--space-xl) var(--space-md) !important;
    }
    
    .text-center[style*="padding: var(--space-3xl)"] i {
        font-size: 3rem !important;
    }
    
    .text-center[style*="padding: var(--space-3xl)"] h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   SECTION HEADERS - MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
    .section-header {
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-lg);
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: var(--space-sm);
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
}

/* ============================================
   SECTION SPACING - MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section.bg-secondary {
        padding: var(--space-2xl) 0;
    }
    
    .mt-4,
    .mt-5 {
        margin-top: var(--space-lg) !important;
    }
    
    .mt-3 {
        margin-top: var(--space-md) !important;
    }
    
    .mb-3 {
        margin-bottom: var(--space-md) !important;
    }
}

/* ============================================
   TOUCH OPTIMIZATIONS
   ============================================ */

@media (max-width: 1024px) {
    /* Remove hover transforms on touch devices */
    .service-card:hover,
    .advantage-card:hover,
    .blog-card:hover,
    .afl-preview-card:hover,
    .about-feature-card:hover {
        transform: none;
    }
    
    /* Ensure tap targets are large enough */
    .btn,
    .hero-btn-primary,
    .hero-btn-secondary,
    .cta-btn-primary,
    .cta-btn-secondary,
    .blog-card-link,
    .service-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Better touch feedback */
    .btn:active,
    .hero-btn-primary:active,
    .hero-btn-secondary:active,
    .cta-btn-primary:active,
    .cta-btn-secondary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ============================================
   IMAGE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    .afl-preview-image,
    .blog-card-image,
    .card > div[style*="height: 200px"] {
        height: 160px !important;
    }
    
    /* Lazy loading indicator */
    img[loading="lazy"] {
        background: var(--bg-tertiary);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .hero,
    .cta,
    .hero-floating-shapes {
        background: none !important;
        color: #000 !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary,
    .cta-btn-primary,
    .cta-btn-secondary {
        display: none !important;
    }
}
