/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide fullPage.js credits */
.fp-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Fullpage.js Specific Styles */
#fullpage {
    position: relative;
    z-index: 1;
}

.section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: transparent;
}

/* Override default fullpage styles if needed */
.fp-section {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1rem !important;
}

/* Add subtle background variations for each section */
.section:nth-child(even) {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.02), rgba(100, 65, 164, 0.02));
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02), rgba(0, 153, 204, 0.02));
}

/* Navigation dots styling */
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    background: rgba(255, 255, 255, 0.3);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span,
#fp-nav ul li:hover a.active span,
.fp-slidesNav ul li:hover a.active span {
    background: #9146ff;
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.6);
    border-color: rgba(145, 70, 255, 0.3);
    transform: scale(1.2);
}

/* Navigation tooltips styling */
.fp-tooltip {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(145, 70, 255, 0.3) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Additional reset for images */
img {
    max-width: none;
    height: auto;
    border: none;
    outline: none;
}

html {
    /* Prevent iOS zoom on form elements */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height */
    overflow-x: hidden;
    /* Prevent rubber band scrolling on iOS */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Container */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Fullpage specific container adjustments */
.section .container {
    height: 100%;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Section-specific styling */
.section[data-anchor="home"] .container {
    max-width: 1200px;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
    align-items: center;
}

.section[data-anchor="links"] .container {
    max-width: 1100px;
    padding: 1rem;
}

.section[data-anchor="links"] {
    padding: 2rem 1rem;
}

/* Background Decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.08;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, #9146ff, #6441a4);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    top: 50%;
    right: 10%;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    bottom: 20%;
    left: 15%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translateY(20px) translateX(-25px) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) translateX(30px) scale(1.05) rotate(270deg);
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-section:hover {
    transform: translateY(-5px);
}

.profile-image {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Add a subtle glow effect around the profile image */
.profile-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #9146ff, #6441a4);
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Highly specific avatar styling to override any conflicts */
.container .profile-section .profile-image .avatar-img,
.profile-section .profile-image img[src*="PFP"],
img[alt*="MasstarVT Profile Picture"] {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: 0 8px 32px rgba(145, 70, 255, 0.3) !important;
    border: 3px solid rgba(145, 70, 255, 0.3) !important;
    max-width: 100px !important;
    max-height: 100px !important;
}

/* Hover effect */
.container .profile-section .profile-image .avatar-img:hover,
.profile-section .profile-image img[src*="PFP"]:hover,
img[alt*="MasstarVT Profile Picture"]:hover {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9146ff, #6441a4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(145, 70, 255, 0.3);
    transition: transform 0.3s ease;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
}

.avatar-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.avatar-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: 0 8px 32px rgba(145, 70, 255, 0.3) !important;
    transition: transform 0.3s ease;
    border: 3px solid rgba(145, 70, 255, 0.3) !important;
    max-width: 100px !important;
    max-height: 100px !important;
}

.avatar-img:hover {
    transform: scale(1.05);
}

/* Additional fallback for profile image */
.profile-image img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(145, 70, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.profile-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Who I Am Panel */
.who-am-i-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.who-am-i-panel:hover {
    transform: translateY(-3px);
}

.panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.panel-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    border-radius: 2px;
}

.panel-content {
    text-align: left;
    line-height: 1.6;
}

.panel-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.panel-content p:last-child {
    margin-bottom: 0;
}

/* Links Section - Desktop Layout with Right Column Stacking */
.links-section {
    margin-bottom: 2rem;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Left column for Content Creation (Social Links) - spans both rows */
.links-section .links-category:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
}

/* Top right for Support & Donations */
.links-section .links-category:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
}

/* Bottom right for Development */
.links-section .links-category:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
}

.links-section .links-category:last-child {
    margin-bottom: 0;
}

.links-category {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

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

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    border-radius: 1px;
}

.links-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    max-width: 100%;
}

/* All categories use single column for cards since categories are in two columns */
.links-section .links-category .links-grid {
    grid-template-columns: 1fr;
}

/* Link Cards */
.link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.link-card:hover::before {
    opacity: 0.15;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(145, 70, 255, 0.1);
    border-color: rgba(145, 70, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.link-icon svg {
    width: 24px;
    height: 24px;
    color: inherit;
    flex-shrink: 0;
}

.link-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.link-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.link-content p {
    font-size: 0.85rem;
    color: #a0a0a0;
}

/* Individual Link Styles */
.twitch {
    --gradient: linear-gradient(135deg, #9146ff, #6441a4);
}

.discord {
    --gradient: linear-gradient(135deg, #5865f2, #4752c4);
}

.twitter {
    --gradient: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.bluesky {
    --gradient: linear-gradient(135deg, #00d4ff, #0099cc);
}

.kofi {
    --gradient: linear-gradient(135deg, #ff5f5f, #e74c3c);
}

.throne {
    --gradient: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.github {
    --gradient: linear-gradient(135deg, #333, #24292e);
}

.email {
    --gradient: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.footer-links span {
    font-size: 0.75rem;
    color: #888;
}

/* Home Footer - positioned at bottom of first page */
.home-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
}

.home-footer p {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

.home-footer .footer-links span {
    font-size: 0.75rem;
    color: #888;
}

/* Responsive Design */
@media (min-width: 480px) {
    .container {
        padding: 1.5rem 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .links-section {
        display: flex;
        flex-direction: column;
        gap: 1.8rem;
    }
    
    .profile-name {
        font-size: 2.5rem;
    }
    
    .avatar-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .avatar-img {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .avatar-text {
        font-size: 2.5rem;
    }
    
    .profile-description {
        font-size: 1.1rem;
    }
    
    .profile-tagline {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

/* Switch to two-column layout */
@media (min-width: 600px) {
    .links-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
    }
    
    .links-section .links-category:first-child {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    
    .links-section .links-category:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .links-section .links-category:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Tablet home layout */
    .home-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .who-am-i-panel {
        padding: 2rem;
    }
    
    .panel-title {
        font-size: 1.6rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
    
    .profile-section {
        margin-bottom: 2.5rem;
    }
    
    .profile-name {
        font-size: 2.8rem;
    }
    
    .profile-description {
        font-size: 1.15rem;
    }
    
    .profile-tagline {
        font-size: 1.05rem;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    .link-card {
        padding: 1.15rem 1.5rem;
    }
    
    .link-icon {
        font-size: 1.6rem;
    }
    
    .link-content h3 {
        font-size: 1.05rem;
    }
    
    .link-content p {
        font-size: 0.9rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .links-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 2rem;
    }
    
    .links-section .links-category:first-child {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    
    .links-section .links-category:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .links-section .links-category:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Desktop home layout */
    .home-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .who-am-i-panel {
        padding: 2.5rem;
    }
    
    .panel-title {
        font-size: 1.8rem;
    }
    
    .panel-content p {
        font-size: 1rem;
    }
}

@media (min-height: 900px) {
    .container {
        padding: 3rem 2rem;
    }
    
    .profile-section {
        margin-bottom: 3rem;
    }
    
    .links-section {
        margin-bottom: 2rem;
    }
    
    .links-category {
        margin-bottom: 2rem;
    }
    
    .links-grid {
        gap: 1rem;
    }
    
    .link-card {
        padding: 1.25rem 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-orb,
    .avatar-placeholder,
    .link-card {
        animation: none;
        transition: none;
    }
}

/* Focus States for Accessibility */
.link-card:focus {
    outline: 2px solid #9146ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .link-card {
        border: 2px solid #fff;
        background: #000;
    }
    
    .profile-name {
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
}

/* Navigation Styles */
.nav-container {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    margin-bottom: 1rem;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    width: auto;
}

.hamburger-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.9rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    border-color: rgba(138, 43, 226, 0.3);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar-nav {
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(138, 43, 226, 0.5);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(138, 43, 226, 0.1);
    border-left-color: #8a2be2;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw; /* Dynamic viewport width for mobile */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* About Me Page Styles */
.about-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 700px;
}

.about-section:hover {
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    border-radius: 2px;
}

.about-text {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.about-text p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(145, 70, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 25px rgba(145, 70, 255, 0.1);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #9146ff;
    filter: drop-shadow(0 0 10px rgba(145, 70, 255, 0.3));
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #9146ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Interests */
.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2rem;
    justify-content: center;
    max-width: 600px;
    margin: 2rem auto 0;
}

.interest-tag {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.15), rgba(0, 212, 255, 0.15));
    border: 1px solid rgba(145, 70, 255, 0.3);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interest-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.interest-tag:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.25), rgba(0, 212, 255, 0.25));
    border-color: rgba(145, 70, 255, 0.6);
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.2);
}

.interest-tag:hover::before {
    left: 100%;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, #8a2be2, #4169e1);
    color: #ffffff;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hamburger-menu {
        padding: 0.7rem;
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .hamburger-line {
        width: 20px;
    }
    
    .sidebar {
        width: 300px;
        right: -300px;
    }
    
    .sidebar-header {
        padding: 1.5rem;
    }
    
    .sidebar-header h3 {
        font-size: 1.1rem;
    }
    
    .close-sidebar {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        min-height: 44px; /* Minimum touch target size */
        display: flex;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .about-text {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 44px; /* Minimum touch target size */
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem;
    }
    
    .hamburger-menu {
        padding: 0.6rem;
    }
    
    .hamburger-line {
        width: 18px;
    }
    
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .sidebar-header {
        padding: 1.2rem;
    }
    
    .sidebar-header h3 {
        font-size: 1rem;
    }
    
    .sidebar-link {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }
    
    .interests-list {
        gap: 0.5rem;
    }
    
    .interest-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .cta-button {
        max-width: 240px;
        font-size: 0.9rem;
    }
    
    /* Mobile Links Section Fixes */
    .container {
        padding: 1rem;
    }
    
    .links-section {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .links-section .links-category:first-child,
    .links-section .links-category:nth-child(2),
    .links-section .links-category:nth-child(3) {
        grid-column: unset;
        grid-row: unset;
    }
    
    .links-category {
        padding: 1.5rem;
        margin-bottom: 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .link-card {
        padding: 1.2rem;
        flex-direction: row;
        align-items: center;
    }
    
    .link-icon {
        margin-right: 1rem;
        width: 28px;
        height: 28px;
    }
    
    .link-icon svg,
    .link-icon img {
        width: 20px;
        height: 20px;
    }
    
    .link-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }
    
    .link-content p {
        font-size: 0.8rem;
    }
    
    .category-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-description {
        font-size: 1rem;
    }
    
    .profile-tagline {
        font-size: 0.9rem;
    }
    
    .home-footer {
        bottom: 1rem;
        font-size: 0.7rem;
    }
    
    .home-footer p {
        font-size: 0.7rem;
    }
    
    .home-footer .footer-links span {
        font-size: 0.65rem;
    }
    
    /* Mobile home layout - stack vertically */
    .home-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        grid-template-columns: 1fr;
    }
    
    .who-am-i-panel {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .panel-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .panel-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* PC Specs Page Styles */
.specs-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.specs-overview {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 700px;
}

.specs-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.specs-summary:hover {
    transform: translateY(-3px);
}

.specs-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 1rem;
    font-weight: 400;
}

.specs-section {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.specs-section:hover {
    transform: translateY(-3px);
}

/* Compact PC Panel */
.pc-specs-panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pc-specs-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #4169e1);
}

.specs-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(138, 43, 226, 0.2);
    transform: translateY(-2px);
}

.spec-item .spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 10px;
    color: #8a2be2;
    flex-shrink: 0;
}

.spec-item .spec-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a0a0a0;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item .spec-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.spec-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spec-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(138, 43, 226, 0.3);
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #4169e1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spec-card:hover::before {
    opacity: 1;
}

.spec-card .spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    color: #8a2be2;
}

.spec-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.spec-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.spec-info, .spec-timing, .spec-brand {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.spec-temp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.temp-label {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.temp-value {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* GPU specific styles */
.gpu-list {
    margin-top: 1rem;
}

.gpu-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gpu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gpu-name {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.gpu-info, .gpu-status {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.display-info {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Storage specific styles */
.storage-list {
    margin-top: 1rem;
}

.storage-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.storage-item:last-child {
    border-bottom: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.storage-name {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.storage-info {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.optical-info {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 1rem;
}

/* Performance Section */
.performance-section {
    margin: 4rem 0;
}

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

.performance-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(65, 105, 225, 0.3);
}

.performance-card h3 {
    color: #4169e1;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.performance-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    margin-top: 3rem;
}

.contact-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Design for Specs Page */
@media (max-width: 768px) {
    .specs-grid-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pc-specs-panel {
        padding: 1.5rem;
    }
    
    .spec-item {
        padding: 0.8rem;
    }
    
    .spec-item .spec-icon {
        width: 35px;
        height: 35px;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .performance-card {
        padding: 1.5rem;
    }
    
    .contact-section {
        padding: 2rem;
    }
    
    .specs-summary {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .specs-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .pc-specs-panel {
        padding: 1.2rem;
    }
    
    .spec-item {
        padding: 0.6rem;
        gap: 0.8rem;
    }
    
    .spec-item .spec-details h4 {
        font-size: 0.8rem;
    }
    
    .spec-item .spec-name {
        font-size: 0.9rem;
    }
    
    .spec-item .spec-icon {
        width: 30px;
        height: 30px;
    }
    
    .performance-card {
        padding: 1.2rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
    
    .specs-summary {
        padding: 1.2rem;
    }
    
    .specs-description {
        font-size: 1rem;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .links-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
    }
    
    .links-section .links-category:first-child {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    
    .links-section .links-category:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .links-section .links-category:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .links-category {
        padding: 1.8rem;
    }
}

/* Large screen adjustments */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        padding: 3rem 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .links-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 3rem;
    }
    
    .links-section .links-category:first-child {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    
    .links-section .links-category:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .links-section .links-category:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .links-category {
        padding: 2.5rem;
    }
    
    .link-card {
        padding: 1.5rem 2rem;
        border-radius: 18px;
    }
    
    .link-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

/* ===============================================
   ENHANCED MOBILE OPTIMIZATIONS
   =============================================== */

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    /* Disable fullPage.js behavior on mobile */
    #fullpage {
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Fix fullpage sections for mobile */
    .section {
        height: auto !important;
        min-height: 100vh;
        min-height: 100svh; /* Small viewport height for mobile */
        padding: 2rem 0.5rem;
        display: block !important;
        position: relative !important;
        transform: none !important;
    }
    
    .fp-section {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* Container fixes for mobile */
    .container {
        max-width: 100%;
        width: 100%;
        padding: 1rem 0.75rem;
        margin: 0;
        min-height: auto;
    }
    
    .section .container {
        max-width: 100%;
        width: 100%;
        padding: 1rem 0.75rem;
        height: auto;
        min-height: auto;
    }
    
    /* Home section mobile fixes */
    .section[data-anchor="home"] .container {
        max-width: 100%;
        width: 100%;
        padding: 1.5rem 1rem;
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        position: relative !important;
    }
    
    .section[data-anchor="home"] {
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        padding: 2rem 0.5rem !important;
    }
    
    /* Home content mobile layout */
    .home-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 0 !important;
    }
    
    /* Profile section mobile */
    .profile-section {
        width: 100%;
        max-width: 320px;
        padding: 2rem 1.5rem;
        text-align: center;
        margin-bottom: 2rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .profile-image {
        margin-bottom: 1.5rem;
    }
    
    .container .profile-section .profile-image .avatar-img,
    .profile-section .profile-image img[src*="PFP"] {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .profile-name {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }
    
    .profile-description {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        opacity: 0.9 !important;
    }
    
    .profile-tagline {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    /* Who Am I panel mobile */
    .who-am-i-panel {
        width: 100% !important;
        max-width: 320px !important;
        padding: 2rem 1.5rem !important;
        margin: 0 auto 2rem auto !important;
        text-align: left !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .panel-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .panel-content p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    /* Home footer mobile */
    .home-footer {
        display: none !important; /* Hide copyright footer on mobile */
    }    .home-footer p {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .home-footer .footer-links span {
        font-size: 0.65rem !important;
    }
    
    /* Links section mobile fixes */
    .section[data-anchor="links"] {
        padding: 1rem 0.5rem !important;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
    }
    
    .section[data-anchor="links"] .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem 0.75rem !important;
        height: auto !important;
        min-height: auto !important;
        display: block !important;
    }
    
    .links-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        padding: 1.5rem 0 !important;
    }
    
    /* Links categories mobile */
    .links-category {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem 1.5rem !important;
        margin: 0 0 1rem 0 !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    .category-title {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .links-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        grid-template-columns: none !important;
    }
    
    /* Link cards mobile */
    .link-card {
        padding: 1.25rem 1.5rem !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        gap: 1.25rem !important;
        text-decoration: none !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: all 0.3s ease !important;
        min-height: 70px !important;
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .link-card:hover {
        transform: translateY(-2px) !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    .link-icon {
        flex-shrink: 0 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .link-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .link-content {
        flex: 1 !important;
        text-align: left !important;
    }
    
    .link-content h3 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .link-content p {
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    
    /* Links footer mobile */
    .footer {
        margin-top: 3rem !important;
        padding: 2rem 1.5rem !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .footer p {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .footer .footer-links span {
        font-size: 0.65rem !important;
        color: rgba(255, 255, 255, 0.6) !important;
    }
    
    /* Navigation adjustments for mobile */
    /* Hide nav dots on phones to reduce clutter */
    #fp-nav { display: none !important; }
    
    /* Prevent horizontal overflow */
    body, html { overflow-x: hidden !important; max-width: 100vw !important; }
    body { padding-bottom: env(safe-area-inset-bottom); padding-top: env(safe-area-inset-top); }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Medium Mobile Devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Disable fullPage.js behavior on tablets too */
    #fullpage {
        height: auto !important;
        overflow: visible !important;
    }
    
    .section {
        height: auto !important;
        padding: 1.5rem 1rem;
        display: block !important;
        position: relative !important;
        transform: none !important;
    }
    
    .fp-section {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        position: relative !important;
        transform: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .home-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        grid-template-columns: none !important;
    }
    
    .profile-section {
        max-width: 400px;
        padding: 2rem;
    }
    
    .container .profile-section .profile-image .avatar-img,
    .profile-section .profile-image img[src*="PFP"] {
        width: 140px !important;
        height: 140px !important;
    }
    
    .who-am-i-panel {
        max-width: 400px !important;
        padding: 2rem !important;
    }
    
    .links-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        grid-template-columns: none !important;
    }
    
    .links-category {
        padding: 2rem !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
}

/* Extra-small tweaks and visual polish for phones */
@media (max-width: 480px) {
    /* Tone down background effects for performance/clarity */
    .background-decoration, .floating-orb { display: none !important; }

    /* Soften card corners and spacing */
    .links-category { border-radius: 14px !important; }
    .link-card { border-radius: 12px !important; }

    /* Ensure no clipped content inside sections */
    .fp-section { min-height: 100vh !important; }

    /* Make nav dots less intrusive on phones */
    #fp-nav { right: 6px !important; }
    #fp-nav ul li a span { width: 8px !important; height: 8px !important; }
}
