* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(231, 76, 60, 0.3);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

.card-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.business-card {
    width: 380px;
    height: ;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    box-shadow: auto
        0 25px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.business-card:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(-5deg) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.2);
}

.card-front {
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(230, 126, 34, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.logo-container {
    position: relative;
    overflow: hidden;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(45deg, #e74c3c, #e67e22);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: white;
    box-shadow: 
        0 10px 20px rgba(231, 76, 60, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-image {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    object-fit: contain;
    background: white;
    padding: 8px;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.logo-container:hover .logo-icon,
.logo-container:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.logo-container:hover .shine-effect {
    left: 100%;
}

.company-name {
    color: white;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.2px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.company-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 0.6px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.contact-info {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 2;
    animation: slideInFromRight 1s ease-out 0.7s both;
}

@keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    border-radius: 8px;
    padding: 4px 8px;
}

.contact-item:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: translateX(10px);
}

.website-link {
    cursor: pointer;
}

.website-link:hover {
    text-decoration: underline;
}

.add-contact-link {
    cursor: pointer;
}

.add-contact-link:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: translateX(10px);
}

.add-contact-text {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.add-contact-text:hover {
    text-decoration: none;
    color: inherit;
}

.contact-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    opacity: 1;
    color: #e74c3c;
    transform: scale(1.2);
}

.business-card-back {
    width: 380px;
    height: 220px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.business-card-back:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.2);
}

.my-name {
    color: white;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: 1.2px;
    animation: typeWriter 2s ease-out 0.5s both;
}

@keyframes typeWriter {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.my-title {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.8px;
    animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: slideUp 1s ease-out 2s both;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.social-item::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.6s;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.social-item:hover::before {
    left: 100%;
}

.social-item[data-social="twitter"]:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.5);
    box-shadow: 0 8px 16px rgba(29, 161, 242, 0.3);
}

.social-item[data-social="youtube"]:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3);
}

.social-item[data-social="github"]:hover {
    background: rgba(88, 96, 105, 0.2);
    border-color: rgba(88, 96, 105, 0.5);
    box-shadow: 0 8px 16px rgba(88, 96, 105, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-item:hover .social-icon {
    transform: scale(1.2) rotate(5deg);
}

.social-item span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.title {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-size: 32px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
    50% { text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(231, 76, 60, 0.3); }
}

.accent-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #e74c3c, #e67e22);
    margin: 0 auto 40px;
    border-radius: 2px;
    animation: expandLine 2s ease-out;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 80px; }
}

.logo-fallback {
    display: none;
}

.logo-image:not([src]), .logo-image[src=""] {
    display: none;
}

.logo-image:not([src]) + .logo-fallback, .logo-image[src=""] + .logo-fallback {
    display: flex;
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .business-card, .business-card-back {
        width: 350px;
        height: auto;
    }

    .title {
        font-size: 26px;
    }

    .social-links {
        gap: 20px;
    }

    .social-item {
        padding: 12px 10px;
        min-width: 70px;
    }
}