body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #1a1a3d;
    background: linear-gradient(to right, #3b82f6, #6b7280, #1a1a3d);
    color: white;
    overflow-x: hidden;
}

canvas#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

.welcome-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.welcome-wrapper .welcome-message {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.welcome-title {
    font-size: 4em;
    font-weight: 700;
    color: #22d3ee;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    animation: glitch 1.5s linear infinite, scaleIn 1s ease-out;
}

.welcome-subtitle {
    font-size: 1.8em;
    font-weight: 400;
    color: white;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes glitch {
    2%, 64% { transform: translate(2px, 0) skew(0deg); }
    4%, 60% { transform: translate(-2px, 0) skew(0deg); }
    62% { transform: translate(0, 0) skew(5deg); }
}

@keyframes scaleIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.welcome-wrapper .main-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar {
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-container h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    color: #22d3ee;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 1.1em;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #22d3ee;
    box-shadow: 0 0 5px #22d3ee;
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    animation: pulseUnderline 1.5s infinite;
}

@keyframes pulseUnderline {
    0%, 100% { box-shadow: 0 0 5px #22d3ee; }
    50% { box-shadow: 0 0 10px #22d3ee; }
}

.nav-links a:hover,
.nav-links a.active {
    color: #22d3ee;
}

.hero {
    position: relative;
    text-align: center;
    padding: 150px 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 4em;
    margin: 0;
    font-weight: 700;
    color: #22d3ee;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px #22d3ee; }
    50% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px #22d3ee; }
    100% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px #22d3ee; }
}

.hero p {
    font-size: 1.5em;
    margin: 20px 0 0;
    font-weight: 400;
    color: white;
}

.summary-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.profile-summary {
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1.6;
    width: 95%;
    max-width: 1200px;
    min-width: 400px;
    margin: 20px 0 0;
    text-align: center;
}

.content-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
    z-index: 1;
    position: relative;
}

.home-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section.visible,
.home-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3em;
    font-weight: 600;
    color: #22d3ee;
    border-bottom: 3px solid #22d3ee;
    display: inline-block;
    padding-bottom: 15px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 15px #22d3ee;
    border: 1px solid #22d3ee;
}

.job h3, .project h3 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #22d3ee;
}

.job p, .project p {
    margin: 10px 0 15px;
    font-style: italic;
    font-size: 1.2em;
    color: white;
}

ul {
    list-style: disc;
    padding-left: 30px;
    margin: 15px 0;
    font-size: 1.2em;
    color: white;
}

.skills-list span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 18px;
    margin: 10px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s, rotate 0.2s;
}

.skills-list span:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.5);
}

.project a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
}

.project a:hover {
    text-decoration: underline;
}

.more-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    margin-top: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.more-link:hover {
    color: #22d3ee;
}

.job .more-link {
    margin-left: 30px;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5em;
    }
    .welcome-subtitle {
        font-size: 1.3em;
    }
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        margin-top: 15px;
    }
    .nav-links a {
        margin: 0 15px;
        font-size: 1em;
    }
    .hero h1 {
        font-size: 3em;
    }
    .hero p {
        font-size: 1.3em;
    }
    .profile-summary {
        font-size: 1em;
        width: 95%;
        max-width: 1200px;
        min-width: 300px;
    }
    .content-section h2 {
        font-size: 2.5em;
    }
    .job h3, .project h3 {
        font-size: 1.5em;
    }
}