:root {
    --bg-color: #000000;
    --card-bg: #0d0d0d;
    --card-border: rgba(255, 183, 197, 0.15); /* Soft pink border */
    --card-border-hover: rgba(255, 183, 197, 0.4);
    --accent-pink: #ffb7c5;
    --accent-purple: #dcd0ff;
    --text-main: #fff0f5; /* Lavender blush white */
    --text-muted: #b0a0b0;
    --font-stack: "Outfit", "Inter", sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: #000000;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    padding: 8rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    cursor: none; /* Hide the standard cursor */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* HoneyPot Link - Stealth */
.hp-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: auto;
}

a, button, .tag, .card {
    cursor: none; /* Ensure it's hidden everywhere */
}

/* Custom Cursor */
.custom-cursor {
    width: 15px;
    height: 15px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100000;
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.custom-cursor.admin {
    background-color: #00ff88;
    box-shadow: 0 0 15px #00ff88;
}

.custom-cursor.hover {
    transform: scale(2.5);
    background-color: rgba(255, 183, 197, 0.5);
}

.cursor-follower {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 183, 197, 0.2);
    border: 1px solid rgba(255, 183, 197, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease-out;
}

.custom-cursor.hover {
    transform: scale(3);
    background-color: transparent;
    border: 1px solid var(--accent-pink);
}

.cursor-follower.hover {
    transform: scale(2);
    background-color: rgba(255, 183, 197, 0.4);
}

.container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    perspective: 1000px; /* For 3D effects */
}

.card {
    background: rgba(13, 13, 13, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 183, 197, 0.1);
    border-radius: 35px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: bubbleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
    will-change: transform, backdrop-filter;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card:hover {
    border-color: var(--accent-pink);
    box-shadow: 0 0 30px rgba(255, 183, 197, 0.15);
    transform: translateY(-5px) scale(1.02);
    background: rgba(20, 20, 20, 0.6);
}

.intro-card {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: space-between;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    color: var(--accent-pink);
    line-height: 1;
}

@media (max-width: 600px) {
    h1 {
        font-size: 3rem;
    }
}

h2 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2::before {
    content: "🌸";
    font-size: 1.2rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag {
    background-color: transparent;
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: border-color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tag i {
    font-size: 1.2rem;
    color: var(--accent-pink);
}

.tag:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background-color: var(--accent-pink);
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 183, 197, 0.4);
}

.btn.primary:hover {
    background-color: #ffcdd7;
    transform: scale(1.1) rotate(-1deg);
}

.btn.secondary {
    background-color: transparent;
    border: 1px solid var(--card-border-hover);
    color: var(--accent-purple);
}

.btn.secondary:hover {
    background-color: rgba(220, 208, 255, 0.1);
    transform: scale(1.1) rotate(1deg);
}

/* Specific Cards */
.about-card {
    grid-column: span 1;
    grid-row: span 2;
}

.skills-card {
    grid-column: span 1;
    grid-row: span 2;
}

.skills-card .list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-card .list li {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.015);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: background 0.2s;
}

.skills-card .list li:hover {
    background: rgba(255,255,255,0.03);
}

.skills-card .label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.skills-card .desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stats-card {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

.projects-card {
    grid-column: span 1;
    grid-row: span 1;
}

.project-item {
    padding: 1.2rem 0;
}

.border-top {
    border-top: 1px solid var(--card-border);
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-card {
        grid-column: span 2;
    }
    .about-card, .skills-card {
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
    }
    .intro-card, .about-card, .skills-card, .stats-card, .projects-card {
        grid-column: span 1;
        grid-row: auto;
    }
    h1 {
        font-size: 3rem;
    }
}

/* Top Navigation Bar */
.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 2.5rem;
    z-index: 10000;
    transition: all 0.3s ease;
}

.nav-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent-pink);
    text-shadow: 0 0 10px rgba(255, 183, 197, 0.5);
}

.nav-center {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--accent-pink);
    background: rgba(255, 183, 197, 0.1);
    transform: translateY(-2px) scale(1.05);
}

.nav-link.apply-btn {
    background: rgba(255, 183, 197, 0.15);
    color: var(--accent-pink);
    font-weight: 700;
    border: 1px solid rgba(255, 183, 197, 0.2);
}

.nav-link.apply-btn:hover {
    background: var(--accent-pink);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 183, 197, 0.6);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 12px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--text-main);
    color: var(--bg-color);
}

@media (max-width: 800px) {
    .nav-center {
        display: none; /* Hide middle links on smaller screens */
    }
}

/* Animations */
@keyframes bubbleUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    60% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 99px, 94px, 0); }
    10% { clip: rect(91px, 99px, 43px, 0); }
    20% { clip: rect(10px, 99px, 13px, 0); }
    30% { clip: rect(44px, 99px, 2px, 0); }
    40% { clip: rect(8px, 99px, 83px, 0); }
    50% { clip: rect(27px, 99px, 59px, 0); }
    60% { clip: rect(48px, 99px, 34px, 0); }
    70% { clip: rect(91px, 99px, 3px, 0); }
    80% { clip: rect(10px, 99px, 49px, 0); }
    90% { clip: rect(66px, 99px, 12px, 0); }
    100% { clip: rect(2px, 99px, 91px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 99px, 30px, 0); }
    100% { clip: rect(40px, 99px, 60px, 0); }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.2) rotate(45deg);
    }
}

/* Modal Overlay & Trap Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 35px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 183, 197, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h2::before {
    display: none; /* Remove emoji from H2 for modal */
}

.modal-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--accent-pink);
    text-transform: none;
    letter-spacing: normal;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.modal-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-stack);
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--accent-pink);
}

.full-width {
    width: 100%;
}

.error-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 0.85rem;
    text-align: center;
}

@keyframes shake {
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
