/* --- Root Variables & Reset --- */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff6584;
    --accent-color: #00d4ff;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-text: #eaeaea;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.section {
    padding: 80px 0;
    position: relative;
}

.badge {
    background: var(--gradient);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.line {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 10px auto 40px;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    font-size: 1.2rem;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.05);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
}

#navbar ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-bg 10s infinite alternate;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.c1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.c2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.c3 {
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

/* --- Problem Section --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.problem-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    background: var(--glass-bg);
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 101, 132, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.problem-card h3 {
    margin-bottom: 10px;
}

.problem-card p {
    color: #aaa;
    font-size: 0.95rem;
}

.agitate-box {
    background: linear-gradient(135deg, rgba(255, 101, 132, 0.1), rgba(26, 26, 46, 0.8));
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border-left: 5px solid var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Solution Section --- */
.dark-bg {
    background: var(--darker-bg);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.solution-list {
    margin: 30px 0;
}

.solution-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.solution-list i {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 5px;
    border-radius: 50%;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glow-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.image-wrapper img {
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-top-color: var(--primary-color);
    background: var(--glass-bg);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    position: relative;
    text-align: center;
    background: url('images/proyek1.PNG') no-repeat center center/cover;
    background-attachment: fixed;
}

/* Fallback if image doesn't exist or just use gradient */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pulse-effect {
    animation: pulse-btn 2s infinite;
}

.limited-offer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ffcc00;
}

/* --- Footer --- */
footer {
    background: #0f0f1b;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a,
.footer-col ul li {
    color: #aaa;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* --- Animations Keyframes --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-bg {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animation Utility Classes for JS Observer */
.hidden-el {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show-el {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Animation Directions */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.animate-flip {
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.8s ease-out;
}

.animate-zoom {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s ease-out;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.active-anim {
    opacity: 1 !important;
    transform: translate(0) scale(1) rotate(0) !important;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #navbar {
        position: fixed;
        background: var(--darker-bg);
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        padding: 40px;
        transition: 0.5s;
    }

    #navbar.active {
        right: 0;
    }

    #navbar ul {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    /* Hide floating elements on mobile to clean up view */
}

/* --- Portfolio Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--darker-bg);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal.show .modal-content {
    animation: modalScale 0.4s forwards;
}

@keyframes modalScale {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-color);
    text-decoration: none;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-img-container {
    width: 100%;
    height: auto;
    max-height: 60vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-text {
    padding: 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.modal-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-text p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* responsive adjustment for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-text h3 {
        font-size: 1.5rem;
    }
}

/* --- Pricing & Tabs Section --- */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--secondary-color);
}

.tab-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.pricing-content {
    position: relative;
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.center-grid {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: #071bce;
    border: 1px dashed rgba(3, 8, 20, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: left;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(10, 23, 209, 0.5);
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    background: #0acc24;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 30px;
    border: none;
}

.btn-pricing:hover {
    background: #333;
    transform: none;
    box-shadow: none;
}

.orange-btn {
    background: #ff5722;
}

.orange-btn:hover {
    background: #e64a19;
    color: #fff;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.5;
}

.pricing-features i {
    color: #ff5722;
    font-size: 1rem;
    margin-top: 3px;
}

.custom-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.custom-desc {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.centered-features {
    text-align: left;
    max-width: 400px;
    margin: 30px auto 0;
}

/* --- Web Property Card Styles --- */
.property-card {
    position: relative;
    overflow: visible;
}

.property-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
    transition: var(--transition);
}

.property-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.property-card:hover .property-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.6);
}

.property-tagline {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
}

/* Featured / Popular Card */
.featured-property {
    border: 2px solid var(--secondary-color) !important;
    background: linear-gradient(145deg, #0a1aaa, #0b22e6) !important;
    box-shadow: 0 0 30px rgba(255, 101, 132, 0.15),
        0 0 60px rgba(108, 99, 255, 0.1);
    transform: scale(1.03);
}

.featured-property:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 0 40px rgba(255, 101, 132, 0.25),
        0 15px 35px rgba(10, 23, 209, 0.5);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6584, #ff3d57);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 101, 132, 0.4);
    animation: badge-glow 2s infinite alternate;
    z-index: 10;
}

@keyframes badge-glow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 101, 132, 0.4);
    }

    100% {
        box-shadow: 0 4px 25px rgba(255, 101, 132, 0.7),
            0 0 40px rgba(255, 101, 132, 0.2);
    }
}

@media (max-width: 768px) {
    .pricing-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .price {
        font-size: 1.8rem;
    }

    .featured-property {
        transform: scale(1);
    }

    .featured-property:hover {
        transform: translateY(-5px);
    }
}