/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #07080a;
    --bg-dark-rgb: 7, 8, 10;
    
    /* Premium Glass Panels */
    --panel-bg: rgba(18, 20, 26, 0.45);
    --panel-border: rgba(255, 255, 255, 0.07);
    --panel-border-hover: rgba(0, 217, 255, 0.25);
    --panel-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    
    /* Neon Accents - Premium Blue & Pink Theme */
    --accent-cyan: #00d9ff;            /* Vibrant Electric Ice Blue */
    --accent-cyan-rgb: 0, 217, 255;
    --accent-purple: #ff60ad;          /* High-End Soft Electric Pink */
    --accent-purple-rgb: 255, 96, 173;
    
    /* Typography Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-glow: 0 0 20px rgba(0, 255, 204, 0.2);
    
    /* Fonts */
    --font-title: 'Space Grotesk', 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* ==========================================================================
   DYNAMIC BACKGROUND SYSTEM (Vercel Optimized)
   ========================================================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

/* Base blurry image background using the local asset */
.bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('image1 maybe for bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(24px) brightness(0.28) saturate(1.15);
    transform: scale(1.05);
    animation: bgPulse 20s infinite alternate ease-in-out;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(var(--bg-dark-rgb), 0.15) 0%, var(--bg-dark) 90%);
}

/* Glowing nebulas in background */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    top: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    animation: glowFloat1 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
    bottom: 10%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: var(--accent-purple);
    animation: glowFloat2 30s infinite alternate ease-in-out;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ==========================================================================
   REUSABLE UTILITIES & EFFECTS
   ========================================================================== */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border-radius: 20px;
    box-shadow: var(--panel-shadow);
    transition: border var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--panel-border-hover);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--accent-cyan-rgb), 0.05);
}

.section-title {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-glow {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    display: inline-block;
}

/* ==========================================================================
   PROFILE CARD SECTION
   ========================================================================== */
.profile-card {
    position: relative;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

/* Avatar with floating and outer rings */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    animation: avatarFloat 6s infinite ease-in-out;
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    filter: blur(12px);
    opacity: 0.35;
    z-index: 1;
    transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}

.profile-card:hover .avatar-img {
    transform: scale(1.03);
    border-color: rgba(var(--accent-cyan-rgb), 0.6);
}

.profile-card:hover .avatar-glow {
    opacity: 0.6;
    filter: blur(16px);
}

/* Typography in Profile */
.profile-name {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-old-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Badges */
.badge-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.05em;
}

.badge-active {
    background: rgba(var(--accent-cyan-rgb), 0.08);
    border-color: rgba(var(--accent-cyan-rgb), 0.2);
    color: var(--accent-cyan);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: activePulse 2s infinite ease-in-out;
}

.badge-tech {
    color: var(--accent-purple);
    background: rgba(var(--accent-purple-rgb), 0.08);
    border-color: rgba(var(--accent-purple-rgb), 0.2);
}

/* Bio Text */
.profile-bio {
    max-width: 480px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 26px;
    font-weight: 400;
    line-height: 1.7;
}

.bio-main {
    color: var(--text-primary);
}

/* Social Icon Row */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.social-icon-btn:hover {
    color: var(--accent-cyan);
    background: rgba(var(--accent-cyan-rgb), 0.1);
    border-color: rgba(var(--accent-cyan-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-cyan-rgb), 0.15);
}

.social-icon-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   FEATURED LINKS SECTION
   ========================================================================== */
.links-section {
    display: flex;
    flex-direction: column;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-card {
    position: relative;
    padding: 20px 24px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

/* Shimmer overlay effect on hover */
.link-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: 1;
}

.link-card:hover .link-glow {
    left: 200%;
    transition: left 0.8s ease-in-out;
}

.link-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Custom Icon Containers */
.link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transition: all var(--transition-smooth);
}

/* Brand specific icon colors */
.booth-style {
    color: var(--accent-cyan);
}
.youtube-style {
    color: #ff3366;
}
.x-style {
    color: #ffffff;
}
.github-style {
    color: #ffffff;
}

.link-card:hover .link-icon {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.08);
}

.link-card:hover .booth-style {
    box-shadow: 0 0 15px rgba(var(--accent-cyan-rgb), 0.2);
    border-color: rgba(var(--accent-cyan-rgb), 0.3);
}

.link-card:hover .youtube-style {
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
    border-color: rgba(255, 51, 102, 0.3);
}

.link-card:hover .x-style {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-card:hover .github-style {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Info */
.link-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 4px;
}

.tag-shop {
    background: rgba(var(--accent-cyan-rgb), 0.12);
    color: var(--accent-cyan);
}

.tag-video {
    background: rgba(255, 51, 102, 0.12);
    color: #ff5588;
}

.tag-social {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.tag-github {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.link-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.link-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

/* Arrow transition */
.link-arrow {
    color: var(--text-muted);
    transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.link-card:hover .link-arrow {
    transform: translate(3px, -3px);
    color: var(--accent-cyan);
}

.link-card:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   PORTFOLIO 3D GALLERY (Premium Custom Placeholders)
   ========================================================================== */
.portfolio-section {
    display: flex;
    flex-direction: column;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 240px;
    padding: 0;
}

/* Custom 3D Wireframe Canvas Simulator */
.wireframe-mesh {
    height: 120px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.03) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wireframe-mesh::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 15px 15px;
    background-position: center;
    transform: perspective(200px) rotateX(60deg) translateY(-20px);
    animation: gridScroll 12s infinite linear;
}

/* Rotating Cube Wireframe */
.mesh-box {
    width: 32px;
    height: 32px;
    border: 1px dashed rgba(var(--accent-cyan-rgb), 0.5);
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3D 6s infinite linear;
}

.mesh-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(var(--accent-purple-rgb), 0.3);
    transform: rotateY(45deg) rotateX(45deg);
}

/* Zooming Sphere Wireframe */
.mesh-sphere {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.4);
    border-radius: 50%;
    position: relative;
    animation: sphereScale 4s infinite alternate ease-in-out;
}

.mesh-sphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 100%;
    border-left: 1px dashed rgba(255,255,255,0.25);
    border-right: 1px dashed rgba(255,255,255,0.25);
    border-radius: 50%;
}

.mesh-sphere::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 50%;
    border-top: 1px dashed rgba(255,255,255,0.25);
    border-bottom: 1px dashed rgba(255,255,255,0.25);
    border-radius: 50%;
}

/* Torus Node Grid */
.mesh-torus {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(var(--accent-purple-rgb), 0.55);
    border-radius: 50%;
    position: relative;
    transform: rotateX(70deg) rotateY(15deg);
    animation: torusSpin 8s infinite linear;
    box-shadow: 0 0 10px rgba(var(--accent-purple-rgb), 0.2);
}

.mesh-torus::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed rgba(var(--accent-cyan-rgb), 0.4);
    border-radius: 50%;
}

/* Grid Lines Wireframe */
.mesh-grid-lines {
    width: 38px;
    height: 38px;
    position: relative;
}

.mesh-grid-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
    animation: gridSpin 10s infinite linear;
}

.mesh-grid-lines::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background-color: rgba(var(--accent-cyan-rgb), 0.2);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transform: rotate(45deg);
    animation: innerSpin 5s infinite linear reverse;
}

/* Portfolio Content */
.portfolio-card-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portfolio-tag {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.portfolio-card-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.portfolio-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.4;
}

.placeholder-card {
    opacity: 0.75;
    transition: opacity var(--transition-smooth), border var(--transition-fast);
}

.portfolio-card:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.portfolio-card:hover .mesh-box {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.2);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    display: flex;
    flex-direction: column;
}

.contact-card {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(var(--accent-cyan-rgb), 0.06);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-title-group {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.contact-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Email Copy Box */
.email-copy-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 8px 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.email-display {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    user-select: all;
}

.email-actions {
    display: flex;
    gap: 8px;
}

.email-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.mail-btn {
    background: rgba(var(--accent-cyan-rgb), 0.08);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.2);
    color: var(--accent-cyan);
}

.mail-btn:hover {
    background: rgba(var(--accent-cyan-rgb), 0.16);
    border-color: rgba(var(--accent-cyan-rgb), 0.35);
    box-shadow: 0 4px 12px rgba(var(--accent-cyan-rgb), 0.1);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 28, 0.85);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--accent-cyan-rgb), 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
    bottom: 40px;
    opacity: 1;
}

.toast-icon {
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.footer-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS (For dynamic visuals)
   ========================================================================== */
@keyframes bgPulse {
    0% { transform: scale(1.03) translate(0px, 0px); }
    100% { transform: scale(1.07) translate(-10px, 5px); }
}

@keyframes glowFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.08); }
    100% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes glowFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -50px) scale(1.05); }
    100% { transform: translate(-20px, 30px) scale(0.9); }
}

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

@keyframes activePulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--accent-cyan-rgb), 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(var(--accent-cyan-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-cyan-rgb), 0); }
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 30px; }
}

@keyframes rotate3D {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

@keyframes sphereScale {
    0% { transform: scale(0.9) rotate(0deg); }
    100% { transform: scale(1.05) rotate(180deg); }
}

@keyframes torusSpin {
    0% { transform: rotateX(70deg) rotateY(15deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes gridSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes innerSpin {
    0% { transform: rotate(0deg) scale(0.85); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(0.85); }
}

/* Page Entry Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: pageEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-delay-1 {
    opacity: 0;
    transform: translateY(15px);
    animation: pageEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    transform: translateY(15px);
    animation: pageEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    transform: translateY(15px);
    animation: pageEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

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

/* ==========================================================================
   MEDIA QUERIES (Ultra responsive mobile focus)
   ========================================================================== */
@media (max-width: 600px) {
    .container {
        padding: 30px 14px 60px 14px;
        gap: 30px;
    }
    
    .profile-card {
        padding: 30px 20px;
    }
    
    .profile-name {
        font-size: 1.7rem;
    }
    
    .profile-subtitle {
        font-size: 0.8rem;
    }
    
    .profile-bio {
        font-size: 0.88rem;
    }
    
    .social-icon-btn {
        width: 42px;
        height: 42px;
    }
    
    .link-card {
        padding: 16px 18px;
    }
    
    .link-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    
    .link-title {
        font-size: 0.95rem;
    }
    
    .link-desc {
        font-size: 0.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .portfolio-card {
        height: 220px;
    }
    
    .contact-card {
        padding: 20px 18px;
    }
    
    .contact-header {
        align-items: flex-start;
        gap: 12px;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    
    .contact-title {
        font-size: 1.05rem;
    }
    
    .email-copy-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        text-align: center;
        gap: 16px;
    }
    
    .email-display {
        font-size: 1.05rem;
    }
    
    .email-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .email-action-btn {
        justify-content: center;
        padding: 10px;
        font-size: 0.82rem;
    }
}
