:root {
    --bg-main: #05060a;
    --bg-section: #0b0f1a;

    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.08);

    --text-main: #ffffff;
    --text-muted: #b3b8d4;

    --accent: #c5b5ff;

    --shadow-soft: 0 8px 30px rgba(0,0,0,0.6);
    
    --icon-color: #ffffff;
}

body.light-mode {
    --bg-main: #f4f5f9;
    --bg-section: #ffffff;

    --card-bg: #ffffff;
    --card-border: #e6e8f0;

    --text-main: #111111;
    --text-muted: #555555;

    --accent: #c5b5ff;

    --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);

    --icon-color: #6d6d6d;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    transition: background 0.4s ease, color 0.4s ease;
}

section {
    background: var(--bg-section);
}
.card,
.project-card,
.experience-card,
.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;
    border-radius: 50%;

    background: var(--card-bg);
    border: 1px solid var(--card-border);

    color: var(--accent);
    font-size: 20px;

    cursor: pointer;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.6);
}

/* ----------------- NAVBAR ----------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.5s ease;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    text-shadow: 0 0 5px #fff; 
}

.navbar .menu a {
    margin-left: 20px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar .menu a:hover {
    text-decoration: underline; /* subtle hover effect */
}

/* ----------------- HERO ----------------- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    transition: all 0.5s ease;
    background: linear-gradient(
        120deg,
        var(--bg-main),
        var(--bg-section)
    );
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: none;
    transition: all 0.5s ease;
}

.hero p {
    max-width: 700px;
    margin-bottom: 20px;
    line-height: 1.5;
}

#modeToggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    background-color: transparent;
    color: var(--text-main);
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
}

#modeToggle:hover {
    background: var(--bg-section);
    color: var(--text-main);
    box-shadow: 0 0 10px #fff;
}

/* ---------------- SKILLS SECTION ---------------- */
.skills-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-section);
    transition: all 0.5s ease;
}

.skills-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-shadow: 0 0 5px #fff;
    transition: all 0.5s ease;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    padding: 18px 24px;
    border-radius: 12px;
    min-width: 220px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.skill-name {
    font-weight: bold;
    font-size: 16px;
}

.skill-level {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    opacity: 0.9;
    white-space: nowrap;
}

/* ---------- Skill Bar ---------- */
.skill-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.skill-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: width 0.6s ease;
}

.skill-bar[data-level="Beginner"] .skill-fill {
    width: 30%;
    background: #ddc1ee;
}

.skill-bar[data-level="Intermediate"] .skill-fill {
    width: 55%;
    background: #bd88d2;
}

.skill-bar[data-level="Advanced"] .skill-fill {
    width: 80%;
    background: #9b59b6;
}

.skill-bar[data-level="Expert"] .skill-fill {
    width: 100%;
    background: #6c3483;
}
/* ----------------- PROJECTS SECTION ----------------- */
.projects-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-section);
    transition: all 0.5s ease;
}

.projects-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-shadow: 0 0 5px #fff;
    transition: all 0.5s ease;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* ----------------- PROJECT CARD ----------------- */
.project-card {
    background: var(--bg-section);
    color: var(--text-main);
    width: 260px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
}

.project-card p {
    padding: 0 15px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.learn-more-btn {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--bg-section);
    color: #111;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: var(--bg-section);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* ----------------- BACK BUTTON ----------------- */
.back-btn {
    display: inline-block;
    margin: 20px;
    padding: 8px 15px;
    border-radius: 8px;
    background: var(--bg-section);
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--bg-section);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* ----------------- PROJECT DETAIL ----------------- */
.project-detail {
    max-width: 1000px;
    margin: 10px auto 60px;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0); 
}

.project-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 25px;
    overflow: hidden;        
    background-color: var(--bg-section); 
    box-shadow: var(--shadow-soft);
    padding: 20px;               
    margin-bottom: 40px;        
}

.project-image {
    flex: 1;
    min-width: 300px;
    margin-top: 30px; 
}

.project-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.project-info {
    flex: 1;
    min-width: 300px;
}

.project-info h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.project-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px; 
}

.project-technologies,
.project-features {
    margin-top: 20px;
}

.project-technologies h3,
.project-features h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.project-technologies ul,
.project-features ul {
    padding-left: 20px;
    margin: 0;
}

.project-technologies li,
.project-features li {
    margin-bottom: 8px;
    list-style: disc;
    font-size: 15px;
}

/* ----------------- Buttons ----------------- */
.project-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: #b3b3b3;
    transition: 0.3s ease;
    display: inline-block;
    text-align: center;
}

.github-btn {
    background-color: #333;
    color: white;
}

.github-btn:hover {
    background-color: #000;
}

.live-btn {
    background-color: #6c5ce7;
    color: white;
}

.live-btn:hover {
    background-color: #5a4bd4;
}

@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
    }
}

/* ----------------- EXPERIENCE SECTION ----------------- */
.experience-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-section);
}

.experience-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-shadow: 0 0 5px #fff;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: var(--bg-section);
    color: var(--text-main);
    padding: 25px 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.experience-info h3 {
    margin: 0;
    font-size: 22px;
}

.experience-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: var(--text-main);
}

.experience-date span {
    font-size: 14px;
    color: var(--text-main);
}

.experience-card ul {
    padding-left: 20px;
    margin: 0;
}

.experience-card li {
    font-size: 14px;
    line-height: 1.5;
}

/* ----------------- CERTIFICATIONS SECTION ----------------- */
.certifications-section {
    padding: 80px 20px;
    background: var(--bg-section);
    text-align: center;
}

.certifications-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-shadow: 0 0 5px #fff;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-section);
    color: var(--text-main);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.cert-card h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 5px;
}

.cert-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 5px;
    color: var(--text-main);
}

.cert-card span {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 10px;
    display: block;
}

.cert-card p {
    font-size: 14px;
    line-height: 1.5;
}

.cert-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 10px;
}

.cert-category {
    display: inline-block;
    background-color: rgba(199, 199, 199, 0.256);
    color: var(--text-main);
    font-weight: 600;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .certifications-container {
        grid-template-columns: 1fr;
    }
}

/* ----------------- Contact Form ----------------- */
.contact-section {
    padding: 80px 20px;
    background: var(--bg-section);
    color: var(--text-main);
    text-align: center;
}

.contact-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.contact-wrapper h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-wrapper p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: var(--bg-section);
    color: var(--text-main);
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: center;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    background: var(--bg-section);
    color: var(--text-main);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--bg-section);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* ----------------- Footer ----------------- */
.footer {
    background: var(--bg-section);
    color: var(--text-main);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
}

.footer-quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-icon{
    width:45px;
    height:45px;
    border-radius:50%;
    background:var(--bg-section);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.3s ease;
}

.footer-socials .social-icon i{
    font-size:22px;
    color:var(--icon-color);
    transition:color 0.3s ease;
}

.footer-socials .social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--icon-color);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-main);
}

.footer-socials a{
    text-decoration:none;
}

.learn-more-btn,
.back-btn,
.contact-form button {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--btn-border);
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.learn-more-btn:hover,
.back-btn:hover,
.contact-form button:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    box-shadow: 0 0 15px rgba(187, 184, 196, 0.6);
}

/* ----------------- Dashboard Section ----------------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

.admin-sidebar {
    width: 240px;
    background: #0f172a;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .logo {
    color: var(--accent);
    margin-bottom: 40px;
}

.admin-sidebar nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
    transition: 0.3s;
}

.admin-sidebar nav a:hover {
    background: var(--accent);
    color: #000;
}

.admin-content {
    flex: 1;
    padding: 30px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logout-btn {
    background: #ef4444;
    border: none;
    padding: 8px 15px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-card h3 {
    color: var(--text-muted);
}

.stat-card p {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
}

/* -------- Projec index ----------- */
.admin-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--card-border);
}

.primary-btn {
    background: var(--accent);
    padding: 10px 18px;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.edit-btn {
    color: #3b82f6;
    margin-right: 10px;
}

.delete-btn {
    background: #ef4444;
    border: none;
    padding: 6px 12px;
    color: white;
    border-radius: 6px;
}

/* Admin form  */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

.admin-form input,
.admin-form select,
.admin-form option,
.admin-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-main);
}

.success-message {
    background: #28a745;
    color: white;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: opacity 0.4s ease;
}

.error-box {
    background: #dc3545;
    color: white;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.admin-form-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(255, 168, 239, 0.505);
}
