/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --un-blue: #0052CC;
    --un-blue-light: #E6F0FF;
    --un-blue-dark: #003D99;
    --success: #2E7D32;
    --success-light: #E6F7EA;
    --warning: #F9A825;
    --warning-light: #FFF8E6;
    --error: #D32F2F;
    --error-light: #FEECEB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--un-blue) 0%, #6366F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--un-blue) 0%, var(--un-blue-dark) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo a {
    color: white;
    font-size: 1.75rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.025em;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-section a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.nav-section a::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;
}

.nav-section a:hover::before {
    left: 100%;
}

/* Auth section styling */
.auth-section {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.user-welcome {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    margin-right: 1rem;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-btn {
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

.nav-btn-primary {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.nav-btn-primary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* CRITICAL: Header text must ALWAYS be white - HIGHEST PRIORITY */
header,
header *,
header a,
header a:link,
header a:visited,
header a:hover,
header a:active,
header .logo a,
header .nav-section a,
header .auth-section a,
header .user-welcome,
header .nav-btn {
    color: white !important;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--un-blue-light) 100%);
    margin: -2rem -1rem 3rem -1rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 82, 204, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--un-blue) 0%, var(--un-blue-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.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;
}

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

.btn-outline {
    background: transparent;
    color: var(--un-blue);
    border: 2px solid var(--un-blue);
}

.btn-outline:hover {
    background: var(--un-blue);
    color: white;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--un-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Grid Layouts */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.work-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--un-blue) 0%, #6366F1 100%);
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.work-item h3 {
    color: var(--un-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.work-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid;
    font-weight: 500;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success);
    border-color: #A7F3D0;
}

.alert-error {
    background-color: var(--error-light);
    color: var(--error);
    border-color: #FECACA;
}

.alert-warning {
    background-color: var(--warning-light);
    color: #92400E;
    border-color: #FDE68A;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--un-blue) 0%, var(--un-blue-dark) 100%);
    color: white;
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* CRITICAL: Footer text must ALWAYS be white - HIGHEST PRIORITY */
footer,
footer *,
footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active,
footer h3,
footer p,
footer .footer-section a,
footer .footer-section p,
footer .footer-section h3,
footer .footer-bottom p,
footer .footer-bottom,
.footer-bottom,
.footer-bottom p,
.footer-bottom * {
    color: white !important;
}

/* ULTRA-SPECIFIC: Target the copyright line specifically */
html body footer .footer-bottom,
html body footer .footer-bottom p,
html body footer .footer-bottom *,
html body .footer-bottom,
html body .footer-bottom p,
html body .footer-bottom * {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--un-blue) 0%, var(--un-blue-dark) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-section:last-child {
        border-bottom: none;
    }
    
    .nav-section a {
        padding: 1rem 0;
        font-size: 1rem;
        border-radius: 0;
    }
    
    .auth-section {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 1rem;
    }
    
    .user-welcome {
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 1rem;
    }
    
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    nav {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}
