/* ===================================
   EXTRAORDINARY CONTACT PAGE STYLES
   Mind-Blowing Animations & Unique Design
   ================================== */

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #c9a96e, #d4b878);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle-1 { 
    left: 10%; 
    animation-delay: 0s; 
    animation-duration: 12s;
}
.particle-2 { 
    left: 20%; 
    animation-delay: 2s; 
    animation-duration: 14s;
}
.particle-3 { 
    left: 30%; 
    animation-delay: 4s; 
    animation-duration: 16s;
}
.particle-4 { 
    left: 70%; 
    animation-delay: 6s; 
    animation-duration: 13s;
}
.particle-5 { 
    left: 80%; 
    animation-delay: 8s; 
    animation-duration: 15s;
}
.particle-6 { 
    left: 50%; 
    animation-delay: 10s; 
    animation-duration: 11s;
}
.particle-7 { 
    left: 60%; 
    animation-delay: 1s; 
    animation-duration: 17s;
}
.particle-8 { 
    left: 90%; 
    animation-delay: 3s; 
    animation-duration: 14s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
        transform: translateY(-10vh) rotate(180deg);
    }
    90% {
        opacity: 0.3;
    }
}

/* Contact Hero Section */
.contact-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    overflow: hidden;
}

/* Morphing Background */
.morphing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.morph-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(201, 169, 110, 0.1), rgba(212, 184, 120, 0.05));
    animation: morphing 20s infinite ease-in-out;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes morphing {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translate(50px, -30px) scale(1.2) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translate(-30px, 40px) scale(0.8) rotate(240deg);
        opacity: 0.4;
    }
}

/* Hero Background Text */
.hero-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 2;
    pointer-events: none;
    line-height: 1;
    letter-spacing: 0.2em;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(90deg);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-hero.animate .contact-letter {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.contact-letter[data-letter="1"] { transition-delay: 0.1s; }
.contact-letter[data-letter="2"] { transition-delay: 0.2s; }
.contact-letter[data-letter="3"] { transition-delay: 0.3s; }
.contact-letter[data-letter="4"] { transition-delay: 0.4s; }
.contact-letter[data-letter="5"] { transition-delay: 0.5s; }
.contact-letter[data-letter="6"] { transition-delay: 0.6s; }
.contact-letter[data-letter="7"] { transition-delay: 0.7s; }

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-headline {
    font-family: 'maginiaregular', serif;
    font-size: 4.5rem;
    font-weight: normal;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0 0 2rem 0;
    overflow: hidden;
}

.hero-headline span {
    display: block;
    transform: translateY(100px);
    opacity: 0;
    animation: slideUpFade 1s ease-out forwards;
}

.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 0.7s; }
.line-3 { 
    animation-delay: 0.9s;
    color: #c9a96e;
    font-size: 5rem;
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
    margin: 0 0 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid #c9a96e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a96e;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: #c9a96e;
    color: white;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #c9a96e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a96e;
    font-size: 1.5rem;
    opacity: 0;
    animation: floatIn 2s ease-out forwards;
    backdrop-filter: blur(10px);
}

.element-1 {
    top: 20%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 8s;
    animation-name: floatElement1;
    animation-iteration-count: infinite;
}

.element-2 {
    top: 30%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 10s;
    animation-name: floatElement2;
    animation-iteration-count: infinite;
}

.element-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
    animation-name: floatElement3;
    animation-iteration-count: infinite;
}

.element-4 {
    bottom: 35%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 9s;
    animation-name: floatElement4;
    animation-iteration-count: infinite;
}

@keyframes floatIn {
    to { opacity: 0.7; }
}

@keyframes floatElement1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -15px) rotate(180deg); }
}

@keyframes floatElement2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 20px) rotate(-180deg); }
}

@keyframes floatElement3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(25px, 10px) rotate(270deg); }
}

@keyframes floatElement4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -25px) rotate(-270deg); }
}

/* Contact Form Section */
.contact-form-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.form-header {
    text-align: center;
    margin-bottom: 4rem;
}

.form-title {
    font-family: 'maginiaregular', serif;
    font-size: 3.5rem;
    font-weight: normal;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.form-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Luxury Form */
.luxury-form {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.luxury-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.1), transparent);
    transition: left 0.8s;
}

.luxury-form:hover::before {
    left: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

/* Floating Labels */
.floating-label {
    position: relative;
}

.floating-label input {
    width: 100%;
    padding: 1rem 0 1rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    outline: none;
    transition: all 0.3s ease;
}

.floating-label label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.floating-label input:focus,
.floating-label.focused input {
    border-bottom-color: #c9a96e;
}

.floating-label input:focus + label,
.floating-label.focused label {
    transform: translateY(-1.5rem) scale(0.8);
    color: #c9a96e;
    font-weight: 500;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a96e, #d4b878);
    transition: width 0.4s ease;
}

.floating-label input:focus ~ .form-line {
    width: 100%;
}

/* Select Groups */
.select-group {
    position: relative;
}

.select-group select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-group select:focus {
    border-bottom-color: #c9a96e;
}

.select-group label {
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #c9a96e;
    font-weight: 500;
    transform: scale(0.8);
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.select-group select:focus ~ .select-arrow {
    color: #c9a96e;
    transform: rotate(180deg);
}

/* Textarea Group */
.textarea-group {
    position: relative;
}

.textarea-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.textarea-group textarea:focus {
    border-bottom-color: #c9a96e;
}

.textarea-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.textarea-group textarea:focus + label,
.textarea-group.focused label {
    transform: translateY(-1.5rem) scale(0.8);
    color: #c9a96e;
    font-weight: 500;
}

/* Luxury Submit Button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.luxury-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, #c9a96e, #d4b878);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

.luxury-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(201, 169, 110, 0.4);
}

.luxury-submit-btn:active {
    transform: translateY(-1px);
}

.btn-ripple {
    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: all 0.6s ease;
}

.luxury-submit-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.luxury-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Contact Info Section */
.contact-info-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(201,169,110,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(201, 169, 110, 0.1), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 169, 110, 0.5);
    box-shadow: 0 30px 60px rgba(201, 169, 110, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #c9a96e, #d4b878);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.8rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.info-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-card h3 {
    font-family: 'maginiaregular', serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: white;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 2;
}

.info-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 2;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c9a96e;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.info-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.info-link:hover {
    color: #d4b878;
}

.info-link:hover::after {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }
    
    .line-3 {
        font-size: 3.5rem !important;
    }
    
    .hero-background-text {
        font-size: 8rem;
        letter-spacing: 0.1em;
    }
    
    .form-title {
        font-size: 2.5rem;
    }
    
    .luxury-form {
        padding: 2rem;
    }
    
    .float-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.2rem;
    }
    
    .line-3 {
        font-size: 2.8rem !important;
    }
    
    .hero-background-text {
        font-size: 5rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .luxury-form {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .form-container {
        padding: 0 1rem;
    }
    
    .info-container {
        padding: 0 1rem;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
    }
    
    .floating-elements {
        display: none;
    }
}

/* Navigation colors - Override to black for contact page */
.contact-page .nav-cls-1,
.contact-page .nav-cls-2 {
    stroke: #1a1a1a !important;
}

.contact-page .modern-hamburger .line {
    background: #1a1a1a !important;
}

/* Navigation colors handled by adaptive system in main.js */

/* Phone Number Field Fix */
.floating-label input[type="tel"] {
    width: 100%;
    padding: 1rem 0 1rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    outline: none;
    transition: all 0.3s ease;
}

.floating-label input[type="tel"]:focus,
.floating-label.focused input[type="tel"] {
    border-bottom-color: #c9a96e;
}

.floating-label input[type="tel"]:focus + label,
.floating-label.focused label {
    transform: translateY(-1.5rem) scale(0.8);
    color: #c9a96e;
    font-weight: 500;
}

/* Ensure phone field label behaves correctly */
.floating-label input[type="tel"] + label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* Fade In Animation */
@keyframes fadeIn {
    to { opacity: 1; }
}
