/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0d0d1a;
    --text-color: #f0f0f0;
    --accent-color-1: #00ffc8; /* Neon Green */
    --accent-color-2: #8a2be2; /* Blue Violet */
    --card-bg: #1a1a2e;
    --border-color: #2a2a44;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    padding: 100px 10% 20px;
}

/* 3D Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 28px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar a {
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color-1);
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover {
    color: var(--accent-color-1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap-reverse;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.hero-text h1 {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

.hero-text .tagline {
    font-size: 24px;
    font-weight: 500;
    margin-top: 10px;
    color: var(--text-color);
}

.hero-text .quote-container {
    height: 50px;
    margin-top: 10px;
}

.hero-text .quote {
    font-style: italic;
    color: #aaa;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-text .quote.active {
    opacity: 1;
}

.hero-text .logos {
    margin: 20px 0;
    display: flex;
    gap: 20px;
}

.hero-text .logos img {
    height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-text .logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.hero-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent-color-1);
    box-shadow: 0 0 20px var(--accent-color-1);
    animation: profilePulse 2s infinite ease-in-out;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-color-1);
    border-radius: 40px;
    box-shadow: 0 0 15px var(--accent-color-1);
    font-size: 16px;
    color: var(--bg-color);
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    background: var(--accent-color-2);
    box-shadow: 0 0 20px var(--accent-color-2);
    transform: translateY(-5px);
}

/* General Section Styles */
.heading {
    text-align: center;
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    border-color: var(--accent-color-2);
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-color-1);
}

.progress-bar {
    width: 100%;
    height: 15px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    transition: width 1s ease-in-out;
    position: relative;
}

.progress::after {
    content: attr(data-label);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--bg-color);
    font-weight: 600;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.3);
}

.project-card h3 {
    font-size: 22px;
    color: var(--accent-color-1);
    margin-bottom: 15px;
}

.project-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
}

.project-card.placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-style: dashed;
    border-color: var(--accent-color-2);
}

/* Experience Section */
.experience-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.experience-content p {
    margin-bottom: 15px;
}

/* Contact Section */
.contact-info {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color-1);
    box-shadow: 0 0 10px var(--accent-color-1);
}

/* Footer */
.footer {
    padding: 30px 10%;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-icons a {
    color: var(--text-color);
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color-1);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe Animations */
@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 5px var(--accent-color-1)) drop-shadow(0 0 10px var(--accent-color-1));
    }
    100% {
        filter: drop-shadow(0 0 10px var(--accent-color-2)) drop-shadow(0 0 20px var(--accent-color-2));
    }
}

@keyframes profilePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px var(--accent-color-1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 25px var(--accent-color-2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px var(--accent-color-1);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .header {
        padding: 20px 5%;
    }
    section {
        padding: 70px 5% 20px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        margin-right: 0;
        margin-top: 30px;
    }
    .hero-image {
        order: -1;
        width: 250px;
        height: 250px;
    }
    .hero-text h1 {
        font-size: 40px;
    }
    .hero-text .tagline {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none; /* Can be replaced with a hamburger menu */
    }
    .hero-image {
        margin-bottom: 30px;
    }
    .heading {
        font-size: 35px;
        margin-bottom: 30px;
    }
    .skill-card, .project-card {
        padding: 20px;
    }
}