* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
    transition: 0.3s;
}

/* Login Page */
.login-body {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 35px;
    width: 360px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeIn 1s ease;
}

.login-box h1 {
    margin-bottom: 10px;
    color: #0077cc;
}

.login-box p {
    margin-bottom: 20px;
    color: #555;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 15px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.login-box button:hover {
    background: #005fa3;
}

#error-msg {
    color: red;
    font-size: 14px;
    margin-top: 8px;
}

/* Navbar */
.navbar {
    background: #0077cc;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    padding: 10px 14px;
    border: none;
    background: white;
    color: #0077cc;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}

.nav-btn:hover {
    background: #e6f2ff;
}

.logout-btn {
    background: #ffdddd;
    color: #cc0000;
}

/* Hero */
.hero {
    text-align: center;
    padding: 50px 20px 30px;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #0077cc;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Sections */
section {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

section h2 {
    margin-bottom: 15px;
    color: #0077cc;
}

/* Skills */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-list span {
    background: #e6f2ff;
    color: #0077cc;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Projects */
.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    flex: 1 1 250px;
    background: #f8fbff;
    padding: 20px;
    border-left: 5px solid #0077cc;
    border-radius: 10px;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.demo-btn {
    background: #28a745;
}

.demo-btn:hover {
    background: #1e7e34;
}

.code-btn {
    background: #333;
}

.code-btn:hover {
    background: #000;
}

/* Contact Section */
.contact-box {
    margin-top: 10px;
    line-height: 1.9;
}

.contact-box p {
    font-size: 16px;
    margin-bottom: 8px;
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.linkedin {
    background: #0077b5;
}

.linkedin:hover {
    background: #005582;
}

.github {
    background: #333;
}

.github:hover {
    background: #000;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #0077cc;
    color: white;
    margin-top: 30px;
}

/* Dark Mode */
.dark-mode {
    background: #121212;
    color: white;
}

.dark-mode section {
    background: #1e1e1e;
    color: white;
}

.dark-mode .project-card {
    background: #2a2a2a;
}

.dark-mode .skill-list span {
    background: #333;
    color: #fff;
}

.dark-mode .navbar,
.dark-mode .footer {
    background: #1a1a1a;
}

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: revealAnim 1s forwards;
}

.reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal:nth-child(3) {
    animation-delay: 0.4s;
}

.reveal:nth-child(4) {
    animation-delay: 0.6s;
}

.reveal:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes revealAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
}
