/* 
 * Berkah Digital - Landing Page Stylesheet
 * A premium, modern, glassmorphic dark theme.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0f1d;
    --bg-secondary: #0f172a;
    --bg-gradient: radial-gradient(circle at top, #1e293b 0%, #0a0f1d 100%);
    
    --accent-emerald: #10b981;
    --accent-emerald-hover: #059669;
    --accent-emerald-glow: rgba(16, 185, 129, 0.2);
    
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-blue-glow: rgba(59, 130, 246, 0.2);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-mixed {
    background: linear-gradient(135deg, #60a5fa 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-weight: 600;
}

.logo svg {
    color: var(--accent-emerald);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-emerald);
    transition: var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: var(--transition-normal);
}

.btn-header:hover {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 15px var(--accent-emerald-glow);
}

/* Sections Common Styling */
section {
    padding: 8rem 2rem 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 1.5rem;
}

.hero-tagline svg {
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
}

.btn-primary {
    background: var(--accent-emerald);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background: var(--accent-emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(5px);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dynamic glow effect behind image */
.visual-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
    background-color: var(--bg-secondary);
}

/* Features Section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-label {
    display: block;
    color: var(--accent-emerald);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.25rem;
    border-radius: 16px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.05);
}

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

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.75rem;
    color: var(--accent-emerald);
}

.feature-card:nth-child(2) .feature-icon-wrapper {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.feature-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.popular {
    border: 2px solid var(--accent-emerald);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
}

.pricing-card.popular::after {
    content: 'Terpopuler';
    position: absolute;
    top: 24px;
    right: -32px;
    background: var(--accent-emerald);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-price .amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.pricing-price .period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.pricing-card.custom-card {
    border-color: rgba(59, 130, 246, 0.4);
}

.pricing-card.custom-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 25px 40px rgba(59, 130, 246, 0.1);
}

.pricing-card.custom-card .pricing-features li svg {
    color: var(--accent-blue);
}

.btn-pricing {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.pricing-card.popular .btn-pricing {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.pricing-card.popular .btn-pricing:hover {
    background: var(--accent-emerald-hover);
    border-color: var(--accent-emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.pricing-card.custom-card .btn-pricing {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.pricing-card.custom-card .btn-pricing:hover {
    background: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-pricing:not(.popular):not(.custom-card):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* Quotes Section */
.quotes-section {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.quotes-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 180px;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(16, 185, 129, 0.15);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    transition: opacity var(--transition-slow);
    opacity: 1;
}

.quote-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-emerald);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity var(--transition-slow);
    opacity: 1;
}

.quote-text.fade-out, .quote-author.fade-out {
    opacity: 0;
}

/* Quote progress bar indicator */
.quote-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
    transition: width 180s linear;
}

/* Footer Section */
footer {
    background: #060913;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    margin-bottom: 1.25rem;
}

.footer-about p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-links-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-emerald);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* Keyframes Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-tagline {
        justify-content: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    .nav-links {
        display: none; /* Simplification for mobile view */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }

    .quotes-container {
        min-height: 220px;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }
}

/* Styling for landing page authentication actions and mobile scaling */
.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-header.btn-primary-header {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 15px var(--accent-emerald-glow);
}

.btn-header.btn-primary-header:hover {
    background: var(--accent-emerald-hover);
    border-color: var(--accent-emerald-hover);
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 0.4rem;
    }
    .btn-header {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo-img {
        height: 26px;
    }
    .nav-container {
        padding: 1rem 1rem;
    }
}

/* Styling for the large Berkah Digital logo in Hero section */
.hero-logo-large {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.logo-large-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
}

.logo-large-text {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-large-text span {
    font-weight: 600;
    color: var(--accent-emerald);
}

@media (max-width: 1024px) {
    .hero-logo-large {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .logo-large-img {
        height: 75px;
    }
    .logo-large-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-large {
        gap: 0.75rem;
    }
    .logo-large-img {
        height: 55px;
    }
    .logo-large-text {
        font-size: 1.8rem;
    }
}
