* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #134B70;
    --secondary-color: #3A4A55;
    --accent-color: #436378;
    --text-dark: #1E1E1E;
    --text-light: #2B2929;
    --white: #FFFFFF;
    --yellow-accent: #DBC42D;
    --form-bg: #EFF2F4;
    --overlay: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    background: var(--white);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 82px;
}

/* Hero Section */
.hero-contact {
    position: relative;
    height: 628px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kaabaZoom 60s ease-in-out infinite alternate;
}

@keyframes kaabaZoom {
    0% {
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
    20% {
        transform: scale(1.05) translateY(-1%);
        filter: brightness(1.05);
    }
    40% {
        transform: scale(1.1) translateY(1%);
        filter: brightness(1.1);
    }
    60% {
        transform: scale(1.08) translateY(-0.5%);
        filter: brightness(1.05);
    }
    80% {
        transform: scale(1.12) translateY(0.5%);
        filter: brightness(1.08);
    }
    100% {
        transform: scale(1.06) translateY(0);
        filter: brightness(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 2;
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 100;
    animation: navSlideDown 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.5s ease;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-150%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 80px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

.cta-button {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.cta-button.active {
    background: var(--secondary-color);
    border-color: var(--white);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Hero Content */
.hero-content-contact {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 200px 120px;
}

.hero-description {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    text-align: right;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
    animation: descriptionFade 1.5s ease-out;
    max-width: 976px;
}

@keyframes descriptionFade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Booking Section */
.booking-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.form-container {
    position: relative;
    max-width: 1049px;
    margin: 0 auto;
    background: var(--form-bg);
    border-radius: 20px;
    padding: 60px 58px;
    overflow: hidden;
    animation: formSlideUp 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

@keyframes formSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-19.404deg);
    width: 1315px;
    height: 495px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.form-background-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-content {
    position: relative;
    z-index: 1;
    max-width: 933px;
    margin: 0 auto;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 32px;
    animation: titleBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes titleBounce {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form Styles */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    animation: inputSlide 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes inputSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-input,
.form-select {
    width: 100%;
    height: 62px;
    padding: 10px 20px;
    border: 0.5px solid var(--text-dark);
    border-radius: 10px;
    background: transparent;
    font-size: 16px;
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    text-align: right;
    transition: all 0.3s ease;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 75, 112, 0.1);
    transform: translateY(-2px);
}

.form-input.optional {
    border-color: var(--text-light);
    color: var(--text-light);
}

.form-input.with-country {
    padding-left: 120px;
}

/* Country Selector */
.country-selector {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 19px;
    padding: 10px;
    border-right: 0.5px solid var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-selector:hover {
    transform: translateY(-50%) scale(1.1);
}

.flag-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.dropdown-arrow {
    width: 16px;
    height: 10px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.form-group:hover .dropdown-arrow {
    transform: rotate(90deg) translateX(3px);
}

/* Select Arrow */
.select-arrow {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: 18px;
    height: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.form-group:hover .select-arrow {
    transform: translateY(-50%) rotate(90deg) translateX(3px);
}

/* Submit Button */
.submit-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    margin: 18px auto 0;
    max-width: 540px;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(19, 75, 112, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(19, 75, 112, 0);
    }
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-button:hover::before {
    width: 600px;
    height: 600px;
}

.submit-button:hover {
    background: var(--accent-color);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(19, 75, 112, 0.3);
}

.submit-button:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    position: relative;
    padding: 80px 0 30px;
    color: var(--white);
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.footer-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(67, 99, 120, 0.85);
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 0.5px solid var(--white);
}

.footer-logo {
    height: 110px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100%;
    object-fit: contain;
}

.footer-slogan {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 24px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #D9D9D9;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--white);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-links img {
    width: 28px;
    height: 28px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-phones {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}

.contact-item img {
    width: 24px;
    height: 24px;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 34px;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(10px);
}

.newsletter h3 {
    margin-bottom: 56px;
}

.newsletter-form {
    display: flex;
    border: 0.5px solid #D9D9D9;
    border-radius: 20px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 24px;
    color: var(--white);
    font-size: 20px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--white);
}

.newsletter-form button {
    background: var(--yellow-accent);
    border: none;
    padding: 15px 30px;
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-contact {
        height: 400px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--primary-color);
        flex-direction: column;
        padding: 120px 20px 40px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .cta-button {
        display: none;
    }
    
    .hero-description {
        font-size: 20px;
        padding: 0 20px 60px;
        display: none;
    }
    
    .form-container {
        padding: 40px 24px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-input.with-country {
        padding-left: 100px;
    }
    
    .submit-button {
        font-size: 20px;
    }
}
