:root {
    --primary: #0a192f;
    --secondary: #172a45;
    --text: #8892b0;
    --highlight: #64ffda;
    --highlight-secondary: #ff617f;
    --highlight-tertiary: #a78bfa;
    --white: #e6f1ff;
    --gradient-start: rgba(100, 255, 218, 0.05);
    --gradient-end: rgba(167, 139, 250, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    overflow-x: hidden;
}

/* Background design elements */
.bg-element {
    position: fixed;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    animation-play-state: running !important;
}

.bg-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: rgba(103, 58, 183, 0.3);
}

.bg-circle-2 {
    bottom: 15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(33, 150, 243, 0.3);
}

.bg-circle-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: rgba(255, 87, 34, 0.3);
    opacity: 0.07;
    animation: pulse-glow 10s infinite ease-in-out;
}

@keyframes float-slow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.05; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
}

/* Add these animation styles to your existing CSS */

/* Background animations */
@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(10px, -10px) scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: translate(-5px, 5px) scale(0.95);
        opacity: 0.3;
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
    background: var(--highlight);
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-50px) translateX(30px);
    }
    66% {
        transform: translateY(20px) translateX(-20px);
    }
}

.portfolio-container {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 1;
}

header {
    padding: 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--highlight);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--highlight);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--highlight) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(50px);
    animation: pulseGlow 8s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--highlight-secondary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(40px);
    animation: pulseGlow 12s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.5); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.05; }
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    color: var(--highlight);
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.3);
}

.hero-title {
    font-size: 60px;
    background: linear-gradient(90deg, var(--white) 0%, var(--highlight) 50%, var(--highlight-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 8s ease infinite;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 1;
    transform: translateY(0);
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    background-color: transparent;
    border: 1px solid var(--highlight);
    color: var(--highlight);
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    color: var(--primary);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--highlight);
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
}

section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animated {
    opacity: 1;
    transform: translateY(0);
}

section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    bottom: 0;
    left: 0;
    opacity: 0.3;
}

.section-title {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight), var(--highlight-secondary));
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.skill-item {
    background: linear-gradient(145deg, var(--secondary), rgba(23, 42, 69, 0.8));
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 24px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-item.item-animated {
    opacity: 1;
    transform: translateY(0);
}

.skill-icon {
    font-size: 35px;
    margin-bottom: 15px;
    color: var(--highlight);
    transition: all 0.4s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.2);
    color: var(--highlight-secondary);
}

/* C# Icon Fix */
.csharp-icon {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-style: normal;
    background: linear-gradient(135deg, #684D95, #5C2D91);
    color: white;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: linear-gradient(145deg, var(--secondary), rgba(23, 42, 69, 0.8));
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding-bottom: 10px;
}

.project-card.item-animated {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(100, 255, 218, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(10, 25, 47, 0), rgba(10, 25, 47, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: 25px;
}

.project-title {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 10px;
}

.project-description {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--highlight);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text);
    font-size: 18px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: var(--highlight);
    transform: translateY(-3px);
}

.contact-form {
    background: linear-gradient(145deg, var(--secondary), rgba(23, 42, 69, 0.8));
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 35px;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--highlight), var(--highlight-secondary), var(--highlight-tertiary), var(--highlight));
    z-index: -1;
    border-radius: 14px;
    background-size: 400% 400%;
    animation: gradientBorder 6s ease infinite;
    opacity: 0.3;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 16px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: transparent;
    border: 1px solid var(--highlight);
    color: var(--highlight);
    padding: 12px 35px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 15px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--highlight);
    transition: all 0.4s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    width: 100%;
}

.submit-btn:hover {
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(100, 255, 218, 0.4);
}

footer {
    padding: 60px 2rem 30px;
    text-align: center;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent);
    position: relative;
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.social-link {
    color: var(--text);
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.social-link:hover {
    color: var(--highlight);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 8px rgba(100, 255, 218, 0.3);
    border-color: var(--highlight);
}

footer p {
    color: var(--text);
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.8;
}

/* Music Player Styles */
.music-player {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 300px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 12px 12px 0 0;
    padding: 15px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.music-player.show {
    transform: translateY(0);
}

.music-player.minimized {
    transform: translateY(calc(100% - 60px));
}

.music-player-inner {
    position: relative;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.music-title {
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
    margin: 0;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 12px;
    color: var(--text);
    margin-top: 2px;
}

.player-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    cursor: pointer;
    color: var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.player-toggle:hover {
    background-color: rgba(100, 255, 218, 0.2);
    transform: scale(1.05);
}

.player-toggle i {
    font-size: 12px;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.player-btn {
    background: transparent;
    border: none;
    color: var(--highlight);
    font-size: 14px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: scale(1.1);
}

.player-btn.play-pause {
    width: 40px;
    height: 40px;
    background-color: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    font-size: 16px;
}

.player-btn.play-pause:hover {
    background-color: rgba(100, 255, 218, 0.2);
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    height: 4px;
    width: 100%;
}

.progress {
    background: linear-gradient(to right, #673ab7, #2196f3);
    border-radius: 5px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

.track-time {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text);
}

.music-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #673ab7, #2196f3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.music-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(100, 255, 218, 0.4);
}

.wave {
    display: flex;
    align-items: center;
    gap: 2px;
}

.wave span {
    display: block;
    width: 3px;
    height: 10px;
    background: #673ab7;
    border-radius: 3px;
    animation: none;
}

.wave.active span {
    animation: waveAnimation 1.2s infinite ease-in-out alternate;
}

.wave span:nth-child(1) { animation-delay: 0.0s; }
.wave span:nth-child(2) { animation-delay: 0.2s; }
.wave span:nth-child(3) { animation-delay: 0.4s; }
.wave span:nth-child(4) { animation-delay: 0.6s; }
.wave span:nth-child(5) { animation-delay: 0.8s; }

@keyframes waveAnimation {
    0% { height: 5px; }
    100% { height: 15px; }
}

.playing .wave span {
    opacity: 1;
}

/* Animation classes */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-up {
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.22, 1.5, 0.36, 1) forwards;
    will-change: transform, opacity;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    70% {
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}

/* WhatsApp Contact Styles */
.contact-whatsapp {
    background: linear-gradient(145deg, var(--secondary), rgba(23, 42, 69, 0.9));
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 15px;
    padding: 40px;
    margin: 30px auto;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
    background: #22c15e;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.contact-note {
    color: var(--text);
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.8;
    font-style: italic;
}

.contact-whatsapp p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--white);
    line-height: 1.6;
}

/* About Section Styles */
.about-content p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-content p.item-animated {
    opacity: 1;
    transform: translateY(0);
}

.about-content p:last-child {
    margin-bottom: 0;
}
