/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #0d0d0d;
    color: #fff;
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}

body.light-mode {
    background-color: #f5f5f5;
    color: #111;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

/* Dark/Light Mode Toggle */
.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mode-toggle button {
    background: #00f6ff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    color: #000;
    font-size: 18px;
    transition: 0.3s;
}

.mode-toggle button:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px #00f6ff;
}

body.light-mode .mode-toggle button {
    background: #ff6c00;
    color: #fff;
}

/* Back-to-Top Button */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #00f6ff;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    z-index: 1000;
    transition: 0.3s;
}

#backToTop:hover {
    background: #ff6c00;
    color: #fff;
}

/* Header */
header {
    text-align: center;
    padding: 100px 20px 50px;
    background: rgba(0,0,0,0.6);
    transition: background 0.5s;
}

body.light-mode header {
    background: rgba(255,255,255,0.6);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-pic img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #00f6ff;
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-pic img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00f6ff;
}

body.light-mode .profile-pic img {
    border-color: #ff6c00;
    box-shadow: 0 0 20px #ff6c00;
}

@keyframes float {
    0%,100% { transform: translateY(0);}
    50% { transform: translateY(-10px);}
}

header h1 {
    font-size: 3rem;
    color: #00f6ff;
    animation: fadeInDown 1s ease-in-out;
}

body.light-mode header h1 {
    color: #ff6c00;
}

header p {
    font-size: 1.3rem;
    margin-top: 10px;
    animation: fadeInUp 1s ease-in-out;
}

/* Navbar */
.navbar {
    background: rgba(0,0,0,0.7);
    text-align: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.5s;
}

body.light-mode .navbar {
    background: rgba(255,255,255,0.8);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar ul li a {
    color: #00f6ff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

body.light-mode .navbar ul li a {
    color: #ff6c00;
}

.navbar ul li a:hover {
    color: #ff6c00;
}

body.light-mode .navbar ul li a:hover {
    color: #00f6ff;
}

/* Sections */
.section {
    padding: 60px 20px;
    background: rgba(0,0,0,0.6);
    margin: 40px auto;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(50px);
    transition: 1s, background 0.5s;
}

body.light-mode .section {
    background: rgba(255,255,255,0.6);
}

/* Fade-in on scroll */
.section.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Bars */
.skill-bars {
    margin-top: 20px;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

body.light-mode .progress-bar {
    background: #ccc;
}

.progress {
    height: 100%;
    background: #00f6ff;
    width: 0;
    border-radius: 10px;
    transition: width 2s;
}

body.light-mode .progress {
    background: #ff6c00;
}

/* Job Cards */
.job-card {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.5s;
}

body.light-mode .job-card {
    background: #eee;
    color: #111;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
    transition: box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    box-shadow: 0 0 10px #00f6ff;
}

body.light-mode form input:focus, body.light-mode form textarea:focus {
    box-shadow: 0 0 10px #ff6c00;
}

form button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #00f6ff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #ff6c00;
    color: #fff;
}

body.light-mode form button {
    background: #ff6c00;
    color: #fff;
}

.form-message {
    color: #00f6ff;
    font-weight: bold;
    margin-top: 5px;
}

body.light-mode .form-message {
    color: #ff6c00;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #00f6ff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ff6c00;
}

body.light-mode .social-icons a {
    color: #ff6c00;
}

body.light-mode .social-icons a:hover {
    color: #00f6ff;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    background: #111;
    transition: background 0.5s;
}

body.light-mode footer {
    background: #eee;
    color: #111;
}

/* Animations */
@keyframes fadeInDown {0%{opacity:0;transform:translateY(-50px);}100%{opacity:1;transform:translateY(0);}}
@keyframes fadeInUp {0%{opacity:0;transform:translateY(50px);}100%{opacity:1;transform:translateY(0);}}
