/* ========================================================================
projects.css — Theme variables (NOW TOGGLE–COMPATIBLE)
======================================================================== */

/* -------------------------
DEFAULT THEME (Dark)
------------------------- */
:root {
    --bg: #0d0f16;
    --card-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.06);
    --glass-dark: rgba(255,255,255,0.03);
    --blur: blur(10px);
    --accent: #6a83ff;
    --text: #eef2ff;
    --muted: rgba(238,242,255,0.7);
}

/* -------------------------
LIGHT THEME OVERRIDES
------------------------- */
[data-theme="light"] {
    --bg: #ffffff;
    --card-bg: rgba(0,0,0,0.05);
    --glass-border: rgba(0,0,0,0.08);
    --glass-dark: rgba(0,0,0,0.04);
    --accent: #004cff;
    --text: #1a1a1a;
    --muted: rgba(0,0,0,0.6);
}

/* Apply the theme to page */
body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s ease;
}

/* ========================================================================
BUTTONS
======================================================================== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    transition: 0.3s ease;
    border: none;
}

.btn.small {
    padding: 8px 14px;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn.ghost {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border);
}

.btn.ghost:hover {
    background: var(--card-bg);
}

/* ========================================================================
SCROLL TO TOP
======================================================================== */
#toTopBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 14px;
    background: var(--accent);
    border-radius: 8px;
    color: #fff;
    display: none;
}

/* ========================================================================
PROJECT CARDS (no change)
======================================================================== */

/* (Rest of your project styles remain same – no need to rewrite)
*/

    /* ========================================================================
    WHATSAPP BUTTON
    ========================================================================= */
    #whatsappBtn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    }
    
    #whatsappBtn img {
    width: 100%;
    height: 100%;
    }
    
   /* ========================================================================
    PROJECTS PAGE STYLES (Existing)
    ========================================================================= */
    
    /* Page intro / hero */
    .projects-hero {
    padding: 4.5rem 0 2rem;
    }
    
    .about-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.2rem;
    }
    
    .about-left { flex:1; min-width:0; }
    
    .about-title {
    font-size:2.4rem;
    font-weight:700;
    margin-bottom:.6rem;
    }
    
    .about-desc {
    color:var(--muted);
    margin-bottom:.4rem;
    }
    
    /* Photo card */
    .photo-glass-card {
    min-width:140px;
    width:140px;
    height:140px;
    border-radius:14px;
    background:var(--glass-dark);
    -webkit-backdrop-filter:var(--blur);
    backdrop-filter:var(--blur);
    border:1px solid var(--glass-border);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    }
    
    .photo-glass-card img {
    width:100%;
    height:100%;
    object-fit:cover;
    }
    
    /* Project list */
    .projects-list {
    margin-top:2.2rem;
    display:flex;
    flex-direction:column;
    gap:1.6rem;
    }
    
    .project-card {
    background:var(--card-bg);
    border:1px solid var(--glass-border);
    border-radius:14px;
    overflow:hidden;
    transition:transform .28s ease, box-shadow .28s ease;
    }
    
    .project-card:hover {
    transform:translateY(-8px);
    box-shadow:0 12px 28px rgba(0,0,0,0.45);
    }
    
    .project-inner {
    display:flex;
    gap:1.25rem;
    padding:18px;
    align-items:center;
    }
    
    .project-media img {
    width:200px;
    height:140px;
    object-fit:cover;
    border-radius:10px;
    background:#111;
    transition:transform .35s ease;
    }
    
    .project-card:hover .project-media img {
    transform:scale(1.04);
    }
    
    .project-info {
    flex:1;
    min-width:0;
    }
    
    .project-info h3 {
    font-size:1.15rem;
    margin-bottom:6px;
    color:var(--text);
    }
    
    .project-meta {
    color:var(--muted);
    font-size:0.9rem;
    margin-bottom:8px;
    }
    
    .project-desc {
    color:var(--muted);
    margin-bottom:10px;
    font-size:0.95rem;
    }
    
    /* Modal */
    .modal {
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999;
    padding:22px;
    }
    
    .modal.open { display:flex }
    
    .modal .modal-backdrop {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.62);
    -webkit-backdrop-filter:blur(4px);
    backdrop-filter:blur(4px);
    }
    
    .modal-panel {
    position:relative;
    width:100%;
    max-width:920px;
    border-radius:14px;
    box-shadow:0 18px 60px rgba(0,0,0,0.65);
    border:1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    overflow:hidden;
    animation:modalPop .28s ease;
    }
    
    @keyframes modalPop {
    from { transform:translateY(8px) scale(.99); opacity:0 }
    to { transform:none; opacity:1 }
    }
    
    .modal-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:22px 26px;
    }
    
    .modal-media img {
    width:90%;
    max-width:820px;
    max-height:480px;
    object-fit:cover;
    border-radius:10px;
    margin:6px auto 18px;
    transition:transform .35s ease;
    }
    
    .modal-media img:hover { transform:scale(1.03) }
    
    .modal-body {
    width:100%;
    max-width:880px;
    }
    
    .modal-body h2 {
    margin:6px 0 6px;
    font-size:1.45rem;
    font-weight:700;
    }
    
    .modal-meta {
    color:var(--muted);
    font-size:0.95rem;
    margin-bottom:12px;
    }
    
    #modalDesc {
    color:var(--muted);
    font-size:1rem;
    line-height:1.6;
    margin-bottom:14px;
    }
    
    /* Tags */
    .project-tags {
    display:flex;
    gap:8px;
    justify-content:center;
    flex-wrap:wrap;
    margin-bottom:14px;
    }
    
    .project-tags .tag {
    background:var(--accent);
    color:white;
    padding:5px 10px;
    font-size:0.82rem;
    border-radius:8px;
    }
    
    /* Close btn */
    .modal .modal-close {
    position:absolute;
    top:12px;
    right:12px;
    background:transparent;
    border:none;
    color:var(--text);
    font-size:22px;
    cursor:pointer;
    z-index:20;
    }
    
    /* Responsive */
    @media (max-width:900px){
    .about-card {
    flex-direction:column;
    text-align:center;
    }
    .project-inner {
    flex-direction:column;
    gap:12px;
    padding:14px;
    }
    .project-media img {
    width:100%;
    height:200px;
    }
    }
    
    @media (max-width:520px){
    .modal-media img {
    width:100%;
    max-height:360px;
    }
    .modal-panel { margin:0 8px }
    .project-info h3 { font-size:1.05rem }
    .project-meta { font-size:0.85rem }
    }
    