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

:root {
    /* Brand Colors extracted from CMN Logo */
    --cmn-blue: #18489c;
    --cmn-red: #d32323;
    
    /* Light Theme */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --header-bg: rgba(255, 255, 255, 0.85);
    --footer-bg: #0f172a;
    --footer-text: #f8fafc;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: #0b1120;
    --bg-surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    --header-bg: rgba(30, 41, 59, 0.85);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

a {
    color: var(--cmn-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--cmn-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.section-title p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Components */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(24, 72, 156, 0.2);
}

[data-theme="dark"] .card:hover {
    border-color: rgba(211, 35, 35, 0.4);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(24, 72, 156, 0.1);
    color: var(--cmn-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

[data-theme="dark"] .icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: #60a5fa;
}

.card:hover .icon-wrapper {
    background: var(--cmn-blue);
    color: #ffffff;
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--cmn-blue);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--cmn-red);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--cmn-blue);
    color: var(--cmn-blue);
}
.btn-outline:hover {
    background-color: var(--cmn-blue);
    color: #ffffff;
}

[data-theme="dark"] .btn-outline {
    border-color: var(--text-primary);
    color: var(--text-primary);
}
[data-theme="dark"] .btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

/* Header */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.logo-container img {
    height: 60px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
[data-theme="dark"] .logo-container img {
    background: #ffffff;
    padding: 4px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--cmn-red);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-menu .btn::after { display: none; }
.nav-menu .btn { padding: 0.75rem 1.5rem; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: var(--border-color);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(24, 72, 156, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(211, 35, 35, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
    z-index: -1;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(24, 72, 156, 0.15) 0%, rgba(11, 17, 32, 0) 70%);
}
[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(211, 35, 35, 0.1) 0%, rgba(11, 17, 32, 0) 70%);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Brand Cards */
.brand-card {
    text-align: center;
    align-items: center;
}
.brand-card img {
    height: 110px;
    object-fit: contain;
    margin-bottom: 2rem;
}
[data-theme="dark"] .brand-card img {
    background: #ffffff;
    padding: 15px;
    border-radius: var(--radius-md);
}
.brand-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--cmn-blue);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
[data-theme="dark"] .brand-tagline { color: #60a5fa; }

/* Contact Form */
.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--cmn-blue);
    box-shadow: 0 0 0 4px rgba(24, 72, 156, 0.1);
}
[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 6rem 0 2rem;
    border-top: 4px solid var(--cmn-blue);
}

.footer-logo img {
    height: 80px;
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 1rem;
}
.footer-links ul li a {
    color: #94a3b8;
}
.footer-links ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.social-links a:hover {
    background: var(--cmn-red);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 3rem 2rem;
        transition: var(--transition);
        overflow-y: auto;
    }
    .nav-menu.open { left: 0; }
    .mobile-menu-btn { display: block; }
    .nav-menu .btn { width: 100%; margin-top: 1rem; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .fade-up, .card, .btn, a {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
