:root {
    --background: hsl(0, 0%, 7%);
    --foreground: hsl(0, 0%, 95%);
    --card: hsl(0, 0%, 12%);
    --card-foreground: hsl(0, 0%, 95%);
    --primary: hsl(0, 84%, 60%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(0, 0%, 20%);
    --secondary-foreground: hsl(0, 0%, 95%);
    --muted: hsl(0, 0%, 15%);
    --muted-foreground: hsl(0, 0%, 65%);
    --accent: hsl(0, 84%, 60%);
    --accent-foreground: hsl(0, 0%, 98%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --border: hsl(0, 0%, 20%);
    --input: hsl(0, 0%, 20%);
    --ring: hsl(0, 84%, 60%);
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, hsl(0, 15%, 10%) 100%);
    color: var(--foreground);
    min-height: 100vh;
    line-height: 1.6;
}

.min-h-screen {
    min-height: 100vh;
}

.text-foreground {
    color: var(--foreground);
}

.overflow-hidden {
    overflow: hidden;
}

.fixed {
    position: fixed;
}

.top-6 {
    top: 1.5rem;
}

.left-6 {
    left: 1.5rem;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.relative {
    position: relative;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 1.2;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.5;
}

.text-muted {
    color: var(--muted-foreground);
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.red-glass {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: hsl(0, 84%, 80%);
    transition: all 0.3s ease;
}

.red-glass:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(0, 100%, 75%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.avatar-container {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.3);
    transition: all 0.5s ease;
    overflow: hidden;
}

.avatar-container:hover {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar-container:hover .avatar-image {
    transform: scale(1.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-button:hover {
    color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3),
                0 0 30px rgba(239, 68, 68, 0.1);
}

.social-button:active {
    transform: translateY(1px) scale(0.95);
}

.explore-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.explore-button:hover {
    background: hsl(0, 84%, 65%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.explore-button i {
    transition: transform 0.3s ease;
}

.explore-button:hover i {
    transform: translateX(4px);
}

.card {
    padding: 2rem;
    border-radius: var(--radius);
    transition: all 0.5s ease;
}

.card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-4px);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--primary);
}

.project-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(239, 68, 68, 0.2);
    color: hsl(0, 84%, 80%);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.view-project {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.project-card:hover .view-project {
    transform: translateX(8px);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: hsl(0, 84%, 65%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.contact-button i {
    transition: transform 0.3s ease;
}

.contact-button:hover i {
    transform: scale(1.1);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 1rem;
}

.button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }

    .text-4xl {
        font-size: 2rem;
    }

    .avatar-container {
        width: 6rem;
        height: 6rem;
    }

    .avatar-container i {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Email Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    padding: 2rem;
    min-width: 300px;
    text-align: center;
}

.popup-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.popup-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.copy-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: hsl(0, 84%, 65%);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(1px);
}

.close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--foreground);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Password Generator Styles */
.max-w-2xl {
    max-width: 42rem;
    margin: 0 auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.font-semibold {
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.button-copy {
    background: rgba(239, 68, 68, 0.2);
    color: hsl(0, 84%, 80%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem;
}

.button-copy:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.button-generate {
    width: 100%;
    background: hsl(0, 84%, 60%);
    color: white;
    padding: 0.75rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-generate:hover {
    background: hsl(0, 84%, 55%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.button-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider {
    width: 100%;
    height: 2px;
    background: rgba(239, 68, 68, 0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
} 