/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header and Navigation */
header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 40px;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    margin-bottom: 20px;
    text-align: center;
}

.logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.3s ease;
}

.logo img:hover {
    filter: brightness(1.3) contrast(1.3);
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

/* Main Content - Business Card Style */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Business Card Container - Simple Approach */
.business-card-container {
    max-width: 500px;
    width: 100%;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
    height: 400px;
    transition: transform 0.2s ease;
}

.business-card-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}



.business-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 40px 50px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(212, 175, 55, 0.1),
                inset 0 1px 0 rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.card-front {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.card-back {
    opacity: 0;
    visibility: hidden;
    z-index: 5;
    padding: 30px 25px;
}

/* Flipped state - specific selectors */
.business-card-container.flipped .card-front {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 5 !important;
}

.business-card-container.flipped .card-back {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

/* Ensure back card has same border as front after laser animation */
.business-card-container.flipped .card-back {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* Add laser border effect to back card when flipped */
.business-card-container.flipped .card-back::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
    z-index: -1;
}





/* Laser border animation */
.card-front::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    border: 2px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.3);
    animation: laserBorderEngraving 4s linear 1s 1 forwards;
    pointer-events: none;
}

@keyframes laserBorderEngraving {
    0% {
        border-top-color: rgba(212, 175, 55, 0.3);
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    25% {
        border-top-color: rgba(212, 175, 55, 0.3);
        border-right-color: rgba(212, 175, 55, 0.3);
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    50% {
        border-top-color: rgba(212, 175, 55, 0.3);
        border-right-color: rgba(212, 175, 55, 0.3);
        border-bottom-color: rgba(212, 175, 55, 0.3);
        border-left-color: transparent;
    }
    75% {
        border-top-color: rgba(212, 175, 55, 0.3);
        border-right-color: rgba(212, 175, 55, 0.3);
        border-bottom-color: rgba(212, 175, 55, 0.3);
        border-left-color: rgba(212, 175, 55, 0.3);
    }
    100% {
        border-top-color: rgba(212, 175, 55, 0.3);
        border-right-color: rgba(212, 175, 55, 0.3);
        border-bottom-color: rgba(212, 175, 55, 0.3);
        border-left-color: rgba(212, 175, 55, 0.3);
    }
}

.business-card .logo {
    margin-bottom: 30px;
    text-align: center;
}

.business-card .logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.business-card .logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Card Back Styling */
.profile-photo {
    margin-bottom: 20px;
    position: relative;
}

.profile-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.profile-photo img:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
}

.placeholder-icon {
    font-size: 40px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.profile-info h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.credentials {
    text-align: left;
    max-width: 350px;
}

.credentials p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 12px;
    position: relative;
}

.credentials p:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: rgba(212, 175, 55, 0.7);
}

.contact-hint {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-hint small {
    color: rgba(212, 175, 55, 0.9);
    font-size: 0.8rem;
    font-style: italic;
}

/* Flip Icon - Circular Arrow */
.flip-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 100;
}

.flip-icon::before {
    content: '↻';
    font-size: 18px;
    color: rgba(212, 175, 55, 0.7);
    transition: all 0.3s ease;
    font-weight: bold;
}

.business-card-container:hover .flip-icon {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.business-card-container:hover .flip-icon::before {
    color: rgba(212, 175, 55, 1);
    transform: rotate(180deg);
}

/* Card Back Actions */
.card-back-actions {
    margin-top: 15px;
    margin-bottom: 10px;
    position: relative;
    z-index: 150;
}

.card-back-actions .legal-button {
    background: rgba(212, 175, 55, 0.1);
    color: rgba(212, 175, 55, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 300;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 200;
}

.card-back-actions .legal-button:hover {
    background: rgba(212, 175, 55, 0.15);
    color: rgba(212, 175, 55, 1);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

/* Alternative logo styles - uncomment the one that works best with your logo */

/* For logos with white background - removes white and makes it transparent */
/* 
.business-card .logo img {
    filter: brightness(1.2) contrast(1.1) invert(1);
    mix-blend-mode: screen;
}
*/

/* For dark logos on light background - inverts and blends */
/* 
.business-card .logo img {
    filter: invert(1) brightness(0.9);
    mix-blend-mode: normal;
}
*/

/* For logos that should maintain original colors but blend edges */
/* 
.business-card .logo img {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    mix-blend-mode: normal;
}
*/

/* For completely transparent background effect */
/* 
.business-card .logo img {
    background: transparent;
    filter: brightness(1.1) contrast(1.2);
    mix-blend-mode: lighten;
}
*/

.business-card h1 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.95);
}

.business-card .tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.5px;
    text-align: right;
    margin-right: -20px;
    margin-top: -10px;
}

.business-card .subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

.business-card .description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Flag Language Switcher */
.flag-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flag-button {
    width: 32px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: transparent;
    opacity: 0.6;
}

.flag-button:hover,
.flag-button.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Contact Button - Same style as Legal Buttons */
.contact-button {
    background: rgba(212, 175, 55, 0.1);
    color: rgba(212, 175, 55, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.contact-button:hover {
    background: rgba(212, 175, 55, 0.15);
    color: rgba(212, 175, 55, 1);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    color: #ffffff;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(212, 175, 55, 0.1),
                inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.contact-form button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Form messages */
.message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 300;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 100;
}

footer .container {
    text-align: center;
    padding: 10px 20px;
}

footer p {
    margin: 2px 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 5px;
}

.legal-button {
    background: rgba(212, 175, 55, 0.1);
    color: rgba(212, 175, 55, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.legal-button:hover {
    background: rgba(212, 175, 55, 0.15);
    color: rgba(212, 175, 55, 1);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

.legal-content {
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
}

.legal-content h3 {
    color: rgba(212, 175, 55, 0.9);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    margin-bottom: 8px;
}

.legal-content p {
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Contact Notification */
.contact-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 300;
    min-width: 300px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease;
}

.contact-notification.success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.contact-notification.error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.close-notification {
    position: absolute;
    top: 5px;
    right: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.close-notification:hover {
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    /* Main Content Mobile Centering */
    .main-content {
        padding: 20px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    /* Mobile Card Container - Fix Centering */
    .business-card-container {
        max-width: 90%;
        width: 90%;
        margin: 0 auto;
        height: 350px;
        perspective: 1000px;
        position: relative;
        transform: none;
        left: auto;
        right: auto;
    }
    
    .business-card {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .business-card h1 {
        font-size: 2rem;
    }
    
    .business-card .logo img {
        max-width: 150px;
        max-height: 75px;
    }
    
    .card-front, .card-back {
        padding: 20px 15px;
    }
    
    /* Mobile Card Back Layout Adjustments */
    .card-back {
        padding: 15px 15px 45px 15px; /* Extra bottom padding for flip hint */
        gap: 8px;
    }
    
    .profile-photo {
        margin-bottom: 10px;
    }
    
    .profile-photo img {
        width: 80px;
        height: 80px;
    }
    
    .photo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .placeholder-icon {
        font-size: 24px;
    }
    
    .profile-info h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .credentials {
        max-width: 100%;
        margin-bottom: 8px;
    }
    
    .credentials p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    
    .card-back-actions {
        margin-top: 8px;
        margin-bottom: 5px;
    }
    
    .card-back-actions .legal-button {
        font-size: 0.65rem;
        padding: 6px 12px;
    }
    
    /* Mobile Touch Support for Flip */
    .business-card-container {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .business-card-container:active {
        transform: scale(0.98);
    }
    
    /* Override any conflicting transforms on mobile */
    @media (max-width: 768px) {
        .business-card-container:hover {
            transform: none;
        }
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
    }
    
    .credentials {
        max-width: 280px;
    }
    
    .credentials p {
        font-size: 0.8rem;
    }
    
    /* Mobile Flip Icon */
    .flip-icon {
        width: 28px;
        height: 28px;
        bottom: 10px;
        right: 10px;
    }
    
    .flip-icon::before {
        font-size: 16px;
    }
    
    .flag-button {
        width: 28px;
        height: 20px;
        font-size: 14px;
    }
    
    .contact-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .business-card-container {
        max-width: 95%;
        height: 320px;
        margin: 0 auto;
    }
    
    .card-front, .card-back {
        padding: 25px 15px;
    }
    
    /* Mobile Flip Icon for small screens */
    .flip-icon {
        width: 26px;
        height: 26px;
        bottom: 8px;
        right: 8px;
    }
    
    .flip-icon::before {
        font-size: 14px;
    }
    
    /* Ensure perfect centering on small screens */
    .business-card-container {
        position: relative;
        margin: 0 auto;
        left: auto;
        right: auto;
        transform: none;
    }
}