html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    animation: fadeInBody 0.5s ease-in-out, gradientShift 15s ease infinite;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(160, 120, 255, 0.3);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    animation: fadeInText 0.8s ease-out;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1:hover, h2:hover, h3:hover {
    transform: scale(1.05);
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(160, 120, 255, 0.5);
}

h4, h5 {
    font-family: 'Poppins', sans-serif;
    color: #ddd;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInText 0.8s ease-out 0.1s backwards;
}

h4:hover, h5:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(167, 255, 235, 0.5);
}

p {
    transition: all 0.3s ease;
    line-height: 1.6;
    animation: fadeInText 0.8s ease-out 0.2s backwards;
}

a {
    color: #a7ffeb;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(167, 255, 235, 0.8);
    transform: translateY(-2px);
}

button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


header {
    text-align: center;
    padding: 60px 40px;
    margin-bottom: 40px;
    animation: slideDownHeader 0.7s ease-out;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    padding: 40px 40px; 
    margin-bottom: 40px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

header > * {
    position: relative;
    z-index: 1;
}

@keyframes slideDownHeader {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.discord-icon {
    border-radius: 50%;
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite alternate;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 25px rgba(79, 172, 254, 0.4);
    }
}

footer nav button {
    margin: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

footer nav button:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.15)) !important;
}

footer nav button.active {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.5), rgba(0, 242, 254, 0.35)) !important;
    box-shadow: 0 12px 28px rgba(79, 172, 254, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 20px rgba(79, 172, 254, 0.2) !important;
    border-color: rgba(79, 172, 254, 0.8) !important;
    transform: translateY(-3px) !important;
}


main {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(79, 172, 254, 0.1);
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    animation: slideInContent 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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


#skills {
    text-align: center;
}

.progress-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin: 40px auto;
}

.progress-bar {
    width: 100%;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
    animation: slideInLeft 0.5s ease-in-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-bar:hover {
    transform: scale(1.03);
}

.skill-name {
    text-align: left;
    width: 140px;
    color: #ddd;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bar-container {
    width: 70%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    height: 28px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(79, 172, 254, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #00d4ff 100%);
    background-size: 200% 100%;
    width: 0;
    border-radius: 30px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: barGlow 2s ease-in-out infinite;
}

@keyframes barGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }
}

.skill-percent {
    text-align: right;
    width: 70px;
    color: #ddd;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.other-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.other-skills span {
    background: linear-gradient(135deg, rgba(167, 255, 235, 0.15), rgba(167, 255, 235, 0.05));
    color: #a7ffeb;
    padding: 12px 24px;
    margin: 10px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(167, 255, 235, 0.3);
    box-shadow: 0 4px 15px rgba(167, 255, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.other-skills span::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.2) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.other-skills span:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 25px rgba(167, 255, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(167, 255, 235, 0.5);
}

.other-skills span:hover::before {
    opacity: 1;
}

.other-skills i {
    margin-right: 10px;
}
#projects.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}



.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    backdrop-filter: blur(15px);
    animation: fadeInUp 0.6s ease-in-out;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    transition: all 0.6s ease;
    opacity: 0;
}

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

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

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 35px rgba(79, 172, 254, 0.35);
    
    border-color: rgba(79, 172, 254, 0.4);
}



.project-card img {
    border-radius: 15px;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-card p {
    margin-bottom: 25px;
    color: #ddd;
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.project-button {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.25), rgba(0, 242, 254, 0.15)) !important;
    color: #a7ffeb !important;
    border: 1px solid rgba(79, 172, 254, 0.4) !important;
    padding: 10px 22px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    position: relative;
    overflow: hidden;
}

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

.project-button:hover::after {
    left: 100%;
}

.project-button:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.4), rgba(0, 242, 254, 0.25)) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(79, 172, 254, 0.6) !important;
    color: #fff !important;
}

#about {
    text-align: center;
}
footer {
    text-align: center;
    padding: 60px 40px;
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-top: 2px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.5), transparent);
    pointer-events: none;
}



footer img {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 1;
}

footer img:hover {
    transform: scale(1.15) rotate(-5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(79, 172, 254, 0.6));
}


#pacman {
    position: fixed;
    top: 50%;
    left: -50px;
    width: 50px;
    height: 50px;
    background: url('https://i.imgur.com/lKqSu0H.gif') no-repeat;
    background-size: contain;
    z-index: 1000;
    display: none;
}


body.dark-mode {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    color: #eee;
    animation: gradientShift 15s ease infinite;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: #e0f7ff;
    text-shadow: 0 2px 8px rgba(224, 247, 255, 0.15);
}

body.dark-mode a {
    color: #81d4fa;
    transition: color 0.3s ease;
}

body.dark-mode a:hover {
    color: #b3e5fc;
    text-shadow: 0 2px 8px rgba(129, 212, 250, 0.4);
}

body.dark-mode button {
    background: linear-gradient(135deg, rgba(129, 212, 250, 0.1), rgba(129, 212, 250, 0.05)) !important;
    color: #81d4fa !important;
    border: 1px solid rgba(129, 212, 250, 0.2) !important;
    box-shadow: 0 4px 12px rgba(129, 212, 250, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode button:hover {
    background: linear-gradient(135deg, rgba(129, 212, 250, 0.2), rgba(129, 212, 250, 0.1)) !important;
    box-shadow: 0 8px 20px rgba(129, 212, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .tab-content,
body.dark-mode header,
body.dark-mode footer,
body.dark-mode .project-card {
    background: linear-gradient(135deg, rgba(129, 212, 250, 0.08), rgba(129, 212, 250, 0.02));
    border: 1px solid rgba(129, 212, 250, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(129, 212, 250, 0.1);
}

body.dark-mode .skill-name,
body.dark-mode .skill-percent {
    color: #b3e5fc;
}

body.dark-mode .bar-container {
    background: rgba(129, 212, 250, 0.08);
    border: 1px solid rgba(129, 212, 250, 0.1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 15px rgba(129, 212, 250, 0.1);
}

body.dark-mode .other-skills span {
    background: linear-gradient(135deg, rgba(129, 212, 250, 0.12), rgba(129, 212, 250, 0.04));
    color: #81d4fa;
    border: 1px solid rgba(129, 212, 250, 0.2);
    box-shadow: 0 4px 12px rgba(129, 212, 250, 0.1), inset 0 1px 0 rgba(129, 212, 250, 0.15);
}

body.dark-mode .other-skills span:hover {
    box-shadow: 0 8px 20px rgba(129, 212, 250, 0.2), inset 0 1px 0 rgba(129, 212, 250, 0.2);
}

body.dark-mode #dark-mode-toggle {
    background: linear-gradient(135deg, rgba(129, 212, 250, 0.2), rgba(129, 212, 250, 0.1)) !important;
    border-color: rgba(129, 212, 250, 0.3) !important;
    color: #81d4fa !important;
}

body.dark-mode #dark-mode-toggle:hover {
    background: linear-gradient(135deg, rgba(129, 212, 250, 0.3), rgba(129, 212, 250, 0.2)) !important;
    border-color: rgba(129, 212, 250, 0.5) !important;
    box-shadow: 0 12px 28px rgba(129, 212, 250, 0.25), inset 0 1px 0 rgba(129, 212, 250, 0.3) !important;
}
body.terminal-mode {
    background-color: #000;
    color: #00ff00;
    font-family: monospace;
}

body.terminal-mode h1,
body.terminal-mode h2,
body.terminal-mode h3 {
    color: #00ff00;
}

body.terminal-mode a {
    color: #00ff00;
}

body.terminal-mode button {
    background-color: rgba(0, 100, 0, 0.5);
    color: #00ff00;
    border: 1px solid #00ff00;
    box-shadow: none;
}

body.terminal-mode button:hover {
    background-color: rgba(0, 150, 0, 0.7);
}

body.terminal-mode .tab-content,
body.terminal-mode header,
body.terminal-mode footer,
body.terminal-mode .project-card {
    background-color: rgba(0, 50, 0, 0.3);
    border: 1px solid #00ff00;
    box-shadow: none;
}

body.terminal-mode .skill-name,
body.terminal-mode .skill-percent {
    color: #00ff00;
}

body.terminal-mode .bar-container {
    background-color: rgba(0, 70, 0, 0.5);
    box-shadow: none;
}

body.terminal-mode .other-skills span {
    background-color: rgba(0, 100, 0, 0.7);
    color: #000;
    box-shadow: none;
}


@media (max-width: 768px) {
    .progress-bars {
        width: 95%;
    }
    #projects.active {
        grid-template-columns: 1fr;
    }

    header {
        padding: 30px;
    }

    main {
        padding: 15px;
    }

    .tab-content {
        padding: 30px;
    }

    footer {
        padding: 30px;
    }
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 10px 0;
}
.social-button {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-button svg {
    width: 28px;
    height: 28px;
    fill: #ccc;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.social-button:hover {
    transform: translateY(-10px) scale(1.15) rotate(5deg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: socialPulse 0.6s ease;
}

@keyframes socialPulse {
    0%, 100% {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.social-button:hover::before {
    opacity: 1;
    animation: glowPulse 0.6s ease;
}

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

.social-button.youtube:hover {
    border-color: rgba(255, 0, 0, 0.7);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.15));
    box-shadow: 0 16px 40px rgba(255, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 0, 0, 0.3);
}

.social-button.youtube:hover svg {
    fill: #FF0000;
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.8));
}

.social-button.discord:hover {
    border-color: rgba(88, 101, 242, 0.7);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.15));
    box-shadow: 0 16px 40px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(88, 101, 242, 0.3);
}

.social-button.discord:hover svg {
    fill: #5865F2;
    filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.8));
}