:root {
    --primary: #1e40af;
    /* Deeper, more professional blue */
    --primary-light: #3b82f6;
    --secondary: #475569;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--white);
    color: #1e293b;
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.75rem;
    line-height: 1.1;
}

h2 {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    color: #334155;
    margin-bottom: 1.25rem;
}

/* Navigation - Refined & Compressed */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.btn-nav {
    padding: 0.25rem 0.75rem;
    /* Very small button */
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Hero Section - Realistic Corporate */
.hero {
    min-height: 75vh;
    /* Slightly reduced height */
    padding: 5rem 10% 3rem;
    /* Reduced from 6rem / 4rem */
    display: flex;
    align-items: center;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, var(--light) 0%, rgba(248, 250, 252, 0) 100%),
        url('../images/hero_background.png') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    flex: 1;
    z-index: 1;
    max-width: 600px;
}

.hero p {
    font-size: 1.05rem;
    /* Slightly larger than body but not explosive */
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #764ba2;
}

.btn-primary:hover {
    background: #f8fafc;
    color: #667eea;
}

/* Sections */
section {
    padding: 3rem 10%;
}

.section-header {
    max-width: 100%;
    /* Full screen row width */
    margin-bottom: 2rem;
}

.section-header p {
    max-width: 100%;
}

.subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Services - Technical Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

/* About Section */
.about {
    display: block;
    /* Removed flex */
    background: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    /* Clearfix */
}

.about-img {
    float: left;
    /* Enable wrapping */
    width: 280px;
    margin-right: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-card p {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 10% 2rem;
    font-size: 0.85rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
}

footer h4 {
    color: white;
    margin-bottom: 1.25rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .about {
        flex-direction: column;
    }

    .footer-top {
        flex-wrap: wrap;
    }

    .footer-col {
        flex: 1 1 200px !important;
    }
}

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

    h1 {
        font-size: 2.25rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}

/* View Toggle Styles */
.view-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    gap: 0.75rem;
}

.view-btn {
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-btn:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
}

.view-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Professional Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.professional-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.professional-table th {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.professional-table td {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--dark);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.professional-table tr:hover td {
    background: #f8faff;
}

.professional-table tr:last-child td {
    border-bottom: none;
}

.table-title {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.table-title:hover {
    color: var(--primary-dark);
}

.badge-row {
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-blue {
    background: #eff6ff;
    color: #2563eb;
}

.badge-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

/* Grid vs Hidden Logic */
.event-view-container.hidden {
    display: none;
}


/* Event Card Grid */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.event-card-header {
    padding: 1rem 1rem 0.75rem;
    flex-grow: 1;
}

.event-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-item i {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
}

.event-card-footer {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-country {
    background: #eff6ff;
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.view-link {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-link i {
    transition: var(--transition);
}

.event-card:hover .view-link i {
    transform: translateX(4px);
}