@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #FFF2E3;
    --accent-color: #FFF2E3;
    --tag-bg: rgba(255, 242, 227, 0.1);
}

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

body {
    cursor: none !important;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Satoshi', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    animation: pageLoadBlur 0.5s ease-out;
}

/* body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 242, 227, 0.3) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
} */

nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateX(-5px);
}

main {
    width: 60%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.garamond {
    font-family: 'ITC Garamond', serif;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-top: 5rem;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 300;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    font-family: 'ITC Garamond', serif;
    margin-top: -0.5rem;
}

h2, h3 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.hero {
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro {
    max-width: 600px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2.5rem;
    
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.skill-tag {
    background: var(--tag-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.skill-stars {
    font-size: 0.7rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

.skill-tag:hover .skill-stars {
    opacity: 1;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.skills-note {
    opacity: 0.7;
    font-size: 0.9rem;
    font-family: 'ITC Garamond', serif;
}

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

.project-card {
    background: transparent;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.project-card:hover .project-link {
    background: var(--bg-color);
    border-color: var(--accent-color);
    transform: rotate(-45deg);
}

.project-card:hover .project-link svg {
    stroke: var(--accent-color);
}

.project-card h3 {
    margin-bottom: 1rem;
    font-family: 'ITC Garamond', serif;
    font-weight: 300;
}

.project-link {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.project-link svg {
    width: 1rem;
    height: 1rem;
    transform: rotate(90deg);
    stroke: var(--bg-color);
    transition: stroke 0.3s ease;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.void-text {
    position: fixed;
    bottom: -20vh;
    right: -5vw;
    font-size: 30vw;
    font-family: 'ITC Garamond', serif;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.cursor-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

@keyframes pageLoadBlur {
    0% {
        filter: blur(10px);
    }
    100% {
        filter: blur(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        width: 90%;
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .intro {
        font-size: 0.95rem;
    }

    nav {
        position: fixed;
        bottom: 0;
        right: 0;
        top: auto;
        transform: none;
        background: var(--bg-color);
        width: 100%;
        padding: 1rem;
        border-top: 1px solid var(--accent-color);
    }

    .nav-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .nav-links a:hover {
        transform: translateY(-3px);
    }

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

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

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

    .void-text {
        font-size: 20vw;
        bottom: -10vh;
        right: -2vw;
    }

    /* Hide cursor on mobile */
    .cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }

    .tag-filter-container {
        justify-content: center;
    }
    
    .tag-filter {
        padding: 0.8rem 1.5rem;
    }
}

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

    h2 {
        font-size: 1.8rem;
    }

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

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure buttons and interactive elements are easily tappable on mobile */
button, 
a, 
.project-link,
.social-icon {
    min-height: 44px;
    min-width: 44px;
}

/* Improve touch targets */
.skill-tag,
.blog-tag,
.action-chip {
    padding: 0.8rem 1.5rem;
}

/* Adjust spacing for mobile */
section {
    margin-bottom: 3rem;
}

.hero {
    min-height: 15vh;
}

/* Ensure text remains readable */
p, li {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

/* Improve form elements on mobile */
input, 
textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.8rem;
}

/* Ensure proper spacing in chat interface */
.chat-container {
    height: calc(100vh - 200px);
}

.message {
    max-width: 90%;
}

/* Improve blog layout on mobile */
.blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-card {
    padding: 1.5rem;
}

/* Ensure proper spacing in wallbreaker game */
.game-container {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 3/4;
}

canvas {
    width: 100%;
    height: 100%;
}

/* Blog Search Styles */
.blog-container {
    width: 100%;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: var(--tag-bg);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: var(--accent-color);
    color: var(--bg-color);
}

.search-input::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    pointer-events: none;
}

.search-input:focus + .search-icon {
    opacity: 1;
}

/* Blog Grid Animation */
.blog-card {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag Filter Styles */
.tag-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag-filter {
    background: var(--tag-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.7;
}

.tag-filter:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.tag-filter.active {
    background: var(--accent-color);
    color: var(--bg-color);
    opacity: 1;
}
