* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #fd79a8;
    --dark: #0f0f1e;
    --darker: #0a0a14;
    --light: #dfe6e9;
    --glow: 0 0 15px rgba(108, 92, 231, 0.7);
    --glow-intense: 0 0 25px rgba(108, 92, 231, 0.9);
    --shadow: 0 10px 20px rgba(0,0,0,0.3);
}

body {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

a{
    text-decoration: none;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: rgba(15, 15, 30, 0.9);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--glow);
    animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(108, 92, 231, 0.7); }
    100% { text-shadow: 0 0 20px rgba(108, 92, 231, 0.9), 0 0 30px rgba(108, 92, 231, 0.5); }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
    box-shadow: var(--glow);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, rgba(108, 92, 231, 0) 70%);
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.15) 0%, rgba(253, 121, 168, 0) 70%);
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light);
    text-shadow: var(--glow);
}

.hero h1 span {
    color: var(--primary);
    text-shadow: var(--glow-intense);
    animation: textPulse 2s infinite alternate;
}

@keyframes textPulse {
    0% { text-shadow: 0 0 10px rgba(108, 92, 231, 0.7); }
    100% { text-shadow: 0 0 20px rgba(108, 92, 231, 0.9), 0 0 30px rgba(108, 92, 231, 0.5); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light);
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-intense);
}

.btn:hover::before {
    opacity: 1;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(-15deg);
    animation: rotate 20s infinite linear;
    margin: 0 auto;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(108, 92, 231, 0.1);
    border: 2px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    backface-visibility: hidden;
    box-shadow: inset 0 0 15px rgba(108, 92, 231, 0.3), 0 0 20px rgba(108, 92, 231, 0.2);
}

.front { transform: translateZ(100px); }
.back { transform: translateZ(-100px) rotateY(180deg); }
.right { transform: translateX(100px) rotateY(90deg); }
.left { transform: translateX(-100px) rotateY(-90deg); }
.top { transform: translateY(-100px) rotateX(90deg); }
.bottom { transform: translateY(100px) rotateX(-90deg); }

@keyframes rotate {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light);
    display: inline-block;
    position: relative;
    text-shadow: var(--glow);
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--glow);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
}

.about-text p {
    margin-bottom: 20px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill {
    background: rgba(108, 92, 231, 0.2);
    color: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.4), transparent);
    transition: left 0.5s;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.skill:hover::before {
    left: 100%;
}

.about-visual {
    flex: 1;
    perspective: 1000px;
}

.floating-card {
    width: 300px;
    height: 200px;
    background: rgba(15, 15, 30, 0.7);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    transform-style: preserve-3d;
    transform: rotateY(15deg);
    transition: transform 0.5s;
    margin: 0 auto;
    border: 1px solid rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(108, 92, 231, 0.5), transparent 30%);
    animation: rotateBorder 4s linear infinite;
}

.floating-card > * {
    position: relative;
    z-index: 1;
    background: rgba(15, 15, 30, 0.9);
    padding: 5px;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-card:hover {
    transform: rotateY(0deg) translateY(-10px);
    box-shadow: var(--glow-intense);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: rgba(15, 15, 30, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.5s, box-shadow 0.5s;
    transform-style: preserve-3d;
    transform: translateZ(0);
    border: 1px solid rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(253, 121, 168, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--glow-intense);
}

.portfolio-img {
    height: 200px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.portfolio-img img{
    width: 100%;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.portfolio-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    margin-bottom: 10px;
    color: var(--light);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    box-shadow: var(--glow);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: rgba(15, 15, 30, 0.7);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: transform 0.5s;
    border: 1px solid rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-content:hover {
    transform: translateZ(10px);
    box-shadow: var(--glow-intense);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--dark);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    box-shadow: var(--glow);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content h3,.jop-period{
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  box-shadow: var(--glow);
  padding: 5px;
  border-radius: 5px;
  font-weight: bold;
}

.timeline-content ul{
    padding-left: 15px;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(15, 15, 30, 0.7);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid rgba(108, 92, 231, 0.3);
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--glow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    box-shadow: var(--glow);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 15, 30, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--light);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: var(--glow);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--darker);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(108, 92, 231, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(108, 92, 231, 0.3);
    cursor: pointer;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-intense);
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Sound Controls */
.sound-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.8);
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glow);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.sound-toggle {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sound-toggle:hover {
    color: var(--primary);
    text-shadow: var(--glow);
}

.sound-toggle.muted {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(15, 15, 30, 0.95);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left 0.5s;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .logo{
        font-size: 16px;
    }
    .hero-content{
        padding-top: 0px !important;
    }
    .timeline-content h3{
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}