/* 
   Prima Group - Digital Portal Style (Light Corporate Theme)
   Theme: Light Slate & Royal Gold
   Version: 1.3 (Benefits & Corporate Info Focus)
*/

:root {
    /* Color Palette - Light Mode Corporate */
    --bg-dark: #f8fafc;          /* Soft light gray-blue background */
    --bg-surface: #ffffff;       /* Crisp white card surface */
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(226, 232, 240, 0.8); /* Slate-200 border */
    --border-glass-hover: rgba(168, 125, 43, 0.35);
    
    --color-primary: #a87d2b;    /* Deep gold for readable contrast on light bg */
    --color-primary-rgb: 168, 125, 43;
    --color-secondary: #c7963b;  /* Accent metallic gold */
    --color-accent: #2e7d32;     /* Strong green for active indicator text */
    --color-accent-rgb: 46, 125, 50;
    
    --text-light: #0f172a;       /* Slate-900 for dark titles */
    --text-muted: #475569;       /* Slate-600 for body descriptions */
    --text-dimmed: #64748b;      /* Slate-500 for secondary details */
    --input-bg: #f1f5f9;         /* Slate-100 for input backgrounds */
    --input-border: #cbd5e1;     /* Slate-300 for input borders */

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadows & Transitions */
    --shadow-premium: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-gold-glow: 0 10px 25px rgba(168, 125, 43, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Background Glows (Light Mode) */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: 5%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--color-secondary);
}

.bg-glow-2 {
    bottom: 25%;
    left: -10%;
    width: 600px;
    height: 600px;
    background-color: #38bdf8; /* sky-400 */
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Reusable UI Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 125, 43, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 125, 43, 0.35);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.btn-glow {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    position: relative;
    box-shadow: 0 4px 15px rgba(168, 125, 43, 0.2);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 125, 43, 0.4);
}

.btn-glow svg {
    transition: var(--transition-fast);
}

.btn-glow:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--input-border);
}

.btn-outline:hover {
    background: var(--input-bg);
    border-color: var(--text-light);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Site Header (Light Mode) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1.5px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: var(--text-light);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-light);
}

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

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.kicker-line {
    width: 28px;
    height: 2px;
    background-color: var(--color-primary);
}

.kicker-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

/* Sections Header */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 18px;
}

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

/* Portal Gate Card (Hero Visual Entry) */
.portal-gate-card {
    position: relative;
    border-radius: 20px;
    padding: 40px;
    background: var(--bg-surface);
    border: 1.5px solid rgba(168, 125, 43, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 340px;
    transition: var(--transition-smooth);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 125, 43, 0.08) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Card Status Badges */
.card-status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.active-status {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.22);
    color: var(--color-accent);
}

.active-status .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.4);
    animation: pulseAnimation 2s infinite;
}

.gate-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.gate-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.gate-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.gate-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.2;
}

.gate-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.gate-action {
    margin-top: auto;
}

.portal-gate-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold-glow), 0 20px 40px rgba(15, 23, 42, 0.08);
}

.portal-gate-card:hover .card-glow {
    background: radial-gradient(circle, rgba(168, 125, 43, 0.18) 0%, transparent 70%);
}

/* Manfaat HRIS Section Styles */
.benefits-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-glass);
    background: linear-gradient(to bottom, transparent, rgba(226, 232, 240, 0.3) 50%, transparent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: #ffffff;
    border: 1.5px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(168, 125, 43, 0.07);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(168, 125, 43, 0.15);
    transition: var(--transition-smooth);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.benefit-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold-glow), 0 15px 30px rgba(15, 23, 42, 0.06);
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* Companies Grid (Integrated PT list) */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.company-tag-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1.5px solid var(--border-glass);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.company-tag-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-glow), 0 10px 20px rgba(15, 23, 42, 0.04);
}

.company-code {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(168, 125, 43, 0.07);
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(168, 125, 43, 0.15);
    transition: var(--transition-smooth);
}

.company-tag-card:hover .company-code {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #ffffff;
    border-color: var(--color-primary);
}

.company-name-info h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.2;
}

.company-name-info p {
    font-size: 0.85rem;
    color: var(--text-dimmed);
}

/* About/PT Section Wrapper */
.about-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-glass);
}

/* Contact/Helpdesk Section (Light Mode) */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(to top, transparent, rgba(226, 232, 240, 0.4) 50%, transparent);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 18px 0 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(168, 125, 43, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-content h5 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Contact Form Wrapper (Light Mode Card) */
.contact-form-wrapper {
    background: #ffffff;
    border: 1.5px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 24px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dimmed);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 12px 18px;
    background-color: var(--input-bg);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 48px;
}

.form-textarea {
    height: 120px;
    resize: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(168, 125, 43, 0.12);
    background-color: #ffffff;
}

/* Success/Error Alert Message (Light Mode) */
.form-success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1.5px solid rgba(46, 125, 50, 0.2);
    color: var(--color-accent);
    background: rgba(46, 125, 50, 0.04);
}

/* Contrasting Dark Slate Footer (Visual Anchoring) */
.site-footer {
    background-color: #0e1624; /* Contrasting Slate-900 */
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    border-top: 4px solid var(--color-primary);
}

.site-footer h4, .site-footer .brand-title {
    color: #ffffff;
}

.site-footer .brand-subtitle {
    color: var(--color-secondary);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer a:hover {
    color: var(--color-secondary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 440px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.version-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(46, 125, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

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

/* Responsive Media Queries */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-kicker {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1.5px solid var(--border-glass);
        flex-direction: column;
        padding: 30px 24px;
        gap: 30px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        box-shadow: 0 15px 30px rgba(15, 23, 42, 0.04);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-cta {
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
    }

    /* Mobile Toggle Hamburger Animation */
    .nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }
}
