:root {
    --bg-color: #09090b;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-blue: #ff7b00; /* changed to orange/theme color from the bio: #ff7b00 */
    --accent-cyan: #f97316; /* tailwind orange-500 */
    --nav-bg: rgba(23, 23, 23, 0.25);
    --nav-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(24, 24, 27, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Grid & Glows */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
}

.glow-orb-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(249, 115, 22, 0.2);
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: screen;
    animation: breathe 8s infinite alternate ease-in-out;
}

.glow-orb-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: rgba(255, 123, 0, 0.15);
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: screen;
    animation: breathe 10s infinite alternate-reverse ease-in-out;
}

/* Animations */
@keyframes breathe {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(14deg); }
    40% { transform: rotate(-8deg); }
    60% { transform: rotate(14deg); }
    80% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem;
}

.nav-container {
    display: flex;
    width: 100%;
    max-width: 56rem;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(40px) saturate(250%);
    -webkit-backdrop-filter: blur(40px) saturate(250%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    border-right-color: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.5), 
        inset 0 2px 3px rgba(255, 255, 255, 0.4),
        inset 0 -10px 20px rgba(255, 255, 255, 0.05),
        inset 0 10px 20px rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.nav-highlight {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 9999px;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-cta {
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Full Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar { padding: 0.5rem; }
    .nav-container { flex-direction: row; justify-content: space-between; padding: 0.5rem 0.75rem; gap: 0; }
    .nav-logo { font-size: 0.85rem; }
    .nav-links { gap: 0.1rem; }
    .nav-links a { font-size: 0.65rem; padding: 0.25rem 0.35rem; }
    .nav-cta { display: none; }
    
    .name-gradient { font-size: 2.2rem !important; }
    .subtitle { font-size: 0.85rem !important; }
    .tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; }
    
    section { padding: 4rem 1rem; }
    .section-title { font-size: 1.8rem !important; }
    .section-bg-text { font-size: 2.5rem !important; top: -1.2rem !important; }
    .section-desc { font-size: 0.95rem !important; padding: 0 0.5rem; }
    
    .content-grid { gap: 1rem; grid-template-columns: 1fr !important; }
    .card { padding: 1.25rem; }
    
    /* Store and inner grids */
    div[style*="minmax"] { grid-template-columns: 1fr !important; }
    
    /* Contact Card Tweaks */
    .contact-card { max-width: 100%; border-radius: 1rem; }
    .contact-banner { height: 5rem !important; }
    .contact-avatar { width: 4.5rem !important; height: 4.5rem !important; margin-top: -2.5rem !important; }
    #discord-badges { margin-top: 2rem !important; max-width: 55% !important; padding: 0.25rem !important; }
    #discord-badges img { width: 18px !important; height: 18px !important; }
    .contact-name { font-size: 1.2rem !important; flex-wrap: wrap; }
    #discord-username { font-size: 0.75rem !important; }
    
    /* Text wrapping for long URLs or repo names */
    .card * { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
    .name-gradient { font-size: 1.8rem !important; }
    .nav-logo { display: none; } /* Hide logo on ultra small screens to keep links strictly on one line */
    .nav-container { justify-content: center; }
    #discord-badges { margin-top: 1.5rem !important; }
}

/* Sections */
section {
    position: relative;
    padding: 5rem 1.5rem;
    z-index: 10;
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    margin-left: 0.5rem;
}

.name-container {
    position: relative;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.4));
}

.name-gradient {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan), var(--accent-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s linear infinite;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .name-gradient {
        font-size: 5rem;
    }
}

.subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.025em;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.tag {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.mouse {
    width: 40px;
    height: 64px;
    border: 2px solid white;
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 9999px;
}

@keyframes arrowSlide {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(4px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.3; }
}

.arrow-down {
    color: white;
    animation: arrowSlide 1.5s ease-in-out infinite;
    display: flex;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-bg-text {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    font-family: 'Permanent Marker', cursive;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
}

@media (min-width: 768px) {
    .section-bg-text {
        font-size: 6rem;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.section-desc {
    font-family: 'Space Mono', monospace;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* Grid layout for different sections */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto 4rem auto;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    padding: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title svg {
    color: var(--accent-cyan);
}

.placeholder-box {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

/* Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        justify-content: center;
    }
}

.contact-card {
    background: #0a0a0a;
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 28rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(249, 115, 22, 0.15);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
}

.contact-banner {
    height: 7rem;
    background: linear-gradient(45deg, #1e1e1e, #2d2d2d);
    position: relative;
    z-index: 2;
}

.contact-content {
    padding: 1.5rem;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.contact-avatar {
    width: 5rem;
    height: 5rem;
    background: #1a1a1a;
    border: 4px solid #0a0a0a;
    border-radius: 1rem;
    margin-top: -3.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.6rem;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.625rem;
    height: 0.625rem;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.contact-button:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: scale(1.02);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 10;
    position: relative;
}
