/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #c084fc;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: #ffffff;
    margin: 2px 0;
    transition: 0.3s;
}

.nav-mobile {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.nav-mobile.active {
    display: block;
}

.nav-link-mobile {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link-mobile:hover {
    color: #c084fc;
}

/* Main Content */
.main-content {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(45deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto;
}

/* Cards Section */
.cards-section {
    margin-bottom: 4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* 3D Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 24rem;
    perspective: 1000px;
    animation: fadeInUp 0.6s ease-out forwards;
}

.flip-card:nth-child(1) {
    animation-delay: 0.1s;
}

.flip-card:nth-child(2) {
    animation-delay: 0.2s;
}

.flip-card:nth-child(3) {
    animation-delay: 0.3s;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flip-card-back {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    transform: rotateY(180deg);
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-content-back {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.profile-image {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid #a855f7;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-small {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 4px solid #ffffff;
}

.profile-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.member-domain {
    font-size: 1.125rem;
    color: #c084fc;
}

.member-name-back {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.member-domain-back {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.view-profile-btn {
    background: #ffffff;
    color: #9333ea;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-profile-btn:hover {
    background: #f3e8ff;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.view-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.view-profile-btn:hover::before {
    left: 100%;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25d366;
    color: #ffffff;
    border: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.company-info {
    grid-column: span 2;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 24rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ec4899;
}

.footer-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #d1d5db;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.contact-item svg {
    margin-right: 0.75rem;
    color: #a855f7;
    flex-shrink: 0;
}

.contact-item a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #c084fc;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #c084fc;
}

/* Share Section */
.share-section {
    display: flex;
    flex-direction: column;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #9333ea, #ec4899);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2rem;
    z-index: 2000;
    transition: all 0.3s ease;
    opacity: 0;
    min-width: 320px;
    max-width: 90vw;
    margin-top: 30%;
    
}

.share-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.share-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.share-modal-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.close-modal:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.share-option:hover {
    border-color: #9333ea;
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.share-option svg {
    color: #6b7280;
    transition: color 0.3s ease;
}

.share-option:hover svg {
    color: #9333ea;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7c3aed, #db2777);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .flip-card {
        height: 22rem;
    }

    .company-info {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .flip-card {
        height: 20rem;
    }

    .profile-image {
        width: 6rem;
        height: 6rem;
    }

    .profile-image-small {
        width: 5rem;
        height: 5rem;
    }

    .member-name {
        font-size: 1.25rem;
    }

    .member-domain {
        font-size: 1rem;
    }

    .whatsapp-btn {
        width: 3rem;
        height: 3rem;
        bottom: 1rem;
        right: 1rem;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-modal {
        padding: 1.5rem;
        min-width: 280px;
    }
}