/* Premium CSS Variable System & Global Reset - Kor Brand Theme */
:root {
    --brand-navy: #032454;
    --primary-accent: #0a4ea3;      /* Royal Sapphire Blue from logo */
    --hover-accent: #073b7d;
    --secondary-accent: #008e9b;    /* Vibrant Teal / Cyan from logo */
    --secondary-hover: #007682;
    --green-accent: #65b82a;        /* Vibrant Lime Green from logo */
    --green-hover: #549d21;
    --yellow-accent: #d97706;
    --red-accent: #dc2626;

    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --bg-card-border: #e2e8f0;
    --bg-card-border-hover: #cbd5e1;
    
    --card-shadow: 0 4px 20px -2px rgba(3, 36, 84, 0.06), 0 2px 6px -1px rgba(3, 36, 84, 0.03);
    --card-shadow-hover: 0 16px 32px -4px rgba(10, 78, 163, 0.12), 0 6px 12px -2px rgba(3, 36, 84, 0.04);
    
    --text-primary: #071d49;        /* Deep Brand Navy text for sharp authority */
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography & General Classes */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

.highlight {
    color: var(--secondary-accent);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 50%, var(--green-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: rgba(0, 142, 155, 0.08);
    color: #00747f;
    border: 1px solid rgba(0, 142, 155, 0.22);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 142, 155, 0.05);
}

.text-center {
    text-align: center;
}

.text-green {
    color: var(--green-accent);
}

.font-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--hover-accent) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(10, 78, 163, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 78, 163, 0.38);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 1px 3px rgba(3, 36, 84, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 36, 84, 0.08);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--secondary-accent) 0%, var(--green-accent) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 142, 155, 0.28);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 142, 155, 0.4);
}

.btn-block {
    width: 100%;
}

/* Glassmorphic & Modern Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 142, 155, 0.3);
    box-shadow: var(--card-shadow-hover);
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bg-card-border);
    box-shadow: 0 4px 20px -2px rgba(3, 36, 84, 0.05);
    padding: 0.7rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-accent);
}

.btn-nav {
    background: rgba(10, 78, 163, 0.08);
    color: var(--primary-accent);
    border: 1px solid rgba(10, 78, 163, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary-accent);
    color: #ffffff;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-caret {
    font-size: 0.7rem;
    transition: var(--transition-smooth);
}

.dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 170px;
    box-shadow: 0 12px 28px -4px rgba(3, 36, 84, 0.12), 0 4px 8px -2px rgba(3, 36, 84, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 110;
}

.dropdown-item {
    display: block;
    padding: 0.65rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-align: left;
}

.dropdown-item:hover {
    color: var(--primary-accent);
    background: #f8fafc;
}

/* Hover behaviors for desktop */
@media (min-width: 993px) {
    .nav-dropdown:hover .dropdown-menu-list {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
    
    .nav-dropdown:hover .dropdown-caret {
        transform: rotate(180deg);
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections General */
section {
    padding: 8rem 0 6rem;
    position: relative;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-accent);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-header {
    margin-bottom: 4rem;
}

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

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(10, 78, 163, 0.08) 0%, rgba(0, 142, 155, 0.05) 45%, rgba(101, 184, 42, 0.03) 75%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin: 1rem 0 1.5rem;
}

.hero-lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--bg-card-border);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-navy);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Hero Visual Animation Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card-wrapper {
    position: relative;
    width: 100%;
}

.visual-card-wrapper::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 1.5px dashed rgba(0, 142, 155, 0.3);
    border-radius: 16px;
    z-index: -1;
}

.visual-card {
    width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: var(--red-accent); }
.dot.yellow { background-color: var(--yellow-accent); }
.dot.green { background-color: var(--green-accent); }

.card-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: auto;
    font-weight: 600;
}

.activity-row {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.activity-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-bar-container {
    margin: 1.5rem 0 1rem;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.progress-bar {
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-accent) 0%, var(--secondary-accent) 55%, var(--green-accent) 100%);
    border-radius: 4px;
}

.card-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 70px;
    margin-top: 1.5rem;
}

.chart-bar {
    flex: 1;
    background: rgba(10, 78, 163, 0.12);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border: 1px solid rgba(10, 78, 163, 0.25);
    transition: var(--transition-smooth);
}

.chart-bar:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    text-align: left;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 142, 155, 0.08);
    color: var(--secondary-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 142, 155, 0.2);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* KorHRMS Spotlight Section */
.hrms-section {
    background: linear-gradient(180deg, #f8fafc 0%, rgba(0, 142, 155, 0.04) 50%, #f8fafc 100%);
}

.floating-dashboard {
    position: relative;
}

.dashboard-main {
    box-shadow: var(--card-shadow);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.screenshot-wrapper {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--bg-card-border);
}

.screenshot-wrapper .dashboard-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bg-card-border);
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background: #f8fafc;
}

.screenshot-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hrms-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.screenshot-wrapper:hover .hrms-screenshot {
    transform: scale(1.03);
}

.hrms-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hrms-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hrms-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.hrms-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.hrms-features i {
    color: var(--green-accent);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.about-metric {
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.about-metric:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 142, 155, 0.3);
}

.about-metric h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 50%, var(--green-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.about-metric p {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Contact & Submissions Section */
.contact-section {
    border-top: 1px solid var(--bg-card-border);
    background: radial-gradient(circle at 100% 100%, rgba(0, 142, 155, 0.05) 0%, rgba(101, 184, 42, 0.02) 40%, rgba(255,255,255,0) 65%), #ffffff;
}

.contact-info-column h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info-column p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.detail-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(10, 78, 163, 0.08);
    border: 1px solid rgba(10, 78, 163, 0.18);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.detail-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.detail-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form Styles */
.form-container {
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input, .form-group select {
    padding: 0.8rem 1rem 0.8rem 2.8rem;
}

.form-group textarea {
    padding: 1rem;
    resize: vertical;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 78, 163, 0.15);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.error-msg {
    font-size: 0.8rem;
    color: var(--red-accent);
    margin-top: 0.4rem;
    display: none;
}

.form-group.has-error input, .form-group.has-error textarea {
    border-color: var(--red-accent);
}

.form-group.has-error .error-msg {
    display: block;
}

/* Spinner and Buttons States */
.btn-spinner {
    display: none;
}

.btn.is-loading .btn-text {
    display: none;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

/* Success View */
.success-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.success-view.show {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    font-size: 4rem;
    color: var(--green-accent);
    margin-bottom: 1.5rem;
}

.success-view h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.success-view p {
    margin-bottom: 2rem;
}

/* Footer Section */
.footer {
    padding: 3.5rem 0;
    background: #ffffff;
    border-top: 1px solid var(--bg-card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo .logo-img {
    height: 38px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

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

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

.footer-links a:hover {
    color: var(--primary-accent);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .grid-2, .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-section {
        padding-top: 7rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-right {
        align-items: flex-start;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--bg-card-border);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 25px rgba(3, 36, 84, 0.08);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    .dropdown-menu-list {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        box-shadow: none;
        padding: 0.5rem 0 0;
        min-width: 0;
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu-list {
        display: block;
    }
    
    .nav-dropdown.active .dropdown-caret {
        transform: rotate(180deg);
    }
    
    .dropdown-item {
        text-align: center;
        padding: 0.8rem;
    }
}
