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

:root {
    --dark-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.page-transitioning {
    opacity: 0;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: floatSmooth 25s infinite ease-in-out;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.4), transparent);
    top: -150px;
    left: -150px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 118, 163, 0.3), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: 8s;
}

.circle-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.35), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 16s;
}

@keyframes floatSmooth {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.2;
    }
    33% { 
        transform: translate(50px, -40px) scale(1.1); 
        opacity: 0.25;
    }
    66% { 
        transform: translate(-40px, 50px) scale(0.95); 
        opacity: 0.15;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(25px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    cursor: pointer;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px 13px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger to X Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu Overlay - Full Width Dropdown */
.menu-overlay {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: height 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}

.menu-overlay.active {
    height: auto;
    padding: 1.5rem 0;
    opacity: 1;
    visibility: visible;
    transition: height 0.35s ease, opacity 0.35s ease, visibility 0s linear 0s;
}

.menu-content {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.menu-overlay.active .menu-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.9rem 1.3rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.menu-item:active {
    transform: translateX(3px) scale(0.98);
}

.menu-item .menu-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.9;
}

.menu-item:hover .menu-icon {
    transform: rotate(5deg) scale(1.1);
    opacity: 1;
}

/* Main Content */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 120px;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.35s ease;
}

.container.menu-open {
    transform: translateY(180px);
}

.skills-section {
    width: 100%;
    max-width: 900px;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

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

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

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

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.skill-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
}

.skill-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border-radius: 10px;
    width: var(--progress);
    transition: width 1s ease 0.3s;
    animation: progressAnimation 1.5s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        padding: 1rem 1.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .container {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
    }

    .skill-icon img {
        width: 28px;
        height: 28px;
    }

    .skill-name {
        font-size: 1.1rem;
    }
}