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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #ffffff;
}

/* Home-style Navigation Bar */
.home-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(1, 33, 105);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.home-navbar.hidden {
    opacity: 0;
    transform: translateY(-100%);
}

/* Home Navbar Container */
.home-navbar .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Home Navbar Logo */
.home-navbar .nav-logo {
    flex-shrink: 0;
}

.home-navbar .logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.home-navbar .logo-link:hover {
    transform: scale(1.05);
}

.home-navbar .nav-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.home-navbar .logo-link:hover .nav-logo-img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Home Navigation Links */
.home-navbar .nav-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    gap: 2rem;
}

/* Contact link specific styling */
.home-navbar .nav-link[href="#contact"] {
    position: relative;
    transition: all 0.3s ease;
}

.home-navbar .nav-link[href="#contact"]:hover {
    color: #5cc2ff;
    transform: translateY(-1px);
}

.home-navbar .nav-link[href="#contact"]:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.home-navbar .nav-links-center {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.home-navbar .nav-links-right {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.home-navbar .nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.home-navbar .nav-link:hover {
    color: #5cc2ff;
}

.home-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5cc2ff, #f7c948);
    transition: width 0.3s ease;
}

.home-navbar .nav-link:hover::after {
    width: 100%;
}

.home-navbar .nav-link-active {
    color: #5cc2ff;
}

.home-navbar .nav-link-active::after {
    width: 100%;
}

.home-navbar .nav-link-apply {
    background: linear-gradient(135deg, #5cc2ff, #f7c948);
    color: #0b2a5a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-navbar .nav-link-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(92, 194, 255, 0.3);
    color: #0b2a5a;
}

.home-navbar .nav-link-apply::after {
    display: none;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.background-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Main Content */
.main-content {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 404 Error Container */
.error-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    margin: 0 auto;
}

/* 404 Error Code */
.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 400;
    color: #333333;
    line-height: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-divider {
    width: 60px;
    height: 2px;
    background-color: #cccccc;
    margin: 0 0.5rem;
}

/* Error Title */
.error-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Error Messages */
.error-message {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.error-submessage {
    font-size: 1rem;
    color: #999999;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Back to Homepage Button */
.back-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    border: 2px solid #dddddd;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.back-button:hover {
    border-color: #cccccc;
    background-color: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .home-navbar .nav-container {
        padding: 0 1rem;
    }
    
    .home-navbar .nav-navigation {
        display: none; /* Hide navigation on mobile for now */
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-submessage {
        font-size: 0.9rem;
    }
    
    .error-divider {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .home-navbar .nav-container {
        padding: 0 0.5rem;
    }
    
    .home-navbar .nav-logo-img {
        height: 28px;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.25rem;
    }
    
    .error-container {
        padding: 1rem;
    }
    
    .error-divider {
        width: 30px;
    }
}
