/* ==========================================
   FOREST GREEN · EXECUTIVE PORTFOLIO
   Palette: #1f2421 · #216869 · #49a078 · #9cc5a1 · #dce1de
   ICON HIERARCHY (Refined):
   - Sidebar Big (Avatar)        : #49a078 (Seaweed) — user loves it
   - Inside All Icons (content)  : #216869 (Stormy) — dark & visible on light bg
   - Skill Tags / Small helpers  : #49a078 (Seaweed) — consistent pop
   ========================================== */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --carbon: #1f2421;
    --stormy: #216869;
    --seaweed: #49a078;
    --muted-teal: #9cc5a1;
    --alabaster: #dce1de;
    --alabaster-light: #e8efeb;

    --bg-body: var(--alabaster);
    --bg-card: #ffffff;
    --bg-sidebar: var(--carbon);
    --text-primary: #1a2a2a;
    --text-secondary: #3a4a4a;
    --text-muted: #6a7a7a;
    --text-light: rgba(255, 255, 255, 0.88);

    --shadow-sm: 0 1px 4px rgba(31, 36, 33, 0.04);
    --shadow-md: 0 6px 28px rgba(31, 36, 33, 0.06);
    --shadow-lg: 0 16px 52px rgba(31, 36, 33, 0.08);
    --shadow-glow: 0 8px 32px rgba(73, 160, 120, 0.10);

    --radius: 18px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    --gradient-primary: linear-gradient(135deg, var(--seaweed), var(--stormy));
    --gradient-subtle: linear-gradient(135deg, rgba(156, 197, 161, 0.12), rgba(73, 160, 120, 0.06));
    --gradient-footer: linear-gradient(135deg, var(--carbon) 60%, var(--stormy) 100%);

    /* Icon Colors — Clean, visible hierarchy */
    --icon-sidebar-big: #49a078;   /* Seaweed — user says perfect */
    --icon-inside: #216869;         /* Stormy — dark & crisp on light bg */
    --icon-small: #49a078;          /* Seaweed — for tags & helpers */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(156, 197, 161, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(73, 160, 120, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 95%, rgba(33, 104, 105, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* ==========================================
   MOBILE HEADER
   ========================================== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: rgba(220, 225, 222, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(31, 36, 33, 0.04);
    padding: 0.5rem 1rem;
    display: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 2px 20px rgba(31, 36, 33, 0.04);
    will-change: transform;
}

.mobile-header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.header-title i {
    font-size: 1.2rem;
    color: var(--icon-inside);
}

.header-title span {
    color: var(--text-primary);
}

.mobile-header .hamburger-toggle {
    position: static;
    display: flex;
    background: rgba(31, 36, 33, 0.04);
    border: 1px solid rgba(31, 36, 33, 0.06);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.mobile-header .hamburger-toggle:hover {
    background: rgba(73, 160, 120, 0.06);
    border-color: rgba(73, 160, 120, 0.12);
}

.mobile-header .hamburger-toggle.open {
    background: rgba(73, 160, 120, 0.08);
    border-color: rgba(73, 160, 120, 0.18);
}

.mobile-header .hamburger-toggle i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-header .hamburger-toggle.open i {
    transform: rotate(90deg);
}

/* ==========================================
   SIDEBAR — Solid Carbon Black
   ========================================== */
.sidebar {
    width: 280px;
    background: var(--carbon);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2rem 1.5rem 0rem 1.5rem;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
    position: sticky;
    top: 0;
    box-shadow: 4px 0 40px rgba(31, 36, 33, 0.06);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(156, 197, 161, 0.12);
    border-radius: 10px;
}
.sidebar-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(73, 160, 120, 0.08);
    transition: transform 0.3s ease;
}
.sidebar-logo:hover {
    transform: scale(1.05);
}
/* ----- BRAND ----- */
.brand {
    text-align: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-top: 0.5rem;
}

.brand-name span {
    color: var(--seaweed);
}

.brand-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.30);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.2rem;
    font-weight: 400;
}

/* ----- NAV ICON (BIG) — Seaweed, user loves it ----- */
.nav-icon-display {
    font-size: 3.8rem;
    line-height: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}

.nav-icon-display i {
    display: inline-block;
    color: var(--icon-sidebar-big);
    filter: drop-shadow(0 4px 24px rgba(73, 160, 120, 0.08));
    transition: opacity 0.25s ease, transform 0.3s ease;
    will-change: transform, opacity;
}

@keyframes rushForwardSubtle {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.08) translateY(-8px);
        opacity: 0;
    }
}

@keyframes settleBackSubtle {
    0% {
        transform: scale(1.08) translateY(8px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.nav-icon-display i.anim-out {
    animation: rushForwardSubtle 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-icon-display i.anim-in {
    animation: settleBackSubtle 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ----- NAVIGATION (inside icons — Stormy) ----- */
.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    letter-spacing: -0.2px;
    position: relative;
}

.nav-item i {
    width: 1.6rem;
    font-size: 1.1rem;
    color: var(--icon-inside);
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(156, 197, 161, 0.05);
    color: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}

.nav-item:hover i {
    color: var(--icon-sidebar-big);
    transform: scale(1.05);
}

.nav-item.active {
    background: rgba(156, 197, 161, 0.06);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(156, 197, 161, 0.06);
}

.nav-item.active i {
    color: var(--icon-sidebar-big);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(to bottom, var(--seaweed), var(--muted-teal));
    border-radius: 0 4px 4px 0;
}

.nav-item .nav-badge {
    margin-left: auto;
    font-size: 0.5rem;
    background: rgba(73, 160, 120, 0.12);
    color: var(--seaweed);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ----- SIDEBAR FOOTER — Premium blend with carbon ----- */
.sidebar-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.8px;
    padding: 1rem 0 1.2rem 0;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.3s ease;
}

.sidebar-footer i {
    margin-right: 0.4rem;
    color: var(--icon-sidebar-big);
    text-shadow: 0 0 12px rgba(73, 160, 120, 0.15);
    transition: text-shadow 0.3s ease;
}

.sidebar-footer:hover {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-footer:hover i {
    text-shadow: 0 0 18px rgba(73, 160, 120, 0.3);
}

.sidebar-footer strong {
    color: #fff;
    font-weight: 700;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    flex: 1;
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: transparent;
}

/* ==========================================
   PAGES
   ========================================== */
.page {
    display: none;
    animation: fadeUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page.active-page {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   GLASS CARD
   ========================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    border: 1px solid rgba(156, 197, 161, 0.20);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    border-color: rgba(73, 160, 120, 0.12);
}

/* ==========================================
   SECTION TITLES — Inside icons: Stormy
   ========================================== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    letter-spacing: -0.5px;
}

.section-title i {
    font-size: 1.6rem;
    color: var(--icon-inside);
    opacity: 0.95;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    min-width: 40px;
    margin-left: 0.8rem;
    background: linear-gradient(to right, var(--muted-teal), transparent);
}

/* ==========================================
   HOME
   ========================================== */
.home-two-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-left,
.home-right {
    flex: 1;
    min-width: 280px;
}

.home-left .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-text-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.about-text-card p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.profile-pic-placeholder {
    width: clamp(130px, 22vw, 180px);
    height: clamp(130px, 22vw, 180px);
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(156, 197, 161, 0.20);
    background: var(--alabaster-light);
    box-shadow: 0 8px 32px rgba(31, 36, 33, 0.04);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.profile-pic-placeholder:hover {
    box-shadow: 0 12px 48px rgba(73, 160, 120, 0.08);
    transform: scale(1.02);
}

.profile-pic-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PERSONAL DETAILS — Small icons: Seaweed */
.personal-details p {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(31, 36, 33, 0.03);
}

.personal-details p:last-child {
    border-bottom: none;
}

.personal-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.personal-details i {
    width: 1.4rem;
    color: var(--icon-small);
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
}

/* ===== LOCAL TIME ===== */
.local-time-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 0.4rem 1.4rem 0.4rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(31, 36, 33, 0.04);
    box-shadow: var(--shadow-sm);
    transition: background 0.8s ease, box-shadow 0.8s ease, border-color 0.8s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.local-time-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    opacity: 0.06;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.local-time-wrapper:hover {
    border-color: rgba(73, 160, 120, 0.12);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ------ Astro Display (sun/moon) ------ */
.astro-display {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* Sun (daytime) */
.astro-display .sun {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #fdd835, #f9a825);
    box-shadow: 0 0 30px rgba(253, 216, 53, 0.4);
    transition: all 0.5s ease;
}

/* Moon container */
.astro-display .moon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e8f0;
    box-shadow: inset -4px -4px 10px rgba(0,0,0,0.1), 0 0 20px rgba(200,220,240,0.2);
    position: relative;
    transition: transform 0.5s ease, width 0.5s, height 0.5s;
}

/* Moon phase shadow – uses CSS custom property for rotation */
.astro-display .moon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: #1a2f3f; /* dark night sky color, matches night background */
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.5s ease;
    transform-origin: center;
}

/* Moon size variations */
.astro-display .moon.size-small { transform: scale(0.8); }
.astro-display .moon.size-medium { transform: scale(1); }
.astro-display .moon.size-large { transform: scale(1.15); }

/* ----- Time Phase Themes (day) ----- */
.local-time-wrapper.dawn {
    background: linear-gradient(135deg, #fdd89b 0%, #f8b88b 60%, #e8a07a 100%);
    border-color: #e8a07a;
    box-shadow: 0 0 30px rgba(248, 184, 139, 0.2);
}
.local-time-wrapper.dawn .time-digital {
    background: rgba(255, 255, 255, 0.3);
    color: #5a3e2b;
}

.local-time-wrapper.morning {
    background: linear-gradient(135deg, #fde9c8 0%, #f9d99a 100%);
    border-color: #f0c27a;
    box-shadow: 0 0 30px rgba(249, 217, 154, 0.15);
}
.local-time-wrapper.morning .time-digital {
    background: rgba(255, 255, 255, 0.5);
    color: #6b4f2e;
}

.local-time-wrapper.noon {
    background: linear-gradient(135deg, #a8d8ea 0%, #7fc1d9 100%);
    border-color: #5fa8c4;
    box-shadow: 0 0 40px rgba(127, 193, 217, 0.25);
}
.local-time-wrapper.noon .time-digital {
    background: rgba(255, 255, 255, 0.6);
    color: #1f4a5e;
}

.local-time-wrapper.afternoon {
    background: linear-gradient(135deg, #e8d5b5 0%, #dbbd99 100%);
    border-color: #c9a87d;
    box-shadow: 0 0 30px rgba(219, 189, 153, 0.15);
}
.local-time-wrapper.afternoon .time-digital {
    background: rgba(255, 255, 255, 0.5);
    color: #5a4a38;
}

.local-time-wrapper.dusk {
    background: linear-gradient(135deg, #f7b58a 0%, #e58a7a 40%, #c97a8a 100%);
    border-color: #b86a7a;
    box-shadow: 0 0 40px rgba(229, 138, 122, 0.2);
}
.local-time-wrapper.dusk .time-digital {
    background: rgba(255, 255, 255, 0.3);
    color: #3d2a2a;
}

/* ----- Night Variants (new) ----- */
/* Light night – just after dusk, softer */
.local-time-wrapper.night-light {
    background: linear-gradient(135deg, #1a2f3f 0%, #2a4a5a 100%);
    border-color: #3a5a6a;
    box-shadow: 0 0 40px rgba(20,40,60,0.3);
}
.local-time-wrapper.night-light .time-digital {
    background: rgba(255,255,255,0.06);
    color: #aac8d8;
}
.local-time-wrapper.night-light .time-label,
.local-time-wrapper.night-light .time-zone {
    color: #8ab0c0;
}
/* Fewer stars */
.local-time-wrapper.night-light::before {
    opacity: 0.3;
}
.local-time-wrapper.night-light::after {
    display: none;
}

/* Deep night – dark, many stars */
.local-time-wrapper.night-deep {
    background: linear-gradient(135deg, #0b1a2e 0%, #0f2535 100%);
    border-color: #1a3a4a;
    box-shadow: 0 0 60px rgba(0,0,0,0.7);
}
.local-time-wrapper.night-deep .time-digital {
    background: rgba(255,255,255,0.04);
    color: #c8e0ec;
}
.local-time-wrapper.night-deep .time-label,
.local-time-wrapper.night-deep .time-zone {
    color: #7a9fb0;
}
.local-time-wrapper.night-deep .live-indicator {
    background: #7fc1d9;
    box-shadow: 0 0 10px #7fc1d9;
}
/* Many stars */
.local-time-wrapper.night-deep::before {
    opacity: 0.9;
}
.local-time-wrapper.night-deep::after {
    opacity: 0.7;
}

/* ----- Stars (on night variants) ----- */
.local-time-wrapper.night-light::before,
.local-time-wrapper.night-deep::before,
.local-time-wrapper.night-deep::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: 9999px;
}

.local-time-wrapper.night-light::before,
.local-time-wrapper.night-deep::before {
    background-image: 
        radial-gradient(2px 2px at 10% 20%, #fff, transparent),
        radial-gradient(2px 2px at 30% 60%, #fff, transparent),
        radial-gradient(1px 1px at 50% 10%, #fff, transparent),
        radial-gradient(2px 2px at 70% 40%, #fff, transparent),
        radial-gradient(1px 1px at 90% 80%, #fff, transparent),
        radial-gradient(2px 2px at 15% 80%, #fff, transparent),
        radial-gradient(1px 1px at 55% 70%, #fff, transparent),
        radial-gradient(2px 2px at 85% 20%, #fff, transparent),
        radial-gradient(1px 1px at 40% 30%, #fff, transparent),
        radial-gradient(2px 2px at 95% 50%, #fff, transparent);
    background-size: 200% 200%;
    animation: twinkle 4s ease-in-out infinite alternate;
}

.local-time-wrapper.night-deep::after {
    background-image: 
        radial-gradient(1px 1px at 20% 40%, #fff, transparent),
        radial-gradient(1px 1px at 60% 20%, #fff, transparent),
        radial-gradient(2px 2px at 80% 70%, #fff, transparent),
        radial-gradient(1px 1px at 10% 90%, #fff, transparent),
        radial-gradient(1px 1px at 45% 50%, #fff, transparent),
        radial-gradient(2px 2px at 75% 10%, #fff, transparent);
    background-size: 200% 200%;
    animation: twinkle 6s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.9; }
}

/* Moon position: higher in deep night, lower in light night */
.local-time-wrapper.night-deep .astro-display .moon {
    transform: translateY(-6px) scale(var(--moon-scale, 1));
}
.local-time-wrapper.night-light .astro-display .moon {
    transform: translateY(2px) scale(var(--moon-scale, 1));
}

/* Ensure the astro display sits above pseudo-elements */
.local-time-wrapper > * {
    position: relative;
    z-index: 1;
}

/* ----- Old icon wrapper – kept for compatibility, but not used ----- */
.time-icon-wrapper {
    display: none; /* hidden because we use astro-display */
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--seaweed);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(73, 160, 120, 0.10);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(73, 160, 120, 0.10);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
        box-shadow: 0 0 0 6px rgba(73, 160, 120, 0.03);
    }
}

.time-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-right: 1px solid rgba(31, 36, 33, 0.06);
    padding-right: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.time-label i {
    color: var(--icon-small);
    font-size: 0.75rem;
}

.time-digital {
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-body);
    padding: 0.05rem 0.7rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(31, 36, 33, 0.04);
    min-width: 78px;
    text-align: center;
}

.time-zone {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    background: var(--bg-body);
    padding: 0.08rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid rgba(31, 36, 33, 0.04);
    white-space: nowrap;
}

/* ==========================================
   QUALIFICATIONS
   ========================================== */
.qualifications-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.qual-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    border: 1px solid rgba(156, 197, 161, 0.15);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.qual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.qual-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
    border-color: rgba(73, 160, 120, 0.10);
}

.qual-card:hover::before {
    opacity: 1;
}

.qual-icon {
    font-size: 2rem;
    color: var(--icon-inside);
    min-width: 48px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.qual-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.qual-degree-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.qual-institution {
    font-weight: 600;
    color: var(--stormy);
    font-size: 0.85rem;
}

.qual-major {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.qual-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.3rem 0;
    font-size: 0.8rem;
}

.qual-gpa {
    background: rgba(156, 197, 161, 0.15);
    padding: 0.15rem 0.7rem;
    border-radius: 20px;
    font-weight: 700;
    color: var(--stormy);
}

.qual-year-range {
    color: var(--text-muted);
}

.qual-subject-passing {
    margin: 0.3rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.qual-label {
    font-weight: 700;
    color: var(--text-primary);
}

.qual-sep {
    margin: 0 0.3rem;
    color: var(--text-muted);
}

.qual-board {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.qual-note {
    font-size: 0.75rem;
    color: var(--seaweed);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* ----- Toggle Button ----- */
.btn-toggle-details {
    background: transparent;
    border: 1px solid rgba(33, 104, 105, 0.12);
    border-radius: 2rem;
    padding: 0.35rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stormy);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-toggle-details:hover {
    background: var(--stormy);
    color: #fff;
    box-shadow: 0 4px 16px rgba(33, 104, 105, 0.15);
    border-color: var(--stormy);
}

.btn-toggle-details i {
    transition: transform 0.4s ease;
    font-size: 0.65rem;
    color: inherit;
}

.btn-toggle-details.open i {
    transform: rotate(180deg);
}

.details-content {
    display: none;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(31, 36, 33, 0.04);
    margin-top: 0.8rem;
    animation: fadeUp 0.4s ease;
}

.details-content.open {
    display: block;
}

.details-inner {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    border: 1px solid rgba(156, 197, 161, 0.12);
}

.details-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-note i {
    color: var(--icon-small);
}

.semester-group {
    margin-bottom: 1.5rem;
}

.semester-group:last-of-type {
    margin-bottom: 0.3rem;
}

.semester-group h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.semester-group h4 i {
    color: var(--icon-inside);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(31, 36, 33, 0.04);
    background: white;
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 480px;
}

.academic-table thead th {
    background: var(--carbon);
    color: #fff;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.academic-table tbody td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid rgba(31, 36, 33, 0.04);
    color: var(--text-secondary);
}

.academic-table tbody tr:last-child td {
    border-bottom: none;
}

.academic-table tbody tr:nth-child(even) {
    background: var(--bg-body);
}

/* ——— NO HOVER EFFECT on academic tables (user request) ——— */
.academic-table tbody tr:hover {
    background: transparent;
}

.details-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    text-align: right;
    border-top: 1px dashed rgba(31, 36, 33, 0.06);
    padding-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.details-footer i {
    color: var(--icon-small);
}

/* ==========================================
   SKILLS / CAPABILITIES — Fresh color combo
   ========================================== */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(156, 197, 161, 0.12);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.skill-category:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
    border-color: rgba(73, 160, 120, 0.06);
}
/* ----- CLICKABLE TEXT HINT – hidden on desktop, shown on mobile ----- */
.scroll-to-cert-hint {
    display: none; /* hidden by default (desktop) */
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.scroll-to-cert-hint i {
    color: var(--icon-small);
    font-size: 0.8rem;
}

#scrollToCertTrigger {
    color: var(--stormy);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 1.5px dashed rgba(33, 104, 105, 0.25);
    transition: all 0.3s ease;
    padding: 0 0.1rem;
}

#scrollToCertTrigger:hover {
    color: var(--seaweed);
    border-bottom-color: var(--seaweed);
    transform: translateY(-0.5px);
}

/* On mobile (≤768px) – show the hint */
@media (max-width: 768px) {
    .scroll-to-cert-hint {
        display: flex;
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
    }
}
/* Category headers — use Stormy for icon, with a subtle gradient bg */
.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.3px;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(33, 104, 105, 0.06);
}

.skill-category h3 i {
    color: var(--icon-inside);
    font-size: 1.2rem;
    background: rgba(33, 104, 105, 0.04);
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.skill-category:hover h3 i {
    background: rgba(33, 104, 105, 0.08);
}

.skills-list-wrapper {
    position: relative;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: all 0.4s ease;
}

.skills-list.fade-gradient {
    position: relative;
    max-height: 130px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skills-list.fade-gradient~.fade-overlay {
    opacity: 1;
    pointer-events: auto;
    background: linear-gradient(to top, #ffffff, transparent);
}

.fade-overlay::after {
    content: "⋯ show all";
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(156, 197, 161, 0.10);
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    color: var(--stormy);
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
}

.fade-overlay:hover::after {
    background: rgba(156, 197, 161, 0.18);
}

.skill-category.expanded .skills-list {
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
}

.skill-category.expanded .fade-overlay {
    display: none;
}

/* Skill tags — new color combo: soft background with Seaweed icons */
.skill-tag {
    display: inline-flex;
    align-items: center;
    background: var(--bg-body);
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    border: 1px solid rgba(156, 197, 161, 0.08);
}

.skill-tag:hover {
    background: rgba(73, 160, 120, 0.04);
    border-color: rgba(73, 160, 120, 0.10);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(73, 160, 120, 0.04);
}

.skill-tag i {
    margin-right: 5px;
    color: var(--icon-small);
    font-size: 0.65rem;
    transition: color 0.3s ease;
}

.skill-tag:hover i {
    color: var(--icon-inside);
}

.show-less-btn-inline {
    display: none;
    text-align: center;
    margin-top: 0.7rem;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--stormy);
    background: rgba(156, 197, 161, 0.06);
    width: fit-content;
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    transition: background 0.3s ease;
}

.show-less-btn-inline:hover {
    background: rgba(156, 197, 161, 0.12);
}

.helper-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.helper-text i {
    color: var(--icon-small);
}

.social-helper {
    margin-bottom: 0.5rem;
}

/* ==========================================
   CAREER OBJECTIVE
   ========================================== */
.career-objective-highlight {
    background: linear-gradient(135deg, rgba(156, 197, 161, 0.10), rgba(73, 160, 120, 0.06));
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(156, 197, 161, 0.12);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease;
}

.career-objective-highlight:hover {
    box-shadow: var(--shadow-glow);
}

.obj-icon {
    font-size: 2rem;
    color: var(--icon-inside);
    background: white;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    box-shadow: 0 4px 16px rgba(73, 160, 120, 0.06);
    flex-shrink: 0;
}

.obj-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-family: 'Playfair Display', serif;
}

.obj-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0.5rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--seaweed), rgba(73, 160, 120, 0.05));
    border-radius: 4px;
}

.timeline-entry {
    position: relative;
    display: flex;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--seaweed);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(73, 160, 120, 0.10);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(73, 160, 120, 0.12);
    background: var(--stormy);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--seaweed);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: 1rem;
    box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
    background: #ffffff;
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline-date {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--stormy);
    background: rgba(156, 197, 161, 0.10);
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.timeline-content h4 i {
    color: var(--icon-inside);
}

.meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.meta-inline span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-inline i {
    width: 1rem;
    color: var(--icon-small);
}

.key-points-single {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.parent-club {
    font-size: 0.72rem;
    color: var(--stormy);
    background: rgba(156, 197, 161, 0.06);
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 20px;
}

.parent-club i {
    margin-right: 0.3rem;
    color: var(--icon-small);
}

.cert-highlight {
    background: rgba(255, 255, 255, 0.92);
}

.cert-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(33, 104, 105, 0.12);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.7rem;
    text-decoration: none;
    color: var(--stormy);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-outline:hover {
    background: var(--stormy);
    color: white;
    border-color: var(--stormy);
    box-shadow: 0 4px 16px rgba(33, 104, 105, 0.12);
    transform: translateY(-1px);
}

.btn-outline i {
    color: var(--icon-small);
}

.btn-outline:hover i {
    color: white;
}

.official-icon,
.thm-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    border-radius: 4px;
}

/* ==========================================
   ACTIVITIES PAGE – TWO‑COLUMN LAYOUT
   (Experience 2/3 + Certifications 1/3)
   ========================================== */
.experience-row {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.experience-main {
    flex: 2;
    min-width: 0; /* prevent overflow */
}

.certifications-side {
    flex: 1;
    min-width: 0;
}

/* ----- CERTIFICATIONS CARD ----- */
.cert-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(156, 197, 161, 0.15);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    border-color: rgba(73, 160, 120, 0.06);
}

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

.cert-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-header h4 i {
    color: var(--icon-inside);
}

.ongoing-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(73, 160, 120, 0.08);
    color: var(--stormy);
    padding: 0.15rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(73, 160, 120, 0.10);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cert-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.cert-body .cert-buttons {
    margin-top: 0.2rem;
}

.cert-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-section-title i {
    color: var(--icon-inside);
}

/* ----- MOBILE CLUE (hidden on desktop) ----- */
.mobile-clue {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    padding: 0.6rem;
    background: rgba(156, 197, 161, 0.04);
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(156, 197, 161, 0.15);
}

.mobile-clue strong {
    color: var(--text-primary);
}

/* ============================================================
   CONTACT PAGE – PROFESSIONAL REFINEMENTS (FULL REPLACEMENT)
   ============================================================ */
/* --- Page header (added for professional touch) --- */
.contact-page-header {
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -0.3rem;
    font-weight: 400;
}

/* ----- Primary Contact Cards (3 per row) ----- */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-grid.primary .contact-card {
    flex: 0 0 calc((100% - 2 * 1.2rem) / 3);
    max-width: calc((100% - 2 * 1.2rem) / 3);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
    border: 1px solid rgba(156, 197, 161, 0.12);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-grid.primary .contact-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
    border-color: rgba(73, 160, 120, 0.06);
}

.contact-grid.primary .contact-card i {
    font-size: 2rem;
    color: var(--icon-inside);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-grid.primary .contact-card h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.contact-grid.primary .contact-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* --- Compact action buttons inside contact cards --- */
.contact-grid.primary .contact-card .btn-outline {
    padding: 0.2rem 0.8rem;
    font-size: 0.65rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(33, 104, 105, 0.12);
    color: var(--stormy);
    background: transparent;
    transition: all 0.2s ease;
    margin-top: 0.2rem;
}

.contact-grid.primary .contact-card .btn-outline i {
    font-size: 0.55rem;
    margin-right: 0.2rem;
    color: var(--stormy);
}

.contact-grid.primary .contact-card .btn-outline:hover {
    background: var(--stormy);
    color: #fff;
    border-color: var(--stormy);
    box-shadow: 0 2px 8px rgba(33, 104, 105, 0.10);
    transform: translateY(-1px);
}

.contact-grid.primary .contact-card .btn-outline:hover i {
    color: #fff;
}

/* ----- Social Media Buttons (4 per row) ----- */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-grid .social-btn {
    flex: 0 0 calc((100% - 3 * 1.2rem) / 4);
    max-width: calc((100% - 3 * 1.2rem) / 4);
    min-height: 48px;
    background: #ffffff;
    border: 1px solid rgba(31, 36, 33, 0.04);
    padding: 0.4rem 0.5rem;
    border-radius: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.social-grid .social-btn:hover {
    background: var(--stormy);
    color: white;
    border-color: var(--stormy);
    box-shadow: 0 4px 20px rgba(33, 104, 105, 0.10);
    transform: translateY(-2px);
}

.social-grid .social-btn i {
    font-size: 1rem;
    color: var(--icon-inside);
    transition: color 0.3s ease;
}

.social-grid .social-btn:hover i {
    color: white;
}

/* TryHackMe icon – match other icons */
.social-grid .social-btn .thm-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transition: filter 0.3s ease;
}

.social-grid .social-btn:hover .thm-icon {
    filter: brightness(0) invert(1);
}

/* ----- Phone Card (full width) ----- */
.phone-card {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem 1.8rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(156, 197, 161, 0.12);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
}

.phone-card:hover {
    box-shadow: var(--shadow-glow);
}

.phone-card i {
    color: var(--icon-small);
    margin-right: 0.3rem;
}

.phone-card a {
    color: var(--seaweed);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-card a:hover {
    color: var(--stormy);
}

.phone-card hr {
    margin: 0.8rem 0;
    opacity: 0.06;
    border: none;
    border-top: 1px solid rgba(31, 36, 33, 0.12);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.6rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(31, 36, 33, 0.04);
    padding-top: 1.2rem;
    letter-spacing: 0.3px;
}

footer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
        padding: 1.5rem 1rem 0rem 1rem;
    }
    .nav-item {
        padding: 0.65rem 1rem;
        gap: 0.7rem;
        font-size: 0.8rem;
    }
    .nav-item i {
        width: 1.3rem;
        font-size: 1rem;
    }
    .main-content {
        padding: 1.8rem 1.8rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .profile-pic-placeholder {
        width: 140px;
        height: 140px;
    }
    .brand-name {
        font-size: 1.2rem;
    }
    .nav-icon-display {
        font-size: 3.2rem;
        min-height: 70px;
    }
    .sidebar-footer {
        padding: 0.8rem 0 1rem 0;
        margin-left: 0;
        margin-right: 0;
        font-size: 0.6rem;
    }

    /* Contact: 2 columns */
    .contact-grid.primary .contact-card {
        flex: 0 0 calc((100% - 1.2rem) / 2);
        max-width: calc((100% - 1.2rem) / 2);
    }
    /* Social: 2 columns */
    .social-grid .social-btn {
        flex: 0 0 calc((100% - 1.2rem) / 2);
        max-width: calc((100% - 1.2rem) / 2);
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 3.5rem;
    }
    .app-wrapper {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }

    .main-content {
        padding: 5rem 1rem 1.5rem 1rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        box-shadow: -8px 0 40px rgba(31, 36, 33, 0.06);
        padding-top: 4.5rem;
        padding-bottom: 0rem;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        border-radius: 0;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.03);
    }
    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-footer {
        padding: 0.8rem 0 1rem 0;
        margin-left: 0;
        margin-right: 0;
        font-size: 0.65rem;
    }

    .home-two-columns {
        flex-direction: column;
    }
    .home-right {
        order: -1;
    }
    .home-left {
        order: 0;
    }

    .academic-table {
        font-size: 0.65rem;
        min-width: 380px;
    }
    .academic-table thead th,
    .academic-table tbody td {
        padding: 0.35rem 0.5rem;
    }
    .details-inner {
        padding: 0.75rem;
    }
    .btn-toggle-details {
        font-size: 0.65rem;
        padding: 0.25rem 0.9rem;
    }

    .grid-2col {
        grid-template-columns: 1fr;
    }

    .local-time-wrapper {
        gap: 0.3rem;
        padding: 0.3rem 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .time-digital {
        font-size: 0.75rem;
        min-width: 60px;
        padding: 0.05rem 0.4rem;
    }
    .time-label {
        font-size: 0.55rem;
        padding-right: 0.4rem;
    }
    .time-zone {
        font-size: 0.5rem;
        padding: 0.05rem 0.4rem;
    }
    .live-indicator {
        width: 6px;
        height: 6px;
    }
    .astro-display {
        width: 32px;
        height: 32px;
    }
    .astro-display .sun {
        width: 24px;
        height: 24px;
    }
    .astro-display .moon {
        width: 26px;
        height: 26px;
    }

    .timeline-container {
        padding-left: 0;
    }
    .timeline-container::before {
        left: 20px;
    }
    .timeline-marker {
        left: 12px;
        top: 0.5rem;
    }
    .timeline-content {
        margin-left: 40px;
    }

    .career-objective-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* Mobile: 2 columns for contact & social */
    .contact-grid.primary .contact-card,
    .social-grid .social-btn {
        flex: 0 0 calc((100% - 1.2rem) / 2);
        max-width: calc((100% - 1.2rem) / 2);
    }

    .nav-icon-display {
        font-size: 3.6rem;
        min-height: 70px;
    }
    .brand-name {
        font-size: 1.2rem;
    }

    .qual-card {
        padding: 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .qual-icon {
        margin-bottom: 0.3rem;
    }

    .qual-meta {
        justify-content: center;
    }

    .contact-card {
        padding: 1.2rem 1rem;
    }

    /* ----- ACTIVITIES PAGE — MOBILE STACKING ----- */
    .experience-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .experience-main,
    .certifications-side {
        flex: 1 1 auto;
        width: 100%;
    }

    .mobile-clue {
        display: block;
    }

    .cert-section-title {
        margin-top: 0.5rem;
    }

    /* Contact mobile refinements */
    .contact-grid.primary .contact-card {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .social-grid .social-btn {
        flex: 0 0 calc((100% - 1.2rem) / 2);
        max-width: calc((100% - 1.2rem) / 2);
    }

    .phone-card-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .phone-numbers {
        justify-content: center;
    }

    .phone-divider {
        display: none;
    }

    .phone-item {
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .main-content {
        padding: 4.5rem 0.75rem 1rem 0.75rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .glass-card {
        padding: 1.2rem;
    }
    .profile-pic-placeholder {
        width: 110px;
        height: 110px;
    }
    .personal-details p {
        font-size: 0.78rem;
    }
    .timeline-content {
        padding: 1rem;
    }
    .cert-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .time-zone {
        font-size: 0.45rem;
    }
    .astro-display {
        width: 28px;
        height: 28px;
    }
    .astro-display .sun {
        width: 20px;
        height: 20px;
    }
    .astro-display .moon {
        width: 22px;
        height: 22px;
    }

    /* Small phones: 1 column for contact & social */
    .contact-grid.primary .contact-card,
    .social-grid .social-btn {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
