﻿
:root {
    --primary-color: #2d2d2d;
    --hero-bg: #004aad;
    --hero-gradient: linear-gradient(135deg, #004aad 0%, #0066ff 100%);
    --dark: #2d2d2d;
    --light-gray: #f8f9fa;
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.hero-section h1 span {
    display: inline-block;
    min-width: fit-content;
}

.hero-section h1 span:first-child {
    margin-right: 0.3em;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
    background: transparent !important;
    box-shadow: none;
    padding: 1rem 0;
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease;
    backdrop-filter: blur(10px);
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
}

.navbar-brand {
    font-size: 1.6rem;
    color: white !important;
    font-weight: 800;
    letter-spacing: -1px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.navbar.scrolled .navbar-brand {
    color: var(--dark) !important;
    opacity: 1;
    visibility: visible;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45, 45, 45, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    margin: 0 1.5rem;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--dark) !important;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar.scrolled .nav-link:hover {
    color: #004aad !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.navbar.scrolled .nav-link::after {
    background: #004aad;
}

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

.hero-section {
    background: #004aad;
    color: white;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100vh;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 60, 0.55);
    z-index: 1;
}

.carousel-caption-custom {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 8%;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
    animation: slideInLeft 0.6s ease 0.1s backwards;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.05;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    animation: slideInLeft 0.7s ease 0.2s backwards;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.text-accent {
    color: #5bc0ff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 1.2rem;
    animation: slideInLeft 0.7s ease 0.3s backwards;
}

.hero-intro {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2.2rem;
    animation: slideInLeft 0.7s ease 0.4s backwards;
}

.hero-buttons {
    animation: slideInLeft 0.7s ease 0.5s backwards;
}

.carousel-indicators {
    margin-bottom: 2.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: white;
    width: 30px;
    border-radius: 5px;
}

.hero-section h1 {
    font-size: 5rem;
    line-height: 1.05;
    letter-spacing: 0px;
    font-weight: 900;
    color: white;
    animation: slideInLeft 0.8s ease 0.1s backwards;
    margin-bottom: 1.5rem;
}

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

.hero-section .lead {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    animation: slideInLeft 0.8s ease 0.2s backwards;
    margin-bottom: 2rem;
}

.welcome-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.8;
    animation: slideInLeft 0.8s ease 0.4s backwards;
}

.btn-light {
    background: white;
    color: #004aad;
    padding: 0.95rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid transparent;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #0066cc;
    border-color: #0066cc;
}

.btn-outline-light {
    background: transparent;
    color: white;
    padding: 0.95rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #004aad;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
    display: block;
    padding-bottom: 16px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #004aad;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--dark);
}

h4 {
    font-size: 1.3rem;
    font-weight: 700;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
}

.text-muted {
    color: #777 !important;
}

section {
    padding: 80px 0;
}

.bg-light {
    background: #f9fafb !important;
}

.bg-white {
    background-color: white !important;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }
.card:nth-child(5) { transition-delay: 0.5s; }
.card:nth-child(6) { transition-delay: 0.6s; }

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 74, 173, 0.15);
}

.card-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.card-title {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card i {
    color: #004aad;
    transition: all 0.4s ease;
    margin-bottom: 1rem;
}

.card:hover i {
    transform: scale(1.15);
}

.project-item {
    margin-bottom: 3rem;
}

.project-image {
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-item:hover .project-image img {
    transform: scale(1.15) rotate(3deg);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

a {
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hero-bg) !important;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

footer {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 3rem 0 1.5rem;
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #004aad;
}

footer h3 {
    color: white;
    font-size: 1.8rem;
}

footer h5 {
    color: white;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

footer a:hover {
    color: #004aad;
    transform: translateX(5px);
    display: inline-block;
}

footer .social-links a {
    color: white;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: #004aad;
    transform: translateY(-5px);
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.is-invalid-custom {
    border: 1.5px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.13) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.is-valid-custom {
    border: 1.5px solid #198754 !important;
    background-color: #f5fdf8 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.invalid-feedback-custom {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: feedbackIn 0.25s ease forwards;
}

.invalid-feedback-custom::before {
    content: '⚠';
    font-size: 0.85rem;
}

@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shakeField {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-7px); }
    30%       { transform: translateX(7px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    75%       { transform: translateX(-2px); }
    90%       { transform: translateX(2px); }
}

.shake-anim {
    animation: shakeField 0.45s cubic-bezier(.36,.07,.19,.97);
}

.slide-in-contact {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-contact[data-direction="left"] {
    transform: translateX(-60px);
}

.slide-in-contact[data-direction="right"] {
    transform: translateX(60px);
}

.slide-in-contact.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-contact[data-direction="right"].visible {
    transition-delay: 0.15s;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 991px) {
    .navbar-brand {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .navbar-brand img {
        height: 50px !important;
    }
    .navbar-toggler {
        margin-right: 4px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-intro {
        display: none;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-link {
        margin: 0.5rem 0 !important;
    }

    .card-img-top {
        height: 200px;
    }

    section {
        padding: 50px 0;
    }

    .carousel-caption-custom {
        padding: 0 5%;
    }

    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    .hero-buttons .btn {
        margin-right: 0 !important;
        flex: 1 1 auto;
        font-size: 0.82rem;
        padding: 0.65rem 1rem;
        min-width: 120px;
        text-align: center;
    }

    footer .row > div {
        text-align: center;
    }
    footer .list-unstyled li {
        justify-content: center;
    }
    footer .d-flex.flex-column p {
        text-align: center;
    }

    .footer-copyright p {
        text-align: center;
        font-size: 0.8rem;
    }

    .ratio.ratio-21x9 {
        --bs-aspect-ratio: 56.25%;
    }
}