/* Business Card Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 100px; /* Add space for fixed header */
}

/* Header Navigation */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    perspective: none; /* Override the perspective for header container */
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.header .logo i {
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav a:hover {
    color: #ffff00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.container {
    perspective: 1000px;
}

.business-card {
    width: 3.5in;
    height: 2in;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.business-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card-front {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    display: flex;
    flex-direction: column;
}

.card-back {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 15px;
}

/* Front Card Styles */
.card-header {
    padding: 10px 15px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wifi-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.company-info h1 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 8px;
    opacity: 0.9;
    font-weight: 300;
}

.card-body {
    flex: 1;
    display: flex;
    padding: 8px 15px;
    gap: 10px;
}

.left-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 7px;
}

.contact-item i {
    width: 12px;
    font-size: 8px;
    opacity: 0.8;
}

.contact-text {
    line-height: 1.2;
}

.contact-text strong {
    font-weight: 600;
}

.contact-text small {
    font-size: 6px;
    opacity: 0.8;
}

.income-highlight {
    margin-top: auto;
}

.income-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.income-box h3 {
    font-size: 8px;
    margin-bottom: 3px;
    text-align: center;
}

.income-box p {
    font-size: 6px;
    margin-bottom: 1px;
    display: flex;
    justify-content: space-between;
}

.right-section {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-container {
    text-align: center;
    margin-bottom: 8px;
}

#qrcode {
    background: white;
    padding: 4px;
    border-radius: 6px;
    display: inline-block;
}

#qrcode canvas {
    width: 60px !important;
    height: 60px !important;
}

.qr-text {
    font-size: 6px;
    margin-top: 3px;
    line-height: 1.2;
    text-align: center;
}

.website-info {
    text-align: center;
}

.website-text {
    font-size: 5px;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 4px;
}

.card-footer {
    padding: 5px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benefit-item {
    font-size: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Back Card Styles */
.back-header {
    text-align: center;
    margin-bottom: 10px;
}

.back-header h2 {
    font-size: 10px;
    font-weight: 600;
}

.back-content {
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
}

.feature-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 4px;
}

.feature-item i {
    font-size: 8px;
    margin-top: 1px;
    opacity: 0.8;
    min-width: 10px;
}

.feature-item h4 {
    font-size: 6px;
    font-weight: 600;
    margin-bottom: 1px;
}

.feature-item p {
    font-size: 5px;
    line-height: 1.2;
    opacity: 0.9;
}

.cta-section {
    text-align: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-section h3 {
    font-size: 7px;
    margin-bottom: 2px;
}

.cta-section p {
    font-size: 5px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-links i {
    font-size: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links i:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Print Controls */
.print-controls {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.print-btn,
.flip-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.print-btn:hover,
.flip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Print Styles */
@media print {
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    header {
        display: none;
    }
    
    section {
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }
    
    .max-w-6xl {
        max-width: 3.5in !important;
        margin: 0.25in auto !important;
    }
    
    h1 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    
    .bg-white {
        width: 3.5in !important;
        height: 2in !important;
        padding: 8px !important;
        margin: 0 !important;
        border: 2px solid #1e40af !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .grid {
        display: block !important;
        gap: 0 !important;
    }
    
    .space-y-8 > * {
        margin: 2px 0 !important;
    }
    
    .text-4xl {
        font-size: 12px !important;
    }
    
    .text-3xl {
        font-size: 10px !important;
    }
    
    .text-2xl {
        font-size: 10px !important;
    }
    
    .text-xl {
        font-size: 8px !important;
    }
    
    .text-lg {
        font-size: 7px !important;
    }
    
    .text-sm {
        font-size: 6px !important;
    }
    
    .p-4, .p-6, .p-12 {
        padding: 2px !important;
    }
    
    .mb-4, .mb-8, .mb-12 {
        margin-bottom: 2px !important;
    }
    
    .space-y-8 {
        display: none;
    }
    
    .space-y-8:first-child {
        display: block !important;
    }
    
    .fas {
        font-size: 8px !important;
    }
    
    .rounded-full {
        width: 16px !important;
        height: 16px !important;
        padding: 2px !important;
    }
    
    .print-controls {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .business-card {
        width: 90vw;
        height: calc(90vw * 0.571); /* Maintain aspect ratio */
        max-width: 400px;
        max-height: 228px;
    }
    
    .card-front,
    .card-back {
        font-size: 1.2em;
    }
    
    .company-info h1 {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 10px;
    }
    
    .contact-item {
        font-size: 9px;
    }
    
    .contact-item i {
        font-size: 10px;
    }
    
    #qrcode canvas {
        width: 80px !important;
        height: 80px !important;
    }
    
    .qr-text {
        font-size: 8px;
    }
    
    .website-text {
        font-size: 7px;
    }
    
    .benefit-item {
        font-size: 8px;
    }
    
    .income-box h3 {
        font-size: 10px;
    }
    
    .income-box p {
        font-size: 8px;
    }
    
    .back-header h2 {
        font-size: 14px;
    }
    
    .feature-item h4 {
        font-size: 8px;
    }
    
    .feature-item p {
        font-size: 7px;
    }
    
    .cta-section h3 {
        font-size: 9px;
    }
    
    .cta-section p {
        font-size: 7px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-card {
    animation: fadeInUp 0.8s ease-out;
}

.contact-item,
.feature-item {
    transition: all 0.3s ease;
}

.contact-item:hover,
.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

/* Glow Effects */
.business-card:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.wifi-icon {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#qrcode {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}