/* ================================
   ENHANCED THEME VARIABLES
================================ */
:root {
    --primary: #1E58C8;
    --primary-light: #3b6fd9;
    --primary-dark: #1545a3;
    --secondary: #5C92EE;
    --secondary-light: #7ba8f5;
    --accent: #F5F5F5;
    --light: #FFFFFF;
    --dark: #0f1419;
    --text: #1A2A4F;
    --text-muted: #6b7c93;
    --gray: #E6F0FA;
    --gray-dark: #d1e3f6;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #1E58C8 0%, #5C92EE 50%, #7ba8f5 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 88, 200, 0.95) 0%, rgba(92, 146, 238, 0.9) 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --shadow-sm: 0 2px 8px rgba(30, 88, 200, 0.08);
    --shadow: 0 4px 20px rgba(30, 88, 200, 0.12);
    --shadow-lg: 0 8px 40px rgba(30, 88, 200, 0.18);
    --shadow-glow: 0 0 30px rgba(92, 146, 238, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ================================
   GLOBAL STYLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, var(--gray) 0%, #ffffff 100%);
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* ================================
   CONTAINER
================================ */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================
   ENHANCED HERO SECTION
================================ */
.page-hero {
    background: var(--gradient-hero);
    color: var(--light);
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 10px 30px rgba(30, 88, 200, 0.15);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ================================
   ENHANCED SERVICE DETAIL CARD
================================ */
.service-detail {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(30, 88, 200, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-detail:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.service-detail h2 {
    color: var(--primary);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-detail h2::before {
    content: '📄';
    font-size: 1.5rem;
}

.service-detail h3 {
    color: var(--primary-dark);
    margin: 2.5rem 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-detail h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.service-detail p {
    margin-bottom: 1.25rem;
    color: var(--text);
    font-size: 1.05rem;
}

/* Enhanced Lists */
.service-detail ul,
.service-detail ol {
    margin-left: 0;
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.service-detail li {
    margin-bottom: 0.85rem;
    padding-left: 0.5rem;
    position: relative;
}

.service-detail ol li::marker {
    color: var(--primary);
    font-weight: 600;
}

/* ================================
   ENHANCED NOTE & DOCUMENTS BOXES
================================ */
.note-box {
    background: linear-gradient(135deg, rgba(30, 88, 200, 0.06) 0%, rgba(92, 146, 238, 0.04) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

.note-box h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.note-box h4::before {
    content: '💡';
}

.documents-list {
    background: linear-gradient(135deg, #ffffff 0%, var(--gray) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(30, 88, 200, 0.1);
}

.documents-list h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.documents-list h4::before {
    content: '📋';
}

/* ================================
   ENHANCED BUTTONS
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--light);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 88, 200, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 88, 200, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-tertiary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
}

.btn-tertiary:hover {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.4);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray);
    justify-content: center;
}

/* ================================
   ENHANCED FOOTER
================================ */
.footer-bottom {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--light);
    margin-top: 3rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-bottom p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ================================
   RESPONSIVE ENHANCEMENTS
================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .page-hero {
        padding: 3.5rem 1.5rem;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .service-detail {
        padding: 2rem 1.5rem;
        border-radius: var(--radius);
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 1.1rem 1.5rem;
    }

    .note-box,
    .documents-list {
        padding: 1.5rem;
    }
}

/* ================================
   HEADER
================================ */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

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

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin-left: 1.25rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

/* ================================
   SERVICES GRID
================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    background-color: var(--primary);
    color: var(--light);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.service-content {
    padding: 1.8rem;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-content p {
    color: var(--text);
    margin-bottom: 1.2rem;
}

/* ================================
   FULL FOOTER
================================ */
footer {
    background: var(--primary);
    color: var(--light);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 4px solid var(--secondary);
}

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

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
        margin-top: 0.75rem;
    }

    nav li {
        margin: 0.4rem;
    }
}