/* =============================================
   RRD.COM COMPLETE STYLING - SUPER KEREN
   Website yang sangat modern dan profesional
   ============================================= */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip; /* prevents horizontal scroll without breaking position:fixed */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === RRD NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    color: #e53e3e;
}

.nav-logo {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
}

.nav-brand-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* === RRD MENU === */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 0;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .nav-menu > li {
        position: relative;
        margin: 0;
    }

    .nav-menu > li > a {
        display: flex;
        align-items: center;
        color: #ffffff;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        padding: 1.2rem 1.5rem;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 3px solid transparent;
    }

    .nav-menu > li > a:hover {
        color: #e53e3e;
        border-bottom-color: #e53e3e;
    }
}

/* === MOBILE TOGGLE === */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .has-mega-menu .mega-menu,
    .has-dropdown .dropdown {
        display: none;
    }
}
.mega-menu-featured {
    position: relative;
}

.featured-card {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.3);
}

.featured-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.featured-content {
    padding: 1.5rem;
    color: #ffffff;
}

.featured-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.featured-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #e53e3e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-small:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 62, 62, 0.4);
}

/* === DROPDOWN === */
/* Handled by mega-menu-final.css */

.featured-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #e53e3e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-small:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 62, 62, 0.4);
}

/* === MOBILE === */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    /* Nav menu is now handled by mobile-menu-new.css - DO NOT OVERRIDE */
    
    .has-mega-menu .mega-menu,
    .has-dropdown .dropdown {
        display: none;
    }
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #1a365d 100%);
    color: #ffffff;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #fed7d7;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    animation: slideUp 1s ease 0.2s forwards;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
    opacity: 0;
    animation: slideUp 1s ease 0.4s forwards;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: slideUp 1s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp 1s ease 0.8s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SECTION LAYOUTS === */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-dark {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border-radius: 2px;
    opacity: 0.3;
}

.section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-dark .section-header h2 {
    color: #ffffff;
}

.section-header p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.95);
}

/* Fix for services showcase section */
.services-showcase .section-header h2 {
    color: #ffffff !important;
}

.services-showcase .section-header p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* === GRID LAYOUTS === */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* === MODERN CARDS === */
.card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e53e3e;
}

.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;
}

.card:hover::before {
    transform: scaleX(1);
}
.card-image{
    width: 100%;
    margin-bottom: 15px;
}

.card-image img{
    width: 100%;
    border-radius: 30px;
    object-fit: cover;
}
.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    transition: all 0.3s ease;
}

.card:hover .card-content h3 {
    color: #e53e3e;
    transform: translateX(5px);
}

.card-content p {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.card:hover .card-content p {
    color: #2d3748;
}

/* === LOCATION ICONS === */
.location-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c53030, #9c2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
    border-color: transparent;
}

.btn-secondary {
    background: transparent;
    color: #1a365d;
    border-color: #1a365d;
}

.btn-secondary:hover {
    background: #1a365d;
    color: #ffffff;
    border-color: #1a365d;
}

/* For dark backgrounds */
.section-dark .btn-secondary,
.hero .btn-secondary,
.hero-rrd .btn-secondary,
.services-showcase .btn-secondary,
.cta-section .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.section-dark .btn-secondary:hover,
.hero .btn-secondary:hover,
.hero-rrd .btn-secondary:hover,
.services-showcase .btn-secondary:hover,
.cta-section .btn-secondary:hover {
    background: #ffffff;
    color: #1a365d;
    border-color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #e53e3e;
    border-color: #e53e3e;
}

.btn-outline:hover {
    background: #e53e3e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border-radius: 2px;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    margin-bottom: 0.75rem;
}

.footer-content ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-content ul li a:hover {
    color: #e53e3e;
    transform: translateX(5px);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #e53e3e, #c53030) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.back-to-top:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4) !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* ABOUT HERO SECTION */
.about-hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #0c4a6e, #1e6f8f);
    color: #ffffff !important;
}

.about-hero-content {
    max-width: 800px;
}

.about-hero .hero-subtitle {
    color: rgba(255,255,255,0.85) !important;
}

.about-title {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff !important;
}

.about-subtitle {
    font-size: 22px;
    line-height: 1.6;
    opacity: 0.9;
    color: #ffffff !important;
}
/* CATEGORY NAVIGATION */

.category-nav{
    width:100%;
    background: linear-gradient(90deg,#9ec3cf,#c3d9df);
    border-bottom:1px solid rgba(0,0,0,0.05);
}

.category-container{
    max-width:1200px;
    margin:auto;
    padding:12px 20px;

    display:flex;
    align-items:center;
    gap:20px;
}

.category-title{
    font-weight:600;
    color:#0a3d5c;
    letter-spacing:1px;
}

.category-arrow{
    font-size:18px;
    color:#0a3d5c;
}

.category-menu{
    list-style:none;
    display:flex;
    gap:25px;
    margin:0;
    padding:0;
    flex:1;
}

.category-menu a{
    text-decoration:none;
    color:#1b4d6b;
    font-weight:500;
    transition:0.3s;
}

.category-menu a:hover{
    color:#0b5fa5;
}

.category-menu .active a{
    border-bottom:3px solid #0b5fa5;
    padding-bottom:4px;
}

.category-btn{
    background:#0b5fa5;
    color:white;
    padding:8px 16px;
    font-size:13px;
    border-radius:4px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.category-btn:hover{
    background:#094a82;
}


/* === IMAGE GALLERY === */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
