/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --secondary-black: #111111;
    --tertiary-black: #1a1a1a;
    --primary-white: #ffffff;
    --secondary-white: #f0f0f0;
    --accent-gray: #333333;
    --light-gray: #666666;
    --border-gray: #444444;
    --hover-gray: #222222;
    
    /* Glass Effect - Monochrome */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
:root {
    --cursor-x: 0px;
    --cursor-y: 0px;
}

body::before {
    content: "";
    position: fixed;
    top: var(--cursor-y);
    left: var(--cursor-x);
    width: 6px;
    height: 6px;
    background: var(--primary-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Background Pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        linear-gradient(90deg, var(--border-gray) 1px, transparent 1px),
        linear-gradient(180deg, var(--border-gray) 1px, transparent 1px);
    background-size: 50px 50px;
}

.particle {
    position: absolute;
    background: var(--primary-white);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Glass Card Effect - Square */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gray);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--hover-gray);
    border-color: var(--light-gray);
    transform: translateY(-2px);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    color: var(--primary-white);
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--accent-gray);
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--primary-white);
    width: 0%;
    animation: loadProgress 3s ease-in-out;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--light-gray);
    letter-spacing: 2px;
}

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

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--glass-shadow);
}

.nav-brand {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-white);
}

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

.nav-link {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: var(--hover-gray);
    border-color: var(--border-gray);
}

.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gray);
}

.nav-progress-bar {
    height: 100%;
    background: var(--primary-white);
    width: 0%;
    transition: width 0.1s ease;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border: 1px solid var(--border-gray);
    background: var(--secondary-black);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-white);
    margin: 3px 0;
    transition: 0.3s;
}

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

/* Enhanced Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: floatElement 20s infinite ease-in-out;
    border: 1px solid var(--border-gray);
}

.element-1 {
    width: 100px;
    height: 100px;
    background: var(--secondary-black);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    background: var(--tertiary-black);
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.element-3 {
    width: 80px;
    height: 80px;
    background: var(--accent-gray);
    bottom: 30%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

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

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-ring {
    position: relative;
    width: 300px;
    height: 300px;
    background: var(--secondary-black);
    border: 2px solid var(--border-gray);
    padding: 4px;
    animation: rotate 10s linear infinite;
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--accent-gray);
    opacity: 0.2;
    filter: blur(20px);
    z-index: -1;
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: var(--primary-black);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-ring:hover .profile-image {
    filter: grayscale(0%) contrast(1);
}

.profile-ring:hover .profile-overlay {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1rem;
    overflow: hidden;
}

.title-line {
    display: block;
    transform: translateY(100%);
    animation: slideUp 1s ease 0.5s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-black);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--hover-gray);
    border-color: var(--light-gray);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.4s forwards;
}

.cta-button {
    padding: 1rem 2rem;
    border: 1px solid var(--border-gray);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--secondary-black);
    color: var(--primary-white);
}

.cta-button.primary {
    background: var(--primary-white);
    color: var(--primary-black);
}

.cta-button:hover {
    background: var(--hover-gray);
    border-color: var(--light-gray);
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    background: var(--secondary-white);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--light-gray);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-white);
    margin: 0 auto 0.5rem;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-white);
    border-bottom: 2px solid var(--primary-white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--primary-white);
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-intro {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--secondary-white);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

.about-photo {
    padding: 2rem;
    text-align: center;
}

.about-photo-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    margin-bottom: 1rem;
    border: 2px solid var(--border-gray);
}

.about-photo-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-photo-role {
    color: var(--light-gray);
}

/* Skills Section */
.skills-section {
    background: var(--secondary-black);
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

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

.skills-section .section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--primary-white);
}

.skills-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.skills-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.skill-category {
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.skill-progress {
    margin-bottom: 2.5rem;
    position: relative;
}

.skill-progress:last-child {
    margin-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--primary-white);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-name i {
    font-size: 1.2rem;
}

.skill-level {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--light-gray);
    font-weight: 500;
}

.progress-segments {
    display: flex;
    gap: 3px;
    height: 8px;
}

.segment {
    flex: 1;
    background: var(--accent-gray);
    border: 1px solid var(--border-gray);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.segment.filled {
    background: var(--primary-white);
    border-color: var(--primary-white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.segment.filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: segmentFill 0.8s ease forwards;
    animation-delay: calc(var(--delay) * 0.15s);
}

@keyframes segmentFill {
    to {
        left: 100%;
    }
}

/* Responsive untuk Skills Section */
@media (max-width: 768px) {
    .skills-section .section-title {
        font-size: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-progress {
        margin-bottom: 2rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .progress-segments {
        height: 6px;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .skills-section .section-title {
        font-size: 1.5rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
    
    .skill-level {
        font-size: 0.8rem;
    }
}

/* Projects Section */
.projects-section {
    background: var(--primary-black);
}

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

.project-card {
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.search-wrapper {
    margin: 1.5rem 0;
    text-align: center;
}

.search-input {
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.project-card:hover .project-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.project-description {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: var(--secondary-black);
    border: 1px solid var(--border-gray);
    font-size: 0.8rem;
    color: var(--secondary-white);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--hover-gray);
    border-color: var(--light-gray);
}

/* Music Section */
.music-section {
    background: var(--secondary-black);
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.music-player-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.music-player {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    position: relative;
}

.player-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tertiary-black);
    opacity: 0.5;
    z-index: -1;
}

.music-visualizer {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 4px;
    height: 60px;
    margin-bottom: 2rem;
}

.visualizer-bar {
    width: 4px;
    background: var(--primary-white);
    height: 20px;
    transition: all 0.1s ease;
}

.music-info {
    text-align: center;
    margin-bottom: 2rem;
}

.song-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.artist {
    color: var(--light-gray);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: var(--secondary-black);
    border: 1px solid var(--border-gray);
    color: var(--primary-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.control-btn:hover {
    background: var(--hover-gray);
    border-color: var(--light-gray);
}

.progress-section {
    margin-bottom: 1rem;
}

.progress-container {
    height: 6px;
    background: var(--accent-gray);
    position: relative;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary-white);
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: -5px;
    width: 16px;
    height: 16px;
    background: var(--primary-white);
    left: 0%;
    cursor: pointer;
    transition: left 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-slider {
    flex: 1;
}

.volume-slider input {
    width: 100%;
    height: 6px;
    background: var(--accent-gray);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-white);
    cursor: pointer;
}

/* Contact Section */
.contact-section {
    background: var(--primary-black);
}

.contact-content {
    text-align: center;
    margin-top: 2rem;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-white);
    border: 1px solid var(--border-gray);
    background: var(--secondary-black);
}

.social-card:hover {
    background: var(--hover-gray);
    border-color: var(--light-gray);
    transform: translateY(-5px);
    color: var(--primary-white);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.social-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-card p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-black);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-gray);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 200px;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 200px;
    }
    
    .profile-ring {
        width: 200px;
        height: 200px;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-ring {
        width: 150px;
        height: 150px;
    }
    
    .about-photo-img {
        width: 150px;
        height: 150px;
    }
    
    .music-player {
        padding: 1rem;
    }
    
    .project-image {
        height: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .about-content {
        gap: 1rem;
    }
    
    .skills-grid, 
    .projects-grid {
        gap: 0.5rem;
    }
    
    .skill-category,
    .glass-card {
        padding: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-white), var(--light-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Focus States for Accessibility */
.nav-link:focus,
.cta-button:focus,
.control-btn:focus,
.social-card:focus {
    outline: 2px solid var(--primary-white);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-gray: #666666;
        --light-gray: #999999;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .profile-ring {
        animation: none;
    }
    
    .floating-element {
        animation: none;
    }
}

