/* ============================================
   PUBLIC HOME CSS — Triple A-Tech
   Dark Modern Theme | Glowing | Animated
   ============================================ */

/* ===== BASE ===== */
body.theme-dark {
    background: #0a0e14;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
    animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3498db, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #2ecc71, transparent 70%);
    bottom: -50px;
    left: -80px;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #9b59b6, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(52, 152, 219, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: #5dade2;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

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

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(46, 204, 113, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.8));
    }
}

/* Hero Title */
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    color: #ffffff;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary-glow {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

.btn-primary-glow:hover {
    box-shadow: 0 0 50px rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline-glow {
    padding: 0.9rem 2rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    border-color: #3498db;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.2);
    color: #fff;
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 1.5rem 1.25rem;
    position: relative;
    transition: all 0.35s ease;
    background: rgba(15, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 0.3rem;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.25);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
}

/* ===== SECTION CONTAINER ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5dade2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 6rem 0;
    background: #0d1117;
    position: relative;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:nth-child(1)::before {
    background: radial-gradient(circle at top right, rgba(52, 152, 219, 0.15), transparent 70%);
}

.service-card:nth-child(2)::before {
    background: radial-gradient(circle at top right, rgba(46, 204, 113, 0.15), transparent 70%);
}

.service-card:nth-child(3)::before {
    background: radial-gradient(circle at top right, rgba(155, 89, 182, 0.15), transparent 70%);
}

.service-card:nth-child(4)::before {
    background: radial-gradient(circle at top right, rgba(243, 156, 18, 0.15), transparent 70%);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    z-index: 1;
}

.icon-glow {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    opacity: 0.2;
}

.icon-glow.blue {
    background: #3498db;
}

.icon-glow.green {
    background: #2ecc71;
}

.icon-glow.purple {
    background: #9b59b6;
}

.icon-glow.orange {
    background: #f39c12;
}

.service-icon i {
    font-size: 1.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: 6rem 0;
    background: #0a0e14;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 6rem 0;
    background: #0d1117;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #151a22;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: #3498db;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.75rem;
}

.blog-dot {
    width: 3px;
    height: 3px;
    background: #3498db;
    border-radius: 50%;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    background: #0a0e14;
    position: relative;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: #3498db;
    top: -200px;
    left: -200px;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: #2ecc71;
    bottom: -150px;
    right: -150px;
}

.cta-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.3);
}

.cta-btn:hover {
    box-shadow: 0 0 60px rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* ===== ANIMATE ON SCROLL ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
   
/* ===== MOBILE CAROUSEL ===== */
@media (max-width: 767px) {
    .blog-grid.berita-carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0;
    }

    .blog-grid.berita-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .blog-grid.berita-carousel-track .blog-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
        margin-right: 1rem;
        border-radius: 16px;
    }

    /* Carousel Dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .carousel-dot {
        width: 25px;
        height: 25.2px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
        padding: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
    }
    
    .carousel-dot:hover {
        border-color: rgba(52, 152, 219, 0.5);
        background: rgba(52, 152, 219, 0.2);
        transform: scale(1.2);
    }
    
    .carousel-dot:active {
        transform: scale(0.9);
    }
    
    .carousel-dot.active {
        width: 32px;
        border-radius: 50px;
        border-color: #3498db;
        background: linear-gradient(135deg, #3498db, #2ecc71);
        box-shadow: 0 0 16px rgba(52, 152, 219, 0.6);
        transform: scale(1);
    }
}

/* Hide dots on desktop */
@media (min-width: 768px) {
    .carousel-dots {
        display: none !important;
    }
}

/* Desktop Small */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-section {
        padding-top: 70px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-section {
        padding-top: 65px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .services-section,
    .portfolio-section,
    .blog-section,
    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.6rem;
    }
    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .hero-stats {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .stat-card {
        flex: none;
        width: 100%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
        order: -1;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .scroll-indicator {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
        margin-top: 3rem;
    }
    
    /* Hero Badge */
    .hero-badge {
        margin-bottom: 5rem !important;
        font-size: 1.1rem !important;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 5rem;
    }
    .hero-cta {
        margin-bottom: 2rem;
    }

    .btn-primary-glow,
    .btn-outline-glow {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 1.4rem;
    }

    .hero-stats {
        gap: 0.5rem;
    }

    .stat-card {
        flex: 1 1 28%;
        min-width: 80px;
        padding: 0.75rem 0.5rem;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .scroll-indicator {
        right: 1rem;
        bottom: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
    .section-tag {
        font-size: 0.62rem;
        padding: 0.25rem 0.8rem;
    }
    .section-desc {
        font-size: 0.8rem;
    }

    .services-section,
    .portfolio-section,
    .blog-section,
    .cta-section {
        padding: 2.5rem 0;
    }
    .section-container {
        padding: 0 1rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }
    .cta-text {
        font-size: 0.85rem;
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    .cta-card {
        border-radius: 20px;
        padding: 2rem 1rem;
    }

    .blog-body {
        padding: 1rem;
    }
    .blog-title {
        font-size: 0.95rem;
    }
    .blog-excerpt {
        font-size: 0.78rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}