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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1e2b3c;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: #0a1d2e;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    color: #fff;
}

nav ul li a:hover {
    color: #a0c0e0;
}

.hero {
    position: relative;
    padding: 140px 0;
    background: linear-gradient(135deg, #f5f9ff, #d0e0f0);
    overflow: hidden;
    text-align: left;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.line {
    position: absolute;
    height: 2px;
    background: rgba(10, 29, 46, 0.15);
    box-shadow: 0 0 15px rgba(10, 29, 46, 0.2);
    transform: rotate(-30deg);
    animation: movePulse linear infinite;
}

.line:nth-child(1) {
    top: 5%;
    left: -80%;
    width: 250%;
    height: 3px;
    background: repeating-linear-gradient(90deg, #0a1d2e, #0a1d2e 15px, transparent 15px, transparent 30px);
    animation-duration: 28s;
    opacity: 0.2;
}

.line:nth-child(2) {
    top: 15%;
    left: -50%;
    width: 210%;
    height: 1px;
    background: rgba(10, 29, 46, 0.2);
    animation-duration: 32s;
    animation-delay: -4s;
}

.line:nth-child(3) {
    top: 25%;
    left: -90%;
    width: 280%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #0a1d2e, #0a1d2e 10px, transparent 10px, transparent 25px);
    animation-duration: 24s;
    animation-delay: -6s;
    opacity: 0.25;
}

.line:nth-child(4) {
    top: 35%;
    left: -60%;
    width: 230%;
    height: 2px;
    background: rgba(10, 29, 46, 0.18);
    animation-duration: 35s;
    animation-delay: -2s;
}

.line:nth-child(5) {
    top: 45%;
    left: -80%;
    width: 260%;
    height: 3px;
    background: repeating-linear-gradient(90deg, #0a1d2e, #0a1d2e 20px, transparent 20px, transparent 40px);
    animation-duration: 26s;
    animation-delay: -8s;
    opacity: 0.22;
}

.line:nth-child(6) {
    top: 55%;
    left: -40%;
    width: 190%;
    height: 1.5px;
    background: rgba(10, 29, 46, 0.15);
    animation-duration: 30s;
    animation-delay: -5s;
}

.line:nth-child(7) {
    top: 65%;
    left: -100%;
    width: 320%;
    height: 5px;
    background: repeating-linear-gradient(90deg, #0a1d2e, #0a1d2e 8px, transparent 8px, transparent 18px);
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.3;
}

.line:nth-child(8) {
    top: 75%;
    left: -55%;
    width: 220%;
    height: 2px;
    background: rgba(10, 29, 46, 0.17);
    animation-duration: 27s;
    animation-delay: -3s;
}

.line:nth-child(9) {
    top: 85%;
    left: -75%;
    width: 240%;
    height: 3px;
    background: repeating-linear-gradient(90deg, #0a1d2e, #0a1d2e 12px, transparent 12px, transparent 28px);
    animation-duration: 25s;
    animation-delay: -7s;
    opacity: 0.2;
}

.line:nth-child(10) {
    top: 95%;
    left: -45%;
    width: 200%;
    height: 1px;
    background: rgba(10, 29, 46, 0.12);
    animation-duration: 33s;
    animation-delay: -1s;
}

.line.extra-left:nth-child(11) {
    top: 12%;
    left: -150%;
    width: 380%;
    height: 2px;
    background: rgba(10, 29, 46, 0.1);
    animation-duration: 40s;
    animation-delay: -12s;
    opacity: 0.2;
}

.line.extra-left:nth-child(12) {
    top: 40%;
    left: -180%;
    width: 420%;
    height: 3px;
    background: repeating-linear-gradient(90deg, #0a1d2e, #0a1d2e 25px, transparent 25px, transparent 50px);
    animation-duration: 45s;
    animation-delay: -18s;
    opacity: 0.15;
}

.line.extra-left:nth-child(13) {
    top: 78%;
    left: -120%;
    width: 350%;
    height: 1.5px;
    background: rgba(10, 29, 46, 0.08);
    animation-duration: 38s;
    animation-delay: -6s;
    opacity: 0.12;
}

@keyframes movePulse {
    0% {
        transform: rotate(-30deg) translateX(-40%);
        opacity: 0.1;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        transform: rotate(-30deg) translateX(0%);
        opacity: 0.5;
    }
    75% {
        opacity: 0.2;
    }
    100% {
        transform: rotate(-30deg) translateX(40%);
        opacity: 0.1;
    }
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0a1d2e;
}

.hero-text p {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.services {
    padding: 100px 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #0a1d2e;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: #f9fbfd;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(10, 29, 46, 0.05);
    text-align: center;
}

.service-item i {
    font-size: 2.5rem;
    color: #0a1d2e;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0a1d2e;
    line-height: 1.4;
}

.service-item p {
    color: #3a4a5a;
    font-size: 0.95rem;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
}

.commitment {
    padding: 100px 0;
    background: #f5f9ff;
}

.commitment h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #0a1d2e;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.commitment-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(10, 29, 46, 0.05);
    text-align: center;
}

.commitment-item i {
    font-size: 2.5rem;
    color: #0a1d2e;
    margin-bottom: 1rem;
}

.commitment-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0a1d2e;
}

.commitment-item p {
    color: #3a4a5a;
    font-size: 0.95rem;
}

.commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
}

.features {
    padding: 100px 0;
    background: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #0a1d2e;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #f9fbfd;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(10, 29, 46, 0.05);
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: #0a1d2e;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0a1d2e;
}

.feature-item p {
    color: #3a4a5a;
    font-size: 0.95rem;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
}

.contact {
    padding: 100px 0;
    background: #f5f9ff;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #0a1d2e;
}

.contact-details p {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #1e2b3c;
}

.contact-details a {
    color: #0a1d2e;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-details a:hover {
    border-bottom: 1px solid #0a1d2e;
}

.map {
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 3rem auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

footer {
    background: #0a1d2e;
    color: #aaa;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 700px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .services h2, .commitment h2, .features h2, .contact h2 {
        font-size: 2rem;
    }
    
    .map {
        height: 300px;
    }
}

.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f9ff, #e8edf5);
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #0a1d2e;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    color: #0a1d2e;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
}

.back-home-btn {
    display: inline-block;
    background: #0a1d2e;
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 8px 20px rgba(10, 29, 46, 0.2);
}

.back-home-btn:hover {
    background: #1a3349;
    transform: translateY(-2px);
}

.back-home-btn i {
    margin-right: 8px;
}

body.error-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.error-page .error-section {
    flex: 1;
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .container {
        width: 95%;
    }
}