/* =================================================================
   MODERN HOMEPAGE REDESIGN - AppDost
   Enhanced Design with Animations & Modern UI
   ================================================================= */

/* Global fixes for layout */
body {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
    width: 100%;
}

/* Hero Section - Modern */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-top: 0 !important;
    width: 100%;
    contain: layout style paint;
}

.hero-modern .container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: floatAnimation 20s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: 20%;
    left: 5%;
    animation-delay: 5s;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatAnimation {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.hero-badge-icon {
    font-size: 20px;
}

.hero-badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.hero-title-modern {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description-modern {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons-modern {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::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-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.btn-primary-modern svg {
    transition: transform 0.3s ease;
}

.btn-primary-modern:hover svg {
    transform: translateX(5px);
}

.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-secondary-modern:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-trust-badges {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.trust-badge svg {
    color: #10b981;
}

/* Hero Visual with Floating Cards */
.hero-visual-modern {
    position: relative;
    height: 600px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: floatCard 6s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.floating-card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-icon {
    font-size: 36px;
    line-height: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

.card-stat {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Floating Section */
.stats-floating-section {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-floating-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.stats-floating-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    max-width: 100%;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.about-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.about-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
}

.about-description-large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #64748b;
    margin-top: 24px;
}

/* What We Do Section */
.what-we-do-section {
    margin-bottom: 80px;
}

.subsection-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
}

.subsection-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 48px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 100%;
}

.expertise-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.expertise-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.expertise-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.expertise-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Why Choose Section */
.why-choose-section {
    background: white;
    padding: 60px 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 80px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.why-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(8px);
}

.why-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.why-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.why-content strong {
    font-size: 1.125rem;
    color: #1e293b;
    font-weight: 700;
}

.why-content span {
    font-size: 0.9375rem;
    color: #64748b;
}

/* Culture & Contact Section */
.culture-cta-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.culture-values {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.culture-intro {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 32px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateX(8px);
}

.value-item strong {
    color: #1e293b;
}

/* Contact Info Card */
.contact-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 48px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 100px;
}

.contact-info-card h4 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: white;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item strong {
    font-size: 1rem;
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-block;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    transform: translateX(5px);
    opacity: 0.8;
}

.contact-item span {
    font-size: 1.125rem;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-buttons .btn-primary-modern {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-primary-modern:hover {
    background: #f8fafc;
}

.cta-buttons .btn-secondary-modern {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-modern {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.about-feature {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 32px;
    line-height: 1;
}

.feature-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.about-visual {
    position: relative;
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-stat-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-stat-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.stat-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.about-stat-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.about-stat-card p {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

/* Blog Section - Modern */
.blog-section-modern {
    padding: 120px 0;
    background: white;
}

.blog-section-modern .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-description-modern {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
}

.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 100%;
}

.article-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
}

.article-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card-modern:hover .article-image {
    transform: scale(1.1);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 64px;
    opacity: 0.3;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card-modern:hover .article-overlay {
    opacity: 1;
}

.read-more-btn {
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 700;
    font-size: 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1e293b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card-modern:hover .article-title {
    color: #667eea;
}

.article-excerpt {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    padding: 4px 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.article-date {
    font-size: 12px;
    color: #94a3b8;
}

.article-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
}

.article-card-modern:hover .article-arrow {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.blog-cta-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual-modern {
        height: 400px;
    }
    
    .hero-title-modern {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats-floating-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 36px;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .culture-cta-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 120px 0 60px;
    }
    
    .hero-modern .container,
    .about-section .container,
    .stats-floating-section .container,
    .blog-section-modern .container {
        padding: 0 20px;
    }
    
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-description-modern {
        font-size: 1.125rem;
    }
    
    .hero-buttons-modern {
        flex-direction: column;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual-modern {
        height: 300px;
    }
    
    .floating-card {
        padding: 16px;
    }
    
    .stats-floating-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
    }
    
    .about-section {
        padding: 80px 0;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .subsection-title {
        font-size: 2rem;
    }
    
    .about-image-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid-modern {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .blog-section-modern {
        padding: 80px 0;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-section {
        padding: 40px 24px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-values,
    .contact-info-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .hero-badge {
        padding: 10px 20px;
    }
    
    .hero-badge-text {
        font-size: 12px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .article-content {
        padding: 24px;
    }
    
    .subsection-title {
        font-size: 1.75rem;
    }
    
    .expertise-card {
        padding: 32px 24px;
    }
}
