/* ============================================
   LIGHT MODE OVERRIDES  (data-theme="light")
   ============================================ */
[data-theme="light"] {
    --bg:        #f4f4f8;
    --bg-2:      #eaeaf0;
    --surface:   rgba(255,255,255,0.75);
    --surface-hover: rgba(255,255,255,0.95);
    --border:    rgba(0,0,0,0.09);
    --border-hover: rgba(124,58,237,0.35);
    --text-1:    #0f0f1a;
    --text-2:    #4b4b60;
    --text-3:    #9898b0;
}

[data-theme="light"] body { background: var(--bg); }

[data-theme="light"] .ambient-bg { opacity: 0.25; }

[data-theme="light"] #navbar.scrolled {
    background: rgba(244,244,248,0.9);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

[data-theme="light"] .glass-card {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .glass-card:hover {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

[data-theme="light"] .mobile-menu {
    background: rgba(244,244,248,0.98);
    border-top: 1px solid var(--border);
}

[data-theme="light"] footer {
    border-top: 1px solid var(--border);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-2);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    color: var(--accent);
}

/* Show/hide moon vs sun */
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: block; }

/* ============================================
   FLOATING ACTION BUTTONS (FABs)
   ============================================ */
.fab-group {
    position: fixed;
    bottom: 32px;
    right: 28px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.fab-label-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fab-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
}

.fab-label-group:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.fab:hover { transform: scale(1.12); }

.fab-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.fab-whatsapp:hover { box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

.fab-email {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.fab-email:hover { box-shadow: 0 6px 28px rgba(124,58,237,0.5); }

.fab-resume {
    background: linear-gradient(135deg, #06b6d4, #0369a1);
    box-shadow: 0 4px 20px rgba(6,182,212,0.35);
}
.fab-resume:hover { box-shadow: 0 6px 28px rgba(6,182,212,0.5); }

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-edu-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

.skills-box {
    padding: 36px;
}

.skills-heading {
    font-size: 1.2rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item { display: flex; flex-direction: column; gap: 8px; }

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
}
.skill-label span:last-child { color: var(--accent); font-weight: 600; }

.skill-track {
    height: 6px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0%;                   /* starts at 0, animated by JS */
    border-radius: 100px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   EDUCATION & CERTS
   ============================================ */
.edu-certs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.edu-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
}

.edu-icon {
    width: 44px;
    height: 44px;
    background: rgba(124,58,237,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.edu-icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.cert-icon {
    background: rgba(6,182,212,0.1);
}
.cert-icon svg { stroke: var(--accent-2); }

.edu-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.edu-card p {
    font-size: 0.8rem;
    color: var(--text-2);
}

/* ============================================
   WHATSAPP CONTACT ICON
   ============================================ */
.whatsapp-icon {
    background: rgba(37,211,102,0.12) !important;
}
.whatsapp-icon svg { fill: #25d366; }

/* ============================================
   CONTACT GRID — 4 columns on wide screens
   ============================================ */
.contact-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 1024px) {
    .skills-edu-grid { grid-template-columns: 1fr; }
    .contact-grid    { grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr !important; }
    .fab-group    { bottom: 20px; right: 16px; }
    .fab          { width: 46px; height: 46px; }
}
