/* ========================================
   Home Page - Grid & Layout Styles
   ======================================== */

/* ===== Grid Layouts ===== */
.services-grid,
.portfolio-grid,
.team-grid,
.blog-grid,
.testimonials-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}

.services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ===== Blog Carousel (Desktop = Grid, Mobile = Carousel) ===== */
.blog-carousel-wrapper {
    position: relative;
    padding: 0 0 40px;
}

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

/* ===== Process Timeline ===== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* ===== Features Showcase ===== */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-item.reverse {
    direction: ltr;
}

.feature-item.reverse .feature-content {
    direction: rtl;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* ===== Service Card ===== */
.service-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap var(--transition-fast);
    text-decoration: none;
}

.service-link:hover {
    gap: 12px;
}

.service-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover .service-glow {
    opacity: 1;
}

/* ===== Portfolio Card ===== */
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.portfolio-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(37, 99, 235, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(10px);
    transition: transform var(--transition-base);
}

.portfolio-card:hover .portfolio-view-btn {
    transform: translateY(0);
}

.portfolio-info {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tags .tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== Team Card ===== */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.team-image {
    position: relative;
    padding: 28px 28px 0;
}

.team-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--bg-card);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2);
    transition: transform var(--transition-base);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-image-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto;
}

.team-social {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all var(--transition-base);
}

.team-card:hover .team-social {
    bottom: 0;
    opacity: 1;
}

.team-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.team-social-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.team-info {
    padding: 32px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.team-position {
    color: var(--accent-primary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ===== Blog Card ===== */
.blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .blog-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
    border-color: var(--accent-primary);
}

.blog-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: white;
    font-size: 3rem;
}

.blog-category {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.blog-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    font-size: 0.72rem;
    color: var(--accent-primary);
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.blog-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title a {
    color: var(--accent-primary);
}

.blog-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: gap var(--transition-fast);
    text-decoration: none;
    align-self: flex-start;
}

.blog-link:hover {
    gap: 12px;
}

/* ===== Blog Carousel Navigation ===== */
.blog-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: all var(--transition-base);
}

.blog-carousel-wrapper:hover .blog-nav-btn {
    display: flex;
}

.blog-nav-btn:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.blog-nav-prev {
    right: -24px;
}

.blog-nav-next {
    left: -24px;
}

.blog-scroll-indicator {
    display: none;
    margin-top: 20px;
    height: 3px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
}

.blog-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.blog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.blog-dot.active {
    width: 28px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #f59e0b;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--accent-primary);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-toggle-icon {
    color: var(--accent-primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 22px 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.92rem;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
    background: rgba(59, 130, 246, 0.1);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CTA Section ===== */
.cta-card {
    position: relative;
    padding: 50px 40px;
    background: var(--accent-gradient);
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    color: white;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    filter: blur(60px);
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 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.05'%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");
}

.stat-card {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    color: white;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
    opacity: 0.8;
}

.stat-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ===== Process Section ===== */
.process-step {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-base);
}

.process-step:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== Features Section ===== */
.feature-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.feature-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.feature-list li i {
    color: #10b981;
    font-size: 0.9rem;
}

.speed-meter {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.meter-circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.meter-circle svg {
    width: 100%;
    height: 100%;
}

.meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meter-label {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.color-palette {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    animation: colorBounce 2s ease-in-out infinite;
}

.color-swatch:nth-child(1) { animation-delay: 0s; }
.color-swatch:nth-child(2) { animation-delay: 0.1s; }
.color-swatch:nth-child(3) { animation-delay: 0.2s; }
.color-swatch:nth-child(4) { animation-delay: 0.3s; }
.color-swatch:nth-child(5) { animation-delay: 0.4s; }

@keyframes colorBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Hero Visual ===== */
.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.mockup-browser {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: floatMockup 6s ease-in-out infinite;
}

@keyframes floatMockup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.browser-url i {
    color: #10b981;
    font-size: 0.75rem;
}

.browser-body {
    padding: 24px;
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-line {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    animation: codeLine 2s ease-in-out infinite;
}

@keyframes codeLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; background: var(--accent-gradient-2); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    animation: floatCard 4s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    color: var(--accent-primary);
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: -1.5s;
}

.card-3 {
    bottom: 5%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) !important; }
    50% { transform: translateY(-8px) !important; }
}

/* ===== Hero Content ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ===== Brands Section ===== */
.brands-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.brands-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brands-scroll {
    overflow: hidden;
    mask-image: linear-gradient(to left, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, black 20%, black 80%, transparent);
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: scrollBrands 30s linear infinite;
    width: max-content;
}

.brand-item {
    font-size: 2.5rem;
    color: var(--text-tertiary);
    opacity: 0.5;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.brand-item:hover {
    opacity: 1;
    color: var(--accent-primary);
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Section Backgrounds ===== */
.services-section,
.blog-section,
.faq-section {
    background: var(--bg-secondary);
}

.portfolio-section,
.team-section,
.testimonials-section {
    background: var(--bg-primary);
}

.process-section,
.features-section {
    background: var(--bg-primary);
}

/* ===== Animations ===== */
[data-animate] {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-down"] {
    transform: translateY(-30px);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="scale-up"] {
    transform: scale(0.9);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 48px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 24px;
        min-height: auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .feature-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-item.reverse {
        direction: rtl;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .portfolio-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Blog becomes carousel on mobile */
    .blog-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 4px 4px 20px;
        margin: 0 -4px;
    }
    
    .blog-grid::-webkit-scrollbar {
        display: none;
    }
    
    .blog-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .blog-card {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    
    .blog-nav-btn {
        display: flex;
        width: 42px;
        height: 42px;
        top: 50%;
        opacity: 1;
    }
    
    .blog-nav-prev { right: 8px; }
    .blog-nav-next { left: 8px; }
    
    .blog-scroll-indicator {
        display: block;
    }
    
    .blog-dots {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .floating-card {
        display: none;
    }
    
    .cta-card {
        padding: 36px 24px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .blog-card {
        flex: 0 0 90%;
        min-width: 90%;
        max-width: 90%;
    }
}