:root {
    --bg-dark: #05050f;
    --text-main: #f0f0ff;
    --text-muted: #a0a0c0;

    /* Vibrant Wreck-it-Ralph Cyberspace Palette */
    --primary: #ff007f;
    --secondary: #00f0ff;
    --tertiary: #8a2be2;
    --accent: #ffd700;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 0, 127, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05), transparent 25%);
}

/* Background Glowing Orbs */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 12s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary), transparent 60%);
}

.glow-2 {
    width: 500px;
    height: 500px;
    bottom: 20%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary), transparent 60%);
    animation-delay: -5s;
    animation-duration: 15s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, var(--tertiary), transparent 60%);
    animation-delay: -2s;
    opacity: 0.2;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
}

.highlight {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 15, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.github-link {
    transition: transform 0.3s ease, color 0.3s;
}

.github-link:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--secondary), #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 6rem;
}

.hero-content {
    flex: 1;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--tertiary));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.6);
}

.primary-btn:hover::before {
    left: 100%;
}

/* Hero Image */
.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    animation: imageBob 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.2);
    border: 1px solid var(--glass-border);
    object-fit: cover;
}

.image-glow {
    position: absolute;
    width: 85%;
    height: 85%;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite alternate;
    border-radius: 50%;
}

@keyframes imageBob {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.95) rotate(0deg);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.05) rotate(10deg);
    }
}

/* Work Section */
.work-section {
    padding: 8rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.card-content {
    padding: 3rem;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-panel h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.glass-panel p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    flex-grow: 1;
    font-size: 1.1rem;
}

.visit-link {
    color: var(--secondary);
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s, color 0.3s;
    font-size: 1.1rem;
}

.glass-panel:hover .visit-link {
    gap: 1rem;
    color: #fff;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    transition: opacity 0.4s;
}

.glass-panel:hover .card-bg {
    opacity: 0.3;
}

.temp-bg {
    background: radial-gradient(circle at top right, var(--secondary), transparent 70%);
}

.konjam-bg {
    background: radial-gradient(circle at top right, var(--primary), transparent 70%);
}


/* Connect Section */
.connect-section {
    padding: 6rem 0 10rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-connect {
    padding: 4rem;
    max-width: 650px;
    width: 100%;
    margin-bottom: 4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.main-connect p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.linkedin-btn {
    background: #0077b5;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
    font-size: 1.2rem;
}

.linkedin-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #0088cc;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.6);
}

.creative-socials {
    max-width: 800px;
    width: 100%;
}

.social-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.social-chip {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.social-chip:hover {
    color: white;
    border-color: var(--tertiary);
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .description {
        margin: 0 auto 2.5rem;
    }

    .title {
        font-size: 4rem;
    }

    .nav-links {
        display: none;
    }

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

    .card-content {
        padding: 2rem;
    }
}