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

html, body {
    overflow-x: hidden;
    width: 100%;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

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

.hero, .hero-section, .hero-slider {
    margin-top: 85px;
}

.hero-slider {
    position: relative;
    height: calc(100vh - 85px);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s 0s;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero {
    height: calc(100vh - 85px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-content p,
.hero-content .hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-content .btnbluemain {
    opacity: 0;
    animation: fadeInOnly 1s ease 1s forwards;
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes fadeInUpBounce {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.btnbluemain, .btnblue {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btnbluemain:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.hero-content .btnbluemain:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btnblue:hover {
    transform: none;
    filter: brightness(1.1);
}

.pill-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    background: white;
}

.category-pill, .filter-btn, .tab-button {
    padding: 12px 28px;
    border-radius: 25px;
    border: 2px solid #1498D5;
    background: white;
    color: #1498D5;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.category-pill::before, .filter-btn::before, .tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-pill:hover::before, .filter-btn:hover::before, .tab-button:hover::before {
    opacity: 1;
}

.category-pill:hover, .filter-btn:hover, .tab-button:hover {
    border-color: #1498D5;
    color: white;
}

.category-pill span, .filter-btn span, .tab-button span {
    position: relative;
    z-index: 1;
}

.category-pill.active, .filter-btn.active, .tab-button.active {
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
    color: white;
    border: 2px solid #1498D5;
}

.intro-section {
    background-color: #f8f9fa;
    text-align: center;
    padding: 80px 20px;
}

.intro-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 300;
    text-transform: uppercase;
}

.intro-section p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    will-change: opacity;
}

.projects.animate {
    animation: fadeIn 0.8s ease forwards;
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: #333;
    opacity: 0;
    font-weight: 300;
    text-transform: uppercase;
}

.section-title.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    height: 260px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.project-card.animate {
    animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.25s; }
.project-card:nth-child(3) { animation-delay: 0.4s; }
.project-card:nth-child(4) { animation-delay: 0.55s; }

.project-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
}

.project-card .project-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 152, 213, 0.97) 0%, rgba(3, 84, 162, 0.97) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    transform: translateZ(0);
}

.project-card:hover .project-content {
    opacity: 1;
}

.project-card .project-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
    transform: translateY(20px) translateZ(0);
    transition: transform 0.25s ease 0.05s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.project-card:hover .project-content h3 {
    transform: translateY(0) translateZ(0);
}

.project-card .project-content p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 14px;
    transform: translateY(20px) translateZ(0);
    transition: transform 0.25s ease 0.08s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.project-card:hover .project-content p {
    transform: translateY(0) translateZ(0);
}

.news {
    padding: 0;
    background: #e8e8e8;
}

.news .section-title {
    background: white;
    padding: 80px 0;
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.news .container {
    padding: 0;
    position: relative;
}

.news .section-title + * {
    padding: 80px 20px;
}

.news-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.news-grid {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2%;
    will-change: transform;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    flex: 0 0 32%;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.news-card.animate {
    animation: fadeInUpBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.news-card.animate:nth-child(1) { animation-delay: 0.2s; }
.news-card.animate:nth-child(2) { animation-delay: 0.35s; }
.news-card.animate:nth-child(3) { animation-delay: 0.5s; }

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 152, 213, 0.05) 0%, rgba(3, 84, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.news-card:hover::before { opacity: 1; }

.news-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #0354A2;
    transform: translateY(-4px);
}

.news-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
    position: relative;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.news-card:hover .news-image { filter: brightness(1.1); }

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.news-content {
    padding: 24px;
    background: white;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-content h3 {
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h3 { color: #0354A2; }

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.news-date {
    text-align: right;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.news-navigation {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 80px;
}

.news-navigation p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot:hover { background: #999; }
.dot.active {
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
    transform: scale(1.1);
}

.contact {
    padding: 0;
    background: #e8e8e8;
}

.contact .section-title {
    background: white;
    padding: 25px 0;
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.contact .container {
    padding: 0;
    position: relative;
}

.contact .section-title + * {
    padding: 25px 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-card {
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
    color: white;

    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 100%;

    opacity: 0;
}

.contact-card.animate {
    animation: slideInLeft 0.8s ease forwards;
}

.contact-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    text-align: center;
}

.contact-card p {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-inputs-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;

    opacity: 0;
}

.btnblue {
    align-self: flex-end;
    margin-top: 5px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    opacity: 0;
}


.contact-form-wrapper.animate .form-inputs-group,
.contact-form-wrapper.animate .btnblue {
    animation: slideInRight 0.8s ease forwards;
}

.contact-card.animate ~ .contact-form-wrapper .form-inputs-group {
    animation: slideInRight 0.8s ease forwards;
}

.contact-card.animate ~ .contact-form-wrapper .btnblue {
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.1s;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group input,
.form-group textarea {
    padding: 12px 18px;
    border: 2px solid #333;
    background: transparent;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #333; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0354A2;
}

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


footer {
    background: linear-gradient(135deg, #1498D5 0%, #0354A2 100%);
    color: white;
    padding: 0px 0 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.footer-column h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    text-align: center;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 15px 0 8px;
    color: white;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-column ul li { margin-bottom: 6px; }

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover { color: white; }

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-info i { width: 20px; font-size: 16px; }

.footer-company-info {
    text-align: center;
    margin-bottom: 10px;
}

.footer-company-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.social-icons a {
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-company-section {
    padding: 10px 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-copyright {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

@media (min-width: 1025px) {
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 40px;
        align-items: stretch;
    }

    .contact-form-wrapper,
    .contact-form {
        display: contents;
    }

    .contact-card {
        grid-column: 1;
        grid-row: 1;
        height: 100%;
    }

    .form-inputs-group {
        grid-column: 2;
        grid-row: 1;
    }

    .btnblue {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin-top: 15px;
    }
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .hero-slider { height: calc(100vh - 100px); }
    .hero-content h1 { font-size: 48px; }
    .hero-content p, .hero-content .hero-subtitle { font-size: 20px; }
    .section-title { font-size: 38px; margin-bottom: 40px; }
    .projects-grid { gap: 20px; max-width: 800px; }
    .project-card { height: 220px; }
    .project-card .project-content h3 { font-size: 22px; }
    .news-card { flex: 0 0 48%; }
    .news h2 { font-size: 38px; }
    .contact-card { padding: 25px; }
    .contact h2 { font-size: 38px; }

    .contact .section-title { padding: 20px 0; }
    .contact .section-title + * { padding: 20px 20px; }

    .contact-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .form-inputs-group, .btnblue {
        opacity: 1;
    }
    .contact-form-wrapper.animate .form-inputs-group,
    .contact-form-wrapper.animate .btnblue {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero, .hero-section, .hero-slider { margin-top: 90px; }
    .hero-slider { height: calc(100vh - 90px); }
    .hero { height: calc(100vh - 90px); }
    .hero-content h1 { font-size: 32px; margin-bottom: 15px; }
    .hero-content p, .hero-content .hero-subtitle { font-size: 16px; margin-bottom: 20px; }
    .btnbluemain, .btnblue { padding: 10px 24px; font-size: 14px; }
    .slider-btn { width: 40px; height: 40px; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .slider-dots { bottom: 20px; }
    .slider-dot { width: 10px; height: 10px; }
    .pill-container { flex-wrap: wrap; gap: 10px; padding: 30px 15px; }
    .category-pill, .filter-btn, .tab-button { padding: 10px 20px; font-size: 13px; }
    .intro-section { padding: 50px 15px; }
    .intro-section h2 { font-size: 32px; }
    .intro-section p { font-size: 14px; }
    .projects { padding: 50px 0; }
    .section-title { font-size: 28px; margin-bottom: 30px; }
    .projects-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 15px; }
    .project-card { height: 200px; }
    .project-card .project-content { padding: 20px; }
    .project-card .project-content h3 { font-size: 20px; margin-bottom: 10px; }
    .project-card .project-content p { font-size: 13px; }
    .news { padding: 50px 0; }
    .news h2 { font-size: 28px; }
    .news-carousel { padding: 0 15px; overflow: visible; }
    .news-grid { flex-direction: column; gap: 20px; transform: none !important; transition: none; }
    .news-card { flex: 0 0 100%; width: 100%; }
    .news-card:nth-child(n+4) { display: none !important; }
    .news-image { height: 180px; }
    .news-content { padding: 20px; }
    .news-content h3 { font-size: 16px; margin-bottom: 8px; }
    .contact h2 { font-size: 24px; margin-bottom: 15px; }
    .contact .section-title { padding: 15px 0; }
    .contact .section-title + * { padding: 15px 15px; }
    .contact-card { padding: 20px 15px; }
    .contact-card h3 { font-size: 20px; }
    .footer-content { grid-template-columns: 1fr; }
}
