:root {
    /* Brand Colors */
    --color-primary: #0A3D91;
    --color-secondary: #111827;
    --color-accent: #39FF14;
    
    /* Backgrounds */
    --color-bg-main: #FFFFFF;
    --color-bg-alt: #F7F9FC;
    
    /* Text */
    --color-text-main: #1F2937;
    --color-text-muted: #6B7280;
    
    /* Links */
    --color-link: #0A3D91;
    --color-link-hover: #0B63F6;
    
    /* Borders & Shadows */
    --color-border: #E5E7EB;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Radius */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-bs-theme="dark"] {
    --color-primary: #3b82f6;
    --color-secondary: #FFFFFF;
    --color-bg-main: #111827;
    --color-bg-alt: #1F2937;
    --color-text-main: #F9FAFB;
    --color-text-muted: #9CA3AF;
    --color-border: #374151;
    --color-link: #60A5FA;
    --color-link-hover: #93C5FD;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.7;
    font-size: 17px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

footer {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1050 !important; /* Fix overlapping issues globally */
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(17, 24, 39, 0.8) !important;
}

.navbar-brand {
    font-weight: 800;
    color: var(--color-primary) !important;
    letter-spacing: -0.05em;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--color-text-main) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary) !important;
}

.nav-pills .nav-link.active, .nav-link.active {
    color: #ffffff !important;
    background-color: var(--color-primary);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image-wrap {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--color-link-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background-color: var(--color-bg-alt);
    transform: translateY(-2px);
}

/* Cards */
.custom-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.custom-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

/* Gallery Hover Effects */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}
.gallery-card img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-card:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h5, .gallery-overlay p {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-overlay h5, 
.gallery-card:hover .gallery-overlay p {
    transform: translateY(0);
}
