/* --- UNIVERSAL STYLES & VARIABLES --- */
:root {
    --bg-color: #0a192f;
    --card-bg: rgba(10, 25, 47, 0.85);
    --text-color: #a8b2d1;
    --light-text-color: #a8b2d1;
    --border-color: rgba(100, 255, 218, 0.1);
    --shadow-color: rgba(2, 12, 27, 0.7);
    --font-sans: 'Poppins', sans-serif;
    --font-heading: 'Exo 2', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }

/* --- PAGE-SPECIFIC ACCENT COLORS --- */
#home-page { --primary-color: #00aaff; } /* Blue */
#about-page { --primary-color: #00ffc3; } /* Green */
#portfolio-page { --primary-color: #9f70fd; } /* Purple */
#achievements-page { --primary-color: #ffc94d; } /* Gold */
#contact-page { --primary-color: #ff7f50; } /* Orange */

/* --- CANVAS BACKGROUND --- */
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

/* --- HEADER & NAVIGATION --- */
.navbar { position: fixed; top: 0; width: 100%; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(10, 25, 47, 0.8); backdrop-filter: blur(10px); z-index: 1000; transition: top 0.3s; border-bottom: 1px solid var(--border-color); }
.logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 2.5rem; }
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 400; transition: color 0.3s ease; padding: 0.5rem 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-color); transition: all 0.3s ease-in-out; }

/* --- MAIN CONTENT & ANIMATIONS --- */
.main-content { padding: 0 5%; max-width: 1200px; margin: 0 auto; }
.animate-on-load { animation: fadeInUp 1s ease-out forwards; }
.animate-on-scroll { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 8rem 0 4rem; }
.section-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; margin-bottom: 3rem; text-align: center; color: var(--primary-color); }
.card { background: var(--card-bg); padding: 2rem; border-radius: 10px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px -15px var(--shadow-color); backdrop-filter: blur(5px); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-7px); box-shadow: 0 15px 40px -10px var(--shadow-color); border-color: var(--primary-color); }
.cta-button { display: inline-block; background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); padding: 0.8rem 1.8rem; border-radius: 5px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; cursor: pointer; }
.cta-button:hover { background: var(--primary-color); color: var(--bg-color); transform: scale(1.05); }

/* --- HOME PAGE SPECIFIC --- */
#hero { text-align: center; }
.intro-text { color: var(--primary-color); font-size: 1.2rem; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 10vw, 5rem); color: #e6f1ff; margin: 0.5rem 0; }
.subtitle { font-size: 1.5rem; color: var(--light-text-color); margin-bottom: 2.5rem; }

/* --- ABOUT PAGE SPECIFIC --- */
.about-content { display: flex; align-items: center; gap: 3rem; }
.about-text h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.8rem; margin-bottom: 1rem; }
.about-image { flex-shrink: 0; }
.about-image img { width: 300px; height: 300px; object-fit: cover; border-radius: 50%; border: 5px solid var(--primary-color); box-shadow: 0 0 30px -5px var(--primary-color); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.skill-category h3 { color: var(--primary-color); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.skill-category ul { list-style: none; }
.skill-category li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.skill-category li::before { content: '▹'; position: absolute; left: 0; color: var(--primary-color); }

/* --- PORTFOLIO PAGE SPECIFIC --- */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.project-card { padding: 0; overflow: hidden; }
.project-info { padding: 2rem; }
.project-info h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.5rem; }
.tech-stack { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-stack span { background-color: rgba(var(--primary-color-rgb), 0.1); color: var(--primary-color); padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.8rem; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 3px; background: var(--primary-color); opacity: 0.3; }
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 50px; }
.timeline-dot { position: absolute; left: 0; top: 5px; width: 33px; height: 33px; border-radius: 50%; background: var(--bg-color); border: 3px solid var(--primary-color); box-shadow: 0 0 15px var(--primary-color); }
.timeline-date { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }
.timeline-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* --- ACHIEVEMENTS PAGE SPECIFIC --- */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.achievement-card { text-align: center; }
.achievement-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; text-shadow: 0 0 20px var(--primary-color); }
.achievement-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; }

/* --- CONTACT PAGE SPECIFIC --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.info-item { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.info-item i { color: var(--primary-color); font-size: 1.5rem; }
.contact-socials { margin-top: 2rem; }
.contact-socials a { color: var(--text-color); font-size: 1.8rem; margin-right: 1.5rem; transition: color 0.3s ease, transform 0.3s ease; }
.contact-socials a:hover { color: var(--primary-color); transform: scale(1.2); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--primary-color); }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; background: #122647; border: 1px solid var(--border-color); border-radius: 5px; color: #e6f1ff; font-family: var(--font-sans); transition: border-color 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px -2px var(--primary-color); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* --- PAGE NAVIGATION BOX --- */
.page-navigation-box { text-align: center; padding: 2.5rem; margin-top: 2rem; margin-bottom: 4rem; }
.page-navigation-box h4 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.section-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-button { display: inline-flex; align-items: center; gap: 0.75rem; background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); padding: 0.7rem 1.5rem; border-radius: 5px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.nav-button:hover { background: var(--primary-color); color: var(--bg-color); transform: translateY(-3px); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-content { flex-direction: column-reverse; text-align: center; }
    .contact-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section { padding-top: 6rem; }
    .nav-links { position: fixed; left: -100%; top: 4.5rem; flex-direction: column; background-color: var(--bg-color); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); padding: 2rem 0; }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 50px; }
    .timeline-dot { left: 0; }
    .section-nav { flex-direction: column; gap: 1.5rem; }
}

.logo-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; vertical-align: middle; }

/* --- NEW ADDITIONS FOR FEATURES --- */
/* Styling for custom SVG icons in social links */
.contact-socials a svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
    vertical-align: middle;
}

/* Styling for links in the skill list */
.skill-category ul a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.skill-category ul a:hover {
    color: var(--primary-color);
}

/* Removes default link styling from project cards */
.project-card-link {
    text-decoration: none;
    color: inherit;
}


