@tailwind base;
@tailwind components;
@tailwind utilities;

/* Transisi halus untuk slider hero */
.slide { 
    transition: opacity 1.5s ease-in-out; 
}

.slide-active { 
    opacity: 1; 
    z-index: 10; 
}

.slide-hidden { 
    opacity: 0; 
    z-index: 0; 
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 30;
    border-bottom: 1px solid #e2e8f0;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .navbar {
    border-bottom-color: #1e293b;
    background: rgba(15, 23, 42, 0.85);
}

.navbar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #2563eb, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
        font-weight: 500;
    }
}

.desktop-menu a {
    transition: color 300ms;
}

.desktop-menu a:hover {
    color: #2563eb;
}

.dark .desktop-menu a:hover {
    color: #3b82f6;
}

/* ===== MOBILE SIDEBAR ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 16rem;
    background-color: #ffffff;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.dark .mobile-sidebar {
    background-color: #0f172a;
    border-left-color: #1e293b;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.dark .mobile-sidebar-header {
    border-bottom-color: #1e293b;
}

.mobile-sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #2563eb, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1e293b;
}

.dark .mobile-sidebar-nav {
    color: #e2e8f0;
}

.mobile-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 300ms;
}

.mobile-sidebar-nav a:hover {
    color: #2563eb;
}

.dark .mobile-sidebar-nav a:hover {
    color: #3b82f6;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
    transition: opacity 300ms;
    opacity: 0;
}

.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero-content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-tagline {
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-gradient {
    background: linear-gradient(to right, #3b82f6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 300ms;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
    background-color: #3b82f6;
}

.secondary-btn {
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 300ms;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== VERSE SECTION ===== */
.verse-section {
    padding: 5rem 1.5rem;
    background-color: #ffffff;
}

.dark .verse-section {
    background-color: #0f172a;
}

.verse-container {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.verse-icon {
    font-size: 2.25rem;
    color: rgba(59, 130, 246, 0.3);
    margin-bottom: 1.5rem;
}

.verse-text {
    font-size: 1.875rem;
    font-family: 'Playfair Display', serif;
    color: #1e293b;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.dark .verse-text {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .verse-text {
        font-size: 2.25rem;
    }
}

.verse-ref {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .verse-ref {
    color: #3b82f6;
}

/* ===== SERVICE CARDS SECTION ===== */
.services-section {
    padding: 6rem 1.5rem;
    background-color: #f8fafc;
}

.dark .services-section {
    background-color: rgba(30, 41, 59, 0.5);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-subtitle {
    color: #64748b;
}

.dark .services-subtitle {
    color: #94a3b8;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-section {
    background-color: #f8fafc;
}

.dark .gallery-section {
    background-color: rgba(15, 23, 42, 0.5);
}

.photo-slider {
    min-height: 420px;
}

@media (min-width: 768px) {
    .photo-slider {
        min-height: 520px;
    }
}

.slider-dot.active {
    background-color: #2563eb;
    opacity: 1;
}

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1.875rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 300ms;
}

.dark .service-card {
    background-color: #0f172a;
    border-color: #1e293b;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.service-card.featured {
    background: linear-gradient(to bottom right, #2563eb, #6366f1);
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.2);
    transform: translateY(-1rem);
}

@media (min-width: 768px) {
    .service-card.featured {
        transform: translateY(-1rem);
    }
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #eff6ff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #2563eb;
    font-size: 1.5rem;
    transition: transform 300ms;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card.featured .service-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card.featured .service-title {
    color: #ffffff;
}

.service-time {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.dark .service-card .service-time {
    color: #ffffff;
}

.service-card.featured .service-time {
    color: #ffffff;
}

.service-time-unit {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 400;
}

.dark .service-card .service-time-unit {
    color: #94a3b8;
}

.service-card.featured .service-time-unit {
    color: rgba(255, 255, 255, 0.7);
}

.service-description {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.dark .service-card .service-description {
    color: #94a3b8;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-link {
    color: #2563eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 300ms;
}

.dark .service-card .service-link {
    color: #3b82f6;
}

.service-card.featured .service-link {
    color: #ffffff;
}

.service-link:hover {
    gap: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0f172a;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.footer-column-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms;
}

.social-icon:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    transition: color 300ms;
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-section-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.footer-contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-item i {
    margin-top: 0.25rem;
    color: #3b82f6;
}

.footer-contact-span {
    line-height: 1.5;
}

.footer-bottom {
    max-width: 80rem;
    margin: 0 auto;
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-tagline {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #64748b;
}
