/* General Styles */
:root {
    --primary-color: #0d6efd; --secondary-color: #6c757d; --success-color: #198754;
    --dark-blue: #0f172a; --slate-blue: #1e293b; --light-bg: #f8f9fa; --white-bg: #ffffff;
    --text-dark: #212529; --text-light: #f8f9fa; --text-muted: #6c757d; --border-color: #dee2e6;
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); --professional-font: 'Roboto', sans-serif; --gold-accent: #facc15;
}
body { font-family: var(--professional-font); margin: 0; padding: 0; background-color: #eef2f7; color: var(--text-dark); overflow-x: hidden; line-height: 1.6; }
main { padding-top: 70px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
.generator-container { max-width: 1320px; }
.icon-left { margin-right: 0.6em; width: 1em; text-align: center; }

/* Add this rule */
body.overlay-active {
    overflow: hidden; /* Prevent scrolling when overlay is visible */
}
/* Welcome Overlay */
.welcome-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.96)); display: none; justify-content: center; align-items: center; z-index: 3000; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
.welcome-overlay.visible { display: flex; opacity: 1; visibility: visible; animation: fadeInOverlay 0.5s ease forwards; transition-delay: 0s; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.overlay-content { background: var(--white-bg); padding: 50px 60px; border-radius: 12px; text-align: center; color: var(--text-dark); box-shadow: 0 15px 40px rgba(0,0,0,0.25); max-width: 600px; margin: 20px; border-top: 5px solid var(--primary-color); transform: translateY(20px); opacity: 0; animation: slideUpFadeInContent 0.5s 0.3s ease forwards; }
@keyframes slideUpFadeInContent { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.overlay-logo {
    max-height: 125px; /* Increased size */
    width: auto;
    margin-bottom: 30px; /* Increased space */
    border-radius: 30px;
    background-color: var(--light-bg);
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
}
.overlay-content h2 { margin-top: 0; margin-bottom: 15px; color: var(--dark-blue); font-weight: 700; font-size: 2rem; text-align: center;}
.overlay-content p { margin-bottom: 35px; color: var(--text-muted); font-size: 1.15rem; }
#close-overlay { padding: 12px 35px; font-size: 1.1rem; font-weight: 500;}

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 25px; background: linear-gradient(135deg, var(--dark-blue), var(--slate-blue)); color: #fff; width: 100%; box-sizing: border-box; position: fixed; top: 0; left: 0; z-index: 2000; transition: top 0.3s ease-in-out; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.navbar.hidden { top: -100px; }
.logo {
    font-size: 1.7rem; /* Increased size */
    font-weight: 700;
}
.logo-main { text-decoration: none; color: #fff; font-weight: bold; transition: color 0.3s ease; }
.logo-main:hover { color: var(--gold-accent); }
.nav-menu ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: #e2e8f0; font-size: 1rem; font-weight: 500; transition: color 0.3s ease; padding-bottom: 5px; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }

/* Hero Section */
.hero { text-align: center; padding: 80px 0 60px 0; background-color: #e9ecef; color: var(--text-dark); margin: 0; border-radius: 0; border-bottom: 1px solid var(--border-color); }
.index-hero {}
.hero-content h1 { font-size: 3.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; text-align: center;}
.hero-content p { font-size: 1.3rem; margin-bottom: 40px; color: var(--text-muted); max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-btn { margin-top: 10px; }

/* Button Styles */
.btn-primary, .btn-secondary, .btn-download { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1rem; padding: 10px 20px; border-radius: 8px; transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease; border: none; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn-primary { background-color: var(--primary-color); color: white; box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3); }
.btn-primary:hover { background-color: #0b5ed7; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4); }
.btn-secondary { background-color: var(--secondary-color); color: white; box-shadow: 0 2px 5px rgba(108, 117, 125, 0.3); }
.btn-secondary:hover { background-color: #5c636a; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4); }
.btn-download { background-color: var(--success-color); color: white; box-shadow: 0 2px 5px rgba(25, 135, 84, 0.3); }
.btn-download:hover { background-color: #157347; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(25, 135, 84, 0.4); }
.btn-primary:active, .btn-secondary:active, .btn-download:active { transform: translateY(0px); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);}
.btn-download .icon-left, .btn-secondary .icon-left, .btn-primary .icon-left { margin-right: 0.6em; }

/* Content Sections (Main Page & Generator) */
.content-section { padding: 60px 0; margin-bottom: 0; }
.content-section .section-content-bounded { background-color: var(--white-bg); border-radius: 12px; padding: 60px 50px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); max-width: 1140px; margin: 30px auto; text-align: center; }
.content-section .section-content-bounded.alt-bg { background-color: var(--light-bg); }
h1, h2 { text-align: center; }
.content-section h1, .content-section h2 { margin-bottom: 40px; font-weight: 600; color: var(--dark-blue); }
.content-section h1 { font-size: 2.3rem; }
.content-section h2 { font-size: 2rem; }
.about-section p { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; text-align: center;}
.founder-section-content { background: linear-gradient(135deg, var(--dark-blue), var(--slate-blue)); color: var(--text-light); text-align: center; }
.founder-section-content h2 { color: var(--gold-accent); margin-bottom: 25px;}
.founder-section-content p { color: #e2e8f0; max-width: 900px; margin-left: auto; margin-right: auto; margin-bottom: 20px; font-size: 1.1rem; line-height: 1.7;}
.founder-section-content strong { font-weight: 500; color: var(--gold-accent); }
.founder-credit { margin-top: 30px; font-style: italic; font-size: 1.05rem;}
.founder-credit strong { font-style: normal; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 20px; text-align: center;}
.feature-card { background: var(--white-bg); padding: 30px 25px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.feature-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; display: block; }
.feature-card h3 { color: var(--dark-blue); margin-bottom: 10px; font-size: 1.2rem; font-weight: 600; text-align: center;}
.feature-card p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; }
.faq-item { background: var(--white-bg); padding: 25px; margin: 15px auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: left; border: 1px solid var(--border-color); max-width: 850px; }
.faq-item h3 { font-weight: 600; color: var(--dark-blue); margin-bottom: 10px; font-size: 1.15rem; text-align: left; }
.faq-item p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.contact-section p { text-align: center; font-size: 1.15rem; color: var(--text-muted); }
.contact-link strong { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.contact-link:hover strong { text-decoration: underline; }

/* Footer */
.footer { background: var(--slate-blue); color: #adb5bd; padding: 25px 0; text-align: center; margin-top: 0; border-top: 1px solid var(--dark-blue);}
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer p { margin: 0; }
.footer-text { font-size: 0.9rem; }
.ai-credit { display: none; }

/* --- Generator Page Specific Styles --- */
.generator-hero { padding: 50px 20px; background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #ffffff; margin-bottom: 0; border-bottom: none; text-align: center;}
.generator-hero h1 { font-size: 2.5rem; margin-bottom: 10px;}
.generator-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 0;}
.generator-container > .content-section { padding: 60px 0; border: none; margin: 0; }
.generator-container .section-content-bounded { padding: 50px 40px; margin: 30px auto; max-width: 1140px; border-radius: 12px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); background-color: var(--white-bg); }
.generator-container > .content-section:nth-child(even) .section-content-bounded { background-color: var(--light-bg); }
.input-section h2, .customization-section h2, .card-preview h2 { display: flex; align-items: center; justify-content: center; margin-bottom: 40px;}

/* Profile Type Selector */
.profile-type-selector { margin-bottom: 40px; display: flex; justify-content: center; align-items: center; gap: 15px 30px; flex-wrap: wrap; }
.profile-type-selector > div { display: flex; align-items: center; }
.profile-type-selector label { font-weight: 500; cursor: pointer; margin-left: 8px; color: var(--text-muted); transition: color 0.2s ease; }
.profile-type-selector input[type="radio"] { cursor: pointer; accent-color: var(--primary-color); }
.profile-type-selector input[type="radio"]:checked + label { color: var(--primary-color); font-weight: 600; }

.form-container { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .form-container { grid-template-columns: 1fr 1fr; gap: 25px 30px; } }
.form-group { width: 100%; text-align: left; }
.form-group label { display: flex; align-items: center; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; color: var(--text-dark); }
.input-field { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; color: var(--text-dark); background: #fff; transition: box-shadow 0.2s ease, border-color 0.2s ease; width: 100%; box-sizing: border-box; }
.input-field:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25); outline: none; }
.input-field.file-input { padding: 10px 16px; }
.input-hint { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }
.social-links-group > label, .photo-upload-group > label { font-weight: 600; font-size: 1rem; margin-bottom: 15px; color: var(--dark-blue); }
.social-input { margin-bottom: 10px; }

/* Customization Section */
.customization-section p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 35px; text-align: center; }
.customization-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 35px; justify-content: center; align-items: start; }
.customization-item { text-align: left; }
.customization-item label { display: flex; align-items: center; font-size: 0.95rem; font-weight: 500; color: var(--text-dark); margin-bottom: 10px; }
.qr-toggle-item label { margin-bottom: 10px; cursor: pointer;}
.qr-toggle-item input[type="checkbox"] { margin-right: 10px; cursor: pointer; accent-color: var(--primary-color); width: 16px; height: 16px; vertical-align: middle;}
.input-color-picker { display: block; width: 100%; height: 40px; border: 1px solid var(--border-color); border-radius: 6px; cursor: pointer; padding: 0; }

/* Card Preview Section */
.card-preview h2 { margin-bottom: 15px; }
.preview-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; font-style: italic;}
.preview-area { width: 100%; display: flex; justify-content: center; margin-bottom: 30px; }
.card-preview .section-content-bounded { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px;}

/* Business Card - Vertical Layout Centered */
.business-card { max-width: 360px; width: 100%; padding: 30px; background-color: var(--card-bg-color, #FFFFFF); color: var(--card-text-color, #000000); font-family: inherit; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); transition: background-color 0.3s ease, color 0.3s ease, font-family 0.1s ease; text-align: center; position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 15px; border: 1px solid var(--border-color); }
.profile-photo { width: 100px; height: 100px; margin: 0 auto 15px auto; overflow: hidden; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); background-color: #e2e8f0; flex-shrink: 0; position: relative; }
.profile-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-photo:has(img[src=""])::before, .profile-photo:has(img:not([src]))::before { content: '?'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: var(--text-muted); font-family: sans-serif; }
.card-details { width: 100%; text-align: center; }
.card-field { display: flex; align-items: center; justify-content: center; margin: 5px 0; font-size: 0.95rem; line-height: 1.5; color: inherit; }
.card-field-icon { width: 20px; text-align: center; margin-right: 8px; opacity: 0.7; font-size: 0.95em; flex-shrink: 0; color: inherit; }
.business-card .card-name-text { font-weight: 600; font-size: 1.5rem; line-height: 1.3; margin-bottom: 8px; display: block; text-align: center; color: inherit; }
.business-card .card-line1 { font-weight: 500; font-size: 1.05rem; color: inherit;}
.business-card .card-line2 { opacity: 0.8; font-size: 0.95rem; color: inherit;}
.business-card .website-link { word-break: break-all; font-size: 0.95rem; opacity: 0.9; color: inherit; text-decoration: none; display: inline-block;}
.business-card .website-link:hover { text-decoration: underline; color: var(--primary-color);}
.social-links-card-details { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--border-color); width: 90%; margin-left: auto; margin-right: auto; }
.social-links-heading { font-size: 0.85rem; font-weight: 600; color: inherit; opacity: 0.75; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center;}
.card-field.social-field { margin: 3px 0; font-size: 0.9rem; justify-content: center; }
.card-field.social-field a { color: inherit; text-decoration: none; word-break: break-all; }
.card-field.social-field a:hover { text-decoration: underline; color: var(--primary-color);}
.social-links-card-details { display: none; }
.id-section { font-size: 0.9rem; margin-top: 15px; color: inherit; opacity: 0.9; font-weight: 600; width: 100%; text-align: center; background-color: rgba(0,0,0,0.04); padding: 6px 0; border-radius: 4px; letter-spacing: 0.5px; }
.qr-code { padding: 5px; background: #ffffff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 15px; transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease, transform 0.3s ease; opacity: 1; overflow: hidden; }
.qr-code.qr-hidden { opacity: 0; height: 0; padding: 0; margin: 0; border: none; box-shadow: none; transform: scale(0.8);}
#qr-code img, #qr-code canvas { display: block; width: 100% !important; height: 100% !important; border-radius: 4px; }

/* Action/Download Buttons */
.action-buttons { margin-top: 30px; }
.download-heading { margin-top: 40px; margin-bottom: 20px; font-size: 1.4rem; font-weight: 600; color: var(--dark-blue); display: flex; align-items: center; justify-content: center; }
.button-container { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.download-options { margin-top: 15px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* --- Hamburger Menu --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 2001; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: #ffffff; margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; border-radius: 1px; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) { .features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .customization-options { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .form-container { max-width: 700px; } .content-section .section-content-bounded { padding: 40px 30px; margin: 25px auto;} }
@media (max-width: 768px) { main { padding-top: 64px; } .content-section { padding: 50px 0; } .content-section .section-content-bounded { padding: 30px 20px; border-radius: 8px; margin: 20px 15px; } .generator-container > .content-section { padding: 50px 0; } .generator-container .section-content-bounded { padding: 30px 20px; margin: 0; border-radius: 0; border-left: none; border-right: none; box-shadow: none;} h1, h2 { text-align: center; } .section-content h1 { font-size: 2rem; margin-bottom: 30px;} .section-content h2 { font-size: 1.7rem; margin-bottom: 25px;} .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; max-width: 80%; height: 100vh; background-color: rgba(19, 31, 51, 0.97); backdrop-filter: blur(8px); padding: 70px 20px 20px 20px; box-shadow: -5px 0 15px rgba(0,0,0,0.25); transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1999; overflow-y: auto; display: block; } .nav-menu.active { right: 0; } .nav-menu ul { flex-direction: column; align-items: flex-start; padding-top: 10px; gap: 0; } .nav-menu ul li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .nav-menu ul li:last-child { border-bottom: none; } .nav-menu ul li a { display: block; padding: 16px 10px; width: 100%; color: #e2e8f0; font-size: 1.1rem; transition: background-color 0.2s ease, color 0.2s ease; border-bottom: none; } .nav-menu ul li a:hover { background-color: rgba(255, 255, 255, 0.08); color: var(--gold-accent); } .hamburger { display: block; } .founder-section { padding: 50px 0; } .faq-section { margin: 0; } .faq-item { padding: 20px; margin: 10px auto; max-width: 90%;} .faq-item h3 { text-align: left; } .hero { padding: 60px 0 40px 0; } .hero-content h1 { font-size: 2.5rem; } .hero-content p { font-size: 1.15rem; margin-bottom: 30px;} .input-section h2, .customization-section h2, .card-preview h2 { font-size: 1.7rem; } .form-container { grid-template-columns: 1fr; gap: 15px; } .btn-primary, .btn-secondary, .btn-download { font-size: 0.95rem; padding: 9px 18px; } .business-card { padding: 20px; max-width: 90%; gap: 12px;} .profile-photo { width: 80px; height: 80px;} .card-details { text-align: center; padding-left: 0; } .card-field { justify-content: center; } .card-field-icon { display: none; } .business-card .card-name-text { text-align: center; } .business-card p { font-size: 0.9rem;} #qr-code { width: 90px; height: 90px; padding: 4px; margin-top: 10px;} .features-grid { grid-template-columns: 1fr; } .feature-card { padding: 30px; } .navbar { padding: 10px 20px; } .logo { font-size: 1.4rem; } .customization-options { grid-template-columns: 1fr; } }
@media (min-width: 769px) { .nav-menu { position: static; right: auto; width: auto; height: auto; background-color: transparent; padding: 0; box-shadow: none; overflow-y: visible; transition: none; display: block; backdrop-filter: none;} .nav-menu ul { flex-direction: row; align-items: center; padding-top: 0; gap: 25px; } .nav-menu ul li { width: auto; border-bottom: none; } .nav-menu ul li a { display: inline; padding: 0; padding-bottom: 5px; width: auto; color: #e2e8f0; font-size: 1rem; border-bottom: 2px solid transparent;} .nav-menu ul li a:hover { background-color: transparent; color: var(--gold-accent); border-bottom-color: var(--gold-accent); } .hamburger { display: none; } }
@media (max-width: 380px) { main { padding-top: 60px; } .content-section { padding: 40px 0; } .content-section .section-content-bounded { padding: 25px 15px; margin: 15px; } .generator-container .section-content-bounded { padding: 25px 15px;} .card-preview .section-content-bounded { padding-top: 30px; padding-bottom: 30px;} .card-preview .section-content { gap: 20px; } .button-container, .download-options { gap: 10px; } .btn-primary, .btn-secondary, .btn-download { font-size: 0.9rem; padding: 8px 14px;} .business-card { padding: 15px; } .profile-photo { width: 70px; height: 70px; border-width: 3px;} #qr-code { width: 80px; height: 80px; padding: 3px;} .social-links-card-details { margin-top: 8px; padding-top: 6px;} .hero-content h1 { font-size: 2.1rem; } .hero-content p { font-size: 1.05rem; } .overlay-content { padding: 30px 20px;} .navbar { padding: 8px 15px; } .logo { font-size: 1.3rem; } }