/* --- CSS Variables for Neon Theme --- */
:root {
    --bg-color: #0d0221;
    --neon-blue: #00e5ff;
    --neon-pink: #ff00f5;
    --neon-purple: #8a2be2;
    --neon-green: #39ff14;
    --text-color: #f0f0f0;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;
}

/* --- General Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(300deg, #0d0221, #1a0441, #2c0677, #0d0221);
    background-size: 240% 240%;
    animation: gradient-animation 16s ease infinite;
    position: relative;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

.glow-title {
    font-family: var(--font-primary);
    font-size: 5rem;
    color: #fff;
    text-shadow: 
        0 0 7px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 21px var(--neon-blue),
        0 0 42px var(--neon-pink),
        0 0 82px var(--neon-pink),
        0 0 92px var(--neon-pink);
    margin-bottom: 1rem;
}

.glow-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 
        0 0 5px var(--neon-green),
        0 0 10px var(--neon-green),
        0 0 15px var(--neon-green);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down-indicator a {
    font-size: 2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}


/* --- General Section Styling --- */
.section-container {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0; /* Initially hidden for JS animation */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink);
}

/* --- About Me Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-pic-container {
    flex-shrink: 0;
    border-radius: 50%;
    padding: 5px;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.about-content p {
    font-size: 1.2rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 15px;
    text-shadow: 0 0 5px var(--neon-green);
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue);
    background: rgba(0, 229, 255, 0.1);
}

.skill-card i {
    font-size: 2rem;
    color: var(--neon-blue);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-color);
    border: 2px solid var(--neon-purple);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--neon-purple), 0 0 45px var(--neon-purple);
}

.project-card h3 {
    color: var(--neon-pink);
    margin-bottom: 10px;
}

.project-tech {
    margin: 15px 0;
}

.project-tech span {
    background: var(--neon-purple);
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 0.8rem;
}

.btn-glow {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    text-decoration: none;
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--neon-green);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: var(--neon-green);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-green);
}

/* --- Education Section --- */
.education-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--neon-pink);
    padding: 25px;
    border-radius: 0 10px 10px 0;
}

.education-info h3 {
    color: var(--neon-pink);
    font-size: 1.6rem;
}
.institution { font-weight: bold; }
.duration { font-style: italic; }

/* --- Achievements Section --- */
.achievements-list {
    list-style: none;
    padding-left: 20px;
}

.achievements-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievements-list i {
    color: var(--neon-green);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--neon-green);
}

/* --- Contact Section --- */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--neon-purple);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 15px var(--neon-purple);
    border-color: var(--neon-pink);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links a {
    color: var(--neon-blue);
    font-size: 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--neon-pink);
    transform: scale(1.2);
    text-shadow: 0 0 20px var(--neon-pink);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .glow-title {
        font-size: 3.5rem;
    }

    .glow-subtitle {
        font-size: 1.3rem;
    }

    .section-container {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        flex-direction: row;
    }
}