.hero-gradient {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #c53030;
    transition: width 0.3s ease;
}

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

header {
    position: relative;
}

@media (max-width: 767px) {
    header {
        background-image: url('../images/Logo2.jpg');
        background-size: cover;
        background-position: -50px top;
        background-repeat: no-repeat;
        min-height: 130px;
        background-color: transparent;
    }
    
    header .container {
        background: transparent;
    }
    
    header nav {
        position: relative;
        z-index: 10;
        background: transparent;
    }
}

@media (min-width: 768px) {
    header {
        background-color: white;
    }
}

header nav {
    align-items: center;
    max-height: 90px;
}

@media (min-width: 768px) {
    header {
        background-image: none;
    }
    
    header nav {
        max-height: 120px;
    }
}

@media (min-width: 1024px) {
    header nav {
        max-height: 150px;
    }
}

#form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #c53030;
}

#mobile-menu-button {
    cursor: pointer;
    z-index: 100;
    position: relative;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (max-width: 767px) {
    #mobile-menu-button {
        margin-top: 24px;
    }
}

@media (min-width: 1024px) {
    header nav > div:last-child {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    header nav > div:last-child a {
        flex-shrink: 0;
    }
}

#mobile-menu-button:hover {
    opacity: 0.8;
}

#mobile-menu-button:active {
    transform: scale(0.95);
}

#mobile-menu {
    z-index: 99;
    position: relative;
}

header {
    transition: transform 0.3s ease;
    will-change: transform;
}

.container {
    overflow-x: hidden;
}

header .container {
    overflow: visible;
}

body {
    overflow-x: hidden;
}

h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

header img {
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
    height: auto;
}

@media (min-width: 768px) {
    header img {
        width: 350px;
        max-width: none;
    }
}

@media (min-width: 1024px) {
    header img {
        width: 450px;
    }
}

@media (min-width: 1280px) {
    header img {
        width: 550px;
    }
}

@media (min-width: 1536px) {
    header img {
        width: 650px;
    }
}

@media (min-width: 1024px) and (max-width: 1535px) {
    header nav > div:last-child {
        flex-wrap: nowrap;
    }
    
    header nav > div:last-child a {
        flex-shrink: 0;
        white-space: nowrap;
    }
}