/* CSS Custom Properties for Theme Switching */
:root {
    /* Nintendo Theme (Light Mode) */
    --primary-red: rgb(230, 0, 18);
    --primary-blue: rgb(0, 195, 227);
    --bg-gradient: linear-gradient(45deg, rgb(230, 0, 18) 0%, rgb(0, 195, 227) 25%, rgb(230, 0, 18) 50%, rgb(0, 195, 227) 75%, rgb(230, 0, 18) 100%);
    --container-bg: white;
    --text-color: #333;
    --text-light: #666;
    --header-bg: #f8f8f8;
    --section-bg: #f8f8f8;
    --border-accent: #E60012;
    --skill-tag-bg: #E60012;
    --skill-tag-text: white;
    --skill-category-border: #ddd;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-link-color: #333;
    --nav-link-hover: #E60012;
    --nav-active-bg: rgba(230, 0, 18, 0.1);
    --nav-hover-bg: rgba(230, 0, 18, 0.1);
    --nav-floating-active: rgba(230, 0, 18, 0.9);
    --nav-floating-hover: rgba(230, 0, 18, 0.8);
    --nav-floating-shadow: rgba(230, 0, 18, 0.3);
    --button-hover: #b8000e;
    --arrow-bg: rgba(230, 0, 18, 0.9);
    --arrow-hover: rgba(200, 0, 15, 0.95);
    --arrow-shadow: rgba(230, 0, 18, 0.3);
    --arrow-hover-shadow: rgba(230, 0, 18, 0.4);
    --project-header-gradient: linear-gradient(135deg, #E60012 0%, #c8000f 100%);
    --skill-tag-gradient: linear-gradient(135deg, #E60012, #FF4757);
    --project-type-bg: #E60012;
    --project-type-text: white;
    --experience-date-bg: #E60012;
    --experience-date-text: white;
    --contact-icon-color: #E60012;
    --reveal-mask-color: #E60012;
    --footer-bg: white;
    --footer-text-color: #e31e24;
    --primary-color: #E60012;
    --primary-hover: #b8000e;
}

/* Nintendo theme SVG color overrides */
:root .copy-btn svg path, 
:root .copy-btn svg circle,
:root .copy-btn svg rect,
:root .reveal-btn svg path, 
:root .reveal-btn svg circle,
:root .reveal-btn svg rect {
    stroke: #e31e24 !important;
}

:root .header-copy-btn svg path, 
:root .header-copy-btn svg circle,
:root .header-copy-btn svg rect,
:root .header-reveal-btn svg path, 
:root .header-reveal-btn svg circle,
:root .header-reveal-btn svg rect {
    stroke: #e31e24 !important;
}

:root .contact-reveal-btn svg path,
:root .contact-reveal-btn svg circle,
:root .contact-reveal-btn svg rect,
:root .contact-copy-btn svg path,
:root .contact-copy-btn svg circle,
:root .contact-copy-btn svg rect {
    stroke: #e31e24 !important;
}

/* PlayStation Theme (Dark Mode) */
[data-theme="dark"] {
    --primary-red: #1f1f1f;
    --primary-blue: #0066cc;
    --bg-gradient: radial-gradient(ellipse at center, #0066cc 0%, #000000 100%);
    --container-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --header-bg: #2d2d2d;
    --section-bg: #2d2d2d;
    --border-accent: #0066cc;
    --skill-tag-bg: #0066cc;
    --skill-tag-text: white;
    --skill-category-border: #444;
    --box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    --nav-bg: rgba(26, 26, 26, 0.95);
    --nav-link-color: #e0e0e0;
    --nav-link-hover: #0066cc;
    --nav-active-bg: rgba(0, 102, 204, 0.1);
    --nav-hover-bg: rgba(0, 102, 204, 0.1);
    --nav-floating-active: rgba(0, 102, 204, 0.9);
    --nav-floating-hover: rgba(0, 102, 204, 0.8);
    --nav-floating-shadow: rgba(0, 102, 204, 0.3);
    --button-hover: #004080;
    --arrow-bg: rgba(0, 102, 204, 0.9);
    --arrow-hover: rgba(0, 80, 160, 0.95);
    --arrow-shadow: rgba(0, 102, 204, 0.3);
    --arrow-hover-shadow: rgba(0, 102, 204, 0.4);
    --project-header-gradient: linear-gradient(135deg, #0066cc 0%, #004080 100%);
    --skill-tag-gradient: linear-gradient(135deg, #0066cc, #4488cc);
    --project-type-bg: #0066cc;
    --project-type-text: white;
    --experience-date-bg: #0066cc;
    --experience-date-text: white;
    --contact-icon-color: #0066cc;
    --reveal-mask-color: #0066cc;
    --footer-bg: #000000;
    --footer-text-color: #0066cc;
    --primary-color: #0066cc;
    --primary-hover: #004080;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease-in-out infinite;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s ease;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    background: var(--container-bg);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.main-content {
    width: 100%;
}

/* Header Banner */
.header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--border-accent);
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
    gap: 20px;
    transition: all 0.3s ease;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.header-photo-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.header-avatar-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    padding: 0;
    position: relative;
    margin: 0;
    animation: subtlePulse 3s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
}

.header-avatar-logo:hover {
    filter: brightness(1.2) saturate(1.3);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(230, 0, 18, 0.5);
    animation: none;
}

.header-avatar-logo::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(230, 0, 18, 0.3), transparent, rgba(230, 0, 18, 0.3)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-avatar-logo:hover::after {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.header-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    transform: none;
    background: transparent;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.header-profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

/* Avatar revealing animation */
.header-avatar-logo.avatar-revealing {
    animation: avatarReveal 0.8s ease-out forwards;
}

@keyframes avatarReveal {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.1) rotate(90deg); opacity: 0.8; }
    50% { transform: scale(0.9) rotate(180deg); opacity: 0.6; }
    75% { transform: scale(1.05) rotate(270deg); opacity: 0.4; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.1);
    }
}

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

.header-profile-photo.photo-revealed {
    animation: photoReveal 0.8s ease-out forwards;
}

@keyframes photoReveal {
    0% { transform: scale(0) rotate(-360deg); opacity: 0; }
    25% { transform: scale(0.3) rotate(-270deg); opacity: 0.4; }
    50% { transform: scale(0.7) rotate(-180deg); opacity: 0.6; }
    75% { transform: scale(0.9) rotate(-90deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.header-name-title {
    flex: 1;
}

.header-profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.header-profile-title {
    margin: 0;
    line-height: 1.4;
}

.header-title-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-block;
}

.header-title-aspiration {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
}

.header-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 280px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.header-contact-item label {
    color: #555;
    font-weight: 600;
    min-width: 60px;
}

/* Email and phone text styling for consistency */
.email-text, .phone-text {
    display: inline-block;
    vertical-align: middle;
    flex-grow: 1;
}

.header-contact-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-height: 28px;
}

/* Special styling for email and phone rows with buttons */
.header-contact-item:nth-child(1) .header-contact-value,
.header-contact-item:nth-child(2) .header-contact-value {
    justify-content: space-between;
}

.header-copy-btn, .header-reveal-btn {
    background: var(--container-bg);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-left: auto;
    color: var(--primary-color);
}

.header-copy-btn:hover, .header-reveal-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.header-copy-btn:hover svg, .header-reveal-btn:hover svg {
    stroke: white !important;
    color: white !important;
}

.header-contact-item svg {
    width: 18px;
    height: 18px;
}

/* Header logo containers for official brand logos */
.header-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    padding: 2px;
    transition: all 0.3s ease;
}

.header-logo-container:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.github-logo {
    background: #f6f8fa;
}

.github-logo:hover {
    background: #e1e4e8;
}

.linkedin-logo {
    background: #f0f7ff;
}

.linkedin-logo:hover {
    background: #cce7ff;
}

.header-logo-container svg {
    width: 20px;
    height: 20px;
}

/* Specific colors for social media logos */
.header-contact-item:nth-child(3) svg {
    stroke: #333333; /* GitHub - black/dark gray */
}

.header-contact-item:nth-child(4) svg {
    stroke: #0077B5; /* LinkedIn - official blue */
}

/* Sidebar Styles (hidden now) */
.sidebar {
    display: none;
}

.profile-section {
    text-align: center;
    background: var(--container-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-accent);
}

.photo-container {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.profile-photo.photo-revealed {
    animation: photoReveal 0.8s ease-in-out;
}

@keyframes photoReveal {
    0% { 
        opacity: 0; 
        transform: scale(0.8) rotate(-10deg); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1) rotate(5deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

.avatar-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.2);
    overflow: hidden;
}

.avatar-logo:hover {
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.3);
}

.logo-image {
    width: 125%;
    height: 125%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: scale(1.25) translateY(-3px);
}

.avatar-logo:hover .logo-image {
    filter: brightness(1.1) saturate(1.1);
    transform: scale(1.25) translateY(-3px);
}

.avatar-logo.avatar-revealing {
    animation: avatarReveal 0.8s ease-in-out;
}

@keyframes avatarReveal {
    0% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1.1) rotate(90deg); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(0.9) rotate(180deg); 
    }
    75% { 
        opacity: 0.2; 
        transform: scale(1.05) rotate(270deg); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.8) rotate(360deg); 
    }
}

.click-hint {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.profile-title-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(230, 0, 18, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(230, 0, 18, 0.2);
}

.profile-title {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.title-text {
    color: var(--primary-color);
    font-weight: 600;
}

.title-aspiration {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(230, 0, 18, 0.1);
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 1px 2px rgba(230, 0, 18, 0.1);
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 0 2px 4px rgba(230, 0, 18, 0.2);
    }
}

/* Contact Info Styles */
.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    text-align: left;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-value svg {
    color: var(--contact-icon-color);
    flex-shrink: 0;
}

.email-text, .phone-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    flex-grow: 1;
    transition: all 0.3s ease;
    font-family: monospace;
}

.phone-text {
    letter-spacing: 1px;
}

.phone-text.revealing {
    animation: revealFlicker 1.5s ease-in-out;
}

/* Header phone reveal animation */
#headerPhoneDisplay.revealing {
    animation: revealFlicker 1.5s ease-in-out;
}

#headerPhoneDisplay.revealed {
    font-family: inherit;
    letter-spacing: normal;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
    flex-grow: 1;
}

/* Header phone link styling */
.header-contact-value .phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
    flex-grow: 1;
}

.header-contact-value .phone-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.phone-text.revealed {
    font-family: inherit;
    letter-spacing: normal;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact section phone container and reveal functionality */
.contact-phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-phone-text {
    font-family: monospace;
    letter-spacing: 1px;
}

.contact-phone-text.revealing {
    animation: revealFlicker 1.5s ease-in-out;
}

.contact-phone-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-phone-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

.contact-reveal-btn,
.contact-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-reveal-btn:hover,
.contact-copy-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.contact-reveal-btn:hover svg,
.contact-copy-btn:hover svg {
    color: white;
}

.contact-reveal-btn svg,
.contact-copy-btn svg {
    width: 16px;
    height: 16px;
}

.contact-reveal-btn svg path,
.contact-reveal-btn svg circle,
.contact-reveal-btn svg rect,
.contact-copy-btn svg path,
.contact-copy-btn svg circle,
.contact-copy-btn svg rect {
    stroke: #E60012 !important;
}

/* PlayStation theme overrides */
[data-theme="dark"] .contact-reveal-btn svg path,
[data-theme="dark"] .contact-reveal-btn svg circle,
[data-theme="dark"] .contact-reveal-btn svg rect,
[data-theme="dark"] .contact-copy-btn svg path,
[data-theme="dark"] .contact-copy-btn svg circle,
[data-theme="dark"] .contact-copy-btn svg rect {
    stroke: #0066cc !important;
}

@keyframes revealFlicker {
    0% { opacity: 1; transform: scale(1); }
    15% { opacity: 0.7; transform: scale(1.03); }
    30% { opacity: 0.4; transform: scale(0.97); }
    45% { opacity: 0.8; transform: scale(1.05); }
    60% { opacity: 0.3; transform: scale(0.95); }
    75% { opacity: 0.9; transform: scale(1.02); }
    90% { opacity: 0.5; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #b8000e;
    text-decoration: underline;
}

.phone-link {
    color: inherit;
    text-decoration: none;
    display: contents;
}

.phone-link:hover {
    text-decoration: none;
}

.copy-btn, .reveal-btn {
    background: var(--container-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-btn:hover, .reveal-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.copy-btn:hover svg, .reveal-btn:hover svg {
    stroke: white !important;
    color: white !important;
}

.copy-btn svg, .reveal-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn svg path, 
.copy-btn svg circle,
.copy-btn svg rect,
.reveal-btn svg path, 
.reveal-btn svg circle,
.reveal-btn svg rect {
    stroke: #E60012 !important;
}

/* PlayStation theme overrides */
[data-theme="dark"] .copy-btn svg path, 
[data-theme="dark"] .copy-btn svg circle,
[data-theme="dark"] .copy-btn svg rect,
[data-theme="dark"] .reveal-btn svg path, 
[data-theme="dark"] .reveal-btn svg circle,
[data-theme="dark"] .reveal-btn svg rect {
    stroke: #0066cc !important;
}

.header-copy-btn svg, .header-reveal-btn svg {
    width: 16px;
    height: 16px;
}

.header-copy-btn svg path, 
.header-copy-btn svg circle,
.header-copy-btn svg rect,
.header-reveal-btn svg path, 
.header-reveal-btn svg circle,
.header-reveal-btn svg rect {
    stroke: #E60012 !important;
}

/* PlayStation theme overrides */
[data-theme="dark"] .header-copy-btn svg path, 
[data-theme="dark"] .header-copy-btn svg circle,
[data-theme="dark"] .header-copy-btn svg rect,
[data-theme="dark"] .header-reveal-btn svg path, 
[data-theme="dark"] .header-reveal-btn svg circle,
[data-theme="dark"] .header-reveal-btn svg rect {
    stroke: #0066cc !important;
}

/* Main Content Styles - Updated for header layout */
.main-content {
    flex: 1;
    padding: 0;
}

/* Old Header Styles - Removed since we now have header banner */

/* Navigation Styles */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-accent);
    transition: all 0.3s ease;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--nav-link-hover);
    background: var(--nav-hover-bg);
}

/* Header Theme Toggle */
.header-theme-toggle {
    margin-left: auto;
}

.theme-toggle-container {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.theme-toggle-btn {
    background: var(--skill-tag-bg);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
    color: white;
}

.nintendo-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.playstation-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .nintendo-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .playstation-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.nintendo-label {
    opacity: 1;
    color: #E60012;
}

.playstation-label {
    opacity: 0.5;
    color: #666;
}

[data-theme="dark"] .nintendo-label {
    opacity: 0.5;
    color: #666;
}

[data-theme="dark"] .playstation-label {
    opacity: 1;
    color: #0066cc;
}

/* Mobile Floating Navigation */
.mobile-floating-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-accent);
    padding: 12px 20px;
    max-width: 90vw;
    overflow-x: auto;
}

.floating-nav-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Desktop Scroll Navigation Arrows */
.scroll-to-top, .scroll-to-bottom {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--border-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.scroll-to-top {
    top: 100px;
}

.scroll-to-bottom {
    bottom: 100px;
}

.scroll-to-top.visible, .scroll-to-bottom.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover, .scroll-to-bottom:hover {
    background: var(--button-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 18px var(--arrow-hover-shadow);
}

.scroll-to-top svg, .scroll-to-bottom svg {
    transition: all 0.3s ease;
}

.scroll-to-top:hover svg, .scroll-to-bottom:hover svg {
    transform: scale(1.1);
}

/* Hide desktop scroll arrows on mobile */
@media screen and (max-width: 768px) {
    .scroll-to-top, .scroll-to-bottom {
        display: none;
    }
}

/* Mobile Scroll Arrows */
.mobile-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.mobile-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--arrow-bg);
    color: white;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px var(--arrow-shadow);
    z-index: 2;
}

/* Inactive placeholder arrows (now hidden) */
.mobile-scroll-inactive {
    opacity: 0;
    visibility: hidden;
    transform: scale(0) translateX(20px);
    background: rgba(200, 200, 200, 0.3);
    color: rgba(150, 150, 150, 0.6);
    cursor: default;
    box-shadow: none;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
}

.mobile-scroll-arrow:hover {
    background: var(--arrow-hover);
    transform: scale(1.1) translateX(0);
    box-shadow: 0 6px 18px var(--arrow-hover-shadow);
}

.mobile-scroll-arrow svg {
    transition: all 0.3s ease;
}

.mobile-scroll-arrow:hover svg {
    transform: scale(1.1);
}

/* Animation for nav items when scroll arrows appear */
.floating-nav-links.arrows-visible .floating-nav-link {
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav-links.arrows-visible .floating-nav-link:hover {
    transform: scale(1.05);
}

.floating-nav-links:has(.mobile-scroll-arrow.visible) .floating-nav-link {
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav-links:has(.mobile-scroll-arrow.visible) .floating-nav-link:hover {
    transform: scale(1.05);
}

/* Fallback for browsers without :has() support */
@supports not (selector(:has(.mobile-scroll-arrow))) {
    .floating-nav-links .floating-nav-link {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-scroll-arrow.visible ~ .floating-nav-link,
    .floating-nav-link:has(~ .mobile-scroll-arrow.visible) {
        transform: scale(0.95);
    }
}

.floating-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    color: var(--nav-link-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.floating-nav-link:hover, .floating-nav-link:focus {
    background: var(--nav-floating-hover);
    color: white;
    transform: scale(1.1);
    outline: none;
}

.floating-nav-link svg {
    transition: all 0.3s ease;
}

/* Tooltip for floating nav */
.floating-nav-link::before {
    content: attr(title);
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.floating-nav-link:hover::before {
    opacity: 1;
}

.floating-nav-link::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.floating-nav-link::before {
    content: '';
    position: absolute;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.floating-nav-link:hover::before,
.floating-nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

.nav-link {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--nav-link-hover);
    background: var(--nav-hover-bg);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nav-link-hover);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.intro-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 12px;
    border: 2px solid #E60012;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.intro-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* About Section */
.about-section {
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    background: var(--section-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-accent);
    max-width: 100%;
}

.about-section h2 {
    color: var(--border-accent);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.about-box, .skills-box {
    flex: 1;
    background: var(--header-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-accent);
    position: relative;
    transition: all 0.3s ease;
}

.about-box h3, .skills-box h3 {
    color: var(--border-accent);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.about-text {
    text-align: left;
}

.about-text p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

/* Value Proposition */
.value-proposition {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 12px;
    font-style: italic;
    font-weight: 500;
    color: #333;
    border: 2px solid #E60012;
    margin: 2rem 0;
}

/* Resume Download */
.resume-download {
    text-align: center;
    margin-top: 2.5rem;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--border-accent);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.resume-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--arrow-hover-shadow);
}

/* Skills Section */
.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--skill-tag-bg);
    color: var(--skill-tag-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--skill-tag-bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--arrow-shadow);
}

.skill-tag:hover {
    background: var(--border-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--arrow-hover-shadow);
}

/* Contact Section */
.contact-section {
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    background: var(--section-bg) !important;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-accent) !important;
    max-width: 100%;
    color: var(--text-color);
}

.contact-section h2 {
    color: var(--border-accent);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.contact-content {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-side, .contact-form-side {
    flex: 1;
}

.contact-info-side h3, .contact-form-side h3 {
    color: var(--border-accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--container-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateY(-2px);
}

.contact-detail-item svg {
    flex-shrink: 0;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-value-text {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.contact-link-item {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link-item:hover {
    color: var(--border-accent);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--skill-category-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: var(--container-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.send-message-btn {
    background: var(--border-accent);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-message-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

.send-message-btn:active {
    transform: translateY(0);
}

.send-message-btn svg {
    flex-shrink: 0;
}

/* Certifications Section */
.certifications-section {
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    background: var(--section-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-accent);
    max-width: 100%;
    transition: all 0.3s ease;
}

.certifications-section h2 {
    color: var(--border-accent);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-item {
    background: var(--container-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--border-accent);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px;
    overflow: visible;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    border-color: var(--border-accent);
}

.certification-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.certification-logo {
    flex-shrink: 0;
}

.cert-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #E60012, #FF4757);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.certification-info {
    flex: 1;
}

.certification-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.certification-issuer {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.certification-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.certification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certification-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1rem;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.certification-links {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.certification-link:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.certification-link svg {
    flex-shrink: 0;
}

/* Certification Skills */
.certification-skills {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.certification-skills .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.certification-skills .skill-tag {
    background: var(--skill-tag-gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 8px var(--arrow-shadow);
    transition: all 0.3s ease;
}

.certification-skills .skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--arrow-hover-shadow);
}

/* Experience Section */
.experience-section {
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    background: var(--section-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-accent);
    max-width: 100%;
    transition: all 0.3s ease;
}

.experience-section h2 {
    color: var(--border-accent);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.experience-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 43px;
    top: 20px;
    width: 17px;
    height: 17px;
    background: var(--border-accent);
    border-radius: 50%;
    border: 3px solid var(--container-bg);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    z-index: 1;
    transition: all 0.3s ease;
}

.experience-date {
    min-width: 140px;
    font-weight: 600;
    color: var(--experience-date-text);
    font-size: 0.95rem;
    text-align: center;
    background: var(--experience-date-bg);
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-accent);
    box-shadow: var(--box-shadow);
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.experience-content {
    flex: 1;
    background: var(--container-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--skill-category-border);
    transition: all 0.3s ease;
}

.experience-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.job-title {
    color: var(--border-accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.company-name {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.job-responsibilities {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.job-responsibilities li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-content .tech-tag {
    background: var(--skill-tag-bg);
    color: var(--skill-tag-text);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.experience-content .tech-tag:hover {
    background: var(--border-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

/* Education Section */
.education-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #E60012;
}

.education-section h2 {
    color: #E60012;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #E60012;
    border-radius: 2px;
}

.education-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 41px;
    top: 20px;
    width: 21px;
    height: 21px;
    background: white;
    border: 4px solid #E60012;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
    z-index: 1;
}

.education-date {
    min-width: 140px;
    font-weight: 600;
    color: #E60012;
    font-size: 0.95rem;
    text-align: center;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid #E60012;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
}

.education-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.degree-title {
    color: #E60012;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.institution-name {
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.coursework {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.coursework strong {
    color: #E60012;
}

/* Tablet breakpoint for certifications */
@media (max-width: 1024px) and (min-width: 769px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .certification-item {
        height: 420px;
    }
    
    .certification-title {
        font-size: 1.1rem;
    }
    
    .certification-issuer {
        font-size: 0.95rem;
    }
    
    .certification-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* Projects Section */
.projects-section {
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    background: var(--section-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-accent);
    max-width: 100%;
    transition: all 0.3s ease;
}

.projects-section h2 {
    color: var(--border-accent);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
}

/* Tablet breakpoint - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.project-item {
    background: var(--container-bg);
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--arrow-shadow);
}

.project-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: var(--project-header-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.project-type {
    background: var(--project-type-bg);
    color: var(--project-type-text);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-image-container {
    position: relative;
    overflow: hidden;
}

.project-image-container img,
.project-image-container video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Specific styling for Porygon project to show full image */
.porygon-project .project-image-container img {
    object-fit: contain;
}

/* Specific styling for AI Agent project to show full image */
.ai-agent-project .project-image-container {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.ai-agent-project .project-image-container img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.project-item:hover .project-image-container img,
.project-item:hover .project-image-container video {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.project-tech-stack {
    margin-bottom: 1.5rem;
}

.project-tech-stack h4 {
    color: var(--border-accent);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags .tech-tag {
    background: var(--skill-tag-bg);
    color: var(--skill-tag-text);
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tags .tech-tag:hover {
    background: var(--border-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.project-link.primary {
    background: var(--border-accent);
    color: white;
    border: 2px solid var(--border-accent);
}

.project-link.primary:hover {
    background: white;
    color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--arrow-shadow);
}

.project-link.disabled {
    background: #f0f0f0;
    color: #999;
    border: 2px solid #ddd;
    cursor: not-allowed;
    pointer-events: none;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: scale(1.1);
}

.project-fine-print {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
}

/* Contact Section Styles */
.contact-section {
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #E60012;
    max-width: 100%;
}
footer {
    text-align: center;
    padding: 2rem;
    background: var(--footer-bg);
    border-top: 2px solid var(--border-accent);
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

footer p {
    color: var(--footer-text-color);
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: absolute;
    right: 0;
}

.footer-link {
    color: var(--footer-text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--footer-text-color);
}

.footer-link:hover {
    background: var(--footer-text-color);
    color: white;
    transform: translateY(-2px);
}

.footer-link svg {
    color: inherit;
}

.footer-link:hover svg {
    stroke: white;
}
/* Medium Laptop Screens */
@media screen and (max-width: 1200px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
        padding: 1.5rem;
    }
    
    .about-box, .skills-box, .experience-section {
        padding: 2rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
}

/* Small Laptop Screens */
@media screen and (max-width: 1100px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
        padding: 1.25rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-box, .skills-box {
        flex: none;
    }
    
    .experience-section {
        padding: 1.75rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-section {
        padding: 2rem;
    }
}

/* Tablet Responsive Styles */
@media screen and (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-floating-nav {
        display: block;
    }
}

/* Tablet and Small Laptop Responsive Styles */
@media (max-width: 1024px) {
    .header-banner {
        padding: 18px 25px;
        gap: 18px;
    }
    
    .header-profile-name {
        font-size: 1.6rem;
    }
    
    .header-contact-info {
        min-width: 250px;
    }
}

@media (max-width: 900px) {
    .header-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 22px;
    }
    
    .header-contact-info {
        min-width: unset;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Container and overall layout */
    .container {
        padding: 5px 8px;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure all sections stay within bounds */
    .main-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Prevent text overflow */
    .main-content * {
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Header optimizations */
    .header-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
        gap: 12px;
        margin-bottom: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-profile {
        min-width: unset;
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .header-name-title {
        order: 1;
        width: 100%;
    }
    
    .header-photo-container {
        order: 0;
        width: 60px;
        height: 60px;
    }
    
    .header-avatar-logo {
        width: 60px;
        height: 60px;
    }
    
    .header-profile-photo {
        width: 60px;
        height: 60px;
    }
    
    .header-profile-name {
        font-size: 1.3rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .header-profile-title {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .header-title-text, .header-title-aspiration {
        font-size: 0.75rem;
    }
    
    /* Contact info mobile layout */
    .header-contact-info {
        min-width: unset;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        align-items: stretch;
    }
    
    .header-contact-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 0.8rem;
        gap: 10px;
        width: 100%;
        padding: 8px 12px;
        background: rgba(230, 0, 18, 0.05);
        border-radius: 8px;
        border-left: 3px solid var(--border-accent);
    }

/* PlayStation theme override for header contact items */
[data-theme="dark"] .header-contact-item {
    background: rgba(0, 102, 204, 0.05);
}
    
    .header-contact-item label {
        min-width: 55px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--border-accent);
        flex-shrink: 0;
    }
    
    .header-contact-value {
        font-size: 0.8rem;
        gap: 8px;
        min-height: 26px;
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .header-copy-btn, .header-reveal-btn {
        min-width: 28px;
        height: 28px;
        padding: 4px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .header-copy-btn svg, .header-reveal-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .header-logo-container {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .header-logo-container svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-link {
        color: #333;
        text-decoration: none;
        font-weight: 500;
    }
    
    .contact-link:hover {
        color: #E60012;
        text-decoration: underline;
    }
    
    /* Navigation */
    .main-nav {
        position: sticky;
        top: 0;
        justify-content: center;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        z-index: 100;
    }
    
    .desktop-nav {
        display: none;
    }
    
    /* Mobile floating navigation */
    .mobile-floating-nav {
        display: block;
    }
    
    /* Main content sections */
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .about-section, .experience-section, .certifications-section, .projects-section, .contact-section {
        padding: 1rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .about-section h2, .experience-section h2, .certifications-section h2, .projects-section h2, .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* About section mobile */
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-box, .skills-box {
        padding: 1rem;
    }
    
    .about-box h3, .skills-box h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .resume-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .skill-category h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin: 2px;
    }
    
    /* Experience section mobile - completely different design */
    .experience-section {
        padding: 1.5rem 1rem;
    }
    
    .experience-timeline {
        margin-top: 1.5rem;
        position: relative;
    }
    
    /* Hide the timeline line on mobile */
    .experience-timeline::before {
        display: none;
    }
    
    /* Hide the timeline dots on mobile */
    .experience-item::before {
        display: none;
    }
    
    .experience-item {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-left: 0; /* Remove left margin */
        margin-bottom: 1.5rem;
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
        background: var(--section-bg);
        border: 1px solid var(--border-accent);
        border-left: 4px solid var(--border-accent);
        box-shadow: var(--box-shadow);
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile-specific date styling */
    .experience-date {
        order: -1; /* Move date to top */
        align-self: flex-start;
        background: var(--experience-date-bg);
        color: var(--experience-date-text);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 20px;
        margin-bottom: 8px;
        display: inline-block;
        width: fit-content;
    }
    
    .experience-date {
        order: -1; /* Move date to top */
        align-self: flex-start;
        background: var(--experience-date-bg);
        color: var(--experience-date-text);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 20px;
        margin-bottom: 8px;
        display: inline-block;
        width: fit-content;
    }
    
    .experience-content {
        width: 100%;
    }
    
    .job-title {
        font-size: 1.2rem;
        color: var(--border-accent);
        margin-bottom: 4px;
        font-weight: 600;
    }
    
    .company-name {
        font-size: 1rem;
        color: var(--text-light);
        margin-bottom: 1rem;
        font-weight: 500;
    }
    
    .job-responsibilities {
        margin: 1rem 0;
    }
    
    .job-responsibilities li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
        color: var(--text-color);
    }
    
    .tech-stack {
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tech-tag {
        padding: 3px 6px;
        font-size: 0.7rem;
        margin: 2px;
    }
    
    /* Certifications section mobile */
    .certifications-section {
        padding: 1.5rem 1rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .certification-item {
        padding: 1.5rem;
        margin-bottom: 0;
        border-radius: 12px;
        background: var(--section-bg);
        border: 2px solid var(--border-accent);
        box-shadow: var(--box-shadow);
        width: 100%;
        box-sizing: border-box;
        height: auto;
        min-height: 280px;
        overflow: hidden;
    }
    
    .certification-header {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .cert-logo-placeholder {
        display: none;
    }
    
    .certification-info {
        text-align: left;
    }
    
    .certification-title {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .certification-issuer {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .certification-date {
        font-size: 0.85rem;
    }
    
    .certification-description {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .certification-links {
        justify-content: center;
    }
    
    .certification-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    /* Projects section mobile */
    .project-grid {
        position: relative;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1rem 1rem 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        transition: none; /* Remove any transition delays */
    }
    
    .project-grid::-webkit-scrollbar {
        display: none;
    }
    
    .project-item {
        flex: 0 0 280px;
        width: 280px;
        height: 580px; /* Fixed height for all cards */
        scroll-snap-align: center;
        margin-right: 0;
        display: flex;
        flex-direction: column;
    }
    
    .project-item .project-header {
        flex-shrink: 0; /* Don't allow header to shrink */
        height: auto;
        min-height: 80px; /* Consistent header height */
    }
    
    .project-item .project-image-container {
        flex-shrink: 0; /* Don't allow image container to shrink */
        height: 200px;
        overflow: hidden;
    }
    
    .project-item .project-image-container img,
    .project-item .project-image-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Mobile-specific styling for Porygon project */
    .porygon-project .project-image-container img {
        object-fit: contain;
    }
    
    /* Mobile-specific styling for AI Agent project */
    .ai-agent-project .project-image-container {
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    
    .ai-agent-project .project-image-container img {
        object-fit: contain;
        width: 100%;
        height: 100%;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    .project-item .project-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        overflow: hidden; /* Prevent content from breaking layout */
    }
    
    .project-item .project-description {
        flex: 1;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* Limit description to 4 lines */
        line-clamp: 4; /* Standard property for compatibility */
        -webkit-box-orient: vertical;
    }
    
    .project-item .project-tech-stack {
        flex-shrink: 0; /* Don't allow tech stack to shrink */
        margin-top: auto;
    }
    
    .project-item .project-tech-stack h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .project-item .project-tech-stack .tech-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        max-height: 60px; /* Limit tech tags height */
        overflow: hidden;
    }
    
    .project-item .project-tech-stack .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .project-item .project-links {
        flex-shrink: 0; /* Don't allow links to shrink */
        margin-top: 0.5rem;
    }
    
    .project-item h3 {
        font-size: 1.1rem;
    }
    
    /* Add scroll indicators for mobile */
    .projects-section::after {
        content: "Auto-rotating • Tap arrows to navigate";
        display: block;
        text-align: center;
        color: #666;
        font-size: 0.85rem;
        margin-top: 1rem;
        font-style: italic;
        animation: pulse 2s ease-in-out infinite;
    }
    
    /* Carousel Arrow Controls */
    .carousel-arrows {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        pointer-events: none; /* Allow clicks to pass through container */
        z-index: 15;
        height: 200px; /* Match project image height */
    }
    
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        background: var(--arrow-bg);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        pointer-events: all; /* Enable clicks on buttons */
        z-index: 20;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 4px 15px var(--arrow-shadow);
    }
    
    .carousel-arrow:hover {
        background: var(--arrow-hover);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px var(--arrow-hover-shadow);
    }
    
    .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
    
    .carousel-arrow svg {
        color: white;
        width: 24px;
        height: 24px;
        transition: transform 0.2s ease;
    }
    
    .carousel-arrow:hover svg {
        transform: scale(1.2);
    }
    
    /* Carousel Toggle Button - Desktop only */
    .carousel-toggle-auto {
        position: absolute;
        top: 10px;
        right: 120px;
        width: 24px;
        height: 24px;
        background: rgba(76, 175, 80, 0.1);
        border: 1px solid rgba(76, 175, 80, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        pointer-events: all;
        z-index: 20;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        color: #4CAF50;
    }
    
    /* Desktop only styles */
    @media (min-width: 769px) {
        .carousel-toggle-auto {
            display: flex !important;
        }
    }
    
    .carousel-toggle-auto:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    
    .carousel-toggle-auto:active {
        transform: scale(0.95);
    }
    
    .carousel-toggle-auto svg {
        width: 12px;
        height: 12px;
        transition: transform 0.2s ease;
    }
    
    .carousel-toggle-auto:hover svg {
        transform: scale(1.1);
    }
    
    /* Hide arrows when not hovering over projects section on desktop */
    @media (min-width: 769px) {
        .carousel-arrows {
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .projects-section:hover .carousel-arrows {
            opacity: 1;
        }
    }
    
    /* Always show arrows on mobile */
    @media (max-width: 768px) {
        .carousel-arrows {
            opacity: 0.7;
        }
        
        .carousel-arrow {
            width: 40px;
            height: 40px;
        }
        
        .carousel-arrow svg {
            width: 20px;
            height: 20px;
        }
        
        .carousel-toggle-auto {
            display: none !important; /* Force hide toggle button on mobile */
        }
        
        /* Make status indicator clickable on mobile */
        .carousel-status-text {
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            user-select: none !important;
            position: absolute !important;
            top: 10px !important;
            right: 20px !important;
            z-index: 25 !important;
        }
        
        .carousel-status-text:hover {
            transform: scale(1.05) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        }
        
        .carousel-status-text:active {
            transform: scale(0.95) !important;
        }
        
        /* Add subtle tap hint for mobile */
        .carousel-status-text::after {
            content: '' !important;
            position: absolute !important;
            top: -2px !important;
            right: -2px !important;
            bottom: -2px !important;
            left: -2px !important;
            border: 1px dashed rgba(76, 175, 80, 0.3) !important;
            border-radius: 14px !important;
            opacity: 0 !important;
            transition: opacity 0.3s ease !important;
            animation: pulse-hint 2s infinite !important;
        }
        
        @keyframes pulse-hint {
            0%, 70%, 100% { 
                opacity: 0 !important; 
                transform: scale(1) !important;
            }
            35% { 
                opacity: 0.6 !important; 
                transform: scale(1.05) !important;
            }
        }
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
    
    /* Contact section mobile */
    .contact-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-side, .contact-form-side {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info-side h3, .contact-form-side h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-detail-item {
        padding: 0.75rem;
        gap: 10px;
    }
    
    .contact-detail-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .contact-label {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .contact-value-text {
        font-size: 0.85rem;
    }
    
    .contact-phone-container {
        gap: 6px;
    }
    
    .contact-reveal-btn, .contact-copy-btn {
        min-width: 24px;
        height: 24px;
        padding: 3px;
    }
    
    .contact-reveal-btn svg, .contact-copy-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input, 
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .send-message-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input, .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .send-message-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Footer mobile */
    footer {
        text-align: center;
        padding: 1rem;
        font-size: 0.8rem;
        margin-top: 2rem;
        margin-bottom: 80px; /* Add space for floating nav */
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }

    .footer-links {
        position: static;
        justify-content: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Prevent all horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 5px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .header-banner {
        padding: 10px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .about-section, .experience-section, .certifications-section, .projects-section, .contact-section {
        padding: 1rem 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .about-box, .skills-box, .experience-item, .certification-item, .contact-detail-item {
        padding: 1rem 0.85rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 1.5rem;
    }
    
    /* Ensure certifications stay in one row on small screens */
    .certifications-grid {
        gap: 0.75rem;
    }
    
    .header-profile-name {
        font-size: 1.2rem;
    }
    
    .header-profile-title {
        font-size: 0.7rem;
    }
    
    .header-contact-item {
        font-size: 0.7rem;
    }
    
    .floating-nav-links {
        gap: 15px;
        flex-wrap: nowrap;
        overflow-x: visible;
    }
    
    .floating-nav-link {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .mobile-floating-nav {
        bottom: 15px;
        padding: 10px 16px;
        max-width: calc(100vw - 20px);
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
}

/* iPhone SE and very small screens */
@media screen and (max-width: 375px) {
    .floating-nav-links {
        gap: 12px;
        padding: 0 8px;
    }
    
    .floating-nav-link {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
    
    .mobile-scroll-container {
        width: 42px;
        height: 42px;
    }
    
    .mobile-scroll-arrow {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        transform: scale(0) translateX(15px);
    }
    
    .mobile-scroll-arrow.visible {
        transform: scale(1) translateX(0);
    }
    
    .mobile-scroll-arrow:hover {
        transform: scale(1.05) translateX(0);
    }
    
    .mobile-floating-nav {
        bottom: 12px;
        padding: 8px 12px;
        max-width: calc(100vw - 16px);
        border-radius: 25px;
    }
    
    /* Ensure arrows don't get squished */
    .mobile-scroll-arrow svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .floating-nav-link svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    /* Inactive arrows for small screens */
    .mobile-scroll-inactive {
        width: 42px;
        height: 42px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) translateX(0) !important;
        background: rgba(200, 200, 200, 0.3) !important;
        color: rgba(150, 150, 150, 0.6) !important;
        cursor: default;
        box-shadow: none;
        z-index: 1;
        pointer-events: none;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
    }
    
    .mobile-scroll-inactive svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

/* iPhone SE and ultra-small screens */
@media screen and (max-width: 320px) {
    .floating-nav-links {
        gap: 10px;
        padding: 0 6px;
    }
    
    .floating-nav-link {
        width: 38px;
        height: 38px;
    }
    
    .mobile-scroll-container {
        width: 38px;
        height: 38px;
    }
    
    .mobile-scroll-arrow {
        width: 38px;
        height: 38px;
        transform: scale(0) translateX(12px);
    }
    
    .mobile-floating-nav {
        bottom: 10px;
        padding: 6px 10px;
        max-width: calc(100vw - 12px);
        border-radius: 22px;
    }
    
    /* Smaller but clear icons for tiny screens */
    .mobile-scroll-arrow svg,
    .floating-nav-link svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5;
    }
    
    /* Inactive arrows for ultra-small screens */
    .mobile-scroll-inactive {
        width: 38px;
        height: 38px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) translateX(0) !important;
        background: rgba(200, 200, 200, 0.3) !important;
        color: rgba(150, 150, 150, 0.6) !important;
        cursor: default;
        box-shadow: none;
        z-index: 1;
        pointer-events: none;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
    }
    
    .mobile-scroll-inactive svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5;
        flex-shrink: 0;
    }
    
    /* Ultra-small screen certifications adjustments */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .certification-item {
        padding: 0.75rem;
        font-size: 0.85rem;
        min-height: 180px;
    }
    
    .certification-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .certification-issuer {
        font-size: 0.8rem;
    }
    
    .certification-date {
        font-size: 0.75rem;
    }
    
    .certification-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}