/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Navbar styling */
header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
}

header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header .navbar h1 {
    font-size: 2rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background-color: #005f73;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* General Section Styling */
section {
    padding: 60px 20px;
    margin: 20px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-content {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

/* Portfolio Section */
.projects {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.project-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 30%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    border-radius: 8px;
}

.project-card h3 {
    margin-top: 10px;
}

/* Skills Section */
.skill-list {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.skill-item {
    text-align: center;
    width: 20%;
}

.skill-bar {
    height: 10px;
    width: 100%;
    margin-top: 10px;
    background-color: #ddd;
}

.skill-bar.html {
    width: 90%;
    background-color: #ff7f50;
}

.skill-bar.css {
    width: 80%;
    background-color: #3498db;
}

.skill-bar.js {
    width: 75%;
    background-color: #f39c12;
}

.skill-bar.react {
    width: 65%;
    background-color: #61dafb;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    width: 60%;
    margin: 20px auto;
}

form input,
form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

form button {
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

/* CV Section */
#cv {
    background-color: #fff;
    padding: 60px 20px;
    margin: 20px 0;
}

#cv .btn {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

#cv .btn:hover {
    background-color: #555;
}

#cv .cv-preview {
    margin-top: 20px;
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

footer {
    background-color: #333;
    color: white;
}

/* --- login/dashboard page styles --- */
:root {
    --bg-color: #f0f0f0;
    --text-color: #333;
    --card-bg: #fff;
    --btn-bg: #007bff;
    --btn-text: #fff;
}
body.dark {
    --bg-color: #181818;
    --text-color: #eee;
    --card-bg: #242424;
    --btn-bg: #4a90e2;
    --btn-text: #fff;
}
/* center container on full viewport
   apply only when body has login-page or dashboard-page class */
body.login-page,
body.dashboard-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
}

.login-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    width: 360px;
    transition: transform 0.2s ease;
}
.login-container:hover {
    transform: translateY(-2px);
}
.login-container h2 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
}
.login-container label {
    margin-top: 15px;
    font-weight: 500;
}
.login-container input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.login-container input:focus {
    border-color: var(--btn-bg);
    outline: none;
}
.login-container button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.login-container button:hover {
    opacity: 0.9; /* slight fade on hover */
}
.login-container .message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}
.theme-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}
.theme-switch input {
    margin-left: 8px;
}
    padding: 10px 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
}