:root {
    /* Black & White Professional Color Palette */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --accent-primary: #ffffff;
    --accent-secondary: #e5e5e5;
    --accent-hover: #f5f5f5;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background:
        radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 25%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 70%),
        var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Removed cursor: none to use default browser cursor */
    position: relative;
}

/* Breathing glow overlay */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.10) 30%,
            rgba(255, 255, 255, 0.04) 60%,
            transparent 80%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: breathingGlow 4s ease-in-out infinite;
}

@keyframes breathingGlow {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Hide cursor for all elements */
* {
    /* Removed cursor: none to use default browser cursor */
}

/* Copy Protection - Disable text selection and image dragging */
body,
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Click/Touch Ripple Effect - Black & White Cloud Style */
.ripple-effect {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 40%, transparent 70%);
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: cloud-ripple 0.8s ease-out;
    z-index: 9999;
    filter: blur(8px);
}

@keyframes cloud-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        filter: blur(0px);
    }

    50% {
        opacity: 0.8;
        filter: blur(12px);
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
        filter: blur(20px);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 0;
    background: rgba(0, 0, 0, 0.95);
    /* Removed backdrop-filter for better performance */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.875rem 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: -0.01em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {

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

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Sections */
section {
    padding: var(--spacing-3xl) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    position: relative;
}

.about-image-inner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    /* Removed backdrop-filter for better performance */
    overflow: hidden;
    /* Simplified box-shadow */
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removed backdrop-filter for better performance */
    /* Simplified box-shadow */
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 255, 255, 0.15);
}

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

.project-card:hover .project-tags .tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.project-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-img-1 {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(42, 42, 42, 0.5) 100%),
        url('video-photo-editor-bg.png');
    background-size: cover;
    background-position: center;
}

.project-img-2 {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(10, 10, 10, 0.4) 100%),
        url('xieron-bg.png');
    background-size: cover;
    background-position: center;
}

.project-img-3 {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(114, 137, 218, 0.2) 100%),
        url('discord-bot-bg.png');
    background-size: cover;
    background-position: center;
}

.project-overlay {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
}

.xieron-logo {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
    z-index: 2;
}

.project-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-content {
    padding: var(--spacing-lg);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.project-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-links {
    display: flex;
    gap: var(--spacing-md);
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--text-secondary);
    gap: 0.625rem;
}

.project-link svg {
    transition: var(--transition);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    /* Removed backdrop-filter for better performance */
    /* Simplified box-shadow */
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.skill-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.skill-name {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-3xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    margin-top: var(--spacing-sm);
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Simplified box-shadow */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.contact-icon svg {
    stroke: var(--accent-primary);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    /* Simplified box-shadow */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.social-link {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.visible {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 968px) {

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        padding: var(--spacing-xl) var(--spacing-lg);
        border-bottom: 1px solid var(--border-color);
        transition: var(--transition);
        gap: var(--spacing-lg);
        align-items: flex-start;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-item {
        text-align: left;
    }
}

@media (max-width: 480px) {
    section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.875rem;
    }
}

/* Custom Icon System */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.3));
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
}

.icon svg {
    width: 1em;
    height: 1em;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Simplified glow on hover for better performance */
a:hover .icon,
button:hover .icon,
.nav-link:hover .icon {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Size variations */
.icon-sm svg {
    width: 0.875em;
    height: 0.875em;
}

.icon-lg svg {
    width: 1.25em;
    height: 1.25em;
}

.icon-xl svg {
    width: 1.5em;
    height: 1.5em;
}

/* Special icon styles */
.icon-filled svg {
    fill: white;
    stroke: none;
}

.icon-stroke-fill svg {
    fill: white;
    stroke: white;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Custom Cursor - DISABLED (using default browser cursor) */
.custom-cursor {
    display: none !important;
    /* Custom cursor disabled - using default browser cursor */
}

/* Hide cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {

    .custom-cursor {
        display: none !important;
    }

    body,
    * {
        cursor: auto !important;
    }
}

/* Pure CSS cursor dot with RGB border */
.cursor-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cursor-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg,
            #ff0000, #ff7f00, #ffff00, #00ff00,
            #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 400% 400%;
    animation: rgbRotate 3s linear infinite;
    z-index: -1;
}

/* RGB border animation for cursor */
@keyframes rgbRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* REMOVED TRAIL EFFECT - was causing lag */

/* Dangerous Entry Animation */
@keyframes dangerousEntry {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(10px) brightness(0.5);
    }

    50% {
        filter: blur(2px) brightness(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0) brightness(1);
    }
}

@keyframes glitchEffect {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

/* Apply entry animation to body */
body {
    animation: dangerousEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Apply glitch to hero section on load */
.hero {
    animation: dangerousEntry 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        glitchEffect 0.3s ease-in-out 0.5s;
}

/* Stagger animation for sections */
section {
    animation: dangerousEntry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--section-index, 0) * 0.1s);
}

/* Add animation delays for different sections */
#about {
    --section-index: 1;
}

#work {
    --section-index: 2;
}

#skills {
    --section-index: 3;
}

#contact {
    --section-index: 4;
}

/* Flower Sidebars - Hanging Vines */
.flower-sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: flowersEntry 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.flower-sidebar.left {
    left: 20px;
}

.flower-sidebar.right {
    right: 20px;
}

/* Rose Vine Image Styling - Using Mask to Remove Background */
.rose-vine-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;

    /* Create white version with mask */
    background: white;
    -webkit-mask-image: url('rose-vine.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('rose-vine.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;

    /* Glow effect */
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
    opacity: 0.85;
    animation: vineSwayGentle 8s ease-in-out infinite;
}

/* Flip right side vine for symmetry */
.rose-vine-right {
    transform: scaleX(-1);
}

.hanging-vine {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    animation: vineSwayGentle 8s ease-in-out infinite;
}

@keyframes flowersEntry {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vineSwayGentle {

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

    25% {
        transform: translateX(3px) rotate(1deg);
    }

    50% {
        transform: translateX(-2px) rotate(-0.5deg);
    }

    75% {
        transform: translateX(2px) rotate(0.5deg);
    }
}

@media (max-width: 1200px) {
    .flower-sidebar {
        display: none;
    }
}