:root {
    --bg-color: #0d0d12;
    --text-color: #ffffff;
    --text-muted: #a0a0b0;
    --primary-color: #7b2cbf;
    --secondary-color: #3a86ff;
    --accent-color: #ff006e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #16161e;
    --font-main: 'Outfit', sans-serif;
    --spacing-container: 1200px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15) 0%, rgba(58, 134, 255, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    display: inline-block;
}

/* Layout */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.glass-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.glass-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.glass-nav a:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.bio {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.points-display {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(8px);
}

.points-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.points-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    background: var(--glass-bg);
}

.btn-outline:hover {
    background: var(--glass-border);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Works Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.work-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.work-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards ease-out;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .glass-nav {
        flex-direction: column;
        gap: 1rem;
        border-radius: 20px;
    }

    .glass-nav ul {
        gap: 1rem;
    }
}

/* M-Click Feedback Animation */
.m-click-feedback {
    animation: m-shake 0.3s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes m-shake {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3) rotate(10deg);
        color: var(--accent-color);
    }
}

/* Reset Button Fixed */
.reset-btn-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    padding: 8px 15px;
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
    color: #ff0055;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.reset-btn-fixed:hover {
    background: rgba(255, 0, 85, 0.8);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .reset-btn-fixed {
        top: 85px;
        /* Offset for mobile nav */
        font-size: 0.6rem;
    }
}