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

body {
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
    scroll-behavior: smooth;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

#loader {
    position: fixed;
    inset: 0;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity 0.5s ease;
}

.loader-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #1d4ed8;
    border-radius: 50%;
    animation: wave 1.2s infinite ease-in-out;
}

.dot-delay-200 { animation-delay: 0.2s; }
.dot-delay-400 { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-8px); opacity: 1; }
}

header {
    position: fixed;
    width: 100%;
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 40;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s, transform 0.3s;
}

.logo:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    animation: fadeIn 0.6s ease-out forwards;
}

.nav-link:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.nav-link:focus {
    color: #ffffff;
    transform: none;
    outline: none;
}

.nav-link.active {
    color: #3b82f6;
    transform: scale(1.05);
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.nav-menu.active {
    display: flex;
    transform: translateY(0);
}

.nav-menu li {
    padding: 8px 16px;
}

.nav-menu .nav-link {
    display: block;
    padding: 8px;
    color: #ffffff;
    animation: none;
    transition: color 0.3s, transform 0.3s, background 0.3s;
}

.nav-menu .nav-link:hover {
    color: #3b82f6;
    background: #374151;
    transform: scale(1.05);
}

.nav-menu .nav-link:focus {
    color: #ffffff;
    background: none;
    transform: none;
    outline: none;
}

.nav-menu .nav-link.active {
    color: #3b82f6;
    background: #374151;
    transform: scale(1.05);
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

#particles-js, #particles-js canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d4ed8, #15803d);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: #15803d;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    background: linear-gradient(135deg, #15803d, #22c55e);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.5);
    animation: bounce 0.3s;
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.3);
}

.cta-secondary {
    background: #1d4ed8;
}

.cta-secondary:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.5);
}

#particles-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d4ed8, #15803d);
    color: #ffffff;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0;
    padding: 16px;
    text-align: center;
}

#particles-fallback p:first-child {
    font-size: 16px;
    font-weight: 600;
}

#particles-fallback p:last-child {
    font-size: 14px;
}

.section {
    padding: 80px 16px;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1d4ed8;
    text-align: center;
    margin-bottom: 32px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.mission {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 24px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.value-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.value-item:nth-child(1) { animation-delay: 0.2s; }
.value-item:nth-child(2) { animation-delay: 0.4s; }
.value-item:nth-child(3) { animation-delay: 0.6s; }

.value-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.value-item p {
    color: #4b5563;
    font-size: 14px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.stats div {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stats div:nth-child(1) { animation-delay: 0.8s; }
.stats div:nth-child(2) { animation-delay: 1s; }

.stats strong {
    display: block;
    font-size: 36px;
    color: #1d4ed8;
}

.stats p {
    color: #4b5563;
    font-size: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.service-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border: 1px solid transparent;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(4) { animation-delay: 0.8s; }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #1d4ed8;
}

.service-icon {
    width: 40px;
    height: 40px;
    color: #1d4ed8;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.service-card p {
    color: #4b5563;
    font-size: 14px;
}

.swiper-container {
    padding: 16px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.2s; }
.portfolio-item:nth-child(2) { animation-delay: 0.4s; }
.portfolio-item:nth-child(3) { animation-delay: 0.6s; }

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.8), rgba(21, 128, 61, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 16px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 14px;
    margin-bottom: 12px;
}

.portfolio-overlay button {
    border: 1px solid #ffffff;
    background: none;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.portfolio-overlay button:hover {
    background: #15803d;
    color: #ffffff;
    transform: scale(1.05);
}

.swiper-button-next, .swiper-button-prev {
    color: #1d4ed8;
}

.swiper-pagination-bullet-active {
    background: #15803d;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }

.testimonial-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.testimonial-card p {
    font-style: italic;
    color: #4b5563;
    font-size: 14px;
}

.testimonial-card h4 {
    margin-top: 12px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

#contact input, #contact textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 8px rgba(29, 78, 216, 0.3);
}

#contact textarea {
    resize: vertical;
}

#contact button {
    background: #15803d;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

#contact button:hover {
    background: linear-gradient(135deg, #15803d, #22c55e);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.5);
    transform: scale(1.05);
    animation: bounce 0.3s;
}

#form-message {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    animation: modalPop 0.6s ease-out forwards;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #1f2937;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #1d4ed8;
}

.modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.modal-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.modal-content p {
    color: #4b5563;
    font-size: 14px;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1d4ed8;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: none;
}

#back-to-top:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

footer {
    background: #1f2937;
    color: #ffffff;
    padding: 40px 16px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-logo .logo {
    font-size: 26px;
}

.footer-contact h4, .footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: #1d4ed8;
    transition: width 0.3s;
}

.footer-link:hover::after, .footer-link:focus::after {
    width: 100%;
}

.footer-link:hover, .footer-link:focus {
    color: #1d4ed8;
    outline: none;
}

.footer-link:nth-child(1) { animation-delay: 0.2s; }
.footer-link:nth-child(2) { animation-delay: 0.4s; }
.footer-link:nth-child(3) { animation-delay: 0.6s; }

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    color: #ffffff;
    transition: color 0.3s, transform 0.3s;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.social-icon:nth-child(1) { animation-delay: 0.8s; }
.social-icon:nth-child(2) { animation-delay: 1s; }

.social-icon:hover, .social-icon:focus {
    color: #1d4ed8;
    transform: scale(1.2);
    outline: none;
}

footer p {
    font-size: 12px;
    margin-top: 24px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
        text-align: left;
    }
    .footer-logo, .footer-social {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .logo {
        font-size: 20px;
    }
    .nav-container {
        height: 56px;
    }
    .nav-menu {
        top: 56px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 15px;
    }
    .cta-button {
        padding: 12px 24px;
        font-size: 15px;
    }
    h2 {
        font-size: 32px;
    }
    .mission {
        font-size: 15px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .value-item h3 {
        font-size: 20px;
    }
    .value-item p {
        font-size: 13px;
    }
    .stats strong {
        font-size: 32px;
    }
    .stats p {
        font-size: 13px;
    }
    .service-card {
        padding: 20px;
    }
    .service-icon {
        width: 36px;
        height: 36px;
    }
    .service-card h3 {
        font-size: 20px;
    }
    .service-card p {
        font-size: 13px;
    }
    .portfolio-img {
        height: 180px;
    }
    .portfolio-overlay h3 {
        font-size: 20px;
    }
    .portfolio-overlay p {
        font-size: 13px;
    }
    .testimonial-card {
        padding: 20px;
    }
    .testimonial-img {
        width: 36px;
        height: 36px;
    }
    .testimonial-card p {
        font-size: 13px;
    }
    .testimonial-card h4 {
        font-size: 13px;
    }
    .modal-content {
        padding: 20px;
        max-width: 90%;
    }
    .modal-img {
        height: 180px;
    }
    .modal-content h3 {
        font-size: 20px;
    }
    .modal-content p {
        font-size: 13px;
    }
    #contact form {
        max-width: 100%;
    }
    #contact input, #contact textarea {
        font-size: 15px;
        padding: 10px;
    }
    #contact button {
        font-size: 15px;
        padding: 10px;
    }
    #form-message {
        font-size: 13px;
    }
    .parallax {
        background-attachment: scroll;
    }
}