/* =================================================================
   Component Styles (Buttons, Cards, Forms, Navs)
   ================================================================= */

/* --- Navigation --- */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav li { margin-left: 20px; }
nav a { transition: color 0.3s; }
nav a:hover { color: #00aaff; }

/* --- Buttons --- */
.btn, .btn-details, .btn-secondary {
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border: 3px solid #555;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    color: #fff;
    background-color: #1e1e1e;
}
.btn:hover, .btn-details:hover, .btn-secondary:hover {
    background-color: #555;
    border-color: #555;
}

body.light-mode .btn, body.light-mode .btn-details, body.light-mode .btn-secondary {
    background-color: white;
    border-color: #ccc;
    color: #333;
}
body.light-mode .btn:hover, body.light-mode .btn-details:hover, body.light-mode .btn-secondary:hover {
    background-color: #ccc;
    color: #121212;
}

.btn-details { margin-top: auto; }
.btn-secondary {
    background-color: transparent;
    color: #888;
    border-color: #888;
}

/* --- Cards --- */
.card {
    background-color: #1e1e1e;
    border: 3px solid #333;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
body.light-mode .card {
    background-color: #ffffff;
    border-color: #ccc;
}

.card-content { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.card-content h3 { margin-top: 0; }
.card-content p { flex-grow: 1; }
.card-buttons { display: flex; gap: 10px; margin-top: 15px; margin-bottom: 15px; }
body.light-mode .card { background-color: #ffffff; border: 1px solid #ddd; }

/* --- Forms --- */
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 5px; font-weight: bold; }
.form-group input,
.form-group textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #1e1e1e;
    color: #ffffff;
    font-size: 1rem;
}
body.light-mode .form-group input,
body.light-mode .form-group textarea {
    border: 1px solid #ccc;
    background-color: #ffffff;
    color: #333333;
}
.contact-form .btn { align-self: flex-start; }

/* --- Mobile Navigation --- */
.mobile-nav-toggle { display: none; background: none; border: none; color: inherit; font-size: 1.5rem; cursor: pointer; z-index: 1002; position: relative; width: 24px; height: 24px; }
.mobile-nav-toggle .icon-close { display: none; }
body.mobile-nav-active .mobile-nav-toggle .icon-open { display: none; }
body.mobile-nav-active .mobile-nav-toggle .icon-close { display: block; }
.mobile-nav-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.3s ease-in-out, background-color 0.3s; z-index: 1001; }
.mobile-nav-container.active { transform: translateX(0); }
.mobile-nav-link { color: white; text-decoration: none; font-size: 2rem; margin: 20px 0; transition: color 0.3s; }
.mobile-nav-link:hover { color: #00aaff; }
body.light-mode .mobile-nav-container { background-color: rgba(240, 240, 240, 0.98); }
body.light-mode .mobile-nav-link { color: #333; }

/* --- Theme Toggle Button --- */
.theme-toggle-button { background: none; border: 1px solid #555; color: white; cursor: pointer; padding: 8px 12px; border-radius: 8px; font-size: 1.2rem; position: relative; overflow: hidden; transition: border-color 0.3s, color 0.3s; width: 50px; height: 36px; }
body.light-mode .theme-toggle-button { border-color: #ccc; color: #333; }
.theme-toggle-button .sun-icon,
.theme-toggle-button .moon-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; }

/* Dark mode (default) */
.theme-toggle-button .sun-icon { transform: translate(-50%, -150%); opacity: 0; }
.theme-toggle-button .moon-icon { transform: translate(-50%, -50%); opacity: 1; }

/* Light mode */
body.light-mode .theme-toggle-button .sun-icon { transform: translate(-50%, -50%); opacity: 1; }
body.light-mode .theme-toggle-button .moon-icon { transform: translate(-50%, 150%); opacity: 0; }
body.light-mode .theme-toggle-button .moon-icon { transform: translate(-50%, 150%); opacity: 0; }

/* --- Blog Nav Link --- */

/* --- Blog Nav Link --- */
.nav-blog-link {
    background-color: #00aaff; /* Blue background */
    color: #121212 !important; /* Dark text, !important to override base nav link color */
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

.nav-blog-link:hover {
    background-color: #0088cc; /* Slightly darker blue on hover */
    color: #ffffff !important;
    transform: scale(1.05);
}

body.light-mode .nav-blog-link {
    background-color: #007bff;
    color: #ffffff !important;
}

body.light-mode .nav-blog-link:hover {
    background-color: #0056b3;
}


/* --- Skill Section Components --- */
.skill-category {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    margin: 10px;
    flex: 1;
    min-width: 250px;
    transition: background-color 0.3s;
}
body.light-mode .skill-category { background-color: #ffffff; border: 1px solid #ddd; }
.skill-category h3 { margin-top: 0; border-bottom: 2px solid #00aaff; padding-bottom: 10px; }
.skill-category ul { list-style: none; padding: 0; }
.skill-category li { margin: 10px 0; }
.skill-list { display: flex; flex-direction: column; gap: 15px; }
.skill-item { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; }
.skill-info { font-weight: bold; text-align: right; }
.skill-meter { display: flex; align-items: center; gap: 10px; }
.skill-bar-container { flex-grow: 1; background-color: #333; border-radius: 8px; overflow: hidden; height: 12px; border: 1px solid #555; }
body.light-mode .skill-bar-container { background-color: #ddd; border-color: #bbb; }
.skill-bar { height: 100%; border-radius: 8px; transition: width 1s ease-in-out; }
.skill-level { font-weight: bold; font-size: 0.9em; width: 80px; text-align: left; }

/* Skill Level Colors */
.skill-bar.gold { background-color: #ffc107; }
.skill-level.gold { color: #ffc107; }
.skill-bar.silver { background-color: #c0c0c0; }
.skill-level.silver { color: #c0c0c0; }
.skill-bar.bronze { background-color: #cd7f32; }
.skill-level.bronze { color: #cd7f32; }
body.light-mode .skill-level.gold { color: #c79100; }
body.light-mode .skill-level.silver { color: #8e8e8e; }
body.light-mode .skill-level.bronze { color: #a46327; }



