:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-color: #333;
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-border: rgba(0, 0, 0, 0.1);
    --nav-hover-bg: rgba(0, 0, 0, 0.1);
    --nav-hover-color: #007bff;
    --container-bg: rgba(255, 255, 255, 0.9);
    --container-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-border: rgba(0, 0, 0, 0.2);
    --input-focus-border: rgba(0, 0, 0, 0.5);
    --button-bg: linear-gradient(135deg, #28a745, #20c997);
    --button-hover-bg: linear-gradient(135deg, #218838, #1aa085);
    --meta-card-bg: linear-gradient(135deg, #e9ecef 0%, #dee2e6 50%, #ced4da 100%);
    --meta-card-border: #6c757d;
    --meta-card-text: #495057;
    --footer-bg: rgba(255, 255, 255, 0.9);
    --footer-border: rgba(0, 0, 0, 0.1);
    --visit-counter-bg: rgba(255, 255, 255, 0.9);
    --visit-counter-border: rgba(0, 0, 0, 0.1);
    --visit-count-color: #007bff;
}

.dark-theme {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: white;
    --header-bg: rgba(255, 255, 255, 0.1);
    --header-border: rgba(255, 255, 255, 0.2);
    --nav-hover-bg: rgba(255, 255, 255, 0.2);
    --nav-hover-color: #d4af37;
    --container-bg: rgba(255, 255, 255, 0.1);
    --container-border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.3);
    --input-focus-border: rgba(255, 255, 255, 0.8);
    --button-bg: linear-gradient(135deg, #28a745, #20c997);
    --button-hover-bg: linear-gradient(135deg, #218838, #1aa085);
    --meta-card-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
    --meta-card-border: #d4af37;
    --meta-card-text: #d4af37;
    --footer-bg: rgba(255, 255, 255, 0.1);
    --footer-border: rgba(255, 255, 255, 0.2);
    --visit-counter-bg: rgba(255, 255, 255, 0.1);
    --visit-counter-border: rgba(255, 255, 255, 0.2);
    --visit-count-color: #d4af37;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    animation: fadeIn 1s ease-in;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 20px 20px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: var(--header-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: var(--nav-hover-bg);
    color: var(--nav-hover-color);
}

main {
    margin-top: 80px;
}

#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 40px 20px;
}

#form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    color: var(--text-color);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.visit-counter {
    background: var(--visit-counter-bg);
    backdrop-filter: blur(10px);
    border: var(--visit-counter-border);
    border-radius: 25px;
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.visit-counter #visit-count {
    color: var(--visit-count-color);
    font-size: 1.1em;
}

.hero-content ol {
    text-align: left;
    display: inline-block;
    margin-bottom: 40px;
}

.hero-content li {
    margin-bottom: 10px;
}

#selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#selection button {
    padding: 15px 30px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#selection button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

footer {
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    border-top: var(--footer-border);
    padding: 20px;
    text-align: center;
    color: var(--text-color);
    position: fixed;
    bottom: 0;
    width: 100%;
}

#developer-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 40px 20px;
}

.developer-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.developer-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    background: var(--container-bg);
    backdrop-filter: blur(10px);
    border: var(--container-border);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.3s ease;
    position: relative;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 90%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    width: auto;
    max-width: 80px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

form {
    display: flex;
    flex-direction: column;
    animation: slideIn 0.5s ease;
    position: relative;
}

form label, form input, form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

input {
    padding: 12px;
    margin-bottom: 15px;
    border: var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    background: var(--input-bg);
}

button[type="submit"] {
    padding: 12px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px auto 0 auto;
    transition: all 0.3s ease;
    width: auto;
    max-width: 150px;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #218838, #1aa085);
    transform: translateY(-2px);
}

.meta-card {
    margin-top: 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 20px;
    border-radius: 15px;
    width: 350px;
    min-height: 250px;
    margin: 20px auto;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: cardAppear 0.5s ease;
}

@keyframes cardAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#qr-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qr-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qr-item:hover {
    transform: scale(1.1);
}

.qr-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    animation: tooltipFade 0.3s ease;
}

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

#download-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    width: auto;
    max-width: 150px;
}

#download-btn:hover {
    background: linear-gradient(135deg, #c82333, #e8680d);
    transform: translateY(-2px);
}

.custom-field {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.remove-field {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

.remove-field:hover {
    background: #c82333;
}

#add-new-social, #add-new-educational {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px auto 0 auto;
    transition: all 0.3s ease;
    width: auto;
    max-width: 150px;
}

#add-new-social:hover, #add-new-educational:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav {
        gap: 10px;
    }

    #hero {
        padding: 20px 10px;
        min-height: calc(100vh - 120px);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .container {
        padding: 10px;
    }

    form label, form input, form button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .back-btn {
        position: static;
        margin-bottom: 20px;
    }

    .meta-card {
        width: 90%;
        max-width: 400px;
    }

    .qr-item {
        width: 80px !important;
        height: 80px !important;
    }

    footer {
        padding: 10px;
        font-size: 0.9rem;
    }
}
