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

:root {
    --primary: #1e3a8a;
    --primary-dark: #162c6e;
    --primary-light: #2563eb;
    --primary-bg: #eff6ff;
    --accent-red: #c41c27;
    --red-hover: #a8151f;
    --success: #16a34a;
    --dark: #1e2a4a;
    --gray-100: #f4f7fb;
    --gray-200: #e2e8f4;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(30, 58, 138, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(30, 58, 138, 0.1), 0 2px 4px -1px rgba(30, 58, 138, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(30, 58, 138, 0.12), 0 4px 6px -2px rgba(30, 58, 138, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(30, 58, 138, 0.15), 0 10px 10px -5px rgba(30, 58, 138, 0.06);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background decorations */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(30, 58, 138, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 60% 20%, rgba(196, 28, 39, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.025;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 3px solid var(--accent-red);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 16px rgba(22, 44, 110, 0.4);
}

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

.nav-brand .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-placeholder {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.25);
}

.logo-placeholder.small {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    padding: 1.5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Application Cards Section */
.application-section {
    padding: 3.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.application-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 60%, var(--primary-light) 100%);
}

.application-card.kuccps::before {
    background: linear-gradient(90deg, var(--accent-red) 60%, #e53e3e 100%);
}

.application-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.kuccps .card-icon {
    background: linear-gradient(135deg, var(--accent-red), #9b1520);
}

.card-header {
    margin-bottom: 1.75rem;
    border-bottom: none;
    background: none;
    padding: 0;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.kuccps .card-title {
    color: var(--accent-red);
}

.card-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.card-content {
    margin-bottom: 1.75rem;
}

.process-steps {
    margin-bottom: 1.25rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
    padding: 0.65rem 0.875rem;
    background: var(--primary-bg);
    border-radius: var(--border-radius);
}

.kuccps .step {
    background: #fff1f2;
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.kuccps .step-number {
    background: linear-gradient(135deg, var(--accent-red), #9b1520);
}

.step-text {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.875rem;
}

.fee-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #dbeafe;
    border-radius: var(--border-radius);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-left: 3px solid var(--primary-light);
}

.requirements { margin-bottom: 1.25rem; }

.requirement-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.875rem;
    font-size: 0.9rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.875rem;
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
}

.document-item i {
    color: var(--primary-light);
    width: 18px;
}

.kuccps .document-item {
    background: #fff1f2;
}

.kuccps .document-item i {
    color: var(--accent-red);
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    border-left: 3px solid var(--primary-light);
}

.login-info i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.format-example {
    font-size: 0.82rem;
    color: var(--gray-600);
    font-family: 'Monaco', 'Consolas', monospace;
    background: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-top: 0.4rem;
    border: 1px solid var(--gray-200);
}

.card-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 140px;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0e1f52);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 3.5rem 0;
    background: white;
    border-radius: var(--border-radius-lg);
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark) 60%, var(--accent-red) 100%);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature { text-align: center; }

.feature-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-md);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--gray-500);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 2.5rem 0 1rem;
    margin-top: 4rem;
    border-top: 4px solid var(--accent-red);
}

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

.footer-tagline {
    color: #bfdbfe;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.link-group h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.875rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.link-group a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1.5rem 2rem;
    text-align: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container { padding: 0 1rem; }
    .nav-links { display: none; }
    .main-container { padding: 0 1rem; }
    .hero-stats { gap: 2rem; flex-wrap: wrap; }
    .cards-container { grid-template-columns: 1fr; gap: 1.75rem; }
    .application-card { padding: 1.75rem; }
    .card-actions { flex-direction: column; }
    .btn { width: 100%; }
    .features-container { grid-template-columns: 1fr; gap: 1.75rem; padding: 0 1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .footer-links { justify-content: center; gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .section-title { font-size: 1.6rem; }
    .stat-number { font-size: 1.75rem; }
    .hero-stats { gap: 1.5rem; }
}
