/* =============================================
   RRD.COM HOMEPAGE DESIGN - SUPER KEREN
   Design modern dengan text berjalan
   ============================================= */

/* === HERO SECTION RRD STYLE === */
.hero-rrd-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 80px 10%;
}

/* Circle container */
.image-circle{
    width: 420px;
    height: 420px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: auto;

    background: linear-gradient(135deg,#0a5c7a,#1da1f2);
    padding: 12px;
}

/* Image */
.image-circle img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-rrd-image img{
    width: 100%;
    max-width: 600px;
}

.hero-rrd-title{
    font-size: 48px;
    font-weight: 700;
}

.highlight{
    color: #4fc3f7;
}
.hero-rrd {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #003d5c 0%, #0a5f7f 30%, #4fa8c5 70%, #7ec8dd 100%);
    color: #ffffff;
    margin-top: 0;
    padding: 4rem 2rem;
}

/* Subtle overlay for depth */
.hero-rrd::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(126, 200, 221, 0.2) 0%, transparent 60%);
    z-index: 1;
}

/* Red Ribbon Decoration - Premium 3D Effect */
.hero-ribbon {
    position: absolute;
    top: 8%;
    right: 8%;
    width: 280px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 15px 35px rgba(229, 62, 62, 0.5)) drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    animation: ribbonFloat 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes ribbonFloat {
    0%, 100% {
        transform: translateY(0) rotate(-8deg) scale(1);
    }
    50% {
        transform: translateY(-20px) rotate(-8deg) scale(1.05);
    }
}

/* Ribbon Glow Effect */
.hero-ribbon::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center, rgba(229, 62, 62, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: ribbonGlow 5s ease-in-out infinite;
}

@keyframes ribbonGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes floatCircle {
    0%, 100% { 
        transform: translateY(-50%) translateX(0);
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-50%) translateX(-20px);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: translateY(-50%) scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-50%) scale(1.05);
        opacity: 0.6;
    }
}

.hero-rrd-content {
    text-align: left;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 10;
    padding-left: 3rem;
}

/* Grid Pattern Background - RRD Style */
.hero-rrd .grid-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 2;
    opacity: 0.6;
}

/* Sparkle Effects - Like RRD.com */
.hero-rrd .sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: sparkle 4s ease-in-out infinite;
    z-index: 3;
}

.hero-rrd .sparkle:nth-child(2) {
    top: 25%;
    right: 30%;
    animation-delay: 0s;
}

.hero-rrd .sparkle:nth-child(3) {
    top: 45%;
    right: 40%;
    animation-delay: 1.5s;
}

.hero-rrd .sparkle:nth-child(4) {
    top: 65%;
    right: 25%;
    animation-delay: 3s;
}

.hero-rrd .sparkle:nth-child(5) {
    top: 35%;
    right: 50%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.hero-rrd-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.hero-rrd-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ffffff;
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 700px;
    letter-spacing: -1px;
}

.hero-rrd-title span {
    display: block;
}

.hero-rrd-title .highlight {
    font-weight: 700;
    color: #ffffff;
    position: relative;
}

.hero-rrd-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-rrd-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RUNNING TEXT / MARQUEE === */
.running-text-section {
    background: #e53e3e;
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    border-top: 4px solid #c53030;
    border-bottom: 4px solid #c53030;
}

.running-text-wrapper {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.running-text-wrapper:hover {
    animation-play-state: paused;
}

.running-text-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.running-text-item::before {
    content: '★';
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #ffffff;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Running text speed - Desktop default */
.running-text-wrapper {
    animation: marquee 40s linear infinite;
}

/* === STATS SECTION RRD STYLE === */
.stats-section {
    background: #f8f9fa;
    padding: 5rem 2rem;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transition: height 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.12);
}

.stat-item:hover::before {
    height: 5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e53e3e;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* === SERVICES SHOWCASE RRD STYLE === */
.services-showcase {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    padding: 6rem 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Ensure text is readable on dark background */
.services-showcase .section-header h2 {
    color: #ffffff !important;
}

.services-showcase .section-header p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.services-showcase .section-subtitle {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #ffffff;
}

.services-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e53e3e;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: #ffffff;
}

/* === CTA SECTION RRD STYLE === */
.cta-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    padding: 6rem 2rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
/* ==============================
   CTA SECTION
============================== */

.cta-section{
    padding:120px 20px;
    text-align:center;
    background: linear-gradient(135deg,#003d5c,#0a5f8f);
    color:white;
    position:relative;
    overflow:hidden;
}

.cta-content h2{
    font-size:42px;
    margin-bottom:20px;
    font-weight:700;
    color: #ffffff;
}

.cta-content p{
    max-width:700px;
    margin:auto;
    margin-bottom:40px;
    font-size:18px;
    line-height:1.6;
    opacity:.9;
    color: #ffffff;
}

/* BUTTONS */

.cta-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 30px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:all .35s ease;
}

.btn-primary{
    background:white;
    color:#003d5c;
}

.btn-primary:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.btn-outline{
    border:2px solid white;
    color:white;
}

.btn-outline:hover{
    background:white;
    color:#003d5c;
    transform:translateY(-4px);
}

.btn-white {
    background: #ffffff;
    color: #e53e3e;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background: #1a365d;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: #e53e3e;
    transform: translateY(-3px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-rrd {
        min-height: 70vh;
        padding: 2rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #003d5c 0%, #0a5f7f 30%, #4fa8c5 70%, #7ec8dd 100%);
    }
    
    .hero-rrd-content {
        text-align: center;
        width: 100%;
    }
    
    .hero-rrd-title {
        font-size: 1.75rem;
        color: #ffffff;
    }
    
    .hero-rrd-description {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hero-rrd-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-rrd-buttons .btn {
        width: 100%;
    }
    
    .running-text-item {
        font-size: 1rem;
        padding: 0 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .services-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-white,
    .btn-outline-white {
        width: 100%;
        max-width: 300px;
    }
}
/* ===============================
   FEATURED PROJECTS SECTION
================================ */

.projects-section{
    padding:100px 0;
    background:#f7f9fc;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    margin-top:50px;
}

/* CARD */

.project-card{
    background:#ffffff;
    padding:40px;
    border-radius:16px;
    border:1px solid #e6ecf3;
    transition:all .35s ease;
    box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

.project-card h3{
    font-size:22px;
    color:#1e3555;
    margin-bottom:15px;
}

.project-card p{
    color:#5c6b7a;
    line-height:1.7;
    margin-bottom:25px;
}

/* BUTTON */

.btn-outline{
    display:inline-block;
    padding:12px 28px;
    border:2px solid #e53935;
    color:#e53935;
    font-weight:600;
    text-decoration:none;
    border-radius:8px;
    transition:all .3s ease;
}

.btn-outline:hover{
    background:#e53935;
    color:white;
}

/* HEADER */

.section-header{
    text-align:center;
    max-width:700px;
    margin:auto;
}

.section-subtitle{
    display:inline-block;
    background:#e53935;
    color:white;
    padding:6px 18px;
    border-radius:30px;
    font-size:13px;
    letter-spacing:.5px;
    margin-bottom:15px;
}

.section-header h2{
    font-size:46px;
    color:#1e3555;
    margin-bottom:15px;
}

.section-header p{
    color:#5c6b7a;
    font-size:18px;
}
.reveal{
    opacity:0;
    transform:translateY(80px);
    transition:all 1s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}


/* === PREMIUM RIBBON EFFECTS === */

/* Red Ribbon Decoration - Premium 3D Effect */
.hero-ribbon {
    position: absolute;
    top: 8%;
    right: 8%;
    width: 400px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(229, 62, 62, 0.6)) 
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4))
            brightness(1.1);
    animation: ribbonFloat 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes ribbonFloat {
    0%, 100% {
        transform: translateY(0) rotate(-8deg) scale(1);
    }
    50% {
        transform: translateY(-25px) rotate(-8deg) scale(1.08);
    }
}

/* Ribbon Glow Background */
.hero-rrd .ribbon-glow {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 450px;
    height: 250px;
    background: radial-gradient(ellipse at center, rgba(229, 62, 62, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* Premium Hero Enhancement */
.hero-rrd {
    position: relative;
    background: linear-gradient(135deg, #003d5c 0%, #0a5f7f 30%, #4fa8c5 70%, #7ec8dd 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

.hero-rrd::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}
