:root {
    /* Light mode colors */
    --primary: #800020; /* Burgundy */
    --accent: #800020; /* Burgundy */
    --background: #ffffff;
    --text: #1f2937;
    --text-secondary: #4b5563;
    --border: #e5e7eb;
    --nav-bg: rgba(255, 255, 255, 0.9);

    /* Dynamic text colors for typing effect */
    --color-1: #10b981; /* Green */
    --color-2: #10b981; /* Green */
    --color-3: #8b5cf6; /* Purple */
    --color-4: #f59e0b; /* Orange */
    --color-5: #ec4899; /* Pink */

    /* Moving gradient colors */
    --gradient-1: linear-gradient(90deg, 
        #2563eb 0%,
        #10b981 50%,
        #2563eb 100%
    );
    --gradient-2: linear-gradient(90deg,
        #10b981 0%,
        #8b5cf6 50%,
        #10b981 100%
    );
    --gradient-3: linear-gradient(90deg,
        #8b5cf6 0%,
        #f59e0b 50%,
        #8b5cf6 100%
    );
    --gradient-4: linear-gradient(90deg,
        #f59e0b 0%,
        #ec4899 50%,
        #f59e0b 100%
    );
    --gradient-5: linear-gradient(90deg,
        #ec4899 0%,
        #2563eb 50%,
        #ec4899 100%
    );
}

[data-theme="dark"] {
    --background: #000000;
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --border: #27272a;
    --primary: #005d80;
    --accent: #005d80;
    --nav-bg: rgba(0, 0, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--background);
    cursor: none;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Safari scroll position fix */
html {
    scroll-behavior: auto !important; /* Disable smooth scroll during page load */
}

body {
    scroll-behavior: auto !important; /* Disable smooth scroll during page load */
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: rgba(60, 60, 60, 0.25);
    border: 2px solid rgba(60, 60, 60, 0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transform: translate(-50%, -50%);
    transition: border 0.2s, border-color 0.2s, border-width 0.2s, background 0.2s;
    box-shadow: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.cursor-hover {
    border-width: 3px;
    border-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.2);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    padding: 0;
    margin: 0;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0;
}

.hero-subtitle .highlight-text {
    color: var(--text);
}

.hero-subtitle .carolina-blue {
    color: #37bae8;  /* Brighter Carolina Blue */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-align: center;
}

/* Sections */
.section {
    padding: 5rem 0;
    margin-top: 0; /* Standardize top margin */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Section visibility for non-hero sections */
.section:not(.hero) {
    display: none;
}

.section:not(.hero).active {
    display: block;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
    text-align: center;
    text-transform: lowercase;
    display: block;
    width: 100%;
    position: relative;
}

.section-title .txt {
    font-weight: 700;
}

.section-title .cursor {
    position: relative;
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background-color: var(--text);
    margin-left: 6px;
    animation: blink 0.8s steps(2) infinite;
    vertical-align: middle;
    transform: translateY(1px);
}

[data-theme="dark"] .section-title .cursor {
    background-color: #fff;
}

.title-container {
    text-align: center;
    margin-bottom: 3rem;
    min-height: 4rem; /* Ensure a consistent minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem; /* Add consistent top padding */
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Music Section */
.music-section .title-container {
    margin-bottom: 3rem;
}

/* Experience Section */
#experience.section .title-container {
    margin-bottom: 3rem;
}

/* Contact Section */
#contact.section .title-container {
    margin-bottom: 3rem;
}

.about-grid {
    width: 100%;
}

.about-card {
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-header {
    margin-bottom: 2rem;
}

.about-header-content {
    text-align: center;
    position: relative;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.about-decoration {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.about-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    transition: transform 0.2s ease;
    text-align: center;
}

.about-section:hover {
    transform: translateX(5px);
}

.about-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.about-section-header i {
    font-size: 1.25rem;
    color: var(--accent);
}

.about-section-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.about-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

.highlight-text {
    color: var(--accent);
    font-weight: 500;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@media (max-width: 768px) {
    .about-card {
        padding: 1.5rem;
    }
    
    .about-section {
        padding: 1rem;
    }
    
    .about-body p {
        font-size: 1rem;
    }
    
    .about-interests,
    .about-ps {
        font-size: 1rem;
    }
    
    .about-interests ul li,
    .about-ps ul li {
        font-size: 1rem;
    }
    
    .team-real-madrid, .team-aces, .team-hurricanes, .team-tarheels {
        font-weight: 500;
    }
}



@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}



/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

[data-theme="dark"] .social-link:hover {
    color: var(--accent);
}

/* Buttons */
.btn-primary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text);
    text-transform: lowercase;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 20px 30px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow: 
        0 8px 60px -5px rgba(0, 0, 0, 0.235),
        0 20px 90px -8px rgba(0, 0, 0, 0.235),
        0 30px 130px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 0 120px rgba(0, 0, 0, 0.235),
        0 0 240px rgba(255, 255, 255, 0.3);
}

/* Dark mode button adjustments */
[data-theme="dark"] .btn-primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        0 10px 15px -3px rgba(0, 0, 0, 0.2),
        0 20px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

[data-theme="dark"] .btn-primary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 12px -3px rgba(0, 0, 0, 0.25),
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 30px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 0 30px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(255, 255, 255, 0.3);
}

/* Enhanced Media Queries */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    

}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    

    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    
    .title-container {
        margin-bottom: 2rem;
    }
    
    .music-section .title-container,
    #experience.section .title-container,
    #contact.section .title-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    

    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .title-container {
        margin-bottom: 1.5rem;
    }
    
    .music-section .title-container,
    #experience.section .title-container,
    #contact.section .title-container {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
}

/* High-DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title {
        font-weight: 600;
    }
}

/* Typing effect */
.static-text {
    color: var(--text);
}

.typing-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        120deg,
        #4BA3FF 0%,    /* Brighter Carolina Blue */
        #ff0f0f 16.6%, /* Electric Red */
        #00ffd5 33.2%, /* Bright Turquoise */
        #ffd700 49.8%, /* Pure Gold */
        #9333ea 66.4%, /* Vivid Purple */
        #ff6b00 83%,   /* Bright Orange */
        #4BA3FF 100%   /* Back to Carolina Blue */
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8.5s linear infinite;
}

.typing-text .txt {
    font-weight: 700;
}

.typing-text .cursor {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 1.1em;
    background-color: var(--text);
    margin-left: 6px;
    animation: blink 0.8s steps(2) infinite;
    vertical-align: middle;
    transform: translateY(1px);
}

[data-theme="dark"] .typing-text .cursor {
    background-color: #fff;
}

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

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Dark mode toggle */
.theme-toggle {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    background: #ffffff;
    color: #000000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
    transform: none !important;
}

.theme-toggle:hover {
    transform: scale(1.1) !important;
}

/* Mobile-specific theme toggle fixes */
@media (max-width: 768px) {
    .theme-toggle {
        position: fixed !important;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        z-index: 9999 !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        will-change: transform;
        -webkit-will-change: transform;
    }
}



/* About Section Typing Effect */
.about-title {
    display: inline-block;
    position: relative;
}

/* Footer */
.footer {
    padding: 5rem 0;
    margin-top: 0;
    text-transform: lowercase;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-info a:hover {
    color: var(--accent);
}

[data-theme="dark"] .footer-info a:hover {
    color: var(--accent);
}

.footer-timezone {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-timezone span {
    text-transform: uppercase;
    color: var(--text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

#current-time {
    display: inline-flex;
    align-items: center;
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-left: 0;
}

.footer-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-link:hover {
    color: var(--accent);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--accent);
}

.footer-link .number {
    color: var(--text);
    font-weight: 500;
    min-width: 1.5rem;
}

.footer-link.external::after {
    content: ' ↗';
    font-size: 0.75rem;
    font-family: monospace;
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
        text-align: center;
    }

    .footer-left {
        text-align: center;
        align-items: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-info a {
        justify-content: center;
    }

    .footer-timezone {
        justify-content: center;
    }

    .footer-directory {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-section-title {
        text-align: center;
    }

    .footer-link {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-directory {
        grid-template-columns: 1fr;
    }
}

/* Wave Emoji Animation */
.wave-emoji {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    50% { transform: rotate(-8deg); }
    75% { transform: rotate(20deg); }
    100% { transform: rotate(0deg); }
}

/* Music Section Styles */
.music-section {
    padding: 5rem 0;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 0;
}

.music-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    will-change: transform;
    touch-action: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .music-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

[data-theme="dark"] .music-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.music-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .music-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.music-card:hover .music-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateZ(20px);
}

[data-theme="dark"] .music-card:hover .music-image {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.music-info {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.music-year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.music-card:hover .music-artist {
    color: var(--text);
}

.music-card:hover .music-year {
    opacity: 1;
}

.preview-controls {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-card:hover .preview-controls {
    opacity: 1;
    transform: translateY(0);
}

.preview-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

[data-theme="dark"] .preview-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.preview-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

[data-theme="dark"] .preview-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.no-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1.5rem 0;
        touch-action: pan-y pinch-zoom;
    }

    .music-card {
        touch-action: pan-y;
        -webkit-tap-highlight-color: transparent;
        padding: 15px;
    }

    .music-image {
        height: 180px;
        margin-bottom: 12px;
    }

    .music-artist {
        font-size: 0.85rem;
    }

    .music-year {
        font-size: 0.75rem;
    }

    .preview-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
        padding: 1.5rem 0;
    }

    .music-card {
        padding: 12px;
    }

    .music-image {
        height: 160px;
        margin-bottom: 10px;
    }
}

/* Always visible sections */
.hero,
#contact,
.footer {
    display: block;
}

/* Center hero content vertically and horizontally */
.hero .container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact.section {
    margin-top: 1rem;
}

.nowrap-line {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .nowrap-line {
        white-space: normal;
        word-break: break-word;
    }
}





/* Experience Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border) 20%,
        var(--border) 80%,
        transparent
    );
    top: 0;
    transition: background-color 0.3s ease;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 4px var(--background);
}

.timeline-content {
    position: relative;
    width: calc(50% - 2rem);
    margin-left: auto;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.company-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 1rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* InOptive logo color handling */
.company-logo[src*="inoptive-logo"] {
    filter: none; /* Original black logo in light mode */
}

[data-theme="dark"] .company-logo[src*="inoptive-logo"] {
    filter: invert(1) brightness(1); /* White logo in dark mode */
}

.timeline-content:hover .company-logo {
    transform: scale(1.1) rotate(5deg);
}

.timeline-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    transition: color 0.3s ease;
}

.timeline-subtitle {
    color: var(--accent);
    font-size: 0.95rem;
    margin: 0.25rem 0;
    transition: color 0.3s ease;
}

[data-theme="dark"] .timeline-subtitle {
    color: var(--accent);
}

.timeline-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.timeline-body {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.timeline-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.tech-tag {
    background: rgba(128, 0, 32, 0.15);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    transform-origin: center;
}

[data-theme="dark"] .tech-tag {
    background: rgba(0, 93, 128, 0.15);
    color: var(--accent);
}

/* Enhanced Hover Effects */
.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    border-color: var(--accent);
    box-shadow: 
        0 0 0 6px var(--background),
        0 0 0 8px rgba(128, 0, 32, 0.2);
}

.tech-tag:hover {
    transform: scale(1.1);
    background: rgba(128, 0, 32, 0.2);
}

/* Add connecting lines between dots */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item:last-child::after {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline-dot {
        left: 1rem;
    }

    .timeline-item::after {
        left: 1rem;
    }

    .timeline {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* General highlight text style */
.highlight-text {
    color: var(--text);
    font-weight: 500;
}

/* Hashtag styling in timeline descriptions */
.timeline-description {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Style hashtags specifically */
.hashtag {
    color: #76b900;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hashtag:hover {
    color: #5a8a00;
    transition: color 0.3s ease;
}

@media (max-width: 480px) {
  .footer-content {
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-left {
    align-items: center;
    text-align: center;
  }
  .footer-directory {
    justify-content: center;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  .footer-links {
    align-items: center;
    text-align: center;
  }
  .footer-section-title {
    text-align: center;
  }
  .footer-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .timeline {
    padding: 1.5rem 0;
    max-width: 100vw;
    position: relative;
  }
  .timeline::before {
    left: 1.5rem;
    transform: none;
    width: 2px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      var(--border) 15%,
      var(--border) 85%,
      transparent 100%
    );
    opacity: 0.6;
  }
  .timeline-item {
    margin-bottom: 3rem;
    display: block;
    min-width: 0;
    position: relative;
    padding-left: 3rem;
  }
  .timeline-dot {
    left: 1.5rem;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    width: 14px;
    height: 14px;
    border-width: 2px;
    position: absolute;
    z-index: 2;
    background: var(--background);
    transition: all 0.3s ease;
  }
  .timeline-content {
    width: calc(100% - 1rem);
    margin: 0.5rem 0 0 0 !important;
    padding: 1.2rem;
    border-radius: 1rem;
    min-width: 0;
    box-sizing: border-box;
    background: var(--background);
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
  }
  .timeline-header {
    gap: 0.75rem;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }
  .company-logo {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
    object-fit: contain;
  }
  .timeline-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
    margin: 0;
  }
  .timeline-subtitle {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    line-height: 1.4;
  }
  .timeline-location {
    font-size: 0.85rem;
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .timeline-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.75rem 0;
  }
  .timeline-tech {
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
  }
  .tech-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.2rem;
    border-radius: 0.75rem;
  }
  .timeline-item::after {
    display: none;
  }
  .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0.5rem 0 0 0 !important;
  }
  
  /* Enhanced hover effects for mobile */
  .timeline-content:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  }
  .timeline-item:active .timeline-dot {
    transform: translateX(-50%) scale(1.2);
  }
  .tech-tag:active {
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .contact-content p {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

body, a, button, .btn, .footer-link, .social-link, input, textarea, select, .music-card, [style*="cursor: pointer"] {
    cursor: none !important;
}

@media (max-width: 768px), (pointer: coarse) {
    #custom-cursor {
        display: none !important;
    }
}

#color-modal {
    background: transparent !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}
#color-modal.active {
    opacity: 1;
    pointer-events: auto;
}
[data-theme="dark"] #color-modal {
    background: rgba(20, 20, 30, 0.28) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

[data-theme="dark"] .color-modal-text {
    color: #fff !important;
    font-weight: 400 !important;
}
[data-theme="dark"] .color-modal-text span {
    color: #800020 !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .timeline-content:hover {
    border-color: var(--accent);
}

[data-theme="dark"] .timeline-item:hover .timeline-dot {
    border-color: var(--accent);
    box-shadow: 
        0 0 0 6px var(--background),
        0 0 0 8px rgba(0, 93, 128, 0.2);
}

[data-theme="dark"] .tech-tag:hover {
    background: rgba(0, 93, 128, 0.2);
}

/* Tech Marquee Styles */
.tech-marquee-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0.5625rem auto;
    overflow: hidden;
    /* Safari fixes */
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.tech-marquee-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--background), transparent);
}

.tech-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--background), transparent);
}

.tech-marquee {
    display: flex;
    /* Safari iOS fix - explicit width instead of fit-content */
    width: 200%;
    min-width: 200%;
    animation: scroll 30s linear infinite;
    /* Safari-specific fixes */
    -webkit-animation: scroll 30s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    /* Additional Safari fixes */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Force Safari to recognize the animation */
    animation-fill-mode: both;
    -webkit-animation-fill-mode: both;
}

.tech-marquee:has(.tech-item:hover) {
    animation-play-state: paused;
}

/* Disable hover pause on touch devices and mobile */
@media (hover: none), (max-width: 768px), (pointer: coarse) {
    .tech-marquee:hover {
        animation-play-state: running !important;
        -webkit-animation-play-state: running !important;
    }
}

/* Safari iOS specific fixes - simplified since we use JS animation on mobile */
@supports (-webkit-touch-callout: none) {
    .tech-marquee-container {
        /* Force Safari to create a new stacking context */
        isolation: isolate;
        contain: layout style paint;
    }
}

/* Ultra-specific Safari iOS fix using user agent */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .tech-marquee {
        /* Safari loves explicit values */
        -webkit-animation-name: scroll;
        animation-name: scroll;
        /* Force redraw */
        will-change: transform;
        -webkit-will-change: transform;
    }
}

.tech-marquee-content {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    padding: 0;
}

.tech-marquee-content:not(:first-child) {
    margin-left: 6.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item.item-hovered,
.tech-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-item.item-hovered i,
.tech-item:hover i {
    color: var(--text-primary);
}

/* Specific hover colors for brand icons */
.tech-item.item-hovered i.fa-python,
.tech-item:hover i.fa-python { color: #3776AB; }
.tech-item.item-hovered i.fa-java,
.tech-item:hover i.fa-java { color: #007396; }
.tech-item.item-hovered i.fa-js,
.tech-item:hover i.fa-js { color: #F7DF1E; }
.tech-item.item-hovered i.fa-react,
.tech-item:hover i.fa-react { color: #61DAFB; }
.tech-item.item-hovered i.fa-node-js,
.tech-item:hover i.fa-node-js { color: #339933; }
.tech-item.item-hovered i.fa-aws,
.tech-item:hover i.fa-aws { color: #FF9900; }
.tech-item.item-hovered i.fa-git-alt,
.tech-item:hover i.fa-git-alt { color: #F05032; }
.tech-item.item-hovered i.fa-github,
.tech-item:hover i.fa-github { color: #333333; }

.tech-item img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.tech-item.item-hovered img,
.tech-item:hover img {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Safari webkit keyframes - more explicit */
@-webkit-keyframes scroll {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

/* Performance optimized marquee for mobile */
@media (max-width: 480px) {
    @keyframes scroll {
        0% {
            transform: translate3d(0, 0, 0);
        }
        100% {
            transform: translate3d(-50%, 0, 0);
        }
    }
    
    /* Safari webkit keyframes for mobile */
    @-webkit-keyframes scroll {
        0% {
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }
        100% {
            -webkit-transform: translate3d(-50%, 0, 0);
            transform: translate3d(-50%, 0, 0);
        }
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-marquee-container {
        max-width: none;
        margin: 0.46875rem 0;
        overflow: hidden;
    }
    
    .tech-marquee-wrapper {
        padding: 0.75rem 0;
    }
    
    .tech-marquee-wrapper::before,
    .tech-marquee-wrapper::after {
        width: 100px;
    }
    
    .tech-marquee-content {
        gap: 3.5rem;
    }
    
    .tech-marquee-content:not(:first-child) {
        margin-left: 4.5rem;
    }
    
    .tech-item {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    .tech-item img {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .tech-marquee-container {
        margin: 0.375rem 0;
        overflow: hidden;
        /* Ensure marquee works on smaller screens */
        width: 100%;
        max-width: 100vw;
    }
    
    .tech-marquee-wrapper {
        padding: 0.5rem 0;
        overflow: hidden;
    }
    
    .tech-marquee-wrapper::before,
    .tech-marquee-wrapper::after {
        width: 80px;
    }
    
    .tech-marquee {
        /* Ensure animation works on mobile - Safari fixes */
        will-change: transform;
        animation: scroll 25s linear infinite;
        -webkit-animation: scroll 25s linear infinite;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Safari performance optimization */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Force hardware acceleration on Safari */
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    .tech-marquee-content {
        gap: 3rem;
        /* Prevent layout issues */
        white-space: nowrap;
    }
    
    .tech-marquee-content:not(:first-child) {
        margin-left: 4rem;
    }
    
    .tech-item {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        /* Remove hover effects on mobile for better performance */
        transition: none;
    }
    
    .tech-item:hover {
        transform: none;
        opacity: 0.6;
    }
    
    /* Disable all hover effects on mobile for better performance */
    .tech-item:hover i,
    .tech-item:hover img {
        color: var(--text-secondary);
        filter: grayscale(100%) opacity(0.6);
    }
    
    .tech-item i {
        font-size: 1.75rem;
    }
    
    .tech-item img {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    /* Optimize for mobile performance */
    .tech-marquee {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

.about-interests,
.about-ps {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.about-ps strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-interests ul,
.about-ps ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.about-interests ul li,
.about-ps ul li {
    margin-bottom: 0.5rem;
}

.about-interests ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* iOS Safari fallback - JavaScript handles mobile animation */
@supports (-webkit-touch-callout: none) {
    .tech-marquee {
        /* Ensure basic styling for iOS */
        display: flex;
        width: 200%;
        min-width: 200%;
    }
} 